@stacksjs/stx 0.2.272 → 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 (55) hide show
  1. package/dist/builtins/image-delivery.js +6 -3
  2. package/dist/{chunk-j8681w5d.js → chunk-0vjgbyf7.js} +17 -17
  3. package/dist/{chunk-96140mfb.js → chunk-1eg447es.js} +1 -1
  4. package/dist/{chunk-xn2zy1gd.js → chunk-2ymz6nrt.js} +1 -1
  5. package/dist/{chunk-4qfm583k.js → chunk-3cacp3v6.js} +1 -1
  6. package/dist/{chunk-35kf50cw.js → chunk-4c6wz64s.js} +1 -1
  7. package/dist/{chunk-p0cneyek.js → chunk-51qxyf3s.js} +1 -1
  8. package/dist/{chunk-51yszp1w.js → chunk-5cket5g3.js} +2 -2
  9. package/dist/{chunk-c0pvdmfs.js → chunk-5z466wfw.js} +1 -1
  10. package/dist/{chunk-xzt8dzgv.js → chunk-6pshqqjt.js} +1 -1
  11. package/dist/{chunk-30143e31.js → chunk-75w11fde.js} +1 -1
  12. package/dist/{chunk-t42zxf25.js → chunk-76258rpp.js} +1 -1
  13. package/dist/chunk-8sg8tspq.js +2 -0
  14. package/dist/{chunk-m6026skx.js → chunk-980vbj13.js} +1 -1
  15. package/dist/{chunk-07z7y2a2.js → chunk-av7n7vdr.js} +1 -1
  16. package/dist/{chunk-fm2sz04y.js → chunk-b8mq8vaz.js} +1 -1
  17. package/dist/{chunk-fyd647kt.js → chunk-cdmnfb6q.js} +1 -1
  18. package/dist/{chunk-xcde8pyv.js → chunk-crkxdfsc.js} +1 -1
  19. package/dist/{chunk-9tg9p0q0.js → chunk-czsv3zcn.js} +1 -1
  20. package/dist/{chunk-8n0axwzb.js → chunk-dw3c9zg3.js} +1 -1
  21. package/dist/{chunk-tv9jqnnd.js → chunk-e5ncpk9f.js} +8 -8
  22. package/dist/{chunk-66e09mb8.js → chunk-e7b2p0h4.js} +1 -1
  23. package/dist/{chunk-9bcawqjd.js → chunk-eaqh53ea.js} +1 -1
  24. package/dist/{chunk-h8zkmta2.js → chunk-edt2q2bp.js} +1 -1
  25. package/dist/{chunk-7e7m858p.js → chunk-egbaw4bh.js} +1 -1
  26. package/dist/{chunk-nrhw244y.js → chunk-gwkxf766.js} +1 -1
  27. package/dist/chunk-h45js0cg.js +3 -0
  28. package/dist/{chunk-pzq1nng4.js → chunk-h7fzgd2n.js} +1 -1
  29. package/dist/{chunk-zvs473zc.js → chunk-hqpsxzxe.js} +1 -1
  30. package/dist/{chunk-xdmqw057.js → chunk-jjfet3b4.js} +1 -1
  31. package/dist/{chunk-9bmv5hxy.js → chunk-jks6f8f5.js} +1 -1
  32. package/dist/{chunk-1j4251qt.js → chunk-kmj6hxen.js} +1 -1
  33. package/dist/{chunk-zztyxerk.js → chunk-m0n5rn6r.js} +1 -1
  34. package/dist/chunk-qsty6qvn.js +2 -0
  35. package/dist/{chunk-0wqkwhtt.js → chunk-qv6cjn0k.js} +1 -1
  36. package/dist/{chunk-tzjdzsed.js → chunk-rda8tspf.js} +1 -1
  37. package/dist/{chunk-c1xtbxj3.js → chunk-rsr2m2hq.js} +1 -1
  38. package/dist/{chunk-05zkyg7x.js → chunk-sj8887k1.js} +2 -2
  39. package/dist/{chunk-2y22cbx8.js → chunk-t42rq0p7.js} +1 -1
  40. package/dist/{chunk-eyrspbb3.js → chunk-tdcrah1x.js} +1 -1
  41. package/dist/{chunk-e4eaw8hx.js → chunk-wanmxrha.js} +1 -1
  42. package/dist/{chunk-5csxdsgw.js → chunk-yapm6eaz.js} +1 -1
  43. package/dist/{chunk-11hvcgsk.js → chunk-yn1k391m.js} +1 -1
  44. package/dist/{chunk-bdp331cr.js → chunk-z7pzgevr.js} +1 -1
  45. package/dist/{chunk-pqr402py.js → chunk-z7yenntp.js} +1 -1
  46. package/dist/{chunk-jg0578yr.js → chunk-zmm9fkte.js} +1 -1
  47. package/dist/cli.js +7 -7
  48. package/dist/craft-entry.js +1 -1
  49. package/dist/craft.js +1 -1
  50. package/dist/pwa.js +1 -1
  51. package/dist/ssg.js +2 -2
  52. package/package.json +5 -5
  53. package/dist/chunk-dk3bn44r.js +0 -2
  54. package/dist/chunk-w5c9n99f.js +0 -2
  55. package/dist/chunk-x9s335jt.js +0 -3
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ql as C}from"./chunk-j8681w5d.js";import{Ps as Y}from"./chunk-txys90mf.js";import{Ot as D}from"./chunk-yvpagchj.js";import u from"path";var S=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function h(K){let J=(Q)=>Q.replace(/[^\n]/g," ");return K.replace(/<!--[\s\S]*?-->/g,J).replace(/\{\{--[\s\S]*?--\}\}/g,J)}function m(K){let J=[],Q=h(K);S.lastIndex=0;let $;while(($=S.exec(Q))!==null){let j=($[1]||"").trim(),F=($[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,z=($[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,W=$.index+F,Z=$.index+$[0].length-z,G=K.slice(W,Z);if(/\bsrc\s*=/.test(j))continue;let q=j.match(/\btype\s*=\s*["']([^"']+)["']/i);if(q&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(q[1]))continue;let X=/\bserver\b/.test(j)?"server":/\bclient\b/.test(j)?"client":"plain",U=B(K,W);J.push({kind:X,code:G,startLine:U,attrs:j})}return J}function B(K,J){let Q=1;for(let $=0;$<J&&$<K.length;$++)if(K.charCodeAt($)===10)Q++;return Q}function N(K,J){let Q=K.lastIndexOf(`
2
+ import{Ql as C}from"./chunk-0vjgbyf7.js";import{Ps as Y}from"./chunk-txys90mf.js";import{Ot as D}from"./chunk-yvpagchj.js";import u from"path";var S=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function h(K){let J=(Q)=>Q.replace(/[^\n]/g," ");return K.replace(/<!--[\s\S]*?-->/g,J).replace(/\{\{--[\s\S]*?--\}\}/g,J)}function m(K){let J=[],Q=h(K);S.lastIndex=0;let $;while(($=S.exec(Q))!==null){let j=($[1]||"").trim(),F=($[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,z=($[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,W=$.index+F,Z=$.index+$[0].length-z,G=K.slice(W,Z);if(/\bsrc\s*=/.test(j))continue;let q=j.match(/\btype\s*=\s*["']([^"']+)["']/i);if(q&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(q[1]))continue;let X=/\bserver\b/.test(j)?"server":/\bclient\b/.test(j)?"client":"plain",U=B(K,W);J.push({kind:X,code:G,startLine:U,attrs:j})}return J}function B(K,J){let Q=1;for(let $=0;$<J&&$<K.length;$++)if(K.charCodeAt($)===10)Q++;return Q}function N(K,J){let Q=K.lastIndexOf(`
3
3
  `,J-1)+1;return J-Q+1}function g(K){let J=K.split(""),Q=(j,F)=>{for(let z=j;z<F&&z<J.length;z++)if(J[z]!==`
4
4
  `)J[z]=" "},$=[/<script(?:\s[^>]*)?>[\s\S]*?<\/script>/gi,/<style(?:\s[^>]*)?>[\s\S]*?<\/style>/gi,/<!--[\s\S]*?-->/g,/\{\{--[\s\S]*?--\}\}/g,/@verbatim\b[\s\S]*?@endverbatim\b/g];for(let j of $){j.lastIndex=0;let F;while((F=j.exec(K))!==null)Q(F.index,F.index+F[0].length)}return J.join("")}function p(K){let J=0,Q="";for(let $=0;$<K.length;$++){let j=K[$];if(Q){if(j==="\\"){$++;continue}if(j===Q)Q="";continue}if(j==='"'||j==="'"||j==="`"){Q=j;continue}if(j==="("||j==="["||j==="{"){J++;continue}if(j===")"||j==="]"||j==="}"){J--;continue}if(j==="|"&&J===0){if(K[$+1]==="|"){$++;continue}if(K[$-1]==="|")continue;return K.slice(0,$)}}return K}var R=new Set([":for","x-for","v-for"]),w=/(?:^|\s)((?::|x-|v-|@)[\w.:-]+)\s*=\s*(["'])([\s\S]*?)\2/g,O="__stx_interpolated",y="__StxElement",f="__StxTemplateValue",l=`type ${f}<T> = T extends { readonly _isSignal: true } | { readonly _isDerived: true } ? (T extends () => infer V ? T & V : T) : T`;function L(K){return K.replace(/\{\{[\s\S]*?\}\}/g,O).replace(/\{!![\s\S]*?!!\}/g,O)}function Vj(K){return K.replace(/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/g,(J)=>{let Q=J.split(`
5
5
  `).length-1,$=J.length-Q;return`0${" ".repeat(Math.max(0,$-1))}${`
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$l as l,Ql as c,Tl as d,Ul as e,Vl as f,Wl as g,Xl as h,Yl as i,Zl as j,_l as k,am as m}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import{Os as a,Ps as b}from"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
2
+ import{$l as l,Ql as c,Tl as d,Ul as e,Vl as f,Wl as g,Xl as h,Yl as i,Zl as j,_l as k,am as m}from"./chunk-0vjgbyf7.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import{Os as a,Ps as b}from"./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{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,m as processClientScript,g as injectBrowserCoreAutoImports,l as generateServerDataBridge,j as generateBrowserAutoImportDestructuring,i as generateAutoImportDestructuring,a as findInterpolationEnd,k as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-9tg9p0q0.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
2
+ import{ej as a,fj as b,gj as c,hj as d,ij as e,jj as f,kj as g,lj as h,mj as i,nj as j,oj as k,pj as l,qj as m,rj as n}from"./chunk-czsv3zcn.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{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{tk as m}from"./chunk-51yszp1w.js";import{Zu as z}from"./chunk-71gwef4q.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
2
+ import{tk as m}from"./chunk-5cket5g3.js";import{Zu as z}from"./chunk-71gwef4q.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
3
3
  <script>
4
4
  (function() {
5
5
  'use strict';
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{bm as F,em as V,sm as I}from"./chunk-j8681w5d.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
2
+ import{bm as F,em as V,sm as I}from"./chunk-0vjgbyf7.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
3
3
  export{w as Eh,C as Fh,N as Gh,A as Hh,E as Ih,M as Jh};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Qf as a}from"./chunk-76258rpp.js";import"./chunk-51qxyf3s.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 startProductionServer};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-zztyxerk.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
2
+ import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-m0n5rn6r.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{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./chunk-pzq1nng4.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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 shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
2
+ import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./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{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
2
+ import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-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{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{zp as V}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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-fm2sz04y.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-fm2sz04y.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-j8681w5d.js";import{Us as N}from"./chunk-9bcawqjd.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{dm as a,dp as b,ep as c}from"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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 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-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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-tv9jqnnd.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-96140mfb.js";import{nf as xn,of as yn}from"./chunk-n3ggrhb3.js";import{pf as Dn}from"./chunk-07z7y2a2.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-4qfm583k.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-t42zxf25.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-30143e31.js";import{Ug as am,Xg as bm}from"./chunk-zvs473zc.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-p0cneyek.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-zztyxerk.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-nrhw244y.js";import{Zi as sg}from"./chunk-c0pvdmfs.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-9tg9p0q0.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-eyrspbb3.js";import{qk as Pq,rk as Qq,sk as Rq,tk as Sq,uk as Tq,vk as Uq}from"./chunk-51yszp1w.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-pzq1nng4.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-j8681w5d.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-9bcawqjd.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,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};
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-07z7y2a2.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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-j8681w5d.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-9bcawqjd.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-nrhw244y.js";import"./chunk-9n0gvfrg.js";import"./chunk-pzq1nng4.js";import"./chunk-j8681w5d.js";import"./chunk-1bwwtctk.js";import"./chunk-q9zsjgpf.js";import"./chunk-a6a9djpq.js";import"./chunk-txys90mf.js";import"./chunk-9bcawqjd.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};