@stacksjs/stx 0.2.749 → 0.2.751
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-91pycazt.js → chunk-02c0zcaw.js} +2 -2
- package/dist/chunk-02kkd7fy.js +2 -0
- package/dist/chunk-04xvdwdv.js +2 -0
- package/dist/chunk-051evb5w.js +2 -0
- package/dist/chunk-0b7f2mby.js +2 -0
- package/dist/{chunk-7dhpecgc.js → chunk-0jdrw4rr.js} +9 -9
- package/dist/chunk-0k13q4w5.js +2 -0
- package/dist/{chunk-3jr1nwap.js → chunk-0k8ke4sy.js} +2 -2
- package/dist/chunk-0mehkbcx.js +2 -0
- package/dist/{chunk-vtmd3ssd.js → chunk-0p6fpsw5.js} +3 -3
- package/dist/chunk-1019v091.js +2 -0
- package/dist/{chunk-e0prbqds.js → chunk-10bge0j5.js} +4 -4
- package/dist/{chunk-1xjv71dw.js → chunk-19safa6y.js} +2 -2
- package/dist/chunk-1h9mcnvn.js +2 -0
- package/dist/{chunk-yx63etd1.js → chunk-1j2tt4fw.js} +10 -10
- package/dist/chunk-1kdtapc1.js +2 -0
- package/dist/{chunk-0shj71m2.js → chunk-1ksc7rnp.js} +3 -3
- package/dist/{chunk-23drx7xh.js → chunk-1qmeh6ba.js} +2 -2
- package/dist/{chunk-4998rbts.js → chunk-2kevesvh.js} +2 -2
- package/dist/{chunk-gtyvejny.js → chunk-35s1vpsc.js} +6 -6
- package/dist/{chunk-as9wg93m.js → chunk-391ha6yg.js} +25 -25
- package/dist/chunk-3a42s01p.js +2 -0
- package/dist/{chunk-amyxgejb.js → chunk-3yz7fafy.js} +1 -1
- package/dist/chunk-40kmkhkb.js +2 -0
- package/dist/{chunk-cka9p9v5.js → chunk-41yjah34.js} +2 -2
- package/dist/{chunk-byaasw3f.js → chunk-4nmb776w.js} +2 -2
- package/dist/chunk-59512t1y.js +2 -0
- package/dist/{chunk-9bbs9d9q.js → chunk-5bkha4ej.js} +2 -2
- package/dist/{chunk-wpwh529h.js → chunk-5hrm7rtx.js} +13 -13
- package/dist/{chunk-8f14cgm8.js → chunk-5s8bt976.js} +1 -1
- package/dist/{chunk-72hfqwvk.js → chunk-664tnv9e.js} +5 -5
- package/dist/{chunk-b107z777.js → chunk-67z3kesf.js} +2 -2
- package/dist/{chunk-n8mb6510.js → chunk-6fhcmg96.js} +2 -2
- package/dist/{chunk-jzqmq0hp.js → chunk-6hfrf0mb.js} +1 -1
- package/dist/chunk-6jtjhx7w.js +2 -0
- package/dist/{chunk-vcfrpxj2.js → chunk-6pjmnvph.js} +9 -9
- package/dist/chunk-6x112bw3.js +2 -0
- package/dist/{chunk-bsx40v6h.js → chunk-6xjkprv4.js} +2 -2
- package/dist/{chunk-0ckh7cy1.js → chunk-7t9wj2m4.js} +1 -1
- package/dist/{chunk-hgqpr15a.js → chunk-7ws6n88w.js} +2 -2
- package/dist/{chunk-zn3c0ew5.js → chunk-89h4snzd.js} +2 -2
- package/dist/{chunk-k8gxa1jf.js → chunk-8mkxge3a.js} +4 -4
- package/dist/chunk-8wnjaz0x.js +2 -0
- package/dist/chunk-9293adsm.js +2 -0
- package/dist/chunk-99p5yrkr.js +2 -0
- package/dist/{chunk-y3w2rc1y.js → chunk-9hfk5wf1.js} +5 -5
- package/dist/chunk-9tp4vfv9.js +2 -0
- package/dist/{chunk-ffk5p7rc.js → chunk-aeqm0vdq.js} +2 -2
- package/dist/{chunk-3kw9m62d.js → chunk-amwxbvdp.js} +2 -2
- package/dist/{chunk-rnhv0fx4.js → chunk-bc1zck9n.js} +13 -13
- package/dist/{chunk-xzv8t0nd.js → chunk-bd4c8af4.js} +1 -1
- package/dist/chunk-c0t3hys0.js +2 -0
- package/dist/{chunk-dxsdr77m.js → chunk-c0v9ng82.js} +7 -7
- package/dist/chunk-c7yjhjr2.js +2 -0
- package/dist/chunk-c88nx6te.js +2 -0
- package/dist/chunk-cgb6729y.js +2 -0
- package/dist/chunk-cgyddqxw.js +2 -0
- package/dist/{chunk-2hk6evh2.js → chunk-cn6k59h6.js} +5 -5
- package/dist/{chunk-j9zp3hne.js → chunk-cq032t09.js} +5 -5
- package/dist/chunk-cs5gf4zp.js +2 -0
- package/dist/{chunk-q1db41k8.js → chunk-dg1h0d9r.js} +3 -3
- package/dist/{chunk-mk0axhs2.js → chunk-dtgwjaxf.js} +6 -6
- package/dist/chunk-e7sykgst.js +2 -0
- package/dist/chunk-e8fqsbs7.js +2 -0
- package/dist/{chunk-2hrdh72h.js → chunk-ecf9tftk.js} +2 -2
- package/dist/chunk-f0kbpzbb.js +2 -0
- package/dist/chunk-f83dksbn.js +2 -0
- package/dist/{chunk-6fx89gvg.js → chunk-fgg1stc0.js} +2 -2
- package/dist/chunk-fk7gs41v.js +2 -0
- package/dist/chunk-ftjfw2bt.js +2 -0
- package/dist/{chunk-e43cxztn.js → chunk-ftk2jdg8.js} +2 -2
- package/dist/{chunk-crk5dzxb.js → chunk-g019qe9x.js} +4 -4
- package/dist/{chunk-965x7wqa.js → chunk-g7eye50p.js} +3 -3
- package/dist/{chunk-md36aysy.js → chunk-g7shwb6q.js} +6 -6
- package/dist/chunk-gsawyk8q.js +2 -0
- package/dist/{chunk-9v98dzxt.js → chunk-h7y2pmd9.js} +6 -6
- package/dist/{chunk-8fazd6fr.js → chunk-hc6m2t92.js} +2 -2
- package/dist/chunk-hec2qjj8.js +2 -0
- package/dist/{chunk-j6m7jwpv.js → chunk-hnzfzm0k.js} +5 -5
- package/dist/chunk-hzcgq05k.js +2 -0
- package/dist/{chunk-888xnaex.js → chunk-jq6gggcz.js} +2 -2
- package/dist/{chunk-zx5vg2pn.js → chunk-k0vqjagg.js} +3 -3
- package/dist/{chunk-nybty1zx.js → chunk-k7p9wkw3.js} +2 -2
- package/dist/chunk-k83z4nyg.js +2 -0
- package/dist/{chunk-h6pmg82p.js → chunk-kb8654dp.js} +2 -2
- package/dist/{chunk-vq77bjtx.js → chunk-kdzejksk.js} +10 -10
- package/dist/chunk-kg4zjb7a.js +2 -0
- package/dist/{chunk-27agaezn.js → chunk-kyk4ekng.js} +2 -2
- package/dist/{chunk-9zrbhs3p.js → chunk-mcdwjq8t.js} +1 -1
- package/dist/{chunk-4s1k8k2a.js → chunk-mdsrnd6s.js} +4 -4
- package/dist/chunk-mjam7gyj.js +2 -0
- package/dist/chunk-myr79xxf.js +3 -0
- package/dist/{chunk-w1sdxmx3.js → chunk-n3t2cd17.js} +2 -2
- package/dist/{chunk-78x8qfvt.js → chunk-neh3kewg.js} +4 -4
- package/dist/chunk-ng9xkyvs.js +2 -0
- package/dist/chunk-nhm3qamb.js +2 -0
- package/dist/chunk-nmqak9tg.js +2 -0
- package/dist/{chunk-xrb4dk5w.js → chunk-nzfbjmvb.js} +1 -1
- package/dist/{chunk-kp2rkczm.js → chunk-p4h5c79q.js} +5 -5
- package/dist/{chunk-egbt0bms.js → chunk-pnpabjzz.js} +7 -7
- package/dist/{chunk-x0c8xq0s.js → chunk-pnpd7gz7.js} +3 -3
- package/dist/chunk-qan3tb8e.js +2 -0
- package/dist/chunk-qdmzr3a1.js +2 -0
- package/dist/{chunk-6ew10ptg.js → chunk-qeh8f4bk.js} +2 -2
- package/dist/{chunk-ttsrhr95.js → chunk-qksbf2gt.js} +6 -6
- package/dist/chunk-r24cv13z.js +2 -0
- package/dist/{chunk-vyv76w55.js → chunk-r3v1zaj0.js} +2 -2
- package/dist/{chunk-nzwcbt98.js → chunk-r6s35xw9.js} +2 -2
- package/dist/chunk-rc1cb58n.js +2 -0
- package/dist/chunk-rhygq40y.js +2 -0
- package/dist/{chunk-yygtmm7t.js → chunk-rt5as4t6.js} +3 -3
- package/dist/{chunk-j3cbj356.js → chunk-rzqd4t77.js} +2 -2
- package/dist/chunk-s4fr9cx8.js +2 -0
- package/dist/{chunk-fsz9k5k0.js → chunk-smpb39kv.js} +5 -5
- package/dist/chunk-sn86wfnm.js +2 -0
- package/dist/{chunk-5f6x6fyp.js → chunk-snfmgp7a.js} +4 -4
- package/dist/chunk-sp5c1pgg.js +2 -0
- package/dist/{chunk-amsbfc3y.js → chunk-srjhnk6w.js} +56 -56
- package/dist/{chunk-yvh0d5xa.js → chunk-sw65q2dx.js} +4 -4
- package/dist/{chunk-s3cqm7x0.js → chunk-t29h7kb3.js} +3 -3
- package/dist/{chunk-bj0z4gve.js → chunk-tary163t.js} +2 -2
- package/dist/{chunk-es4ec0nr.js → chunk-tct6rn6f.js} +68 -68
- package/dist/chunk-tn40nh9e.js +3 -0
- package/dist/{chunk-rvevd9sh.js → chunk-txfh8fg1.js} +6 -6
- package/dist/chunk-tyb22n6n.js +2 -0
- package/dist/{chunk-djjjc178.js → chunk-vawr540d.js} +3 -3
- package/dist/chunk-vb440rt0.js +2 -0
- package/dist/{chunk-r2cfezt5.js → chunk-vfe8xj8g.js} +3 -3
- package/dist/chunk-vqjbqm6c.js +2 -0
- package/dist/chunk-vyznvnew.js +2 -0
- package/dist/{chunk-pd89jnqk.js → chunk-vzn029zn.js} +3 -3
- package/dist/{chunk-tdfszf8h.js → chunk-wd0xbhf6.js} +30 -30
- package/dist/chunk-wg0w5smr.js +2 -0
- package/dist/{chunk-9vhv2hx9.js → chunk-wrzmt43b.js} +2 -2
- package/dist/chunk-x24gng8y.js +2 -0
- package/dist/chunk-xh83mf56.js +2 -0
- package/dist/{chunk-h66xm89j.js → chunk-xqkh97s7.js} +1 -1
- package/dist/{chunk-k3233hjr.js → chunk-xymxx2np.js} +4 -4
- package/dist/chunk-xzvbr2gs.js +2 -0
- package/dist/{chunk-2x2ydz3v.js → chunk-y52ktcjz.js} +3 -3
- package/dist/{chunk-w34w1hrg.js → chunk-yax8wz93.js} +2 -2
- package/dist/chunk-ycxwf633.js +2 -0
- package/dist/chunk-ydx3j69d.js +2 -0
- package/dist/{chunk-c10aj83y.js → chunk-ymfa4w5g.js} +5 -5
- package/dist/chunk-yq3p5y7y.js +2 -0
- package/dist/chunk-yx4p2mb7.js +3 -0
- package/dist/chunk-z3ggbhhc.js +2 -0
- package/dist/chunk-ztqwya0a.js +2 -0
- package/dist/cli.js +20 -20
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +7 -7
- package/package.json +5 -5
- package/dist/chunk-068t9bkm.js +0 -2
- package/dist/chunk-07d8nssg.js +0 -2
- package/dist/chunk-24kagfwc.js +0 -2
- package/dist/chunk-3538p4ct.js +0 -2
- package/dist/chunk-3nbvr34s.js +0 -2
- package/dist/chunk-4rcfm5dk.js +0 -2
- package/dist/chunk-4rqx6k5p.js +0 -2
- package/dist/chunk-4yz476ss.js +0 -2
- package/dist/chunk-4z7bnc9j.js +0 -2
- package/dist/chunk-5d1c504j.js +0 -2
- package/dist/chunk-5qzg0p2h.js +0 -2
- package/dist/chunk-62b9nhv5.js +0 -2
- package/dist/chunk-6g3t2pwz.js +0 -2
- package/dist/chunk-6vajjyj8.js +0 -2
- package/dist/chunk-75wdm7kd.js +0 -2
- package/dist/chunk-7w7f14jq.js +0 -2
- package/dist/chunk-840t4gws.js +0 -2
- package/dist/chunk-8bw9yd5m.js +0 -2
- package/dist/chunk-8dfq934n.js +0 -2
- package/dist/chunk-8t9em8md.js +0 -2
- package/dist/chunk-9adx6f4k.js +0 -3
- package/dist/chunk-adncj39d.js +0 -2
- package/dist/chunk-cmm2mkr1.js +0 -2
- package/dist/chunk-dgv3016h.js +0 -2
- package/dist/chunk-fb6af3vk.js +0 -2
- package/dist/chunk-fd29vm1h.js +0 -3
- package/dist/chunk-fvrcp1mr.js +0 -2
- package/dist/chunk-fvwfpxbb.js +0 -2
- package/dist/chunk-h2y36t58.js +0 -3
- package/dist/chunk-h61daksw.js +0 -2
- package/dist/chunk-h6jba844.js +0 -2
- package/dist/chunk-h75rev1h.js +0 -2
- package/dist/chunk-hrb9fmq0.js +0 -2
- package/dist/chunk-jka3p99a.js +0 -2
- package/dist/chunk-k38vsxt8.js +0 -2
- package/dist/chunk-m7h2c8x1.js +0 -2
- package/dist/chunk-n2nb5f0m.js +0 -2
- package/dist/chunk-n6carvxa.js +0 -2
- package/dist/chunk-ne363j4c.js +0 -2
- package/dist/chunk-p2rawhtq.js +0 -2
- package/dist/chunk-pkyakgzn.js +0 -2
- package/dist/chunk-px7em6mh.js +0 -2
- package/dist/chunk-pzm8bc99.js +0 -2
- package/dist/chunk-r5re2zj0.js +0 -2
- package/dist/chunk-rdzccdjw.js +0 -2
- package/dist/chunk-rh0fe82b.js +0 -2
- package/dist/chunk-scdasnp7.js +0 -2
- package/dist/chunk-sx1aer4p.js +0 -2
- package/dist/chunk-sxh4enb9.js +0 -2
- package/dist/chunk-vkaa0a18.js +0 -2
- package/dist/chunk-vnrsm0kj.js +0 -2
- package/dist/chunk-vqj5mjrj.js +0 -2
- package/dist/chunk-vvk948z8.js +0 -2
- package/dist/chunk-w07kke19.js +0 -2
- package/dist/chunk-w6dyqh92.js +0 -2
- package/dist/chunk-waqnhm47.js +0 -2
- package/dist/chunk-wbcqtpkm.js +0 -2
- package/dist/chunk-wy8er1ps.js +0 -2
- package/dist/chunk-xrspzeqx.js +0 -2
- package/dist/chunk-yh5frx7x.js +0 -2
- package/dist/chunk-zgnqyta0.js +0 -2
- package/dist/chunk-zvfr6022.js +0 -2
- package/dist/chunk-zzeas8x5.js +0 -2
package/dist/craft.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{uo,ha,ya}from"./chunk-rt5as4t6.js";import"./chunk-srjhnk6w.js";import"./chunk-5hrm7rtx.js";import"./chunk-kyk4ekng.js";import"./chunk-89h4snzd.js";import"./chunk-tct6rn6f.js";import"./chunk-r6s35xw9.js";import"./chunk-aeqm0vdq.js";import"./chunk-qeh8f4bk.js";import"./chunk-mdsrnd6s.js";import"./chunk-1j2tt4fw.js";import"./chunk-c0v9ng82.js";import"./chunk-snfmgp7a.js";import"./chunk-wrzmt43b.js";import"./chunk-0jdrw4rr.js";import"./chunk-391ha6yg.js";import"./chunk-10bge0j5.js";import"./chunk-pnpabjzz.js";import"./chunk-6pjmnvph.js";import"./chunk-k0vqjagg.js";import"./chunk-02c0zcaw.js";import"./chunk-ftk2jdg8.js";import{eu,ca,qm,Km,la,lo,qr,ua,da,Gm,Xm,pa,fa,ga,ma}from"./chunk-bc1zck9n.js";import"./chunk-ymfa4w5g.js";import"./chunk-yx4p2mb7.js";import"./chunk-tary163t.js";import"./chunk-dtgwjaxf.js";import"./chunk-5s8bt976.js";import"./chunk-t29h7kb3.js";var m=new Map,d=new Map;function R(t,e){let n=e?.id||E(t),r=I(t),a=m.get(n);if(a&&a.hash===r)return a;let i=M(t),s=L(t),o=W(t),c=O(i),{staticParts:p,dynamicParts:l}=A(i),f=_(t),g={id:n,hash:r,tree:i,scripts:s,styles:o,staticParts:p,dynamicParts:l,dependencies:f,metadata:c};return m.set(n,g),g}async function Q(t,e={},n={}){let r=performance.now();if(n.cache){let o=`${t.id}:${JSON.stringify(e)}`,c=d.get(o);if(c&&Date.now()-c.timestamp<(n.cacheTTL||60000))return{html:c.html,styles:t.styles.join(`
|
|
3
3
|
`),scripts:t.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:c.html.length,componentCount:t.metadata.componentCount}}}let a;if(n.streaming)a=await H(t.tree,e);else a=h(t.tree,e);let i;if(n.hydrate){let o=j(a,t,e);a=o.html,i=o.data}if(n.minify)a=D(a);if(n.cache){let o=`${t.id}:${JSON.stringify(e)}`;d.set(o,{html:a,timestamp:Date.now()})}let s=performance.now()-r;return{html:a,styles:t.styles.join(`
|
|
5
5
|
`),scripts:t.scripts.join(`
|
|
6
6
|
`),hydrationData:i,metadata:{renderTime:s,cacheHit:!1,totalSize:a.length,componentCount:t.metadata.componentCount}}}function V(t,e){let n=[],r=[],a=[],i=new Map,s=[];return y(t.tree,(o,c)=>{if(o.type==="component"&&o.componentName){if(T(o.componentName))n.push(o.componentName)}if(o.type==="element"&&o.tag){let p=J(o);if(p)s.push(p);if(o.props){for(let[l,f]of Object.entries(o.props))if(l.startsWith("on")&&typeof f==="string"){let g=`handler_${i.size}`;i.set(g,f)}}}if(o.isStatic&&o.type==="element")r.push(b(o));else if(!o.isStatic&&o.type!=="text")a.push(o.tag||o.componentName||"unknown")}),{nativeComponents:n,staticHTML:r,dynamicParts:a,eventHandlers:i,nativeWidgets:s}}function Y(t,e={}){let n=R(t),r=P(n,e),a=new Map,i=[];return y(n.tree,(s)=>{if(s.type==="component"&&s.componentName){if(T(s.componentName)){i.push(s.componentName);let o=`<!--craft:${s.componentName}:${s.hydrationKey||"default"}-->`;a.set(s.hydrationKey||s.componentName,o)}}}),{staticHTML:r,dynamicPlaceholders:a,craftComponents:i}}function M(t){let e={type:"fragment",children:[]},n=e,r=[e],a=t,i=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);while(a.length>0){let s=a.match(/^<(@?[\w-]+)([^>]*)>/);if(s){let[p,l,f]=s,g=z(f),u=l.startsWith("@craft-"),C=u?l:l.toLowerCase(),S={type:u?"component":"element",tag:C,props:g,children:[],componentName:u?C.slice(1):void 0,isStatic:!v(f),hydrationKey:F()};if(n.children=n.children||[],n.children.push(S),!i.has(C)&&!f.endsWith("/"))r.push(S),n=S;a=a.slice(p.length);continue}let o=a.match(/^<\/(@?[\w-]+)>/);if(o){let[p,l]=o,g=l.startsWith("@craft-")?l:l.toLowerCase();while(r.length>1){let u=r.pop();if(n=r[r.length-1],u.tag===g)break}a=a.slice(p.length);continue}let c=a.match(/^[^<]+/);if(c){let p=c[0];if(p.trim()){let l={type:"text",text:p,isStatic:!v(p)};n.children=n.children||[],n.children.push(l)}a=a.slice(p.length);continue}a=a.slice(1)}return e}function z(t){let e={},n=/([\w-:@]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S+)))?/g,r;while((r=n.exec(t))!==null){let[,a,i,s,o]=r,c=i??s??o??!0;e[a]=c}return e}function y(t,e,n=[]){if(e(t,n),t.children)t.children.forEach((r,a)=>{y(r,e,[...n,`${a}`])})}function h(t,e){switch(t.type){case"text":return x(t.text||"",e);case"element":case"component":{let n=t.tag||"div",r=N(t.props||{},e),a=(t.children||[]).map((i)=>h(i,e)).join("");if(!t.children||t.children.length===0){if(["input","br","hr","img","meta","link"].includes(n))return`<${n}${r} />`}return`<${n}${r}>${a}</${n}>`}case"fragment":return(t.children||[]).map((n)=>h(n,e)).join("");case"slot":return`<!--slot:${t.slotName||"default"}-->`;default:return""}}function b(t){if(t.type==="text")return t.text||"";let e=t.tag||"div",n=N(t.props||{},{});return`<${e}${n}></${e}>`}function N(t,e){let n=[];for(let[r,a]of Object.entries(t))if(a===!0)n.push(` ${r}`);else if(a!==!1&&a!==null&&a!==void 0){let i=x(String(a),e);n.push(` ${r}="${k(i)}"`)}return n.join("")}async function H(t,e){return h(t,e)}function P(t,e){let n=[];return y(t.tree,(r)=>{if(r.isStatic)n.push(h(r,e))}),n.join("")}function j(t,e,n){let r={templateId:e.id,context:n,dynamicParts:Array.from(e.dynamicParts.entries())},a=`
|
|
7
7
|
<script data-craft-hydration>
|
|
8
8
|
window.__CRAFT_HYDRATION__ = ${JSON.stringify(r)};
|
|
9
|
-
</script>`;return{html:t+a,data:r}}function O(t){let e=!1,n=!1,r=!1,a=!1,i=0,s=0;function o(c,p){if(s=Math.max(s,p),c.type==="slot")e=!0;if(c.type==="component")i++;if(!c.isStatic)n=!0;if(c.props)for(let l of Object.keys(c.props)){if(l.startsWith("on"))r=!0;if(l==="@async"||l==="data-async")a=!0}if(c.children)c.children.forEach((l)=>o(l,p+1))}return o(t,0),{hasSlots:e,hasDynamicContent:n,hasEventHandlers:r,hasAsyncContent:a,componentCount:i,maxDepth:s,estimatedSize:JSON.stringify(t).length}}function A(t){let e=new Map,n=new Map;return y(t,(r,a)=>{let i=a.join(".");if(r.isStatic)e.set(i,b(r));else n.set(i,r.tag||r.componentName||"dynamic")}),{staticParts:e,dynamicParts:n}}function L(t){let e=[],n=/<script[^>]*>([\s\S]*?)<\/script>/gi,r;while((r=n.exec(t))!==null)e.push(r[1]);return e}function W(t){let e=[],n=/<style[^>]*>([\s\S]*?)<\/style>/gi,r;while((r=n.exec(t))!==null)e.push(r[1]);return e}function _(t){let e=[],n=/@include\s*\(\s*['"]([^'"]+)['"]/g,r;while((r=n.exec(t))!==null)e.push(r[1]);let a=/@component\s*\(\s*['"]([^'"]+)['"]/g;while((r=a.exec(t))!==null)e.push(r[1]);let i=/<@craft-[\w-]+/g;while((r=i.exec(t))!==null)e.push(r[0].slice(2));return[...new Set(e)]}function v(t){return/\{\{.*?\}\}|\{\!\!.*?\!\!\}/.test(t)}function x(t,e){let n=t.replace(/\{\{\s*(.+?)\s*\}\}/g,(r,a)=>{try{let i=w(a.trim(),e);return k(String(i??""))}catch{return""}});return n=n.replace(/\{!!\s*(.+?)\s*!!\}/g,(r,a)=>{try{let i=w(a.trim(),e);return String(i??"")}catch{return""}}),n}function w(t,e){if(/^[\w.]+$/.test(t)){let n=t.split("."),r=e;for(let a of n)if(r&&typeof r==="object"&&a in r)r=r[a];else return;return r}try{return Function(...Object.keys(e),`return ${t}`)(...Object.values(e))}catch{return}}function k(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function D(t){return t.replace(/\s+/g," ").replace(/>\s+</g,"><").replace(/\s+>/g,">").replace(/<\s+/g,"<").trim()}function E(t){let e=0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return`tpl_${Math.abs(e).toString(36)}`}function I(t){let e=0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString(36)}var K=0;function F(){return`h_${++K}`}function T(t){return["craft-button","craft-text-input","craft-textarea","craft-checkbox","craft-radio","craft-select","craft-slider","craft-toggle","craft-date-picker","craft-time-picker","craft-color-picker","craft-file-input","craft-modal","craft-alert","craft-toast","craft-progress","craft-spinner","craft-avatar","craft-badge","craft-card","craft-accordion","craft-tabs","craft-tooltip","craft-popover","craft-dropdown","craft-context-menu","craft-data-table","craft-virtual-list","craft-tree-view","craft-map","craft-chart","craft-video","craft-audio","craft-webview","craft-canvas","craft-image-viewer","craft-pdf-viewer","craft-code-editor","craft-rich-editor"].includes(t)}function J(t){let e=t.tag?.toLowerCase(),n=t.props?.type,r={button:{component:"craft-button",confidence:0.95,reason:"Native button provides better touch feedback"},"input:text":{component:"craft-text-input",confidence:0.9,reason:"Native text input has better keyboard handling"},"input:checkbox":{component:"craft-checkbox",confidence:0.95,reason:"Native checkbox follows platform conventions"},"input:range":{component:"craft-slider",confidence:0.9,reason:"Native slider provides smooth interaction"},"input:date":{component:"craft-date-picker",confidence:0.95,reason:"Native date picker provides platform-specific UI"},"input:time":{component:"craft-time-picker",confidence:0.95,reason:"Native time picker provides platform-specific UI"},"input:color":{component:"craft-color-picker",confidence:0.9,reason:"Native color picker provides platform-specific UI"},textarea:{component:"craft-textarea",confidence:0.85,reason:"Native textarea handles multiline input better"},select:{component:"craft-select",confidence:0.9,reason:"Native select provides platform dropdown UI"},progress:{component:"craft-progress",confidence:0.95,reason:"Native progress bar matches platform style"},video:{component:"craft-video",confidence:0.95,reason:"Native video provides hardware acceleration"},audio:{component:"craft-audio",confidence:0.95,reason:"Native audio provides system integration"},dialog:{component:"craft-modal",confidence:0.9,reason:"Native modal provides proper layering and focus"}},a=n?`${e}:${n}`:e,i=r[a||""]||r[e||""];if(i)return{htmlSelector:a||e||"",nativeComponent:i.component,confidence:i.confidence,reason:i.reason};return null}function U(){m.clear()}function q(){d.clear()}function B(){U(),q()}function G(){return{templateCacheSize:m.size,renderCacheSize:d.size,totalEntries:m.size+d.size}}export{
|
|
9
|
+
</script>`;return{html:t+a,data:r}}function O(t){let e=!1,n=!1,r=!1,a=!1,i=0,s=0;function o(c,p){if(s=Math.max(s,p),c.type==="slot")e=!0;if(c.type==="component")i++;if(!c.isStatic)n=!0;if(c.props)for(let l of Object.keys(c.props)){if(l.startsWith("on"))r=!0;if(l==="@async"||l==="data-async")a=!0}if(c.children)c.children.forEach((l)=>o(l,p+1))}return o(t,0),{hasSlots:e,hasDynamicContent:n,hasEventHandlers:r,hasAsyncContent:a,componentCount:i,maxDepth:s,estimatedSize:JSON.stringify(t).length}}function A(t){let e=new Map,n=new Map;return y(t,(r,a)=>{let i=a.join(".");if(r.isStatic)e.set(i,b(r));else n.set(i,r.tag||r.componentName||"dynamic")}),{staticParts:e,dynamicParts:n}}function L(t){let e=[],n=/<script[^>]*>([\s\S]*?)<\/script>/gi,r;while((r=n.exec(t))!==null)e.push(r[1]);return e}function W(t){let e=[],n=/<style[^>]*>([\s\S]*?)<\/style>/gi,r;while((r=n.exec(t))!==null)e.push(r[1]);return e}function _(t){let e=[],n=/@include\s*\(\s*['"]([^'"]+)['"]/g,r;while((r=n.exec(t))!==null)e.push(r[1]);let a=/@component\s*\(\s*['"]([^'"]+)['"]/g;while((r=a.exec(t))!==null)e.push(r[1]);let i=/<@craft-[\w-]+/g;while((r=i.exec(t))!==null)e.push(r[0].slice(2));return[...new Set(e)]}function v(t){return/\{\{.*?\}\}|\{\!\!.*?\!\!\}/.test(t)}function x(t,e){let n=t.replace(/\{\{\s*(.+?)\s*\}\}/g,(r,a)=>{try{let i=w(a.trim(),e);return k(String(i??""))}catch{return""}});return n=n.replace(/\{!!\s*(.+?)\s*!!\}/g,(r,a)=>{try{let i=w(a.trim(),e);return String(i??"")}catch{return""}}),n}function w(t,e){if(/^[\w.]+$/.test(t)){let n=t.split("."),r=e;for(let a of n)if(r&&typeof r==="object"&&a in r)r=r[a];else return;return r}try{return Function(...Object.keys(e),`return ${t}`)(...Object.values(e))}catch{return}}function k(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function D(t){return t.replace(/\s+/g," ").replace(/>\s+</g,"><").replace(/\s+>/g,">").replace(/<\s+/g,"<").trim()}function E(t){let e=0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return`tpl_${Math.abs(e).toString(36)}`}function I(t){let e=0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return Math.abs(e).toString(36)}var K=0;function F(){return`h_${++K}`}function T(t){return["craft-button","craft-text-input","craft-textarea","craft-checkbox","craft-radio","craft-select","craft-slider","craft-toggle","craft-date-picker","craft-time-picker","craft-color-picker","craft-file-input","craft-modal","craft-alert","craft-toast","craft-progress","craft-spinner","craft-avatar","craft-badge","craft-card","craft-accordion","craft-tabs","craft-tooltip","craft-popover","craft-dropdown","craft-context-menu","craft-data-table","craft-virtual-list","craft-tree-view","craft-map","craft-chart","craft-video","craft-audio","craft-webview","craft-canvas","craft-image-viewer","craft-pdf-viewer","craft-code-editor","craft-rich-editor"].includes(t)}function J(t){let e=t.tag?.toLowerCase(),n=t.props?.type,r={button:{component:"craft-button",confidence:0.95,reason:"Native button provides better touch feedback"},"input:text":{component:"craft-text-input",confidence:0.9,reason:"Native text input has better keyboard handling"},"input:checkbox":{component:"craft-checkbox",confidence:0.95,reason:"Native checkbox follows platform conventions"},"input:range":{component:"craft-slider",confidence:0.9,reason:"Native slider provides smooth interaction"},"input:date":{component:"craft-date-picker",confidence:0.95,reason:"Native date picker provides platform-specific UI"},"input:time":{component:"craft-time-picker",confidence:0.95,reason:"Native time picker provides platform-specific UI"},"input:color":{component:"craft-color-picker",confidence:0.9,reason:"Native color picker provides platform-specific UI"},textarea:{component:"craft-textarea",confidence:0.85,reason:"Native textarea handles multiline input better"},select:{component:"craft-select",confidence:0.9,reason:"Native select provides platform dropdown UI"},progress:{component:"craft-progress",confidence:0.95,reason:"Native progress bar matches platform style"},video:{component:"craft-video",confidence:0.95,reason:"Native video provides hardware acceleration"},audio:{component:"craft-audio",confidence:0.95,reason:"Native audio provides system integration"},dialog:{component:"craft-modal",confidence:0.9,reason:"Native modal provides proper layering and focus"}},a=n?`${e}:${n}`:e,i=r[a||""]||r[e||""];if(i)return{htmlSelector:a||e||"",nativeComponent:i.component,confidence:i.confidence,reason:i.reason};return null}function U(){m.clear()}function q(){d.clear()}function B(){U(),q()}function G(){return{templateCacheSize:m.size,renderCacheSize:d.size,totalEntries:m.size+d.size}}export{eu as CRAFT_BRIDGE_SCRIPT,lo as CRAFT_COMPONENTS,ua as CRAFT_COMPONENT_RUNTIME,qr as CRAFT_COMPONENT_STYLES,uo as NATIVE_COMPONENTS,pa as buildNative,B as clearAllCaches,q as clearRenderCache,U as clearTemplateCache,R as compileTemplate,ha as compileToNative,ya as createHotReloadServer,fa as findCraftBinary,ca as generateCraftBridgeScript,V as generateCraftOptimizations,ma as getAvailableFormats,ga as getAvailableTargets,Xm as getCraftComponents,G as getSSRCacheStats,la as injectCraftBridge,qm as isCraftEnvironment,Y as prerenderForCraft,da as processCraftComponents,Km as processCraftDirective,Gm as registerCraftComponent,Q as renderSSR};
|
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-
|
|
2
|
+
import{Ws,Ft,ll,dg}from"./chunk-8mkxge3a.js";import{Us,xi,cg,lg,ug}from"./chunk-h7y2pmd9.js";import{il,al,cl,ig,ag}from"./chunk-67z3kesf.js";import{Ve,Cn,Si}from"./chunk-vfe8xj8g.js";import{pg,fg,gg,mg,qs,zh}from"./chunk-5bkha4ej.js";import B from"fs";import w from"path";import O from"fs";import u from"path";var v=[72,96,128,144,152,192,384,512],S=[120,152,167,180],P=[16,32];async function M(n,t){let e={success:!0,generatedFiles:[],errors:[],warnings:[]},r=n.pwa?.icons;if(!r?.src)return e.errors.push("No source icon specified in pwa.icons.src"),e.success=!1,e;let o=u.isAbsolute(r.src)?r.src:u.resolve(process.cwd(),r.src);if(!await Bun.file(o).exists())return e.errors.push(`Source icon not found: ${o}`),e.success=!1,e;let a=u.resolve(t,r.outputDir||"pwa-icons");try{O.mkdirSync(a,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${a}`),e.success=!1,e}let s=r.sizes||v,l=r.generateWebP??!0,p=r.generateAppleIcons??!0;try{let c;try{c=await import("sharp")}catch{return e.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-40kmkhkb.js"),o=await Bun.file(e).text();return await r(o,{},e,n,new Set)}catch(r){console.warn(`[PWA] Failed to process custom offline page: ${r}`)}else console.warn(`[PWA] Custom offline page not found: ${e}`)}return E(n)}function E(n){let t=n.pwa?.offline,e=n.pwa?.manifest,r=t?.fallbackTitle||"You are offline",o=t?.fallbackMessage||"Please check your internet connection and try again.",a=e?.themeColor||"#4f46e5",s=e?.shortName||e?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
|
@@ -233,4 +233,4 @@ Icon generation requires the sharp package for image processing.`),e.success=!1,
|
|
|
233
233
|
}, 5000);
|
|
234
234
|
</script>
|
|
235
235
|
</body>
|
|
236
|
-
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=Ve(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=
|
|
236
|
+
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=Ve(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=Ws(n,t);if(a){let s=Ft(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return xi(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,al as auditBuildOutput,il as auditConfig,re as buildPwaAssets,cl as calculateAuditResult,ag as formatAuditResult,Si as formatSize,j as generateManifest,_ as generateManifestJson,lg as generateManifestLink,F as generateOfflinePage,Ve as generatePrecacheManifest,Cn as generatePrecacheManifestJs,M as generatePwaIcons,Us as generatePwaTags,Ws as generateServiceWorker,dg as generateServiceWorkerAuto,cg as generateSwRegistrationScript,ug as generateThemeColorMeta,N as getExpectedIconPaths,Ft as getServiceWorkerFileName,xi as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,ll as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,qs as pwaDirectives,pg as pwaInstallDirective,gg as pwaOfflineDirective,mg as pwaPushDirective,fg as pwaUpdateDirective,zh as registerPwaDirectives,ig as runPwaAudit,D as validateManifest};
|
package/dist/ssg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
`)}function J(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let r=s(t),{depths:n}=ge(r),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,c;while((c=o.exec(r))!==null){if(n[c.index]!==0)continue;let u=b(r,"(",")",o.lastIndex-1),g=r.indexOf("{",u+1),v=b(r,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(c.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((c=e.exec(r))!==null){if(n[c.index]!==0)continue;let u=
|
|
2
|
+
import"./chunk-19safa6y.js";import{b,Uc}from"./chunk-5hrm7rtx.js";import"./chunk-kyk4ekng.js";import"./chunk-89h4snzd.js";import{Tt,S}from"./chunk-tct6rn6f.js";import"./chunk-r6s35xw9.js";import"./chunk-aeqm0vdq.js";import"./chunk-qeh8f4bk.js";import{xt,St,kt,_t,Ct,Et}from"./chunk-mdsrnd6s.js";import{a}from"./chunk-1j2tt4fw.js";import{ys}from"./chunk-c0v9ng82.js";import"./chunk-snfmgp7a.js";import"./chunk-cq032t09.js";import{Te,Zt,Qt}from"./chunk-sw65q2dx.js";import"./chunk-wrzmt43b.js";import{y}from"./chunk-0jdrw4rr.js";import{mt,i}from"./chunk-391ha6yg.js";import"./chunk-10bge0j5.js";import"./chunk-pnpabjzz.js";import{ss}from"./chunk-6pjmnvph.js";import"./chunk-k0vqjagg.js";import"./chunk-02c0zcaw.js";import{Fa,za,Ha}from"./chunk-0p6fpsw5.js";import{Jt,Xn,Jn}from"./chunk-tn40nh9e.js";import{Yt}from"./chunk-1qmeh6ba.js";import"./chunk-yx4p2mb7.js";import"./chunk-tary163t.js";import{G,be}from"./chunk-dtgwjaxf.js";import"./chunk-5s8bt976.js";import"./chunk-t29h7kb3.js";import{l}from"./chunk-myr79xxf.js";import{s,ge}from"./chunk-dg1h0d9r.js";import D from"fs";import f from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function It(t){return Bun.hash(t).toString(16)}function ot(t,r={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let n=new Map,o=t.replace(Rt,(e,u,g,v)=>{let w=v.trim();if(!w)return e;if(/\bdata-stx-src=/.test(g))return e;if(r.minify)w=Dt(w);let p=It(w);if(!n.has(p))n.set(p,w);let P=r.integrity?` data-stx-integrity="sha384-${$t("sha384").update(w).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${P}${g}></script>`}),c=Array.from(n,([e,u])=>({hash:e,code:u}));return{html:o,chunks:c}}var Bt=new Set(["visible","idle"]);function ct(t){if(!t.includes("data-stx-src="))return t;let r=new Map,n=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=n.exec(t))!==null)r.set(o[1],o[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(Bt.has(r.get(u[1])||""))c.add(u[2]);let g=/<\/head\s*>/iy,v=S(t,(p,P)=>(g.lastIndex=P,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(c.size===0||v===-1)return t;let w=Array.from(c).filter((p)=>!t.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!w)return t;return t.slice(0,v)+w+t.slice(v)}var jt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function X(t){let r=t.trim();if(!r)return null;let n=/^https?:\/\//i.test(r)?r:`https://${r}`;try{return new URL(n).origin+new URL(n).pathname.replace(/\/$/,"")}catch{return null}}function Ft(t){for(let r of jt){let n=t[r];if(!n)continue;let o=X(n);if(o)return{url:o,source:"env",via:r}}return null}function lt(t){if(!t||typeof t!=="object")return null;let r=t,n=r.site?.url??r.url??r.app?.url;return typeof n==="string"?X(n):null}async function At(t){let{existsSync:r}=await import("fs"),n=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=n.resolve(t,o);if(!r(c))continue;try{let e=await import(c),u=lt(e.default??e);if(u)return u}catch{}}return null}async function ut(t={}){let r=t.cwd??process.cwd(),n=t.env??process.env;if(t.explicit){let u=X(t.explicit);if(u)return{url:u,source:"option"}}let o=lt(t.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let c=await At(r);if(c)return{url:c,source:"site.config",via:"url"};let e=Ft(n);if(e)return e;return{url:"http://localhost",source:"fallback"}}function dt(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
|
+
`)}function J(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let r=s(t),{depths:n}=ge(r),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,c;while((c=o.exec(r))!==null){if(n[c.index]!==0)continue;let u=b(r,"(",")",o.lastIndex-1),g=r.indexOf("{",u+1),v=b(r,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(c.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((c=e.exec(r))!==null){if(n[c.index]!==0)continue;let u=Uc(r,e.lastIndex).endPos;return t.slice(e.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function gt(t){let r="read";try{let n=await Bun.file(t).text();r="parse";let o=Yt(n),c=[...o.server,...o.client,...o.signals].filter((e)=>/(?:^|\s)server(?:\s|=|$)/i.test(s(e.attrs))).sort((e,u)=>n.indexOf(e.fullTag)-n.indexOf(u.fullTag));for(let e of c){if(!/\bgetStaticPaths\b/.test(s(e.content)))continue;let u=(Ot??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(e.content);if(!/\bgetStaticPaths\b/.test(s(u)))continue;let g=Lt(u);if(/\bdefineStaticPaths\b/.test(s(g))&&Tt(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");r="execute";let v=Function("defineStaticPaths",`return (${g})`)(J);if(typeof v!=="function")throw TypeError("getStaticPaths must be a function");let w=await v();r="result";let p=Array.isArray(w)?{paths:w}:w;if(!p||typeof p!=="object"||!("paths"in p)||!Array.isArray(p.paths))throw TypeError("getStaticPaths must return { paths: [...] } or an array of paths");for(let P of p.paths)if(!P||typeof P!=="object"||!P.params||typeof P.params!=="object"||Array.isArray(P.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:p}}return{kind:"absent"}}catch(n){return{kind:"error",phase:r,error:n instanceof Error?n:Error(String(n))}}}class pt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,r=""){this.cacheDir=t,this.salt=r}async load(){if(this.loaded)return;let t=f.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let r=JSON.parse(await Bun.file(t).text());for(let[n,o]of Object.entries(r))this.cache.set(n,o)}catch{}this.loaded=!0}async save(){await D.promises.mkdir(this.cacheDir,{recursive:!0});let t=f.join(this.cacheDir,"build-cache.json"),r={};for(let[n,o]of this.cache)r[n]=o;await Bun.write(t,JSON.stringify(r))}getHash(t,r){let n=D.statSync(t),o=`${this.salt}|${t}:${n.mtimeMs}`;for(let e of r)if(D.existsSync(e)){let u=D.statSync(e);o+=`:${e}:${u.mtimeMs}`}let c=0;for(let e=0;e<o.length;e++){let u=o.charCodeAt(e);c=(c<<5)-c+u,c=c&c}return Math.abs(c).toString(36)}get(t,r){let n=this.cache.get(t);if(!n)return null;let o=ft(r).some((u)=>D.existsSync(u)),c=[r,...n.dependencies??[]].some((u)=>u.endsWith(".stx")&&D.existsSync(u)&&ss(D.readFileSync(u,"utf8")).some((g)=>/\bserver\b/.test(g.attrs)));if(o||c)return this.cache.delete(t),null;let e=this.getHash(r,n.dependencies??[]);if(n.hash!==e)return this.cache.delete(t),null;return n.html}set(t,r,n,o){let c=this.getHash(r,n);this.cache.set(t,{hash:c,html:o,generatedAt:Date.now(),dependencies:n})}}class ht{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let r=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return f.join(this.cacheDir,"isr",r)}async get(t){let r=this.getFilePath(t);if(!await Bun.file(r).exists())return null;try{return JSON.parse(await Bun.file(r).text())}catch{return null}}async set(t,r){let n=this.getFilePath(t);await D.promises.mkdir(f.dirname(n),{recursive:!0}),await Bun.write(n,JSON.stringify(r))}async invalidate(t){let r=this.getFilePath(t);if(await Bun.file(r).exists())await D.promises.unlink(r)}async invalidatePattern(t){let r=f.join(this.cacheDir,"isr");if(!D.existsSync(r))return;let n=await D.promises.readdir(r);for(let o of n){let c=o.replace(/_/g,"/").replace(".json","");if(t.test(c))await D.promises.unlink(f.join(r,o))}}async needsRevalidation(t){let r=await this.get(t);if(!r)return!0;return Date.now()>r.revalidateAfter}}async function Ut(t){let r=[];if(!t.isDynamic)r.push({url:t.pattern,params:{}});else{let n=await gt(t.filePath);if(n.kind==="error")throw Error(`getStaticPaths ${n.phase} failed for ${t.pattern} (${t.filePath}): ${n.error.message}`,{cause:n.error});if(n.kind==="absent")return console.warn(`Warning: Dynamic route ${t.pattern} (${t.filePath}) has no getStaticPaths`),r;let o=n.value;if(o.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${t.pattern} (${t.filePath})`),r;for(let c of o.paths){let e=t.pattern;for(let[u,g]of Object.entries(c.params))e=e.replace(`:${u}`,g).replace(`:${u}*`,g);r.push({url:e,params:c.params,props:c.props,revalidate:c.revalidate})}}return r}function ft(t){return[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"]}async function Mt(t){for(let r of ft(t))if(await Bun.file(r).exists())try{let n=await import(r);if(typeof n.default==="function")return await n.default();else if(typeof n.default==="object")return n.default;else if(typeof n.getData==="function")return await n.getData();else{let{default:o,...c}=n;return c}}catch(n){console.error(`Error loading data file ${r}:`,n)}return null}async function Gt(t,r,n){let o=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!o)return null;let c=o[1];if(!c.includes("getStaticProps"))return null;try{let e=c.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
|
|
4
4
|
return (async function getStaticProps() {
|
|
5
5
|
${e[1]}
|
|
6
6
|
})()
|
|
@@ -37,7 +37,7 @@ ${t.map((o)=>{let c=new URL(o.loc,r).href,e=` <url>
|
|
|
37
37
|
${n.join(`
|
|
38
38
|
`)}
|
|
39
39
|
</channel>
|
|
40
|
-
</rss>`}async function Kt(t={}){let r=Date.now();
|
|
40
|
+
</rss>`}async function Kt(t={}){let r=Date.now();Qt();let n=await a(process.cwd()),o=n.build||{},c=await ut({explicit:t.domain||o.domain,stxConfig:n});if(c.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??n?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||n?.partialsDir||"",componentsDir:t.componentsDir||n?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,w={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-hzcgq05k.js");try{E=m(await d(process.cwd()))}catch{}}let{prepareImageDelivery:x}=await import("./chunk-cgb6729y.js"),R=await x(e.publicDir,e.outputDir);if(R.count>0)console.log(`Optimized ${R.count} image(s) for responsive delivery`),E=[E,R.fingerprint].filter(Boolean).join(":");let T=new pt(e.cacheDir,E);if(e.cache)await T.load();try{let{generateCss:d}=await import("./chunk-hzcgq05k.js");await d('<div class="bg-black"></div>')}catch{}xt();let yt=n?.routeMiddleware?.dir||"middleware";await kt(process.cwd(),yt);let V=St();if(V.length>0)console.log(`Loaded ${V.length} middleware: ${V.join(", ")}`);let bt=n?.routeMiddleware?.global||[];Ha(n?.layoutsDir,l(process.cwd()));let Z=G(".",{pagesDir:e.pagesDir,pagesDirs:n?._layerPageDirs});console.log(`Found ${Z.length} routes`);let M=[];for(let d of Z)try{let m=await Ut(d);for(let k of m)M.push({route:d,url:k.url,params:k.params,props:k.props,revalidate:k.revalidate??e.revalidate})}catch(m){let k=m instanceof Error?m:Error(String(m));u.failedCount++,u.errors.push({route:d.pattern,error:k}),await e.hooks.onError?.(k,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,k)}u.totalPages=M.length+u.failedCount,console.log(`Generating ${M.length} pages...`);let _=[],Q=[];for(let d=0;d<M.length;d+=e.concurrency)Q.push(M.slice(d,d+e.concurrency));for(let d of Q)await Promise.all(d.map(async(m)=>{let{route:k,url:h,params:N,props:vt,revalidate:rt}=m;try{await e.hooks.onPageStart?.(h);let A=await Bun.file(k.filePath).text(),O=ee(A),Pt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],nt=[...bt,...Pt];if(nt.length>0){let B=_t(h,N,O||{}),L=Ct(B,null,void 0,{isServer:!0}),j=await Et(nt,L);if(j.redirect){let C=typeof j.redirect==="string"?j.redirect:j.redirect.path||j.redirect,z=re(String(C),h),U=ne(h,e);await D.promises.mkdir(f.dirname(U),{recursive:!0}),await Bun.write(U,z),u.successCount++,u.pages.push({route:h,outputPath:U,size:Buffer.byteLength(z),cached:!1}),_.push({loc:h,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${h} \u2192 redirect to ${C}`);return}if(j.abort){let C=typeof j.abort==="string"?j.abort:j.abort?.error?.message||"aborted";console.warn(` \u21B3 ${h} \u2014 middleware aborted: ${C}`);return}}let it=A.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(it)try{if(!await Function("route",`
|
|
41
41
|
const validate = ${it[1]};
|
|
42
42
|
return validate(route);
|
|
43
43
|
`)({params:N})){console.warn(`Validation failed for ${h}, skipping...`);return}}catch{}let I=null,st=!1;if(e.cache){if(I=T.get(h,k.filePath),I)st=!0,u.cachedCount++}if(!I){let B=await wt(k,N,vt,e,n);if(I=B.html,e.failOnIncludeError&&B.includeFailures.length>0)throw Error(`${B.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -46,7 +46,7 @@ ${n.join(`
|
|
|
46
46
|
Set ssg.failOnIncludeError to false to build anyway.`);if(e.failOnServerScriptError&&B.serverScriptFailures.length>0)throw Error(`${B.serverScriptFailures.length} <script server> block(s) failed, so this page would have shipped with the content they produce missing:
|
|
47
47
|
${B.serverScriptFailures.join(`
|
|
48
48
|
`)}
|
|
49
|
-
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)T.set(h,k.filePath,B.dependencies,I)}let H;if(e.trailingSlash)H=f.join(e.outputDir,h,"index.html");else H=h==="/"?f.join(e.outputDir,"index.html"):f.join(e.outputDir,`${h}.html`);if(e.chunkIslands){let{html:B,chunks:L}=ot(I,{integrity:e.integrityIslands,minify:e.minify});if(L.length>0){let j=f.join(e.outputDir,"_stx","islands");await D.promises.mkdir(j,{recursive:!0});for(let C of L){let z=f.join(j,`${C.hash}.js`);if(!await Bun.file(z).exists())await Bun.write(z,C.code);if(!g.has(C.hash)){g.add(C.hash);let U=Buffer.byteLength(C.code,"utf8");v+=U,w[C.hash]={bytes:U,file:`/_stx/islands/${C.hash}.js`}}}if(p[h]=L.map((C)=>C.hash),I=B,e.prefetchIslands)I=ct(I)}}if(await D.promises.mkdir(f.dirname(H),{recursive:!0}),await Bun.write(H,I),!Wt(h,I,O,e.sitemapExclude))_.push({loc:h,lastmod:new Date().toISOString().split("T")[0],priority:h==="/"?1:0.8});let at={route:h,outputPath:H,size:Buffer.byteLength(I,"utf8"),cached:st};if(rt!==!1)at.revalidateAt=Date.now()+rt*1000;u.pages.push(at),u.successCount++,await e.hooks.onPageEnd?.(h,I)}catch(A){u.failedCount++,u.errors.push({route:h,error:A}),await e.hooks.onError?.(A,h),console.error(`Error generating ${h}:`,A)}}));let tt=
|
|
49
|
+
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)T.set(h,k.filePath,B.dependencies,I)}let H;if(e.trailingSlash)H=f.join(e.outputDir,h,"index.html");else H=h==="/"?f.join(e.outputDir,"index.html"):f.join(e.outputDir,`${h}.html`);if(e.chunkIslands){let{html:B,chunks:L}=ot(I,{integrity:e.integrityIslands,minify:e.minify});if(L.length>0){let j=f.join(e.outputDir,"_stx","islands");await D.promises.mkdir(j,{recursive:!0});for(let C of L){let z=f.join(j,`${C.hash}.js`);if(!await Bun.file(z).exists())await Bun.write(z,C.code);if(!g.has(C.hash)){g.add(C.hash);let U=Buffer.byteLength(C.code,"utf8");v+=U,w[C.hash]={bytes:U,file:`/_stx/islands/${C.hash}.js`}}}if(p[h]=L.map((C)=>C.hash),I=B,e.prefetchIslands)I=ct(I)}}if(await D.promises.mkdir(f.dirname(H),{recursive:!0}),await Bun.write(H,I),!Wt(h,I,O,e.sitemapExclude))_.push({loc:h,lastmod:new Date().toISOString().split("T")[0],priority:h==="/"?1:0.8});let at={route:h,outputPath:H,size:Buffer.byteLength(I,"utf8"),cached:st};if(rt!==!1)at.revalidateAt=Date.now()+rt*1000;u.pages.push(at),u.successCount++,await e.hooks.onPageEnd?.(h,I)}catch(A){u.failedCount++,u.errors.push({route:h,error:A}),await e.hooks.onError?.(A,h),console.error(`Error generating ${h}:`,A)}}));let tt=Zt();if(tt.length>0){let d=tt.map((m)=>`${m.filePath}: ${m.message}`).join(`
|
|
50
50
|
`);throw Error(`Client script bundling failed:
|
|
51
51
|
${d}`)}if(e.cache)await T.save();if(e.generate404){let d=f.join(e.pagesDir,"404.stx");if(await Bun.file(d).exists()){let m=new Set,k={...n,minifyClient:!0,debug:!1,cache:!1},h=await i(await Bun.file(d).text(),{},d,k,m);await Bun.write(f.join(e.outputDir,"404.html"),h)}else await Bun.write(f.join(e.outputDir,"404.html"),`<!DOCTYPE html>
|
|
52
52
|
<html lang="en">
|
|
@@ -69,7 +69,7 @@ ${d}`)}if(e.cache)await T.save();if(e.generate404){let d=f.join(e.pagesDir,"404.
|
|
|
69
69
|
<a href="/">Go home</a>
|
|
70
70
|
</div>
|
|
71
71
|
</body>
|
|
72
|
-
</html>`)}for(let d of[500]){let m=f.join(e.pagesDir,`${d}.stx`);if(await Bun.file(m).exists()){let k=new Set,h={...n,minifyClient:!0,debug:!1,cache:!1},N=await i(await Bun.file(m).text(),{},m,h,k);await Bun.write(f.join(e.outputDir,`${d}.html`),N)}}let K=f.join(e.pagesDir,"error.stx");if(await Bun.file(K).exists()){let d=new Set,m={...n,minifyClient:!0,debug:!1,cache:!1},k=await i(await Bun.file(K).text(),{},K,m,d);await Bun.write(f.join(e.outputDir,"error.html"),k)}if(e.sitemap&&_.length>0){let d=qt(_,e.domain),m=f.join(e.outputDir,"sitemap.xml");await Bun.write(m,d),u.sitemapPath=m,console.log(`Generated sitemap.xml with ${_.length} URLs`)}if(e.robots!==!1){let d=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((h)=>typeof h==="string"),...d.disallow||[]],k=
|
|
72
|
+
</html>`)}for(let d of[500]){let m=f.join(e.pagesDir,`${d}.stx`);if(await Bun.file(m).exists()){let k=new Set,h={...n,minifyClient:!0,debug:!1,cache:!1},N=await i(await Bun.file(m).text(),{},m,h,k);await Bun.write(f.join(e.outputDir,`${d}.html`),N)}}let K=f.join(e.pagesDir,"error.stx");if(await Bun.file(K).exists()){let d=new Set,m={...n,minifyClient:!0,debug:!1,cache:!1},k=await i(await Bun.file(K).text(),{},K,m,d);await Bun.write(f.join(e.outputDir,"error.html"),k)}if(e.sitemap&&_.length>0){let d=qt(_,e.domain),m=f.join(e.outputDir,"sitemap.xml");await Bun.write(m,d),u.sitemapPath=m,console.log(`Generated sitemap.xml with ${_.length} URLs`)}if(e.robots!==!1){let d=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((h)=>typeof h==="string"),...d.disallow||[]],k=ys({rules:[{userAgent:d.userAgent||"*",allow:d.allow||["/"],...m.length>0?{disallow:m}:{}}],...d.sitemap!==!1&&u.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(f.join(e.outputDir,"robots.txt"),k),console.log("Generated robots.txt")}if(e.rss){let d=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(d.getItems)m=await d.getItems();let k=Vt(d,m),h=f.join(e.outputDir,"rss.xml");await Bun.write(h,k),u.rssPath=h,console.log(`Generated rss.xml with ${m.length} items`)}let W=Fa(e.outputDir);if(W.assets>0)console.log(`Externalized ${W.assets} asset(s) from ${W.pages} page(s) (${(W.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let q=za(e.outputDir);if(q.assets>0)console.log(`Externalized ${q.assets} repeated asset(s) from ${q.pages} page(s) (${(q.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&D.existsSync(e.publicDir))await Y(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let et=Jn();if(et)await Y(et,f.join(e.outputDir,Xn)),console.log(`Copied assets from ${Jt}`)}catch(E){throw await e.hooks.onError?.(E),E}if(u.buildTime=Date.now()-r,g.size>0){u.islandChunks={count:g.size,totalBytes:v};let E={generatedChunks:g.size,totalBytes:v,chunks:w,pages:p};await Bun.write(f.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(E,null,2))}await e.hooks.onBuildEnd?.(u);let P=u.islandChunks?`
|
|
73
73
|
Island chunks: ${u.islandChunks.count} (${(u.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
74
74
|
Build complete!
|
|
75
75
|
Total: ${u.totalPages} pages
|
|
@@ -77,7 +77,7 @@ Build complete!
|
|
|
77
77
|
Cached: ${u.cachedCount}
|
|
78
78
|
Failed: ${u.failedCount}
|
|
79
79
|
Time: ${u.buildTime}ms${P}
|
|
80
|
-
`),u}async function Y(t,r){await D.promises.mkdir(r,{recursive:!0});let n=await D.promises.readdir(t,{withFileTypes:!0});for(let o of n){let c=f.join(t,o.name),e=f.join(r,o.name);if(o.isDirectory())await D.promises.mkdir(e,{recursive:!0}),await Y(c,e);else await D.promises.copyFile(c,e)}}function
|
|
80
|
+
`),u}async function Y(t,r){await D.promises.mkdir(r,{recursive:!0});let n=await D.promises.readdir(t,{withFileTypes:!0});for(let o of n){let c=f.join(t,o.name),e=f.join(r,o.name);if(o.isDirectory())await D.promises.mkdir(e,{recursive:!0}),await Y(c,e);else await D.promises.copyFile(c,e)}}function Xt(t={}){let r=t.cacheDir||l(process.cwd(),"ssg-cache"),n=new ht(r),o=t.revalidate||3600;return{async get(c){let e=await n.get(c);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(c).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${o}, stale-while-revalidate=${o*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(c){let u=G(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>c.match(P.regex)!==null);if(!u){console.warn(`Route not found for revalidation: ${c}`);return}let g=c.match(u.regex),v={};if(g)u.params.forEach((P,E)=>{v[P]=g[E+1]});let w=await a(),{html:p}=await wt(u,v,{},t,w);await n.set(c,{html:p,generatedAt:Date.now(),revalidateAfter:Date.now()+o*1000,etag:zt(p)}),console.log(`Revalidated: ${c}`)},async invalidate(c){if(typeof c==="string")await n.invalidate(c);else await n.invalidatePattern(c)}}}function te(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let r=await Bun.file(t).text(),n=r.match(/^---\n([\s\S]*?)\n---/),o={},c=r;if(n){let w=n[1];c=r.slice(n[0].length).trim();for(let p of w.split(`
|
|
81
81
|
`)){let P=p.indexOf(":");if(P>0){let E=p.slice(0,P).trim(),x=p.slice(P+1).trim();if(x==="true")x=!0;else if(x==="false")x=!1;else if(/^\d+$/.test(x))x=parseInt(x,10);else if(/^\d+\.\d+$/.test(x))x=parseFloat(x);else if(x.startsWith("[")&&x.endsWith("]"))x=x.slice(1,-1).split(",").map((R)=>R.trim().replace(/^['"]|['"]$/g,""));o[E]=x}}}let e=c.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/`([^`]+)`/gim,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/gim,'<a href="$2">$1</a>').replace(/\n/gim,"<br>"),u=[],g=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,v;while((v=g.exec(e))!==null){let w=parseInt(v[1],10),p=v[2],P=p.toLowerCase().replace(/[^a-z0-9]+/g,"-");u.push({id:P,text:p,level:w})}return{content:e,data:o,toc:u}}}}function ee(t){return mt(t)}function re(t,r){return`<!DOCTYPE html>
|
|
82
82
|
<html>
|
|
83
83
|
<head>
|
|
@@ -90,4 +90,4 @@ Build complete!
|
|
|
90
90
|
<p>Redirecting to <a href="${t}">${t}</a>...</p>
|
|
91
91
|
<script>window.location.replace('${t}')</script>
|
|
92
92
|
</body>
|
|
93
|
-
</html>`}function ne(t,r){if(t==="/"||t==="")return f.join(r.outputDir,"index.html");let n=t.replace(/^\/|\/$/g,"");if(r.trailingSlash)return f.join(r.outputDir,n,"index.html");return f.join(r.outputDir,`${n}.html`)}var Oe={generateStaticSite:Kt,createISRHandler:
|
|
93
|
+
</html>`}function ne(t,r){if(t==="/"||t==="")return f.join(r.outputDir,"index.html");let n=t.replace(/^\/|\/$/g,"");if(r.trailingSlash)return f.join(r.outputDir,n,"index.html");return f.join(r.outputDir,`${n}.html`)}var Oe={generateStaticSite:Kt,createISRHandler:Xt,defineStaticPaths:J,createMarkdownLoader:te};export{Xt as createISRHandler,te as createMarkdownLoader,Nt as declaresPageAction,Oe as default,J as defineStaticPaths,Kt as generateStaticSite,Wt as isExcludedFromSitemap};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.751",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/ts-css": "^0.3.11",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.751",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.751",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.751",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.751",
|
|
137
137
|
"ts-broadcasting": "^0.0.11",
|
|
138
138
|
"ts-images": "^0.2.22",
|
|
139
139
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-068t9bkm.js
DELETED
package/dist/chunk-07d8nssg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gt,Bn,Mm}from"./chunk-j6m7jwpv.js";import{le,Fn,Lm,zn,io,Hr,Vr,jm,Bm,Fm,Hn,Vn,ao,Ur,zm}from"./chunk-j3cbj356.js";import"./chunk-27agaezn.js";export{io as batch,Mm as default,Fn as derived,zn as effect,gt as generateSignalsRuntime,Bn as generateSignalsRuntimeDev,Vn as isDerived,Hn as isSignal,Lm as memo,Vr as onDestroy,Hr as onMount,Ur as peek,Fm as pendingLifecycleCounts,Bm as runDestroyCallbacks,jm as runMountCallbacks,le as state,ao as untrack,zm as useOptimistic};
|
package/dist/chunk-24kagfwc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{j,Sf,Mo,a,P,ph,fh}from"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{P as config,j as defaultConfig,ph as defineStxConfig,Mo as discoverConfig,a as loadStxConfig,Sf as resolveStxDirectories,fh as validateConfig};
|
package/dist/chunk-3538p4ct.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yr,nr,mf}from"./chunk-zx5vg2pn.js";import"./chunk-bj0z4gve.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import{Rt}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{mf as declareBareLoopHead,Rt as parseLoopBinding,nr as processLoops,Yr as reportDeferredLoopWarnings};
|
package/dist/chunk-3nbvr34s.js
DELETED
package/dist/chunk-4rcfm5dk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{oo,Nm,Dm}from"./chunk-djjjc178.js";import"./chunk-yvh0d5xa.js";import"./chunk-j9zp3hne.js";import"./chunk-1xjv71dw.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Dm as clearComposableCache,Nm as getComposableScript,oo as listComposableModules};
|
package/dist/chunk-4rqx6k5p.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zn,i}from"./chunk-as9wg93m.js";import"./chunk-7dhpecgc.js";import"./chunk-91pycazt.js";import"./chunk-zx5vg2pn.js";import"./chunk-egbt0bms.js";import"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-vcfrpxj2.js";import{be}from"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-9vhv2hx9.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import{Ie,Ps,Is}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Zn as buildModulesTag,be as injectRouterScript,i as processDirectives,Ps as processJsonDirective,Is as processOnceDirective,Ie as validateClientScript};
|
package/dist/chunk-4yz476ss.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zl,uo,Un,Ql,eu,tu,nu,ru,su,ou,iu,au,cu,lu,uu,du,pu,fu,gu,mu,hu,yu,bu,vu,wu,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Du,Mu,Lu,ju,Bu,Fu,zu,Hu,Vu,Gt,ha,Uu,Wu,qu,ya,Ku,Gu,Xu,Ju,Yu,Zu,ba,Qu,ed,td,nd,rd,sd,od,id,ad,Wn,cd,ld,ud,dd,pd,fd,gd,md,hd,yd,bd,vd,po,wd,xd,Sd,kd,_d,qr,Cd,Ed,Td,$d,Rd,va,Ad,Pd,Id,wa,fo,Od,Nd,xa,Sa,ka,_a,Dd,Kr,Md,Ca,Ea,Ld,jd,go,Bd,Fd,zd,Hd,Vd,Ud,Wd,Ta,qd,Kd,$a,Gd,Xd,Jd,Yd,Zd,Qd,ep,tp,np,rp,sp,op,ip,ap,cp,lp,up,dp,pp,fp,gp,mp,hp,yp,Ra,bp,vp,wp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,qn,Aa,Pa,Rp,Kn,Ap,Pp,Ip,Ia,Oa,Gr,Xr,Op,mo,Np,Dp,Mp,Lp,jp,Bp,Fp,zp,Hp,Vp,Up,Wp,qp,Kp,Gp,Xp,Jp,Yp,Zp,Qp,Na,ef,tf}from"./chunk-amsbfc3y.js";export{Hu as AVAILABLE_COMPONENTS,va as AutoUpdater,Vu as COMPONENT_STYLES,Gr as DEFAULT_WATCH_INTERVAL_MS,Oa as MAX_WATCH_INTERVAL_MS,Ia as MIN_WATCH_INTERVAL_MS,Zu as MODAL_STYLES,au as TOAST_STYLES,od as TRAY_MENU_STYLES,xa as UPDATE_MANIFEST_ASSET,Gu as alert,gp as appInfo,Bp as appleScript,jp as audio,tf as backgroundDelay,up as battery,Lp as biometric,Tp as bluetooth,Up as bonjour,Kr as bundlePathForExecutable,jd as caffeinate,Ad as canReplaceBundle,Pd as clearQuarantine,tp as clipboard,Yu as closeAllModals,vd as closeAllWindows,Ku as confirm,yp as contextMenu,Jp as continuityCamera,Xp as coreml,$d as craftBinaryNotFoundMessage,po as craftWindowArguments,qn as crashReporter,Au as createAccordion,ku as createAutocomplete,gu as createAvatar,fu as createBadge,cu as createButton,mu as createCard,Lu as createChart,uu as createCheckbox,Eu as createChip,ju as createCodeEditor,wu as createColorPicker,Mu as createDataGrid,xu as createDatePicker,yu as createDropdown,Fu as createFileExplorer,Dd as createGitHubUpdateManifest,_a as createGitHubUpdater,Cu as createImageView,Yd as createInterval,_u as createLabel,Ou as createListView,Bu as createMediaPlayer,Qu as createMenubar,Iu as createModalComponent,Vd as createPreferences,pu as createProgressBar,vu as createRadioButton,bu as createRating,$u as createScrollView,Ld as createSelfUpdater,du as createSlider,Ru as createSplitView,Pu as createStepper,ba as createSystemTray,Nu as createTable,hu as createTabs,lu as createTextInput,Su as createTimePicker,Jd as createTimer,Tu as createTooltip,Du as createTreeView,zu as createWebView,wd as createWindow,Sd as createWindowWithHTML,go as decaffeinate,lp as deepLinks,Zd as delay,su as dismissAlertById,ou as dismissAllAlerts,ap as dragOut,Id as extractBundle,Fp as fileAssociations,mo as focus,Dp as focusShortcutsReady,ep as formatCompact,Hd as formatDuration,zd as formatRemainingTime,qd as formatShortcut,Qd as formatTime,rp as fs,wa as generateUpdateManifest,iu as getActiveAlertCount,Ju as getActiveModalCount,ed as getActiveTrayInstances,yd as getActiveWindowIds,Fd as getCaffeinateStatus,Qp as getCapabilities,Na as getCapability,md as getDesktopConfig,fd as getDialogBridgeScript,Xd as getRegisteredHotkeys,rd as getSimulatedTrayHTML,sd as getTrayBridgeScript,td as getTrayInstance,bd as getWindow,_d as getWindowBridgeScript,Sa as githubLatestAssetUrl,ka as githubReleaseAssetUrl,op as globalShortcuts,Kn as handoff,Np as hasFocusShortcuts,Rp as iap,Wd as isAutoLaunchEnabled,ef as isAvailable,Bd as isCaffeinated,cp as isDragOutAvailable,kd as isWebviewAvailable,wp as keychain,Ap as liveActivities,Mp as localServer,Pp as location,Vp as log,Cd as macOSRuntimeExecutablePath,hp as menu,Gp as midi,kp as nativeAutoLaunch,_p as nativeTray,Cp as nativeWindow,dp as network,np as notifications,ru as notify,xd as openDevWindow,Ed as pack,Td as packageApp,Ta as parseShortcut,Hp as pdf,xp as permissions,Sp as printing,Xu as prompt,Ca as quitLauncher,fo as readBundleIdentity,Aa as redactPII,Kd as registerHotkey,Ea as relaunchBundle,Zl as requestNotificationPermission,hd as resetDesktopConfig,Rd as resolveCraftBinary,qr as resolveCraftExecutablePath,Md as runningBundleTeamId,vp as screen,Ip as screenCapture,Xr as screenSharing,Zp as serial,Yp as serviceMenu,Ud as setAutoLaunch,gd as setDesktopConfig,sp as shell,uo as showAlert,ld as showAlertDialog,cd as showColorPicker,ud as showConfirmDialog,dd as showErrorDialog,Wu as showErrorModal,nu as showErrorToast,ha as showInfoModal,Ql as showInfoToast,Wn as showMessageBox,Gt as showModal,id as showOpenDialog,ya as showQuestionModal,ad as showSaveDialog,qu as showSuccessModal,eu as showSuccessToast,Un as showToast,pd as showWarningDialog,Uu as showWarningModal,tu as showWarningToast,Ra as sidebar,Pa as signPayload,$p as speech,qp as speechRecognition,Wp as spotlight,mp as standardMenus,Od as swapBundle,bp as system,zp as tags,ip as theme,Ep as touchbar,nd as triggerTrayAction,Gd as unregisterAllHotkeys,$a as unregisterHotkey,pp as updater,Nd as verifyBundleTrust,Kp as vision,Op as watchScreenSharing,fp as windowEvents};
|
package/dist/chunk-4z7bnc9j.js
DELETED
package/dist/chunk-5d1c504j.js
DELETED
package/dist/chunk-5qzg0p2h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vf,oh,ih,ah,ch,wf,xf,lh,uh,Do,dh,ir,ar,ls}from"./chunk-9vhv2hx9.js";import{et}from"./chunk-j2mpqa4p.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{ch as __setSignalsGeneratorsForTest,et as cacheEngineFingerprint,ar as cacheTemplate,ir as checkCache,dh as clearDevCaches,xf as getCachedRouterScript,wf as getCachedSignalsRuntime,lh as getServeClientAsset,Do as getServeModuleBundle,ls as hashFilePath,ih as invalidateFileCache,ah as invalidateFileCacheByDir,oh as readFileCached,uh as registerServeModuleBundle,vf as templateCache};
|
package/dist/chunk-62b9nhv5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rg}from"./chunk-3jr1nwap.js";import"./chunk-rvevd9sh.js";import"./chunk-j6m7jwpv.js";import"./chunk-23drx7xh.js";import"./chunk-j9zp3hne.js";import"./chunk-as9wg93m.js";import"./chunk-7dhpecgc.js";import"./chunk-91pycazt.js";import"./chunk-zx5vg2pn.js";import"./chunk-egbt0bms.js";import"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-9vhv2hx9.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Rg as buildForProduction};
|
package/dist/chunk-6g3t2pwz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{we,ni,ri,zf,Ot,Ic,si,Oc,vh,De,mn,Me}from"./chunk-es4ec0nr.js";import{Bc,s}from"./chunk-q1db41k8.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{we as BROWSER_CORE_IMPORTS,zf as STX_AUTO_IMPORTS,ni as extractAndStripCssImports,De as extractBridgeData,Bc as findInterpolationEnd,Oc as generateAutoImportDestructuring,vh as generateBrowserAutoImportDestructuring,mn as generateServerDataBridge,Ot as injectBrowserCoreAutoImports,Me as processClientScript,si as referencesName,ri as renderVendorStyleTags,s as stripCommentsAndLiterals,Ic as transformAutoImports};
|
package/dist/chunk-6vajjyj8.js
DELETED
package/dist/chunk-75wdm7kd.js
DELETED
package/dist/chunk-7w7f14jq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{mi,Eh,Th,Kc,He,tg,zs,$h,Rh,Ah,Ph,Ih,Oh,Nh,Dh,Mh}from"./chunk-wpwh529h.js";export{Oh as applyHead,$h as definePageMeta,mi as getHead,Eh as getPageMeta,He as mergeHeadConfigs,Nh as processHeadDirective,Mh as processMetaDirective,Dh as processTitleDirective,Ih as renderBodyAttrs,Ah as renderHead,Ph as renderHtmlAttrs,Th as resetHead,zs as seoMetaToHeadConfig,Kc as useHead,Rh as usePageTitle,tg as useSeoMeta,Rh as useTitle};
|
package/dist/chunk-840t4gws.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xi,Si,ki,pg,fg,gg,al,mg,hg}from"./chunk-9zrbhs3p.js";export{xi as ImageProcessorCache,al as applyTransformations,pg as clearImageCache,mg as generateResponsiveVariants,hg as generateSrcset,Si as getCachedImageResult,gg as optimizeImage,fg as processImage,ki as setCachedImageResult};
|
package/dist/chunk-8bw9yd5m.js
DELETED
package/dist/chunk-8dfq934n.js
DELETED
package/dist/chunk-8t9em8md.js
DELETED
package/dist/chunk-9adx6f4k.js
DELETED
package/dist/chunk-adncj39d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{sa,Vl,Ln,Gg,Ul,Wl,ql,Xg}from"./chunk-0shj71m2.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Ln as Validator,Vl as defineForm,Ul as processErrorDirective,Wl as processErrorsDirective,Xg as processFormValidationDirectives,ql as processHasErrorsDirective,sa as useForm,Gg as v};
|
package/dist/chunk-cmm2mkr1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{dl,Ui,pl,fl,Wi,gl,ml,hl,yl,qi,bl,_g}from"./chunk-crk5dzxb.js";import{ea,_l}from"./chunk-w1sdxmx3.js";import{Q,ee,te,Pn,me,Ee,Fr,pt,qt,In,On,Nn,ne,Dn,Mn,zr}from"./chunk-w34w1hrg.js";import{Kl}from"./chunk-vyv76w55.js";import"./chunk-e43cxztn.js";export{ee as DEFAULT_FORMATS,te as DEFAULT_QUALITY,Q as DEFAULT_WIDTHS,zr as ImageProcessingError,fl as clearImageCache,Wi as createImageDirective,_l as createImageHandler,ml as createImagePlugin,_g as defaultImageConfig,Mn as formatSize,qi as generateImageManifest,qt as generateSizes,pt as generateSrcSet,In as getFallbackVariant,Fr as getImageMetadata,ne as getMimeType,Dn as getTotalSize,On as groupVariantsByFormat,ea as handleImageRequest,gl as imageDirective,me as isImageBackendAvailable,Nn as isImageFile,Pn as isSharpAvailable,yl as optimizeDirectory,hl as optimizeImage,Ui as parseImageComponent,Ee as processImage,pl as processImageComponents,dl as renderImageComponent,Kl as rewriteImagesWithSiblings,bl as writeImageManifest};
|
package/dist/chunk-dgv3016h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ua,da,pa,fa,qm}from"./chunk-rnhv0fx4.js";import"./chunk-amsbfc3y.js";import"./chunk-c10aj83y.js";import"./chunk-e43cxztn.js";import"./chunk-as9wg93m.js";import"./chunk-7dhpecgc.js";import"./chunk-91pycazt.js";import"./chunk-zx5vg2pn.js";import"./chunk-egbt0bms.js";import"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-9vhv2hx9.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{ua as buildNative,qm as default,da as findCraftBinary,fa as getAvailableFormats,pa as getAvailableTargets};
|
package/dist/chunk-fb6af3vk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bo,Fo,zo,Ho,gs,ms,gh,mh,hh,yh,hs,bh}from"./chunk-dxsdr77m.js";import"./chunk-wpwh529h.js";export{bh as generateDefaultRobotsTxt,hs as generateRobotsTxt,mh as generateSitemap,hh as generateSitemapIndex,Ho as injectSeoTags,gs as metaDirective,Bo as processMetaDirectives,zo as processSeoDirective,Fo as processStructuredData,gh as registerSeoDirectives,yh as scanForSitemapEntries,ms as structuredDataDirective};
|
package/dist/chunk-fd29vm1h.js
DELETED
package/dist/chunk-fvrcp1mr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Im,Om}from"./chunk-2x2ydz3v.js";import"./chunk-yvh0d5xa.js";import"./chunk-j9zp3hne.js";import"./chunk-1xjv71dw.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Om as clearStoreCache,Im as getStoreScript};
|
package/dist/chunk-fvwfpxbb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nf,rf,Te,sf,Fa,Yt,Zt,Gm,za,Qt,Jn,of,af,cf,ho,en,lf,tn,uf}from"./chunk-yvh0d5xa.js";import"./chunk-j9zp3hne.js";import"./chunk-1xjv71dw.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Jn as MODULE_SPECIFIER_PREFIX,nf as bundleCacheDir,rf as bundleCacheEntryLimit,tn as bundleClientScript,Zt as clearBundleFailures,Te as clientBundleDependencies,Yt as getBundleFailures,Qt as hasUserImports,en as moduleSubstitutionKey,af as normalizeRegistrySpecifiers,lf as queueClientBundleBuild,Fa as recordBundleFailure,of as registryIdForPath,za as resolveBundlerFallback,cf as rewriteRegistryImports,Gm as setBundlerFallbackMode,sf as shouldLogBundlerDiagnostics,uf as tempBuildName,ho as withModuleSubstitutes};
|
package/dist/chunk-h2y36t58.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var an=".stx",o="STX_DIR",e=null;function pc(t){e=t?.trim()||null}function pr(){return process.env[o]?.trim()||e||an}function l(t=process.cwd(),...n){let r=pr();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function fr(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==an&&!n.startsWith(`${an}/`))return t;let r=n.slice(an.length+1);return r?i.join(pr(),r):pr()}
|
|
3
|
-
export{an,pc,pr,l,fr};
|
package/dist/chunk-h61daksw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yf,ns}from"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-8f14cgm8.js";import{br}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import{nt}from"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{nt as freeIdentifiers,ns as processComponents,yf as processESImports,br as rendersAsElement};
|
package/dist/chunk-h6jba844.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ag,Pg,Ig,Og,kl,Ng,Dg,Mg,Lg,jg,Bg,Fg}from"./chunk-888xnaex.js";export{Bg as Broadcast,Fg as BroadcastServer,kl as broadcast,Lg as broadcastPresence,Mg as broadcastPrivate,jg as channel,Ag as getBroadcastServer,Og as loadChannels,Pg as startBroadcasting,Ig as stopBroadcasting,Ng as toUser,Dg as toUsers};
|
package/dist/chunk-h75rev1h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{_i,Ci,Ei,yg,Ti,$i,bg,Ri,Ai,cl,vg}from"./chunk-x0c8xq0s.js";export{_i as VideoProcessorCache,cl as analyzeVideo,yg as clearVideoCache,Ai as generateDASHManifest,Ri as generateHLSManifest,Ti as generatePoster,bg as generateSpriteSheet,$i as generateThumbnails,Ci as getCachedVideoResult,vg as processVideo,Ei as setCachedVideoResult};
|
package/dist/chunk-hrb9fmq0.js
DELETED
package/dist/chunk-jka3p99a.js
DELETED
package/dist/chunk-k38vsxt8.js
DELETED
package/dist/chunk-m7h2c8x1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ve,Ns,Jf,xh,Yf,Sh,Nt,p,V,Z,yn,xe,Zf,ai,Qf,kh,k,eg,_h,E,Ch}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{eg as applyFilters,Sh as clearCustomFilters,Zf as clientLoopScopes,Ns as defaultFilters,yn as escapeAttributeValue,p as escapeHtml,V as escapeHtmlValue,Z as escapeInterpolatedHtmlValue,E as evaluateExpression,ve as findMustacheEnd,Yf as getAllFilters,Qf as interpolateScriptAttributes,ai as interpolateScriptExpressions,kh as interpolateScriptsInTemplate,k as processExpressions,Jf as registerFilter,xh as registerFilters,Nt as replaceInterpolations,_h as resetRejectedExpressionWarnings,Ch as unescapeHtml,xe as usesSignalsInScript};
|
package/dist/chunk-n2nb5f0m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wg}from"./chunk-965x7wqa.js";import"./chunk-as9wg93m.js";import"./chunk-7dhpecgc.js";import"./chunk-91pycazt.js";import"./chunk-zx5vg2pn.js";import"./chunk-egbt0bms.js";import"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-9vhv2hx9.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{wg as startInteractive};
|
package/dist/chunk-n6carvxa.js
DELETED
package/dist/chunk-ne363j4c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{m,ti,Ac,Pc,Hf,Vf,Uf,Wf,qf,Os,Kf,Le,Y,je,Gf,wr,Xf,Nc,oi,Be,r,hn,Dc,h,fe,wh}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{fe as clearComponentCache,oi as componentClientSignalNames,ti as convertToCommonJS,h as createDetailedErrorMessage,qf as extractDirectiveNames,Ac as extractScriptFromTemplate,m as extractVariables,r as fileExists,wh as getComponentCacheStats,Vf as getPositionInfo,Y as getSharedTranspiler,Dc as getSourceLineInfo,Wf as hasDirectives,Pc as hasVariables,Xf as isHydrateTrigger,Kf as isJavaScriptScript,Be as renderComponentWithSlot,hn as resolveTemplatePath,Gf as scopeOnRootElement,Os as scopeSequenceKey,Le as shouldTranspileTypeScript,Nc as slotContentHasExpressions,je as transpileTypeScript,wr as userComponentFileExists,Uf as validateDirective,Hf as validateTemplate};
|
package/dist/chunk-p2rawhtq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{sh,rs,Ao,ss,rr,Po,Io,os,is,as,Oo,Ka,bf,yt}from"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import{z}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{sh as clearScriptScanCache,os as convertServerLoopAttributesToDirectives,Po as convertSignalDirectivesToAttributes,is as convertSignalLoopsToAttributes,rr as extractClientSignalNames,z as extractExports,Ka as findMarkupIndexOutsideScripts,ss as hasSignalsSyntax,Ao as parseLoopExpression,Io as preEvalLiteralReactiveIfs,as as processScriptSetup,Oo as processSignals,bf as rewriteStxImportSpecifiers,rs as scanScriptTags,yt as stripStxRuntimeImports};
|
package/dist/chunk-pkyakgzn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vl,Ki,Cg,wl,xl,Eg,Tg}from"./chunk-vq77bjtx.js";import"./chunk-djjjc178.js";import"./chunk-yvh0d5xa.js";import"./chunk-j9zp3hne.js";import"./chunk-1xjv71dw.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import{At,Of}from"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{vl as buildVirtualSource,At as extractScriptBlocks,Of as extractTemplateExpressions,wl as findRuntimeTypeDeclarations,xl as findStxModuleDeclarations,Tg as formatTypecheckDiagnostics,Cg as sourcePathFor,Eg as typecheckStxFiles,Ki as virtualPathFor};
|
package/dist/chunk-px7em6mh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nn,yo,bo,vo,Xm,wo}from"./chunk-j9zp3hne.js";import"./chunk-5f6x6fyp.js";import"./chunk-4s1k8k2a.js";import"./chunk-nzwcbt98.js";export{bo as buildServerApi,Xm as createServerApi,nn as discoverServerApi,yo as generateApiTypes,wo as isServerApiSource,vo as productionApiDispatcher};
|
package/dist/chunk-pzm8bc99.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ol,Nl,Dl,Ml,Ll,jl,Bl,Fl,zl,Hl,Kg}from"./chunk-md36aysy.js";export{Ol as createIslandRegistry,Kg as default,Hl as generateIslandManifest,Dl as generatePartialHydrationCSS,jl as hydrateAll,Ll as hydrateByStrategy,Ml as hydrateIsland,Bl as isHydrated,Fl as onHydrated,Nl as processPartialHydrationDirectives,zl as processStaticDirectives};
|
package/dist/chunk-r5re2zj0.js
DELETED
package/dist/chunk-rdzccdjw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xg}from"./chunk-4998rbts.js";import"./chunk-rvevd9sh.js";import"./chunk-23drx7xh.js";import"./chunk-j9zp3hne.js";import"./chunk-fd29vm1h.js";import"./chunk-mk0axhs2.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{xg as startProductionServer};
|
package/dist/chunk-rh0fe82b.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cl,Vg,El,Tl,Ug,Wg}from"./chunk-hgqpr15a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Wg as applySlots,Ug as extractSlotContent,Vg as parseSlotElement,Cl as parseSlots,Tl as processSlots,El as renderSlot};
|
package/dist/chunk-scdasnp7.js
DELETED
package/dist/chunk-sx1aer4p.js
DELETED
package/dist/chunk-sxh4enb9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jg,oa,Gl,Yg,Zg,Qg,em,tm,Xl,Jl,nm,rm,sm,om}from"./chunk-gtyvejny.js";import"./chunk-as9wg93m.js";import"./chunk-7dhpecgc.js";import"./chunk-91pycazt.js";import"./chunk-zx5vg2pn.js";import"./chunk-egbt0bms.js";import"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-vcfrpxj2.js";import"./chunk-mk0axhs2.js";import"./chunk-8f14cgm8.js";import"./chunk-9vhv2hx9.js";import"./chunk-yx63etd1.js";import"./chunk-s3cqm7x0.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-dxsdr77m.js";import"./chunk-4s1k8k2a.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Gl as SUSPENSE_RESOLVER_RUNTIME,oa as buildSuspenseResolveScript,tm as createStreamRenderer,Qg as extractStreamBoundaries,om as generateHydrationRuntime,Jl as islandDirective,rm as processSectionDirectives,Zg as processStreamDirectives,nm as registerStreamingDirectives,Yg as renderStreamingPage,Jg as streamTemplate,em as streamTemplateSimple,sm as streamToResponse,Xl as streamingSuspenseDirective};
|
package/dist/chunk-vkaa0a18.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{eh,hf,Ge,Wa,th,Zr,Qr,es}from"./chunk-egbt0bms.js";import"./chunk-e0prbqds.js";import"./chunk-fd29vm1h.js";import"./chunk-bj0z4gve.js";import"./chunk-8f14cgm8.js";import"./chunk-es4ec0nr.js";import"./chunk-ffk5p7rc.js";import"./chunk-nzwcbt98.js";import"./chunk-wpwh529h.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{th as clearOnceStore,Wa as onceStore,Ge as partialsCache,Zr as processIncludes,Qr as processStackPushDirectives,es as processStackReplacements,eh as resetUnscopedSignalWarnings,hf as topLevelElements};
|
package/dist/chunk-vnrsm0kj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Vo,Uo,wt,ue,lr,ys,ur,bs,vs,_f,Cf,Ef,dr,Tf,$f,Rf,Af,cc,lc,uc,Wo,dc,Pf,xt,St,kt,_t,Ct,Et,Qe,If}from"./chunk-4s1k8k2a.js";export{ur as Router,Rf as abortNavigation,ys as bracketPathToRegex,xt as clearMiddleware,lc as createClientCookieManager,Ct as createMiddlewareContext,_t as createRouteLocation,cc as createServerCookieManager,uc as createStorageManager,Af as defineMiddleware,Cf as defineRoute,Ef as defineRoutes,bs as findErrorPage,vs as formatRoutes,Uo as generateRouteManifest,Vo as generateRouteTypes,dc as getMiddleware,St as getMiddlewareNames,Qe as getRouterScript,If as getRouterScriptDev,Pf as hasMiddleware,wt as isFileRequestPath,kt as loadMiddlewareFromDirectory,lr as matchRoute,$f as navigateTo,ue as patternToRegex,Wo as registerMiddleware,Tf as resetRoutes,dr as route,Et as runMiddleware,_f as setAppUrl};
|