@stacksjs/stx 0.2.271 → 0.2.273

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.
Files changed (58) hide show
  1. package/dist/builtins/image-delivery.js +6 -3
  2. package/dist/{chunk-n3dk9t9f.js → chunk-0vjgbyf7.js} +226 -226
  3. package/dist/{chunk-ahzzwebg.js → chunk-1eg447es.js} +1 -1
  4. package/dist/{chunk-jrfehndk.js → chunk-2ymz6nrt.js} +1 -1
  5. package/dist/{chunk-41f7v4ja.js → chunk-3cacp3v6.js} +1 -1
  6. package/dist/{chunk-grt377yc.js → chunk-4c6wz64s.js} +1 -1
  7. package/dist/{chunk-e9bqsjvn.js → chunk-51qxyf3s.js} +1 -1
  8. package/dist/{chunk-8tkdj47d.js → chunk-5cket5g3.js} +2 -2
  9. package/dist/{chunk-j30wnqkt.js → chunk-5z466wfw.js} +1 -1
  10. package/dist/{chunk-j6aga9pq.js → chunk-6pshqqjt.js} +1 -1
  11. package/dist/{chunk-jrn6x9kv.js → chunk-75w11fde.js} +1 -1
  12. package/dist/{chunk-2ahsmwdq.js → chunk-76258rpp.js} +1 -1
  13. package/dist/chunk-8sg8tspq.js +2 -0
  14. package/dist/{chunk-3kvdh9da.js → chunk-980vbj13.js} +1 -1
  15. package/dist/{chunk-r8h8t77y.js → chunk-av7n7vdr.js} +1 -1
  16. package/dist/{chunk-mr7m83w1.js → chunk-b8mq8vaz.js} +1 -1
  17. package/dist/{chunk-45gasjkt.js → chunk-cdmnfb6q.js} +1 -1
  18. package/dist/{chunk-1znt2vmy.js → chunk-crkxdfsc.js} +1 -1
  19. package/dist/{chunk-wsbd9kpe.js → chunk-czsv3zcn.js} +1 -1
  20. package/dist/{chunk-pj5m421t.js → chunk-dw3c9zg3.js} +1 -1
  21. package/dist/{chunk-7n39346x.js → chunk-e5ncpk9f.js} +8 -8
  22. package/dist/{chunk-wfrwbykj.js → chunk-e7b2p0h4.js} +1 -1
  23. package/dist/{chunk-01vsryag.js → chunk-eaqh53ea.js} +1 -1
  24. package/dist/{chunk-zjpbeebd.js → chunk-edt2q2bp.js} +1 -1
  25. package/dist/{chunk-jnc3kfpb.js → chunk-egbaw4bh.js} +1 -1
  26. package/dist/{chunk-3wshezq4.js → chunk-gwkxf766.js} +1 -1
  27. package/dist/chunk-h45js0cg.js +3 -0
  28. package/dist/{chunk-096ejm6e.js → chunk-h7fzgd2n.js} +1 -1
  29. package/dist/{chunk-yr4s841y.js → chunk-hqpsxzxe.js} +1 -1
  30. package/dist/{chunk-br9c5dsn.js → chunk-jjfet3b4.js} +1 -1
  31. package/dist/{chunk-myk6g2bz.js → chunk-jks6f8f5.js} +1 -1
  32. package/dist/{chunk-c2dtn0n1.js → chunk-kmj6hxen.js} +1 -1
  33. package/dist/{chunk-c29x3wtz.js → chunk-m0n5rn6r.js} +1 -1
  34. package/dist/chunk-qsty6qvn.js +2 -0
  35. package/dist/{chunk-cfnvwm5n.js → chunk-qv6cjn0k.js} +1 -1
  36. package/dist/{chunk-z3cme6c9.js → chunk-rda8tspf.js} +1 -1
  37. package/dist/{chunk-6s3yxjmr.js → chunk-rsr2m2hq.js} +1 -1
  38. package/dist/{chunk-t1njgvy0.js → chunk-sj8887k1.js} +2 -2
  39. package/dist/{chunk-2y22cbx8.js → chunk-t42rq0p7.js} +1 -1
  40. package/dist/{chunk-qttfc5w6.js → chunk-tdcrah1x.js} +1 -1
  41. package/dist/{chunk-0j58q0tb.js → chunk-wanmxrha.js} +1 -1
  42. package/dist/{chunk-rcfaqy69.js → chunk-yapm6eaz.js} +1 -1
  43. package/dist/{chunk-xyrm7ew9.js → chunk-yn1k391m.js} +1 -1
  44. package/dist/{chunk-snvv4jtd.js → chunk-z7pzgevr.js} +1 -1
  45. package/dist/{chunk-gz8nrsc7.js → chunk-z7yenntp.js} +1 -1
  46. package/dist/{chunk-9jtdrj58.js → chunk-zmm9fkte.js} +1 -1
  47. package/dist/cli.js +7 -7
  48. package/dist/component-renderer.js +8 -2
  49. package/dist/craft-entry.js +1 -1
  50. package/dist/craft.js +1 -1
  51. package/dist/pwa.js +1 -1
  52. package/dist/server-bindings.d.ts +11 -0
  53. package/dist/server-bindings.js +1 -1
  54. package/dist/ssg.js +2 -2
  55. package/package.json +5 -5
  56. package/dist/chunk-33g7nspw.js +0 -2
  57. package/dist/chunk-hw7ddxy8.js +0 -2
  58. package/dist/chunk-x9s335jt.js +0 -3
@@ -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{yp as V}from"./chunk-n3dk9t9f.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import{Zu as F}from"./chunk-71gwef4q.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`
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-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import{Zu as F}from"./chunk-71gwef4q.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-mr7m83w1.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-mr7m83w1.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(`
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-b8mq8vaz.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-b8mq8vaz.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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}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,2 +1,2 @@
1
1
  // @bun
