// @bun
var{defineProperty:z,getOwnPropertyNames:I,getOwnPropertyDescriptor:J}=Object,K=Object.prototype.hasOwnProperty;function L(b){return this[b]}var P=(b)=>{var j=(B??=new WeakMap).get(b),q;if(j)return j;if(j=z({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var w of I(b))if(!K.call(j,w))z(j,w,{get:L.bind(b,w),enumerable:!(q=J(b,w))||q.enumerable})}return B.set(b,j),j},B;var M=(b)=>b;function N(b,j){this[b]=M.bind(null,j)}var Q=(b,j)=>{for(var q in j)z(b,q,{get:j[q],enumerable:!0,configurable:!0,set:N.bind(j,q)})};var D=(b,j)=>()=>(b&&(j=b(b=0)),j);var T=import.meta.require;async function O(b,j,q,w){let A=j[0]?.replace(/['"]/g,"")||"main",y=E();if(A!=="main")y=y.replace("container:'main'",`container:'${A}'`);return`<script data-stx-router>${y}</script>`}var W;var G=D(()=>{F();W={name:"stxRouter",handler:O,hasEndTag:!1,description:"Inject the STX SPA router script for client-side navigation"}});import{getRouterScript as E}from"stx-router";var F=D(()=>{G()});F();export{O as stxRouterHandler,W as stxRouterDirective,E as getRouterScript};
