// @bun
var{defineProperty:B,getOwnPropertyNames:K,getOwnPropertyDescriptor:L}=Object,M=Object.prototype.hasOwnProperty;function N(b){return this[b]}var V=(b)=>{var q=(C??=new WeakMap).get(b),u;if(q)return q;if(q=B({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var v of K(b))if(!M.call(q,v))B(q,v,{get:N.bind(b,v),enumerable:!(u=L(b,v))||u.enumerable})}return C.set(b,q),q},C;var O=(b)=>b;function Q(b,q){this[b]=O.bind(null,q)}var W=(b,q)=>{for(var u in q)B(b,u,{get:q[u],enumerable:!0,configurable:!0,set:Q.bind(q,u)})};var X=(b,q)=>()=>(b&&(q=b(b=0)),q);var Y=import.meta.require;function T(b){return b.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function U(b){let q={};for(let u of Object.keys(b))if(!u.startsWith("__"))q[u]=b[u];return q}function _(b){let{template:q,context:u={},title:v="stx App"}=b,E=U(u),H=T(JSON.stringify(E));return`<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>${v}</title>
</head>
<body>
  <div id="stx-app"></div>
  <template id="stx-template">${q}</template>
  <script>window.__STX_DATA__ = ${H};</script>
  <script type="module">
    // stx client-side bootstrap
    const template = document.getElementById('stx-template');
    const app = document.getElementById('stx-app');
    if (template && app) {
      app.innerHTML = template.innerHTML;
    }
  </script>
</body>
</html>`}export{_ as generateSpaShell};