2
- import{st as a,tt as b,ut as c}from"./chunk-x9s335jt.js";import"./chunk-71gwef4q.js";export{c as prepareImageDelivery,a as getImageDelivery,b as clearImageDeliveryCatalog};
2
+ import{st as a,tt as b,ut as c}from"./chunk-h45js0cg.js";import"./chunk-71gwef4q.js";export{c as prepareImageDelivery,a as getImageDelivery,b as clearImageDeliveryCatalog};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Zq as D,br as T}from"./chunk-n3dk9t9f.js";import{Us as N}from"./chunk-01vsryag.js";import{Zu as L}from"./chunk-71gwef4q.js";import Q from"fs";import Y from"path";var b=new Map,V=new Map;async function v(j){let z;for(let K=0;K<3;K++)try{let W=(await Q.promises.stat(j)).mtime.getTime(),J=V.get(j);if(J&&J.mtime===W)return J.content;let X=await Bun.file(j).text(),U=(await Q.promises.stat(j)).mtime.getTime();if(U!==W)continue;return V.set(j,{content:X,mtime:U}),X}catch(I){z=I;break}throw V.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function E(j){V.delete(j)}function F(j){for(let B of V.keys())if(B.startsWith(j))V.delete(B)}var $=null,G=null,k=null;function R(j){k=j}async function S(j=!1){let B=k??await import("./chunk-sbppctqw.js");if(j)return B.generateSignalsRuntimeDev();if($===null)$=B.generateSignalsRuntime();return $}var q=null;async function _(){if(q===null){let{getRouterScript:j}=await import("./chunk-b63wkbvt.js");q=j()}return q}function g(){V.clear(),T(),N(),$=null,G=null,q=null}function y(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function C(j,B){try{if(!B.cachePath)return null;let z=Y.resolve(B.cachePath),K=Y.join(z,`${M(j)}.html`),I=Y.join(z,`${M(j)}.meta.json`);if(!await D(K)||!await D(I))return null;let W=await Bun.file(I).text(),J=JSON.parse(W);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==y(B))return null;if((await Q.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Z of J.dependencies)if(await D(Z)){if((await Q.promises.stat(Z)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function u(j,B,z,K){try{if(!K.cachePath)return;let I=Y.resolve(K.cachePath);await Q.promises.mkdir(I,{recursive:!0});let W=Y.join(I,`${M(j)}.html`),J=Y.join(I,`${M(j)}.meta.json`),X=await Q.promises.stat(j);await Bun.write(W,B);let Z={sourcePath:j,mtime:X.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:y(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Z,null,2)),b.set(j,{output:B,mtime:X.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var O=16;function M(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,O)}
2
+ import{Zq as D,br as T}from"./chunk-0vjgbyf7.js";import{Us as N}from"./chunk-eaqh53ea.js";import{Zu as L}from"./chunk-71gwef4q.js";import Q from"fs";import Y from"path";var b=new Map,V=new Map;async function v(j){let z;for(let K=0;K<3;K++)try{let W=(await Q.promises.stat(j)).mtime.getTime(),J=V.get(j);if(J&&J.mtime===W)return J.content;let X=await Bun.file(j).text(),U=(await Q.promises.stat(j)).mtime.getTime();if(U!==W)continue;return V.set(j,{content:X,mtime:U}),X}catch(I){z=I;break}throw V.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function E(j){V.delete(j)}function F(j){for(let B of V.keys())if(B.startsWith(j))V.delete(B)}var $=null,G=null,k=null;function R(j){k=j}async function S(j=!1){let B=k??await import("./chunk-sbppctqw.js");if(j)return B.generateSignalsRuntimeDev();if($===null)$=B.generateSignalsRuntime();return $}var q=null;async function _(){if(q===null){let{getRouterScript:j}=await import("./chunk-b63wkbvt.js");q=j()}return q}function g(){V.clear(),T(),N(),$=null,G=null,q=null}function y(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function C(j,B){try{if(!B.cachePath)return null;let z=Y.resolve(B.cachePath),K=Y.join(z,`${M(j)}.html`),I=Y.join(z,`${M(j)}.meta.json`);if(!await D(K)||!await D(I))return null;let W=await Bun.file(I).text(),J=JSON.parse(W);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==y(B))return null;if((await Q.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Z of J.dependencies)if(await D(Z)){if((await Q.promises.stat(Z)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function u(j,B,z,K){try{if(!K.cachePath)return;let I=Y.resolve(K.cachePath);await Q.promises.mkdir(I,{recursive:!0});let W=Y.join(I,`${M(j)}.html`),J=Y.join(I,`${M(j)}.meta.json`),X=await Q.promises.stat(j);await Bun.write(W,B);let Z={sourcePath:j,mtime:X.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:y(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Z,null,2)),b.set(j,{output:B,mtime:X.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var O=16;function M(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,O)}
3
3
  export{b as Oj,v as Pj,E as Qj,F as Rj,R as Sj,S as Tj,_ as Uj,g as Vj,C as Wj,u as Xj,M as Yj};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{cp as b,dm as a,dp as c}from"./chunk-n3dk9t9f.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
2
+ import{dm as a,dp as b,ep as c}from"./chunk-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ap as g,Bp as h,Cp as i,Dp as j,up as a,vp as b,wp as c,xp as d,yp as e,zp as f}from"./chunk-n3dk9t9f.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.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};
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-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as pl,$a as jn,$b as Bo,$c as Bp,$d as Bq,A as $j,Aa as tm,Ab as Vn,Ac as ap,Ad as aq,Ae as gr,B as ak,Ba as um,Bb as Wn,Bc as bp,Bd as bq,Be as hr,C as bk,Ca as Hm,Cb as Xn,Cc as cp,Cd as cq,Ce as ir,D as ck,Da as Im,Db as Yn,Dc as dp,Dd as dq,De as jr,E as Uk,Ea as Jm,Eb as Zn,Ec as ep,Ed as eq,Ee as kr,F as Vk,Fa as Km,Fb as _n,Fc as fp,Fd as fq,Fe as lr,G as Wk,Ga as Lm,Gb as $n,Gc as gp,Gd as gq,Ge as mr,H as Xk,Ha as Mm,Hb as ao,Hc as hp,Hd as hq,He as nr,I as Yk,Ia as Qm,Ib as bo,Ic as ip,Id as iq,Ie as or,J as Zk,Ja as Rm,Jb as co,Jc as jp,Jd as jq,Je as pr,K as _k,Ka as Sm,Kb as eo,Kc as kp,Kd as kq,Ke as qr,L as $k,La as Tm,Lb as fo,Lc as lp,Ld as lq,Le as rr,M as al,Ma as Um,Mb as mo,Mc as mp,Md as mq,Me as sr,N as bl,Na as Vm,Nb as no,Nc as np,Nd as nq,Ne as tr,O as cl,Oa as Wm,Ob as oo,Oc as op,Od as oq,Oe as ur,P as dl,Pa as Xm,Pb as po,Pc as pp,Pd as pq,Pe as vr,Q as el,Qa as Ym,Qb as qo,Qc as qp,Qd as qq,Qe as wr,R as fl,Ra as Zm,Rb as ro,Rc as rp,Rd as rq,Re as xr,S as gl,Sa as _m,Sb as so,Sc as sp,Sd as sq,Se as yr,T as hl,Ta as $m,Tb as to,Tc as tp,Td as tq,Te as zr,U as il,Ua as an,Ub as uo,Uc as up,Ud as uq,Ue as Ar,V as jl,Va as bn,Vb as vo,Vc as vp,Vd as vq,Ve as Br,W as kl,Wa as dn,Wb as wo,Wc as wp,Wd as wq,We as Cr,X as ll,Xa as en,Xb as xo,Xc as xp,Xd as xq,Y as ml,Ya as fn,Yb as yo,Yc as yp,Yd as yq,Z as nl,Za as gn,Zb as zo,Zc as zp,Zd as zq,_ as ol,_a as hn,_b as Ao,_c as Ap,_d as Aq,aa as ql,ab as kn,ac as Co,ad as Cp,ae as Cq,ba as rl,bb as ln,bc as Do,bd as Dp,be as Dq,ca as sl,cb as mn,cc as Eo,cd as Ep,ce as Eq,da as tl,db as nn,dc as Fo,dd as Fp,de as Fq,ea as ul,eb as on,ec as Go,ed as Gp,ee as Gq,fa as vl,fb as pn,fc as Ho,fd as Hp,fe as Hq,ga as wl,gb as qn,gc as Io,gd as Ip,ge as Iq,ha as xl,hb as rn,hc as Jo,hd as Jp,he as Jq,ia as yl,ib as sn,ic as Ko,id as Kp,ie as Kq,ja as zl,jb as tn,jc as Lo,jd as Lp,je as Lq,ka as Al,kb as un,kc as Mo,kd as Mp,ke as Mq,la as Bl,lb as vn,lc as No,ld as Np,le as Nq,ma as Cl,mb as wn,mc as Oo,md as Op,me as Oq,na as Dl,nb as zn,nc as Po,nd as Pp,ne as Vq,o as a,oa as El,ob as An,oc as Qo,od as Qp,oe as Wq,p as Mj,pa as im,pb as Bn,pc as Ro,pd as Rp,pe as Xq,q as Nj,qa as jm,qb as Cn,qc as So,qd as Sp,qe as Yq,r as Oj,ra as km,rb as In,rc as To,rd as Tp,re as Zq,s as Pj,sa as lm,sb as Jn,sc as Uo,sd as Up,se as _q,t as Qj,ta as mm,tb as Kn,tc as Vo,td as Vp,te as $q,u as Rj,ua as nm,ub as Ln,uc as Wo,ud as Wp,ue as ar,v as Sj,va as om,vb as Qn,vc as Xo,vd as Xp,ve as br,w as Tj,wa as pm,wb as Rn,wc as Yo,wd as Yp,we as cr,x as Uj,xa as qm,xb as Sn,xc as Zo,xd as Zp,xe as dr,y as Zj,ya as rm,yb as Tn,yc as _o,yd as _p,ye as er,z as _j,za as sm,zb as Un,zc as $o,zd as $p,ze as fr}from"./chunk-7n39346x.js";import{$e as Mk,Xe as Ik,Ye as Jk,Ze as Kk,_e as Lk,af as Nk,bf as Ok,cf as Pk,df as Qk,ef as Rk,ff as Sk,gf as Tk}from"./chunk-s9z3d94k.js";import{hf as go,if as ho,jf as io,kf as jo,lf as ko,mf as lo}from"./chunk-ahzzwebg.js";import{nf as xn,of as yn}from"./chunk-n3ggrhb3.js";import{pf as Dn}from"./chunk-r8h8t77y.js";import{Af as Fm,Bf as Gm,qf as vm,rf as wm,sf as xm,tf as ym,uf as zm,vf as Am,wf as Bm,xf as Cm,yf as Dm,zf as Em}from"./chunk-vqxmxgaj.js";import{Cf as Gk,Df as Hk}from"./chunk-5n2g2z63.js";import{Ef as hm}from"./chunk-41f7v4ja.js";import{Ff as Nm,Gf as Om,Hf as Pm,If as cn,Jf as En,Kf as Fn,Lf as Gn,Mf as Hn,Nf as Mn,Of as Nn,Pf as On,Qf as Pn}from"./chunk-2ahsmwdq.js";import{$f as nk,Rf as dk,Sf as ek,Tf as fk,Uf as gk,Vf as hk,Wf as ik,Xf as jk,Yf as kk,Zf as lk,_f as mk,ag as ok,bg as pk,cg as qk,dg as rk}from"./chunk-nx5qkm8k.js";import{eg as $i,fg as aj,gg as bj,hg as cj,ig as dj,jg as ej,kg as fj,lg as gj,mg as hj,ng as ij,og as jj}from"./chunk-89wwrrpk.js";import{pg as Bj,rg as Cj}from"./chunk-bz820epz.js";import{Ag as vk,Bg as wk,Cg as xk,Dg as yk,Fg as zk,Gg as Ak,Hg as Bk,Ig as Ck,Jg as Dk,Kg as Ek,Ng as Fk,xg as sk,yg as tk,zg as uk}from"./chunk-tvtnf09q.js";import{Og as Yl,Pg as Zl,Qg as _l,Rg as $l,Sg as cm,Tg as gm}from"./chunk-jrn6x9kv.js";import{Ug as am,Xg as bm}from"./chunk-yr4s841y.js";import{dh as Fl,eh as Gl,fh as Hl,gh as Il,hh as Jl,ih as Kl,jh as Ll,kh as Ml,lh as Nl,mh as Ol,nh as Pl,oh as Ql,ph as Rl,qh as Sl,rh as Tl,sh as dm,th as em,uh as fm}from"./chunk-e9bqsjvn.js";import{vh as lh,wh as mh,xh as nh,yh as oh}from"./chunk-49kk0s96.js";import{Dh as ph}from"./chunk-w3ycm4na.js";import{Eh as wh,Fh as xh,Gh as yh,Hh as zh,Ih as Ah,Jh as Bh}from"./chunk-c29x3wtz.js";import{Kh as Qi,Lh as Ri,Mh as Si,Qh as Ti,Rh as Ui,Sh as Vi}from"./chunk-brahft3h.js";import{$h as Ni,Th as Gi,Uh as Hi,Vh as Ii,Wh as Ji,Xh as Ki,Zh as Li,_h as Mi,ai as Oi,bi as Pi}from"./chunk-74cv4ta1.js";import{ci as wg,di as xg,ei as yg,fi as zg,gi as Ag,hi as Bg}from"./chunk-wcm80anz.js";import{ii as Cg,ji as Dg,ki as Eg,li as Fg,mi as Gg}from"./chunk-y7m2dpd3.js";import{ni as Hg,oi as Ig,pi as Jg,qi as Kg,ri as Lg}from"./chunk-9y0g8kzt.js";import{si as Mg,ti as Ng,ui as Og,vi as Pg,wi as Qg,xi as Rg,yi as Sg}from"./chunk-t6nseeb9.js";import{Ai as Ug,Bi as Vg,Ci as Wg,Di as Xg,Ei as Yg,zi as Tg}from"./chunk-xttsqmkm.js";import{Gi as Zg,Hi as _g,Ii as $g,Ji as ah,Ki as bh,Li as ch,Mi as dh,Ni as eh,Oi as fh,Pi as gh,Qi as hh,Ri as ih,Si as jh,Ti as kh}from"./chunk-54st8g2j.js";import{Vi as qg,Wi as rg}from"./chunk-3wshezq4.js";import{Zi as sg}from"./chunk-j30wnqkt.js";import"./chunk-9n0gvfrg.js";import{bj as tg}from"./chunk-7q9mwh4v.js";import{cj as ug,dj as vg}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-wsbd9kpe.js";import{sj as Te,tj as Ue}from"./chunk-ph0q97r5.js";import{Aj as Fe,Bj as Ge,Cj as He,Dj as Ie,Ej as Je,Fj as Ke,Gj as Le,Hj as Me,Ij as Ne,Jj as Oe,Kj as Pe,Lj as Qe,Mj as Re,Nj as Se}from"./chunk-w95sp0k9.js";import{Oj as Ve,Pj as We,Qj as Xe,Rj as Ye,Sj as Ze,Tj as _e,Uj as $e,Vj as af,Wj as bf,Xj as cf,Yj as df}from"./chunk-qttfc5w6.js";import{qk as Pq,rk as Qq,sk as Rq,tk as Sq,uk as Tq,vk as Uq}from"./chunk-8tkdj47d.js";import{Ak as Ul,Bk as Vl,Ck as Wl,Dk as Xl,wk as Vj,xk as Wj,yk as Xj,zk as Yj}from"./chunk-vf4tde50.js";import"./chunk-58f0mthg.js";import"./chunk-096ejm6e.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,Ap as gf,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cp as hf,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 qh,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rh,Lr as Wi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Xi,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 Ch,Qr as kj,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as Dh,Rr as lj,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,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,ep as De,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 ai,fs as Dj,gm as _a,gn as bc,go as bd,gq as Of,gr as bi,gs as Ej,hm as $a,hn as cc,ho as cd,hp as ef,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,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,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,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,yp as ff,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zq as fg,zr as ui}from"./chunk-n3dk9t9f.js";import{As as p,Bs as q,Cs as r,os as d,ps as e,qs as f,rs as g,ss as h,ts as i,us as j,vs as k,ws as l,xs as m,ys as n,zs as o}from"./chunk-1bwwtctk.js";import{Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h}from"./chunk-q9zsjgpf.js";import{Ms as b,Ns as c}from"./chunk-a6a9djpq.js";import{Os as Ea,Ps as Fa}from"./chunk-txys90mf.js";import{$s as ub,Ys as sb,Zs as tb,jt as vb,kt as wb,lt as xb}from"./chunk-01vsryag.js";import{mt as Ja,nt as Ka,ot as La,pt as Ma,qt as Na,rt as Oa}from"./chunk-1spzqjve.js";import{st as ue,tt as ve,ut as we}from"./chunk-x9s335jt.js";import{At as pd,Bt as qd,Ct as rd,Dt as sd,Et as td,Ft as ud,Gt as vd,Ht as wd,It as xd,Jt as yd,Kt as zd,vt as kd,wt as ld,xt as md,yt as nd,zt as od}from"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import{$t as wa,Ot as ja,Pt as ka,Qt as la,Rt as ma,St as na,Tt as oa,Ut as pa,Vt as qa,Wt as ra,Xt as sa,Yt as ta,Zt as ua,_t as va,au as xa,bu as ya}from"./chunk-yvpagchj.js";import{Au as U,Bu as V,Cu as W,Du as X,Eu as Y,Fu as Z,Gu as _,Hu as $,Iu as aa,Ju as ba,Lu as ca,fu as K,gu as L,ju as M,ou as N,pu as O,vu as P,wu as Q,xu as R,yu as S,zu as T}from"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{nk as writeNetlifyConfig,em as writeManifest,Sk as writeImageManifest,vo as wrapComponentForHMR,pr as withDefaults,Aj as webComponentDirectiveHandler,kp as watermark,mq as watchViews,al as watchMultiple,bl as watchEffect,$k as watch,Be as warmImagePlaceholders,ol as waitForStore,Zd as waitForLocale,ho as virtualPathFor,nj as videoDirective,uc as validators,tr as validated,Ld as validateValueEnhanced,rh as validateTemplate,pp as validateParams,Md as validateFormEnhanced,bq as validateFile,Hd as validateFields,Gd as validateField,th as validateDirective,ed as validateCspDirectives,Ij as validateConfig,jm as validateComponentScripts,Hm as validateComponentProps,pg as validateClientScript,oh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Gh as userComponentFileExists,Wg as useVirtualList,sd as useTitle,nl as useStoreOrThrow,No as useStore,Zj as useStorage,xq as useSlots,$j as useSessionStorage,pd as useSeoMeta,pl as useRouteParams,rl as useRouteParamOrThrow,ql as useRouteParam,sd as usePageTitle,Se as useOptimistic,tl as useMiddlewareValue,sl as useMiddlewareState,_j as useLocalStorage,oo as useLoadingIndicator,nd as useHead,lh as useForm,zq as useAttrs,dq as uploadFiles,cq as uploadFile,kl as updateInstance,Qe as untrack,Wh as unregisterDirective,ll as unmountInstance,rb as unescapeHtml,ko as typecheckStxFiles,Fh as transpileTypeScript,cr as translate,w as transitionDirective,Ta as transformAutoImports,Bm as toUsers,Am as toUser,Vo as thumbnail,Wp as thumbHashToRGBA,Xp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,Ve as templateCache,Nb as syncRecordedResponse,so as stxClientHelpers,Af as structuredDataDirective,fr as stripLocalePrefix,Rl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,nn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Uj as stopHmrServer,xm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Fe as state,jg as startsDocument,Pn as startProductionServer,Dn as startInteractive,wm as startBroadcasting,hr as stampLocaleLayoutGroup,D as staggerDirective,np as srcsetUrls,E as springDirective,Dc as splitByPipe,Nl as spaNavVaryHeaders,io as sourcePathFor,up as smartBatchSign,Ih as slotContentHasExpressions,sp as signUrl,Dh as shouldTranspileTypeScript,Rj as shouldReloadOnChange,xp as shouldRefreshSignature,Sj as shouldIgnoreFile,Og as shouldCacheComponent,Zo as sharpen,wr as shape,La as setStateDir,xl as setRouteParams,yl as setMiddlewareState,Ae as setImagePlaceholder,rq as setGlobalProvide,Rb as setErrorLocale,Uk as setCurrentInstance,bj as setCachedVideoResult,Si as setCachedImageResult,Mi as setCached,zr as serveStxFile,Br as serveMultipleStxFiles,Mj as serveMarkdownFile,Zn as serveFile,Cr as serveApp,Yn as serve,yo as serializeState,cn as serializeSetCookie,$o as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,rj as scopeHTML,qj as scopeCSS,Df as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,dp as saturation,qp 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,tf as runPreProcessingMiddleware,uf as runPostProcessingMiddleware,Gn as runPageAction,Le as runMountCallbacks,ba as runMiddleware,il as runHooks,Xq as runDoctor,Me as runDestroyCallbacks,If as runComposers,ep as rotate,ph as rewriteImagesWithSiblings,Ob as responseBindings,Mh as resolveTemplatePath,c as resolveStxTargets,Ej as resolveStxDirectories,br as resolveI18n,To as resize,Za as resetPlaceholders,md as resetHead,xo as resetHMRHandler,cc as resetErrorConfig,rr as required,bb as replacePlaceholders,kq as renderView,kj as renderVideoComponent,Qa as renderVendorStyleTags,Gq as renderToString,Hq as renderToStream,Iq as renderToDOM,Vp as renderThumbhashToCanvas,Uq as renderTemplateString,Sq as renderTemplate,Tq as renderString,je as renderStreamingPage,yh as renderSlot,Eg as renderSSRSuspense,Fp as renderProtectedVideo,Ep as renderProtectedImg,rp as renderMediaUpload,Rq as renderMarkdownView,Wl as renderLayoutTypes,Wi as renderImgComponent,Ik as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,nq as renderEmail,Kh as renderComponentWithSlot,vd as renderBodyAttrs,Io as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Po as registerStoresClient,vl as registerStore,Bf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Th as registerDirective,dd as registerCspDirectives,Km as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Yk as ref,vn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Kj as readMarkdownFile,We as readFileCached,Zk as reactive,ip as quality,Cp as pruneSignatureCache,Pi as pruneCache,pq as provide,Qq as protectCodeBlocks,qr as prop,Mf as processVueTemplate,Ug as processVirtualListDirectives,Yg as processVirtualGridDirectives,jj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,yg as processTransitionDirectives,Bg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,ug as processTeleportDirectives,Cg as processSuspenseDirectives,wf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,jh as processStaticDirectives,rf as processStackReplacements,qf as processStackPushDirectives,zh as processSlots,Pl as processShell,Kf as processServerBindings,xf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Gp as processProtectedMedia,ch as processPartialHydrationDirectives,og as processOnceDirective,sf as processMiddleware,vf as processMetaDirectives,zd as processMetaDirective,Lj as processMarkdownFileDirectives,Rh as processMarkdownDirectives,lf as processLoops,Mg as processKeepAliveDirectives,ng as processJsonDirective,Xg as processInfiniteListDirectives,pf as processIncludes,Yi as processImgComponents,Kk as processImageComponents,xk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,qh as processDirectives,$h as processDirectiveAttributes,tg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,xr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Hg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,no as preloadIslandHandlers,Ce as preloadIconCollection,sm as poolStrings,Cj as pluginManager,ye as placeholdersWarmed,xg as performLeave,wg as performEnter,Ne as pendingLifecycleCounts,Re as peek,mf as partialsCache,lj as parseVideoDirectiveOptions,Ro as parseUrl,Yp as parseThumbhashString,Jc as parseSwitchBlock,wh as parseSlots,xh as parseSlotElement,Oc as parseScriptDeclarations,yj as parseSFCComponent,Hp as parseProtectedArgs,kf as parseLoopBinding,Xi as parseImgComponent,ni as parseImageUrl,Jk as parseImageComponent,En as parseFormBody,Lc as parseExpressionWithFilters,Lm as parseDefaults,sn as parseCookies,Hl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,sr as optional,tm as optimizeTemplate,Pk as optimizeImage,Qk as optimizeDirectory,ur as oneOf,nf as onceStore,fl as onUpdated,yb as onUpdate,hl as onUnmounted,Cl as onServer,dl as onMounted,Je as onMount,ih as onHydrated,vq as onErrorCaptured,Ke as onDestroy,Sg as onDeactivated,Bl as onClient,el as onBeforeUpdate,gl as onBeforeUnmount,cl as onBeforeMount,Rg as onActivated,Rp as observeElement,wn as notFound,Uf as normalizeCriticalHeadOrder,uq as nextTick,Om as negotiateEncoding,P as navigateTo,jl as mountInstance,z as motionDirective,Vc as moderateCspPreset,rm as minifyHtml,zf as metaDirective,cg as metaDedupKey,So as mergeParams,eg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Sh as markdownDirectiveHandler,Jj as markdownCache,b as looksLikeGlob,er as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Fj as loadStxConfig,_ as loadMiddlewareFromDirectory,fm as loadManifest,Np as loadElement,ym as loadChannels,lr as lintStxStrict,Pp as lazyLoadAll,Op as lazyLoad,C as keyframeDirective,Eq as jsxs,Fq as jsxDEV,Dq as jsx,un as jsonResponse,pe as islandDirective,$b as isTest,Sl as isSpaNavigation,Ll as isSpaNavRequest,vp as isSignatureValid,Oe as isSignal,vk as isSharpAvailable,fn as isServerEnvironment,zl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Kp as isNativeLazySupported,Pq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Ch as isJavaScriptScript,Lp as isIntersectionObserverSupported,Dk as isImageFile,wk as isImageBackendAvailable,ce as isICUFormat,hh as isHydrated,Hh as isHydrateTrigger,Hb as isHttpStatus,en as isEdgeEnvironment,mr as isDirectiveKind,_b as isDevelopment,Pe as isDerived,Qj as isCssOnlyChange,Nm as isCompressible,Al as isClient,Jg as isAsyncComponent,Fn as isActionableMethod,ap as invert,Ye as invalidateFileCacheByDir,Xe as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,ar as injectThemeBootstrap,yf as injectSeoTags,Zq as injectSeo,ef as injectRouterScript,Pj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,lg as injectConfigHeadTags,Tf as injectColorModeBootScript,gg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,qq as inject,ul as initStoreRegistry,qk as initNetlify,po as initLoadingIndicator,Mp as initLazyLoading,Cn as initFile,Up as initBlurUp,_p as initAllBlurUp,_i as imgDirective,Nk as imageDirective,Nn as hydrateTemplateStream,Mn as hydrateTemplate,mo as hydrateIslands,eh as hydrateIsland,On as hydrateFragment,fh as hydrateByStrategy,gh as hydrateAll,Fo as hydrate,Xn as htmlResponse,hg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ii as hashString,df as hashFilePath,Gi as hashFile,Hi as hashBuffer,Lf as hasVueTemplateSyntax,jf as hasVariables,Ko as hasStore,cb as hasPlaceholders,ok as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,kg as hasDocumentShell,uh as hasDirectives,h as hasDOMSupport,Gk as handleImageRequest,wq as handleError,Mq as h,Ck as groupVariantsByFormat,_o as grayscale,Qn as gitHash,lm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,jk as getTotalSize,wp as getTimeUntilExpiry,qg as getStoreScript,Lo as getStoreNames,Jo as getStore,ck as getStorageSize,bk as getStorageKeys,Nh as getSourceLineInfo,Eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,sj as getScopeAttribute,Ee as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,sh as getPositionInfo,$a as getPlaceholderRegistry,Fi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,yk as getImageMetadata,ue as getImageDelivery,Eo as getHydrationRuntime,wl as getHydratedStoreState,Tj as getHmrServer,kd as getHead,wo as getHMRHandler,ri as getFormatExtension,Ki as getFileMtime,Bk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Vh as getDirectives,Uh as getDirective,Vk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Qh as getComponentCacheStats,aj as getCachedVideoResult,Ap as getCachedSignature,_e as getCachedSignalsRuntime,$e as getCachedRouterScript,Di as getCachedPlaceholder,Ri as getCachedImageResult,Li as getCached,Oi as getCacheStats,Yf as getBuildId,vm as getBroadcastServer,qi as getBestVariant,gb as getAllFilters,ei as generateWidthSrcset,Vg as generateVirtualListCSS,fq as generateVideoPreview,Nd as generateValidationScript,gq as generateUploadRuntime,mm as generateTreeShakenBundle,Ag as generateTransitionRuntime,zg as generateTransitionCSS,ej as generateThumbnails,wi as generateThumbhashPlaceholder,Xm as generateTemplatesDocs,Gg as generateSuspenseRuntime,Fg as generateSuspenseCSS,zo as generateStateScript,oi as generateSrcsetData,Vi as generateSrcset,zk as generateSrcSet,fj as generateSpriteSheet,oq as generateSpaShell,pi as generateSourceTags,ki as generateSizesFromBreakpoints,ji as generateSizesAttribute,Ak as generateSizes,Cf as generateSitemapIndex,_q as generateSitemap,Jp as generateSimpleMediaPicker,Dp as generateSignatureRuntime,Ue as generateSignalsRuntimeDev,Te as generateSignalsRuntime,Xa as generateServerDataBridge,pj as generateScopeId,zj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ef as generateRobotsTxt,$q as generateRobots,Ui as generateResponsiveVariants,vj as generateReactiveWebComponentTS,uj as generateReactiveWebComponent,xj as generateReactiveRuntime,wj as generateReactiveMixin,dj as generatePoster,Ci as generatePlaceholderStyle,Bi as generatePlaceholderCSS,vi as generatePlaceholder,dh as generatePartialHydrationCSS,Pc as generateNonce,kk as generateNetlifyToml,iq as generateMinifiedMediaRuntime,hq as generateMediaRuntime,Ip as generateMediaManagerEmbed,dm as generateManifest,ro as generateLoadingIndicatorHtml,Tp as generateLazyLoadRuntime,Xl as generateLayoutTypes,yi as generateLQIP,Qg as generateKeepAliveRuntime,Pg as generateKeepAliveCSS,kh as generateIslandManifest,eq as generateImagePreview,Rk as generateImageManifest,Do as generateHydrationScript,te as generateHydrationRuntime,Go as generateHydrationCSS,Zg as generateHydrationBootstrap,Oj as generateHotReloadScript,ea as generateHeatmapScript,uo as generateHMRClientScript,gj as generateHLSManifest,Ao as generateEventBindings,ii as generateDprSrcsetWithVariableQuality,hi as generateDprSrcset,ig as generateDocumentShell,an as generateDocs,Ym as generateDirectivesDocs,_h as generateDirectiveRuntime,Ff as generateDefaultRobotsTxt,hj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Bq as generateCompositionRuntime,Wm as generateComponentsDocs,_g as generateComponentManifest,Um as generateComponentDoc,Ai as generateColorPlaceholder,Sf as generateColorModeBootScript,ml as generateClientRuntime,Ji as generateCacheKey,Va as generateBrowserAutoImportDestructuring,$p as generateBlurUpRuntime,aq as generateBlurUpCSS,Ab as generateBindingsRuntime,fi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Lg as generateAsyncComponentRuntime,Kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,lo as formatTypecheckDiagnostics,fo as formatTypeErrors,zn as formatStxContent,ik as formatSize,O as formatRoutes,An as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Yq as formatDoctorReport,Zm as formatDocsAsMarkdown,$m as formatDocsAsJson,_m as formatDocsAsHtml,hp as format,qm as foldConstants,gp as flipVertical,fp as flipHorizontal,Yl as fingerprint,jo as findRuntimeTypeDeclarations,Wq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,nm as findDeadCode,nm as findDeadBranches,Il as findContainerRegion,Vm as findComponentFiles,Ar as findCommonDir,hk as filterRequiredFiles,Lh as fileExists,ff as extractVariables,bm as extractTemplateExpressions,le as extractStreamBoundaries,Bo as extractState,Ah as extractSlotContent,hf as extractScriptFromTemplate,am as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,zi as extractDominantColor,Nc as extractDirectiveParams,vh as extractDirectiveNames,Tl as extractContainerContent,Sm as extractComponentProps,$g as extractComponentName,Tm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ah as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,tj as extractAndScopeStyles,Ba as extractAndProcessEvents,Xj as externalizeSharedAssets,Yj as externalizeRepeatedAssets,Wj as externalizeHtml,qb as evaluateExpression,pm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,vg as ensureTeleportTargets,mg as ensureDocumentShell,Jd as enhancedValidationRules,Qm as enableDevTools,om as eliminateDeadCode,He as effect,op as dprUrls,bn as docsCommand,Vl as discoverLayoutNames,Sp as disconnectObserver,Rm as disableDevTools,tc as devHelpers,Ol as detectShell,dn as detectRuntime,lk as detectProjectConfig,si as detectFormat,im as detectBuildMode,Ge as derived,pk as deploy,Hj as defineStxConfig,Oo as defineStore,yq as defineSlots,kr as defineSiteConfig,or as definePropsWithValidation,nr as defineProps,Bj as definePlugin,rd as definePageMeta,R as defineMiddleware,mh as defineForm,tq as defineExpose,sq as defineEmits,Xh as defineDirective,Oq as defineCustomElement,Ln as defineConfig,Yh as defineClientDirective,Ig as defineAsyncComponent,jq as defaultMediaConfig,Tk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Dj as defaultConfig,yr as default,sb as deepMergeThemes,Of as dedupeScopedStyles,xi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Zp as crossfadeTransition,Uo as crop,Tg as createVirtualList,mj as createVideoDirective,qn as createVercelHandler,bo as createTypeChecker,fe as createTranslateFilter,mn as createTextEncoderStream,Nq as createStxApp,ln as createStreamingResponse,ne as createStreamRenderer,Mo as createStore,U as createStorageManager,S as createServerCookieManager,Xk as createScope,Dg as createSSRSuspense,De as createRouter,$ as createRouteLocation,$n as createRoute,Yk as createRef,Zk as createReactive,Aq as createProvideContext,Sn as createProject,Kn as createProductionBuild,_a as createPlaceholder,um as createOptimizedBuild,rn as createNetlifyHandler,dk as createNetlifyClient,aa as createMiddlewareContext,_n as createMiddleware,Qp as createLazyObserver,Ng as createKeepAliveCache,hn as createKVNamespace,bh as createIslandRegistry,Zi as createImgDirective,Ok as createImagePlugin,Hk as createImageHandler,Mk as createImageDirective,ia as createHeatmapAggregator,gk as createFileManifest,gn as createEnvAccessor,nc as createEnhancedError,kn as createEdgeHandler,jn as createEdgeCache,Oh as createDetailedErrorMessage,pn as createDenoHandler,mk as createDefaultNetlifyConfig,gd as createCspHeaders,tn as createCookie,_k as createComputed,Wk as createComponentInstance,on as createCloudflareHandler,T as createClientCookieManager,Zh as createBuiltinDirectives,Nq as createApp,F as createAnimationTimeline,Xo as cover,gf as convertToCommonJS,cp as contrast,Wo as contain,mc as consoleError,ac as configureErrorHandling,Gj as config,_k as computed,Pm as compressResponse,Hf as composerPattern,Gf as composer,Ql as composeShellWithPage,Jm as componentDirective,Jh as componentClientSignalNames,cm as compileTemplate,a as collectRepeatedFlag,fk as collectDeployFiles,cj as clearVideoCache,Pd as clearTranslationCache,rg as clearStoreCache,ak as clearStorage,Bp as clearSignatureCache,Ei as clearPlaceholderCache,of as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Lk as clearImageCache,Ub as clearErrorMessages,af as clearDevCaches,hb as clearCustomFilters,Jf as clearComposers,sg as clearComposableCache,Ph as clearComponentCache,Ni as clearCache,qo as cleanupLoadingIndicator,Fl as classifyScript,Gl as classifyAllScripts,co as checkTemplateFile,eo as checkTemplate,bf as checkCache,yp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Em as channel,yn as captureScreenshots,xn as captureScreenshot,$d as cancelPendingLoads,ek as calculateSha1,gi as calculateOptimalWidths,cf as cacheTemplate,oj as buildWebComponents,go as buildVirtualSource,lq as buildViews,Qo as buildUrl,he as buildSuspenseResolveScript,jr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Zl as buildRuntimeAsset,_l as buildRouterAsset,ir as buildLangPickerScript,mi as buildImageUrl,dg as buildHtmlAttrs,gm as buildForProduction,Mm as buildComponentLibrary,zp as buildAuthParams,hm as buildApp,gr as buildAlternateLinks,Jn as build,Cm as broadcastPrivate,Dm as broadcastPresence,zm as broadcast,bp as brightness,Yo as blur,ya as blankInertHtmlRegions,tp as batchSignUrls,Ie as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,jp as auto,e as attributeValue,$l as assetTags,za as asInvocableStatement,vr as arrayOf,dr as applyTranslations,Ti as applyTransformations,Bh as applySlots,Im as applyPropDefaults,mp as applyPreset,fg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ml as appendVary,Xc as apiCspPreset,y as animationGroupDirective,ij as analyzeVideo,km as analyzeUsage,Dl as analyzeTemplate,El as analyzeProject,km as analyzeDirectiveUsage,Eb as analyticsDirective,Vn as addStore,Un as addPage,$c as addNonceToInlineContent,Wn as addLayout,Tn as addComponent,Hn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Ze as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,$i as VideoProcessorCache,nh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,ao as TemplateTypeChecker,Bn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Jq 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,Jl 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,In as ProductionBuild,Lq as Portal,Rn as PROJECT_TEMPLATES,lp as PRESETS,na as NON_CLIENT_PRIMITIVES,Ho as MemorySessionStore,di as MIME_TYPES,ai as MEDIA_DEFAULT_WIDTHS,ci as MEDIA_DEFAULT_FORMATS,Ul as LAYOUT_TYPES_FILE,Qi as ImageProcessorCache,Fk as ImageProcessingError,Co as HydrationRuntime,Nj as HotReloadServer,ha as HeatmapAggregator,bg as HTML_CLASS_MARKER,ag as HTML_ATTRS_MARKER,Cq as Fragment,Kq as For,Kl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Vj as EXTERNALIZED_ASSET_DIR,rk as DeployError,sk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,uk as DEFAULT_QUALITY,ti as DEFAULT_PLACEHOLDER_OPTIONS,tk as DEFAULT_FORMATS,bi as DEFAULT_DPR_VALUES,to as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,li as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,$f as CLOAK_STYLE,Gm as BroadcastServer,Fm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ui as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Vq as $path};
2
+ import{$ as pl,$a as jn,$b as Bo,$c as Bp,$d as Bq,A as $j,Aa as tm,Ab as Vn,Ac as ap,Ad as aq,Ae as gr,B as ak,Ba as um,Bb as Wn,Bc as bp,Bd as bq,Be as hr,C as bk,Ca as Hm,Cb as Xn,Cc as cp,Cd as cq,Ce as ir,D as ck,Da as Im,Db as Yn,Dc as dp,Dd as dq,De as jr,E as Uk,Ea as Jm,Eb as Zn,Ec as ep,Ed as eq,Ee as kr,F as Vk,Fa as Km,Fb as _n,Fc as fp,Fd as fq,Fe as lr,G as Wk,Ga as Lm,Gb as $n,Gc as gp,Gd as gq,Ge as mr,H as Xk,Ha as Mm,Hb as ao,Hc as hp,Hd as hq,He as nr,I as Yk,Ia as Qm,Ib as bo,Ic as ip,Id as iq,Ie as or,J as Zk,Ja as Rm,Jb as co,Jc as jp,Jd as jq,Je as pr,K as _k,Ka as Sm,Kb as eo,Kc as kp,Kd as kq,Ke as qr,L as $k,La as Tm,Lb as fo,Lc as lp,Ld as lq,Le as rr,M as al,Ma as Um,Mb as mo,Mc as mp,Md as mq,Me as sr,N as bl,Na as Vm,Nb as no,Nc as np,Nd as nq,Ne as tr,O as cl,Oa as Wm,Ob as oo,Oc as op,Od as oq,Oe as ur,P as dl,Pa as Xm,Pb as po,Pc as pp,Pd as pq,Pe as vr,Q as el,Qa as Ym,Qb as qo,Qc as qp,Qd as qq,Qe as wr,R as fl,Ra as Zm,Rb as ro,Rc as rp,Rd as rq,Re as xr,S as gl,Sa as _m,Sb as so,Sc as sp,Sd as sq,Se as yr,T as hl,Ta as $m,Tb as to,Tc as tp,Td as tq,Te as zr,U as il,Ua as an,Ub as uo,Uc as up,Ud as uq,Ue as Ar,V as jl,Va as bn,Vb as vo,Vc as vp,Vd as vq,Ve as Br,W as kl,Wa as dn,Wb as wo,Wc as wp,Wd as wq,We as Cr,X as ll,Xa as en,Xb as xo,Xc as xp,Xd as xq,Y as ml,Ya as fn,Yb as yo,Yc as yp,Yd as yq,Z as nl,Za as gn,Zb as zo,Zc as zp,Zd as zq,_ as ol,_a as hn,_b as Ao,_c as Ap,_d as Aq,aa as ql,ab as kn,ac as Co,ad as Cp,ae as Cq,ba as rl,bb as ln,bc as Do,bd as Dp,be as Dq,ca as sl,cb as mn,cc as Eo,cd as Ep,ce as Eq,da as tl,db as nn,dc as Fo,dd as Fp,de as Fq,ea as ul,eb as on,ec as Go,ed as Gp,ee as Gq,fa as vl,fb as pn,fc as Ho,fd as Hp,fe as Hq,ga as wl,gb as qn,gc as Io,gd as Ip,ge as Iq,ha as xl,hb as rn,hc as Jo,hd as Jp,he as Jq,ia as yl,ib as sn,ic as Ko,id as Kp,ie as Kq,ja as zl,jb as tn,jc as Lo,jd as Lp,je as Lq,ka as Al,kb as un,kc as Mo,kd as Mp,ke as Mq,la as Bl,lb as vn,lc as No,ld as Np,le as Nq,ma as Cl,mb as wn,mc as Oo,md as Op,me as Oq,na as Dl,nb as zn,nc as Po,nd as Pp,ne as Vq,o as a,oa as El,ob as An,oc as Qo,od as Qp,oe as Wq,p as Mj,pa as im,pb as Bn,pc as Ro,pd as Rp,pe as Xq,q as Nj,qa as jm,qb as Cn,qc as So,qd as Sp,qe as Yq,r as Oj,ra as km,rb as In,rc as To,rd as Tp,re as Zq,s as Pj,sa as lm,sb as Jn,sc as Uo,sd as Up,se as _q,t as Qj,ta as mm,tb as Kn,tc as Vo,td as Vp,te as $q,u as Rj,ua as nm,ub as Ln,uc as Wo,ud as Wp,ue as ar,v as Sj,va as om,vb as Qn,vc as Xo,vd as Xp,ve as br,w as Tj,wa as pm,wb as Rn,wc as Yo,wd as Yp,we as cr,x as Uj,xa as qm,xb as Sn,xc as Zo,xd as Zp,xe as dr,y as Zj,ya as rm,yb as Tn,yc as _o,yd as _p,ye as er,z as _j,za as sm,zb as Un,zc as $o,zd as $p,ze as fr}from"./chunk-e5ncpk9f.js";import{$e as Mk,Xe as Ik,Ye as Jk,Ze as Kk,_e as Lk,af as Nk,bf as Ok,cf as Pk,df as Qk,ef as Rk,ff as Sk,gf as Tk}from"./chunk-s9z3d94k.js";import{hf as go,if as ho,jf as io,kf as jo,lf as ko,mf as lo}from"./chunk-1eg447es.js";import{nf as xn,of as yn}from"./chunk-n3ggrhb3.js";import{pf as Dn}from"./chunk-av7n7vdr.js";import{Af as Fm,Bf as Gm,qf as vm,rf as wm,sf as xm,tf as ym,uf as zm,vf as Am,wf as Bm,xf as Cm,yf as Dm,zf as Em}from"./chunk-vqxmxgaj.js";import{Cf as Gk,Df as Hk}from"./chunk-5n2g2z63.js";import{Ef as hm}from"./chunk-3cacp3v6.js";import{Ff as Nm,Gf as Om,Hf as Pm,If as cn,Jf as En,Kf as Fn,Lf as Gn,Mf as Hn,Nf as Mn,Of as Nn,Pf as On,Qf as Pn}from"./chunk-76258rpp.js";import{$f as nk,Rf as dk,Sf as ek,Tf as fk,Uf as gk,Vf as hk,Wf as ik,Xf as jk,Yf as kk,Zf as lk,_f as mk,ag as ok,bg as pk,cg as qk,dg as rk}from"./chunk-nx5qkm8k.js";import{eg as $i,fg as aj,gg as bj,hg as cj,ig as dj,jg as ej,kg as fj,lg as gj,mg as hj,ng as ij,og as jj}from"./chunk-89wwrrpk.js";import{pg as Bj,rg as Cj}from"./chunk-bz820epz.js";import{Ag as vk,Bg as wk,Cg as xk,Dg as yk,Fg as zk,Gg as Ak,Hg as Bk,Ig as Ck,Jg as Dk,Kg as Ek,Ng as Fk,xg as sk,yg as tk,zg as uk}from"./chunk-tvtnf09q.js";import{Og as Yl,Pg as Zl,Qg as _l,Rg as $l,Sg as cm,Tg as gm}from"./chunk-75w11fde.js";import{Ug as am,Xg as bm}from"./chunk-hqpsxzxe.js";import{dh as Fl,eh as Gl,fh as Hl,gh as Il,hh as Jl,ih as Kl,jh as Ll,kh as Ml,lh as Nl,mh as Ol,nh as Pl,oh as Ql,ph as Rl,qh as Sl,rh as Tl,sh as dm,th as em,uh as fm}from"./chunk-51qxyf3s.js";import{vh as lh,wh as mh,xh as nh,yh as oh}from"./chunk-49kk0s96.js";import{Dh as ph}from"./chunk-w3ycm4na.js";import{Eh as wh,Fh as xh,Gh as yh,Hh as zh,Ih as Ah,Jh as Bh}from"./chunk-m0n5rn6r.js";import{Kh as Qi,Lh as Ri,Mh as Si,Qh as Ti,Rh as Ui,Sh as Vi}from"./chunk-brahft3h.js";import{$h as Ni,Th as Gi,Uh as Hi,Vh as Ii,Wh as Ji,Xh as Ki,Zh as Li,_h as Mi,ai as Oi,bi as Pi}from"./chunk-74cv4ta1.js";import{ci as wg,di as xg,ei as yg,fi as zg,gi as Ag,hi as Bg}from"./chunk-wcm80anz.js";import{ii as Cg,ji as Dg,ki as Eg,li as Fg,mi as Gg}from"./chunk-y7m2dpd3.js";import{ni as Hg,oi as Ig,pi as Jg,qi as Kg,ri as Lg}from"./chunk-9y0g8kzt.js";import{si as Mg,ti as Ng,ui as Og,vi as Pg,wi as Qg,xi as Rg,yi as Sg}from"./chunk-t6nseeb9.js";import{Ai as Ug,Bi as Vg,Ci as Wg,Di as Xg,Ei as Yg,zi as Tg}from"./chunk-xttsqmkm.js";import{Gi as Zg,Hi as _g,Ii as $g,Ji as ah,Ki as bh,Li as ch,Mi as dh,Ni as eh,Oi as fh,Pi as gh,Qi as hh,Ri as ih,Si as jh,Ti as kh}from"./chunk-54st8g2j.js";import{Vi as qg,Wi as rg}from"./chunk-gwkxf766.js";import{Zi as sg}from"./chunk-5z466wfw.js";import"./chunk-9n0gvfrg.js";import{bj as tg}from"./chunk-7q9mwh4v.js";import{cj as ug,dj as vg}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-czsv3zcn.js";import{sj as Ue,tj as Ve}from"./chunk-ph0q97r5.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-tdcrah1x.js";import{qk as Pq,rk as Qq,sk as Rq,tk as Sq,uk as Tq,vk as Uq}from"./chunk-5cket5g3.js";import{Ak as Ul,Bk as Vl,Ck as Wl,Dk as Xl,wk as Vj,xk as Wj,yk as Xj,zk as Yj}from"./chunk-vf4tde50.js";import"./chunk-58f0mthg.js";import"./chunk-h7fzgd2n.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 qh,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rh,Lr as Wi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Xi,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 Ch,Qr as kj,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as Dh,Rr as lj,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 ai,fs as Dj,gm as _a,gn as bc,go as bd,gp as Fe,gq as Of,gr as bi,gs as Ej,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,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,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-0vjgbyf7.js";import{As as p,Bs as q,Cs as r,os as d,ps as e,qs as f,rs as g,ss as h,ts as i,us as j,vs as k,ws as l,xs as m,ys as n,zs as o}from"./chunk-1bwwtctk.js";import{Ds as Th,Es as Uh,Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h}from"./chunk-q9zsjgpf.js";import{Ms as b,Ns as c}from"./chunk-a6a9djpq.js";import{Os as Ea,Ps as Fa}from"./chunk-txys90mf.js";import{$s as ub,Ys as sb,Zs as tb,jt as vb,kt as wb,lt as xb}from"./chunk-eaqh53ea.js";import{mt as Ja,nt as Ka,ot as La,pt as Ma,qt as Na,rt as Oa}from"./chunk-1spzqjve.js";import{st as ue,tt as ve,ut as we}from"./chunk-h45js0cg.js";import{At as pd,Bt as qd,Ct as rd,Dt as sd,Et as td,Ft as ud,Gt as vd,Ht as wd,It as xd,Jt as yd,Kt as zd,vt as kd,wt as ld,xt as md,yt as nd,zt as od}from"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import{$t as wa,Ot as ja,Pt as ka,Qt as la,Rt as ma,St as na,Tt as oa,Ut as pa,Vt as qa,Wt as ra,Xt as sa,Yt as ta,Zt as ua,_t as va,au as xa,bu as ya}from"./chunk-yvpagchj.js";import{Au as U,Bu as V,Cu as W,Du as X,Eu as Y,Fu as Z,Gu as _,Hu as $,Iu as aa,Ju as ba,Lu as ca,fu as K,gu as L,ju as M,ou as N,pu as O,vu as P,wu as Q,xu as R,yu as S,zu as T}from"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{nk as writeNetlifyConfig,em as writeManifest,Sk as writeImageManifest,vo as wrapComponentForHMR,pr as withDefaults,Aj as webComponentDirectiveHandler,kp as watermark,mq as watchViews,al as watchMultiple,bl as watchEffect,$k as watch,Be as warmImagePlaceholders,ol as waitForStore,Zd as waitForLocale,ho as virtualPathFor,nj as videoDirective,uc as validators,tr as validated,Ld as validateValueEnhanced,rh as validateTemplate,pp as validateParams,Md as validateFormEnhanced,bq as validateFile,Hd as validateFields,Gd as validateField,th as validateDirective,ed as validateCspDirectives,Ij as validateConfig,jm as validateComponentScripts,Hm as validateComponentProps,pg as validateClientScript,oh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Gh as userComponentFileExists,Wg as useVirtualList,sd as useTitle,nl as useStoreOrThrow,No as useStore,Zj as useStorage,xq as useSlots,$j as useSessionStorage,pd as useSeoMeta,pl as useRouteParams,rl as useRouteParamOrThrow,ql as useRouteParam,sd as usePageTitle,Te as useOptimistic,tl as useMiddlewareValue,sl as useMiddlewareState,_j as useLocalStorage,oo as useLoadingIndicator,nd as useHead,lh as useForm,zq as useAttrs,dq as uploadFiles,cq as uploadFile,kl as updateInstance,Re as untrack,Wh as unregisterDirective,ll as unmountInstance,rb as unescapeHtml,ko as typecheckStxFiles,Fh as transpileTypeScript,cr as translate,w as transitionDirective,Ta as transformAutoImports,Bm as toUsers,Am as toUser,Vo as thumbnail,Wp as thumbHashToRGBA,Xp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,We as templateCache,Nb as syncRecordedResponse,so as stxClientHelpers,Bf as structuredDataDirective,fr as stripLocalePrefix,Rl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,nn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Uj as stopHmrServer,xm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ge as state,jg as startsDocument,Pn as startProductionServer,Dn as startInteractive,wm as startBroadcasting,hr as stampLocaleLayoutGroup,D as staggerDirective,np as srcsetUrls,E as springDirective,Dc as splitByPipe,Nl as spaNavVaryHeaders,io as sourcePathFor,up as smartBatchSign,Ih as slotContentHasExpressions,sp as signUrl,Dh as shouldTranspileTypeScript,Rj as shouldReloadOnChange,xp as shouldRefreshSignature,Sj as shouldIgnoreFile,Og as shouldCacheComponent,Zo as sharpen,wr as shape,La as setStateDir,xl as setRouteParams,yl as setMiddlewareState,Ae as setImagePlaceholder,rq as setGlobalProvide,Rb as setErrorLocale,Uk as setCurrentInstance,bj as setCachedVideoResult,Si as setCachedImageResult,Mi as setCached,zr as serveStxFile,Br as serveMultipleStxFiles,Mj as serveMarkdownFile,Zn as serveFile,Cr as serveApp,Yn as serve,yo as serializeState,cn as serializeSetCookie,$o as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,rj as scopeHTML,qj as scopeCSS,Ef as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,dp as saturation,qp 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,Gn as runPageAction,Me as runMountCallbacks,ba as runMiddleware,il as runHooks,Xq as runDoctor,Ne as runDestroyCallbacks,Jf as runComposers,ep as rotate,ph as rewriteImagesWithSiblings,Ob as responseBindings,Mh as resolveTemplatePath,c as resolveStxTargets,Ej as resolveStxDirectories,br as resolveI18n,To as resize,Za as resetPlaceholders,md as resetHead,xo as resetHMRHandler,cc as resetErrorConfig,rr as required,bb as replacePlaceholders,kq as renderView,kj as renderVideoComponent,Qa as renderVendorStyleTags,Gq as renderToString,Hq as renderToStream,Iq as renderToDOM,Vp as renderThumbhashToCanvas,Uq as renderTemplateString,Sq as renderTemplate,Tq as renderString,je as renderStreamingPage,yh as renderSlot,Eg as renderSSRSuspense,Fp as renderProtectedVideo,Ep as renderProtectedImg,rp as renderMediaUpload,Rq as renderMarkdownView,Wl as renderLayoutTypes,Wi as renderImgComponent,Ik as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,nq as renderEmail,Kh as renderComponentWithSlot,vd as renderBodyAttrs,Io as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Po as registerStoresClient,vl as registerStore,Cf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Th as registerDirective,dd as registerCspDirectives,Km as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,Yk as ref,vn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Kj as readMarkdownFile,Xe as readFileCached,Zk as reactive,ip as quality,Cp as pruneSignatureCache,Pi as pruneCache,pq as provide,Qq as protectCodeBlocks,qr as prop,Mf as processVueTemplate,Ug as processVirtualListDirectives,Yg as processVirtualGridDirectives,jj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,yg as processTransitionDirectives,Bg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,ug as processTeleportDirectives,Cg as processSuspenseDirectives,xf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,jh as processStaticDirectives,sf as processStackReplacements,rf as processStackPushDirectives,zh as processSlots,Pl as processShell,De as processServerBindings,yf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Gp as processProtectedMedia,ch as processPartialHydrationDirectives,og as processOnceDirective,tf as processMiddleware,wf as processMetaDirectives,zd as processMetaDirective,Lj as processMarkdownFileDirectives,Rh as processMarkdownDirectives,mf as processLoops,Mg as processKeepAliveDirectives,ng as processJsonDirective,Xg as processInfiniteListDirectives,qf as processIncludes,Yi as processImgComponents,Kk as processImageComponents,xk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,qh as processDirectives,$h as processDirectiveAttributes,tg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,xr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Hg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,no as preloadIslandHandlers,Ce as preloadIconCollection,sm as poolStrings,Cj as pluginManager,ye as placeholdersWarmed,xg as performLeave,wg as performEnter,Oe as pendingLifecycleCounts,Se as peek,nf as partialsCache,lj as parseVideoDirectiveOptions,Ro as parseUrl,Yp as parseThumbhashString,Jc as parseSwitchBlock,wh as parseSlots,xh as parseSlotElement,Oc as parseScriptDeclarations,yj as parseSFCComponent,Hp as parseProtectedArgs,lf as parseLoopBinding,Xi as parseImgComponent,ni as parseImageUrl,Jk as parseImageComponent,En as parseFormBody,Lc as parseExpressionWithFilters,Lm as parseDefaults,sn as parseCookies,Hl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,sr as optional,tm as optimizeTemplate,Pk as optimizeImage,Qk as optimizeDirectory,ur as oneOf,of as onceStore,fl as onUpdated,yb as onUpdate,hl as onUnmounted,Cl as onServer,dl as onMounted,Ke as onMount,ih as onHydrated,vq as onErrorCaptured,Le as onDestroy,Sg as onDeactivated,Bl as onClient,el as onBeforeUpdate,gl as onBeforeUnmount,cl as onBeforeMount,Rg as onActivated,Rp as observeElement,wn as notFound,Uf as normalizeCriticalHeadOrder,uq as nextTick,Om as negotiateEncoding,P as navigateTo,jl as mountInstance,z as motionDirective,Vc as moderateCspPreset,rm as minifyHtml,Af as metaDirective,cg as metaDedupKey,So as mergeParams,eg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Sh as markdownDirectiveHandler,Jj as markdownCache,b as looksLikeGlob,er as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Fj as loadStxConfig,_ as loadMiddlewareFromDirectory,fm as loadManifest,Np as loadElement,ym as loadChannels,lr as lintStxStrict,Pp as lazyLoadAll,Op as lazyLoad,C as keyframeDirective,Eq as jsxs,Fq as jsxDEV,Dq as jsx,un as jsonResponse,pe as islandDirective,$b as isTest,Sl as isSpaNavigation,Ll as isSpaNavRequest,vp as isSignatureValid,Pe as isSignal,vk as isSharpAvailable,fn as isServerEnvironment,zl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Kp as isNativeLazySupported,Pq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Ch as isJavaScriptScript,Lp as isIntersectionObserverSupported,Dk as isImageFile,wk as isImageBackendAvailable,ce as isICUFormat,hh as isHydrated,Hh as isHydrateTrigger,Hb as isHttpStatus,en as isEdgeEnvironment,mr as isDirectiveKind,_b as isDevelopment,Qe as isDerived,Qj as isCssOnlyChange,Nm as isCompressible,Al as isClient,Jg as isAsyncComponent,Fn as isActionableMethod,ap as invert,Ze as invalidateFileCacheByDir,Ye as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,ar as injectThemeBootstrap,zf as injectSeoTags,Zq as injectSeo,ff as injectRouterScript,Pj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,lg as injectConfigHeadTags,Tf as injectColorModeBootScript,gg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,qq as inject,ul as initStoreRegistry,qk as initNetlify,po as initLoadingIndicator,Mp as initLazyLoading,Cn as initFile,Up as initBlurUp,_p as initAllBlurUp,_i as imgDirective,Nk as imageDirective,Nn as hydrateTemplateStream,Mn as hydrateTemplate,mo as hydrateIslands,eh as hydrateIsland,On as hydrateFragment,fh as hydrateByStrategy,gh as hydrateAll,Fo as hydrate,Xn as htmlResponse,hg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ii as hashString,ef as hashFilePath,Gi as hashFile,Hi as hashBuffer,Lf as hasVueTemplateSyntax,kf as hasVariables,Ko as hasStore,cb as hasPlaceholders,ok as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,kg as hasDocumentShell,uh as hasDirectives,h as hasDOMSupport,Gk as handleImageRequest,wq as handleError,Mq as h,Ck as groupVariantsByFormat,_o as grayscale,Qn as gitHash,lm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,jk as getTotalSize,wp as getTimeUntilExpiry,qg as getStoreScript,Lo as getStoreNames,Jo as getStore,ck as getStorageSize,bk as getStorageKeys,Nh as getSourceLineInfo,Eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,sj as getScopeAttribute,Fe as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,sh as getPositionInfo,$a as getPlaceholderRegistry,Fi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,yk as getImageMetadata,ue as getImageDelivery,Eo as getHydrationRuntime,wl as getHydratedStoreState,Tj as getHmrServer,kd as getHead,wo as getHMRHandler,ri as getFormatExtension,Ki as getFileMtime,Bk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Vh as getDirectives,Uh as getDirective,Vk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Qh as getComponentCacheStats,aj as getCachedVideoResult,Ap as getCachedSignature,$e as getCachedSignalsRuntime,af as getCachedRouterScript,Di as getCachedPlaceholder,Ri as getCachedImageResult,Li as getCached,Oi as getCacheStats,Yf as getBuildId,vm as getBroadcastServer,qi as getBestVariant,gb as getAllFilters,ei as generateWidthSrcset,Vg as generateVirtualListCSS,fq as generateVideoPreview,Nd as generateValidationScript,gq as generateUploadRuntime,mm as generateTreeShakenBundle,Ag as generateTransitionRuntime,zg as generateTransitionCSS,ej as generateThumbnails,wi as generateThumbhashPlaceholder,Xm as generateTemplatesDocs,Gg as generateSuspenseRuntime,Fg as generateSuspenseCSS,zo as generateStateScript,oi as generateSrcsetData,Vi as generateSrcset,zk as generateSrcSet,fj as generateSpriteSheet,oq as generateSpaShell,pi as generateSourceTags,ki as generateSizesFromBreakpoints,ji as generateSizesAttribute,Ak as generateSizes,Df as generateSitemapIndex,_q as generateSitemap,Jp as generateSimpleMediaPicker,Dp as generateSignatureRuntime,Ve as generateSignalsRuntimeDev,Ue as generateSignalsRuntime,Xa as generateServerDataBridge,pj as generateScopeId,zj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ff as generateRobotsTxt,$q as generateRobots,Ui as generateResponsiveVariants,vj as generateReactiveWebComponentTS,uj as generateReactiveWebComponent,xj as generateReactiveRuntime,wj as generateReactiveMixin,dj as generatePoster,Ci as generatePlaceholderStyle,Bi as generatePlaceholderCSS,vi as generatePlaceholder,dh as generatePartialHydrationCSS,Pc as generateNonce,kk as generateNetlifyToml,iq as generateMinifiedMediaRuntime,hq as generateMediaRuntime,Ip as generateMediaManagerEmbed,dm as generateManifest,ro as generateLoadingIndicatorHtml,Tp as generateLazyLoadRuntime,Xl as generateLayoutTypes,yi as generateLQIP,Qg as generateKeepAliveRuntime,Pg as generateKeepAliveCSS,kh as generateIslandManifest,eq as generateImagePreview,Rk as generateImageManifest,Do as generateHydrationScript,te as generateHydrationRuntime,Go as generateHydrationCSS,Zg as generateHydrationBootstrap,Oj as generateHotReloadScript,ea as generateHeatmapScript,uo as generateHMRClientScript,gj as generateHLSManifest,Ao as generateEventBindings,ii as generateDprSrcsetWithVariableQuality,hi as generateDprSrcset,ig as generateDocumentShell,an as generateDocs,Ym as generateDirectivesDocs,_h as generateDirectiveRuntime,Gf as generateDefaultRobotsTxt,hj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Bq as generateCompositionRuntime,Wm as generateComponentsDocs,_g as generateComponentManifest,Um as generateComponentDoc,Ai as generateColorPlaceholder,Sf as generateColorModeBootScript,ml as generateClientRuntime,Ji as generateCacheKey,Va as generateBrowserAutoImportDestructuring,$p as generateBlurUpRuntime,aq as generateBlurUpCSS,Ab as generateBindingsRuntime,fi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Lg as generateAsyncComponentRuntime,Kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,lo as formatTypecheckDiagnostics,fo as formatTypeErrors,zn as formatStxContent,ik as formatSize,O as formatRoutes,An as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,Yq as formatDoctorReport,Zm as formatDocsAsMarkdown,$m as formatDocsAsJson,_m as formatDocsAsHtml,hp as format,qm as foldConstants,gp as flipVertical,fp as flipHorizontal,Yl as fingerprint,jo as findRuntimeTypeDeclarations,Wq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,nm as findDeadCode,nm as findDeadBranches,Il as findContainerRegion,Vm as findComponentFiles,Ar as findCommonDir,hk as filterRequiredFiles,Lh as fileExists,gf as extractVariables,bm as extractTemplateExpressions,le as extractStreamBoundaries,Bo as extractState,Ah as extractSlotContent,jf as extractScriptFromTemplate,am as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,zi as extractDominantColor,Nc as extractDirectiveParams,vh as extractDirectiveNames,Tl as extractContainerContent,Sm as extractComponentProps,$g as extractComponentName,Tm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ah as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,tj as extractAndScopeStyles,Ba as extractAndProcessEvents,Xj as externalizeSharedAssets,Yj as externalizeRepeatedAssets,Wj as externalizeHtml,qb as evaluateExpression,pm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,vg as ensureTeleportTargets,mg as ensureDocumentShell,Jd as enhancedValidationRules,Qm as enableDevTools,om as eliminateDeadCode,Ie as effect,op as dprUrls,bn as docsCommand,Vl as discoverLayoutNames,Sp as disconnectObserver,Rm as disableDevTools,tc as devHelpers,Ol as detectShell,dn as detectRuntime,lk as detectProjectConfig,si as detectFormat,im as detectBuildMode,He as derived,pk as deploy,Hj as defineStxConfig,Oo as defineStore,yq as defineSlots,kr as defineSiteConfig,or as definePropsWithValidation,nr as defineProps,Bj as definePlugin,rd as definePageMeta,R as defineMiddleware,mh as defineForm,tq as defineExpose,sq as defineEmits,Xh as defineDirective,Oq as defineCustomElement,Ln as defineConfig,Yh as defineClientDirective,Ig as defineAsyncComponent,jq as defaultMediaConfig,Tk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Dj as defaultConfig,yr as default,sb as deepMergeThemes,Of as dedupeScopedStyles,xi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,Zp as crossfadeTransition,Uo as crop,Tg as createVirtualList,mj as createVideoDirective,qn as createVercelHandler,bo as createTypeChecker,fe as createTranslateFilter,mn as createTextEncoderStream,Nq as createStxApp,ln as createStreamingResponse,ne as createStreamRenderer,Mo as createStore,U as createStorageManager,S as createServerCookieManager,Xk as createScope,Dg as createSSRSuspense,Ee as createRouter,$ as createRouteLocation,$n as createRoute,Yk as createRef,Zk as createReactive,Aq as createProvideContext,Sn as createProject,Kn as createProductionBuild,_a as createPlaceholder,um as createOptimizedBuild,rn as createNetlifyHandler,dk as createNetlifyClient,aa as createMiddlewareContext,_n as createMiddleware,Qp as createLazyObserver,Ng as createKeepAliveCache,hn as createKVNamespace,bh as createIslandRegistry,Zi as createImgDirective,Ok as createImagePlugin,Hk as createImageHandler,Mk as createImageDirective,ia as createHeatmapAggregator,gk as createFileManifest,gn as createEnvAccessor,nc as createEnhancedError,kn as createEdgeHandler,jn as createEdgeCache,Oh as createDetailedErrorMessage,pn as createDenoHandler,mk as createDefaultNetlifyConfig,gd as createCspHeaders,tn as createCookie,_k as createComputed,Wk as createComponentInstance,on as createCloudflareHandler,T as createClientCookieManager,Zh as createBuiltinDirectives,Nq as createApp,F as createAnimationTimeline,Xo as cover,hf as convertToCommonJS,cp as contrast,Wo as contain,mc as consoleError,ac as configureErrorHandling,Gj as config,_k as computed,Pm as compressResponse,If as composerPattern,Hf as composer,Ql as composeShellWithPage,Jm as componentDirective,Jh as componentClientSignalNames,cm as compileTemplate,a as collectRepeatedFlag,fk as collectDeployFiles,cj as clearVideoCache,Pd as clearTranslationCache,rg as clearStoreCache,ak as clearStorage,Bp as clearSignatureCache,Ei as clearPlaceholderCache,pf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Lk as clearImageCache,Ub as clearErrorMessages,bf as clearDevCaches,hb as clearCustomFilters,Kf as clearComposers,sg as clearComposableCache,Ph as clearComponentCache,Ni as clearCache,qo as cleanupLoadingIndicator,Fl as classifyScript,Gl as classifyAllScripts,co as checkTemplateFile,eo as checkTemplate,cf as checkCache,yp as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Em as channel,yn as captureScreenshots,xn as captureScreenshot,$d as cancelPendingLoads,ek as calculateSha1,gi as calculateOptimalWidths,df as cacheTemplate,oj as buildWebComponents,go as buildVirtualSource,lq as buildViews,Qo as buildUrl,he as buildSuspenseResolveScript,jr as buildStaticSite,la as buildRuntimeGlobalsDestructure,Zl as buildRuntimeAsset,_l as buildRouterAsset,ir as buildLangPickerScript,mi as buildImageUrl,dg as buildHtmlAttrs,gm as buildForProduction,Mm as buildComponentLibrary,zp as buildAuthParams,hm as buildApp,gr as buildAlternateLinks,Jn as build,Cm as broadcastPrivate,Dm as broadcastPresence,zm as broadcast,bp as brightness,Yo as blur,ya as blankInertHtmlRegions,tp as batchSignUrls,Je as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,jp as auto,e as attributeValue,$l as assetTags,za as asInvocableStatement,vr as arrayOf,dr as applyTranslations,Ti as applyTransformations,Bh as applySlots,Im as applyPropDefaults,mp as applyPreset,fg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ml as appendVary,Xc as apiCspPreset,y as animationGroupDirective,ij as analyzeVideo,km as analyzeUsage,Dl as analyzeTemplate,El as analyzeProject,km as analyzeDirectiveUsage,Eb as analyticsDirective,Vn as addStore,Un as addPage,$c as addNonceToInlineContent,Wn as addLayout,Tn as addComponent,Hn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,_e as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,$i as VideoProcessorCache,nh as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,ao as TemplateTypeChecker,Bn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Jq 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,Jl 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,In as ProductionBuild,Lq as Portal,Rn as PROJECT_TEMPLATES,lp as PRESETS,na as NON_CLIENT_PRIMITIVES,Ho as MemorySessionStore,di as MIME_TYPES,ai as MEDIA_DEFAULT_WIDTHS,ci as MEDIA_DEFAULT_FORMATS,Ul as LAYOUT_TYPES_FILE,Qi as ImageProcessorCache,Fk as ImageProcessingError,Co as HydrationRuntime,Nj as HotReloadServer,ha as HeatmapAggregator,bg as HTML_CLASS_MARKER,ag as HTML_ATTRS_MARKER,Cq as Fragment,Kq as For,Kl as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Vj as EXTERNALIZED_ASSET_DIR,rk as DeployError,sk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,uk as DEFAULT_QUALITY,ti as DEFAULT_PLACEHOLDER_OPTIONS,tk as DEFAULT_FORMATS,bi as DEFAULT_DPR_VALUES,to as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,li as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,$f as CLOAK_STYLE,Gm as BroadcastServer,Fm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,ui as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Vq as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{pf as a}from"./chunk-r8h8t77y.js";import"./chunk-n3dk9t9f.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as startInteractive};
2
+ import{pf as a}from"./chunk-av7n7vdr.js";import"./chunk-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as startInteractive};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Rl as x,Sq as M}from"./chunk-n3dk9t9f.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import{Ts as B,Vs as P}from"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
2
+ import{Rl as x,Sq as M}from"./chunk-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import{Ts as B,Vs as P}from"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";import G from"path";var T=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],O=new Set(T);var K=new Map,U=B(64),V=new Set,D=0,N=new Set(T);function f(){K.clear(),U.clear()}function S(H){let J=new Map;for(let Q of H){let Z=G.basename(Q);if(Z.endsWith(".d.ts"))continue;let z=Z.replace(/\.[jt]s$/,"");if(z==="index")continue;if(z===Z)continue;let X=J.get(z);if(X&&!X.endsWith(".js"))continue;J.set(z,Q)}return[...J.values()].sort()}function g(H,J){let Q=J.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${Q}\\b`).test(H)}function y(H){if(!H)return[];let J=P(H,D),Q=U.get(J);if(Q)return Q.slice();let Z=H.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let X of N){if(V.has(X))continue;let A=X.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${A}\\s*\\(`).test(Z))z.push(X)}return z.sort(),U.set(J,z),z.slice()}async function p(H,J){let Q=y(H);if(Q.length===0)return null;let Z=J??G.join(import.meta.dir,"composables"),z=`${Z}\x00${Q.join(",")}`,X=K.get(z);if(X!==void 0)return X||null;let A=M({loader:"ts",target:"browser",define:x()}),L=new Set(Q),W=[],C=new Set,F=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:Z,absolute:!0}))F.push(j)}catch{return K.set(z,""),null}F=S(F);for(let q of F){let j;try{j=await Bun.file(q).text()}catch{continue}let I=[];try{I=A.scan(j).exports.filter(($)=>$!=="default")}catch{continue}if(!I.some(($)=>L.has($)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),W.push(`// ${G.basename(q).replace(/\.[jt]s$/,"")}
3
3
  ${A.transformSync(j).trim()}`);for(let $ of I)C.add($)}catch($){console.warn(`[stx] framework composable ${G.basename(q)} could not be bundled:`,$)}}let Y=Q.filter((q)=>!C.has(q)&&!g(H,q));if(Y.length>0)console.warn(`[stx] could not bundle ${Y.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(W.length===0)return K.set(z,""),null;let k=[...C].map((q)=>` try { if (!(${JSON.stringify(q)} in __s)) { __s[${JSON.stringify(q)}] = ${q}; if (!(${JSON.stringify(q)} in window)) window[${JSON.stringify(q)}] = ${q}; } } catch (e) {}`).join(`
4
4
  `),w=`<script data-stx-framework-composables>
5
5
  ;(function(){
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Vi as a,Wi as b}from"./chunk-3wshezq4.js";import"./chunk-9n0gvfrg.js";import"./chunk-096ejm6e.js";import"./chunk-n3dk9t9f.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as getStoreScript,b as clearStoreCache};
2
+ import{Vi as a,Wi as b}from"./chunk-gwkxf766.js";import"./chunk-9n0gvfrg.js";import"./chunk-h7fzgd2n.js";import"./chunk-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import"./chunk-71gwef4q.js";export{a as getStoreScript,b as clearStoreCache};
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{Ha as a,Te as F,Va as r,Ve as v,We as P,nb as n,o as m,oa as l,ob as p,pe as s,qb as i,qe as t,vb as e}from"./chunk-7n39346x.js";import"./chunk-s9z3d94k.js";import"./chunk-ahzzwebg.js";import"./chunk-n3ggrhb3.js";import"./chunk-r8h8t77y.js";import"./chunk-vqxmxgaj.js";import"./chunk-5n2g2z63.js";import"./chunk-41f7v4ja.js";import"./chunk-2ahsmwdq.js";import"./chunk-nx5qkm8k.js";import"./chunk-89wwrrpk.js";import"./chunk-bz820epz.js";import"./chunk-tvtnf09q.js";import"./chunk-jrn6x9kv.js";import"./chunk-yr4s841y.js";import"./chunk-e9bqsjvn.js";import"./chunk-49kk0s96.js";import"./chunk-w3ycm4na.js";import"./chunk-c29x3wtz.js";import"./chunk-brahft3h.js";import"./chunk-74cv4ta1.js";import"./chunk-wcm80anz.js";import"./chunk-y7m2dpd3.js";import"./chunk-9y0g8kzt.js";import"./chunk-t6nseeb9.js";import"./chunk-xttsqmkm.js";import"./chunk-54st8g2j.js";import"./chunk-3wshezq4.js";import"./chunk-j30wnqkt.js";import"./chunk-9n0gvfrg.js";import"./chunk-7q9mwh4v.js";import"./chunk-refwkt87.js";import"./chunk-wsbd9kpe.js";import"./chunk-ph0q97r5.js";import"./chunk-w95sp0k9.js";import"./chunk-qttfc5w6.js";import"./chunk-8tkdj47d.js";import"./chunk-vf4tde50.js";import"./chunk-58f0mthg.js";import{cl as u,dl as c}from"./chunk-096ejm6e.js";import"./chunk-n3dk9t9f.js";import{vs as f}from"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import{Ss as A}from"./chunk-01vsryag.js";import"./chunk-1spzqjve.js";import"./chunk-x9s335jt.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import{Zu as B}from"./chunk-71gwef4q.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.271";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
3
+ import{Ha as a,Te as F,Va as r,Ve as v,We as P,nb as n,o as m,oa as l,ob as p,pe as s,qb as i,qe as t,vb as e}from"./chunk-e5ncpk9f.js";import"./chunk-s9z3d94k.js";import"./chunk-1eg447es.js";import"./chunk-n3ggrhb3.js";import"./chunk-av7n7vdr.js";import"./chunk-vqxmxgaj.js";import"./chunk-5n2g2z63.js";import"./chunk-3cacp3v6.js";import"./chunk-76258rpp.js";import"./chunk-nx5qkm8k.js";import"./chunk-89wwrrpk.js";import"./chunk-bz820epz.js";import"./chunk-tvtnf09q.js";import"./chunk-75w11fde.js";import"./chunk-hqpsxzxe.js";import"./chunk-51qxyf3s.js";import"./chunk-49kk0s96.js";import"./chunk-w3ycm4na.js";import"./chunk-m0n5rn6r.js";import"./chunk-brahft3h.js";import"./chunk-74cv4ta1.js";import"./chunk-wcm80anz.js";import"./chunk-y7m2dpd3.js";import"./chunk-9y0g8kzt.js";import"./chunk-t6nseeb9.js";import"./chunk-xttsqmkm.js";import"./chunk-54st8g2j.js";import"./chunk-gwkxf766.js";import"./chunk-5z466wfw.js";import"./chunk-9n0gvfrg.js";import"./chunk-7q9mwh4v.js";import"./chunk-refwkt87.js";import"./chunk-czsv3zcn.js";import"./chunk-ph0q97r5.js";import"./chunk-w95sp0k9.js";import"./chunk-tdcrah1x.js";import"./chunk-5cket5g3.js";import"./chunk-vf4tde50.js";import"./chunk-58f0mthg.js";import{cl as u,dl as c}from"./chunk-h7fzgd2n.js";import"./chunk-0vjgbyf7.js";import{vs as f}from"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import{Ss as A}from"./chunk-eaqh53ea.js";import"./chunk-1spzqjve.js";import"./chunk-h45js0cg.js";import"./chunk-t7b39wwk.js";import"./chunk-w18t3nmy.js";import"./chunk-yvpagchj.js";import"./chunk-rhbq1var.js";import"./chunk-2c2z8n54.js";import{Zu as B}from"./chunk-71gwef4q.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.273";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
4
4
  Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-g8xanqdg.js");if(x==="list"){console.log(`
5
5
  \uD83D\uDCDA Fetching available icon collections...
6
6
  `);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
7
7
  `);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
8
8
  Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
9
9
  \u2713 Package generated successfully!`),console.log(`
10
- To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-f0m82977.js"),{loadConfig:j}=await import("./chunk-pj5m421t.js");console.log(`
10
+ To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-f0m82977.js"),{loadConfig:j}=await import("./chunk-dw3c9zg3.js");console.log(`
11
11
  \uD83D\uDD0D Running PWA audit...
12
12
  `);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
13
13
  No .stx files matched ${x}
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
69
69
  File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
70
70
  File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
71
71
  Pages directory not found: ${k}`),console.log(`
72
- Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-wfrwbykj.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
72
+ Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-e7b2p0h4.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
73
73
  Build complete! (SSR)
74
74
  `),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
75
75
  `);else if(H.ssg){if(console.log(`
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
84
84
  Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
85
85
  `),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
86
86
  `)}}catch(z){console.error(`
87
- Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-hw7ddxy8.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
87
+ Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-qsty6qvn.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
88
88
  Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-k2nej4y6.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
89
89
  \uD83D\uDCDD Initializing Netlify configuration...
90
90
  `);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
124
124
  \uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
125
125
  ${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
126
126
  \uD83D\uDCCA STX Performance Statistics
127
- `);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-jnc3kfpb.js"),{resolveStxTargets:j}=await import("./chunk-8v09eehd.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
127
+ `);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-egbaw4bh.js"),{resolveStxTargets:j}=await import("./chunk-8v09eehd.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
128
128
  No .stx files matched ${H.join(", ")}
129
129
  `);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
130
130
  Type-check did not run.
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
160
160
  \uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
161
161
  \uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
162
162
  \u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-e4ty7vfv.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
163
- \u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-snvv4jtd.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-zjpbeebd.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
163
+ \u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-z7pzgevr.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-edt2q2bp.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
164
164
  \uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
165
165
  `);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
166
166
  \uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
167
- \uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-t1njgvy0.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-d204cw1f.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-e7svf8zh.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-3445kmwm.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-9ej520sb.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
167
+ \uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-sj8887k1.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-d204cw1f.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-e7svf8zh.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-3445kmwm.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-9ej520sb.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
168
168
  \uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
169
169
  `);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
170
170
  \uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
@@ -7,6 +7,7 @@ import { renderComponentWithSlot, userComponentFileExists } from "./utils.js";
7
7
  import { createSafeFunction, isExpressionSafe, safeEvaluateObject, freeIdentifiers } from "./safe-evaluator.js";
8
8
  import { BOOLEAN_ATTRIBUTE_SENTINEL } from "./prop-sentinels.js";
9
9
  import { COMPONENT_PASSTHROUGH_X_ATTRS } from "./runtime-globals.js";
10
+ import { reactiveLoopRanges } from "./server-bindings.js";
10
11
  import { stripCommentsAndLiterals } from "./strip-literals.js";
11
12
  import fs from "node:fs";
12
13
  import path from "node:path";
@@ -178,7 +179,7 @@ const htmlTags = new Set([
178
179
  "switch",
179
180
  "view"
180
181
  ]);
181
- function parseComponentProps(rawProps, context, options) {
182
+ function parseComponentProps(rawProps, context, options, deferDynamicToClient = !1) {
182
183
  const resolved = {
183
184
  static: {},
184
185
  staticNames: {},
@@ -227,6 +228,10 @@ function parseComponentProps(rawProps, context, options) {
227
228
  resolved.clientReactive[propName] = expression;
228
229
  continue;
229
230
  }
231
+ if (deferDynamicToClient) {
232
+ resolved.clientReactive[propName] = expression;
233
+ continue;
234
+ }
230
235
  if (referencesClientSignal(expression)) {
231
236
  resolved.clientReactive[propName] = expression;
232
237
  continue;
@@ -621,6 +626,7 @@ async function processCustomElementTags(template, context, filePath, options, de
621
626
  context.__processedComponents = new Set;
622
627
  const processedComponents = context.__processedComponents, stashed = stashScriptElements(output);
623
628
  output = stashed.output;
629
+ const clientLoopRanges = reactiveLoopRanges(output);
624
630
  output = await processTagsWithParser(output, /[a-z][a-z0-9]*-[a-z0-9-]*/, !1);
625
631
  output = await processTagsWithParser(output, /[A-Z][a-zA-Z0-9]*/, !0);
626
632
  output = await processTagsWithParser(output, /[a-z][a-z0-9]*/, !1, htmlTags);
@@ -632,7 +638,7 @@ async function processCustomElementTags(template, context, filePath, options, de
632
638
  let result = html;
633
639
  const tags = findComponentTags(result, tagPattern, skipTags);
634
640
  for (let i = tags.length - 1;i >= 0; i--) {
635
- const tag = tags[i], componentPath = isPascalCase ? pascalToKebab(tag.tagName) : tag.tagName, rawProps = parseAllAttributes(resolveTagConditionals(tag.attributes, context, filePath)), resolvedProps = parseComponentProps(rawProps, context, options), builtinDef = registry.getBuiltin(tag.tagName), overriddenByUser = builtinDef ? await userComponentFileExists(componentPath, componentsDir, context, filePath, options) : !1;
641
+ const tag = tags[i], componentPath = isPascalCase ? pascalToKebab(tag.tagName) : tag.tagName, rawProps = parseAllAttributes(resolveTagConditionals(tag.attributes, context, filePath)), inClientLoop = clientLoopRanges.some(([start, end]) => tag.startIndex >= start && tag.startIndex < end), resolvedProps = parseComponentProps(rawProps, context, options, inClientLoop), builtinDef = registry.getBuiltin(tag.tagName), overriddenByUser = builtinDef ? await userComponentFileExists(componentPath, componentsDir, context, filePath, options) : !1;
636
642
  if (builtinDef && !overriddenByUser) {
637
643
  const renderCtx = {
638
644
  context,