@stacksjs/stx 0.2.577 → 0.2.580
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-0047meje.js +2 -0
- package/dist/chunk-00p22wzr.js +3 -0
- package/dist/{chunk-z33z3rr4.js → chunk-0k5faspy.js} +6 -6
- package/dist/{chunk-wwhxgvr8.js → chunk-0vnngvy1.js} +4 -4
- package/dist/{chunk-7a0ewpz0.js → chunk-101ekf6y.js} +2 -2
- package/dist/{chunk-t79xnvzr.js → chunk-117xss52.js} +2 -2
- package/dist/chunk-1cat8kdj.js +2 -0
- package/dist/chunk-1dwnp35v.js +2 -0
- package/dist/{chunk-5vw8493b.js → chunk-1r1maqep.js} +3 -3
- package/dist/{chunk-zak5xare.js → chunk-1v1mew46.js} +1 -1
- package/dist/chunk-2dnr5qfk.js +2 -0
- package/dist/{chunk-1swmxkdt.js → chunk-2rx9d75e.js} +2 -2
- package/dist/chunk-2v73cjbc.js +2 -0
- package/dist/chunk-30rf7k4n.js +122 -0
- package/dist/chunk-3akgppsy.js +2 -0
- package/dist/{chunk-8efe5vpm.js → chunk-3e3dpp7w.js} +3 -3
- package/dist/{chunk-vnsby98n.js → chunk-3qrrv6af.js} +1 -1
- package/dist/{chunk-fkbthywg.js → chunk-3wy8q3aq.js} +5 -5
- package/dist/chunk-3x6p9me0.js +2 -0
- package/dist/{chunk-tybk9hw9.js → chunk-43h8q2cm.js} +9 -9
- package/dist/{chunk-pqkb1m5x.js → chunk-4rkvwm6v.js} +5 -5
- package/dist/{chunk-bks1fe5e.js → chunk-4srg0qbv.js} +1 -1
- package/dist/chunk-4t67wmcg.js +2 -0
- package/dist/chunk-51zn42jy.js +2 -0
- package/dist/chunk-5702x95v.js +2 -0
- package/dist/{chunk-4z21afpp.js → chunk-5db5sxy3.js} +2 -2
- package/dist/{chunk-r4w1cye7.js → chunk-5kh5ehfh.js} +2 -2
- package/dist/chunk-5pgbsc3a.js +2 -0
- package/dist/chunk-60c2bsh9.js +2 -0
- package/dist/{chunk-vw1rmevt.js → chunk-620szfcp.js} +3 -3
- package/dist/{chunk-6rfm6b1c.js → chunk-6w2yqtrd.js} +2 -2
- package/dist/{chunk-37d52q0d.js → chunk-6z3e1tyz.js} +1 -1
- package/dist/{chunk-nskvepjv.js → chunk-71sdgv7e.js} +5 -5
- package/dist/chunk-79v4d9qh.js +2 -0
- package/dist/{chunk-qfb34r6k.js → chunk-7hkc96de.js} +6 -6
- package/dist/chunk-7pp2vx1g.js +2 -0
- package/dist/chunk-84f9dnq5.js +2 -0
- package/dist/chunk-8tq5x4z8.js +2 -0
- package/dist/{chunk-gjp2jxrp.js → chunk-8v19753h.js} +1 -1
- package/dist/chunk-8zm6tkqb.js +2 -0
- package/dist/{chunk-1dg5qxg9.js → chunk-9jh2ake5.js} +5 -5
- package/dist/chunk-a1z36dt5.js +2 -0
- package/dist/{chunk-7hr63cp5.js → chunk-ah9xyss2.js} +2 -2
- package/dist/chunk-atsf1fe0.js +2 -0
- package/dist/{chunk-x5xwe5nr.js → chunk-ayy9mmrw.js} +7 -7
- package/dist/chunk-b8qd6h1q.js +2 -0
- package/dist/{chunk-vde4mtfr.js → chunk-be2ba3hj.js} +2 -2
- package/dist/{chunk-pxk0tpw2.js → chunk-bj29pwm0.js} +3 -3
- package/dist/{chunk-gpb22a8n.js → chunk-c0h2eqe0.js} +2 -2
- package/dist/{chunk-agk478t4.js → chunk-c0s3k64c.js} +2 -2
- package/dist/{chunk-bctjmaxg.js → chunk-c1r7zq0q.js} +41 -41
- package/dist/{chunk-32gycb72.js → chunk-cb2pyg5t.js} +2 -2
- package/dist/chunk-ccxs40xy.js +2 -0
- package/dist/{chunk-7j9m4d7x.js → chunk-cdgwkzms.js} +3 -3
- package/dist/{chunk-6c2y9h5h.js → chunk-cnknvvwm.js} +1 -1
- package/dist/chunk-cp442y7a.js +2 -0
- package/dist/chunk-d4en5d3s.js +2 -0
- package/dist/chunk-dh80d57p.js +2 -0
- package/dist/{chunk-je0cttam.js → chunk-djft0m5h.js} +2 -2
- package/dist/chunk-dpn1pmxj.js +2 -0
- package/dist/chunk-dtcc09x1.js +2 -0
- package/dist/{chunk-sf7z2ar9.js → chunk-dvgvvy5b.js} +3 -3
- package/dist/chunk-dyqte1xq.js +2 -0
- package/dist/chunk-e4n4v022.js +2 -0
- package/dist/chunk-efgk2xv1.js +2 -0
- package/dist/{chunk-h1n43e5n.js → chunk-ev5f79mg.js} +5 -5
- package/dist/{chunk-1wkpxa58.js → chunk-eww6sdzz.js} +2 -2
- package/dist/{chunk-34fajf1n.js → chunk-faghmmrs.js} +139 -139
- package/dist/chunk-fj70wq7k.js +2 -0
- package/dist/chunk-g2fw68zm.js +2 -0
- package/dist/{chunk-szfkkbve.js → chunk-g4crr86j.js} +3 -3
- package/dist/{chunk-xh0808cd.js → chunk-h0a2s340.js} +2 -2
- package/dist/chunk-hcgm37dy.js +2 -0
- package/dist/chunk-hd2bn5q7.js +2 -0
- package/dist/{chunk-5dm4k229.js → chunk-hzfhn2vr.js} +2 -2
- package/dist/{chunk-6wz6f8d5.js → chunk-j1nqnmcd.js} +4 -4
- package/dist/{chunk-1c8sdf9a.js → chunk-jpqkm8tm.js} +2 -2
- package/dist/{chunk-550q827h.js → chunk-jtbzmbzz.js} +4 -4
- package/dist/chunk-k7jqkt93.js +2 -0
- package/dist/{chunk-wvk932dp.js → chunk-k9th7hc4.js} +4 -4
- package/dist/chunk-kp0hg06s.js +15 -0
- package/dist/{chunk-kskyfss0.js → chunk-ktyctev3.js} +2 -2
- package/dist/{chunk-xk2v20xe.js → chunk-m8tm44rq.js} +2 -2
- package/dist/chunk-mhjwtkx9.js +2 -0
- package/dist/chunk-mqy7g74k.js +2 -0
- package/dist/chunk-mxe21m6q.js +2 -0
- package/dist/chunk-ne03tfje.js +2 -0
- package/dist/{chunk-3gqrv02t.js → chunk-nrfh7gaa.js} +3 -3
- package/dist/chunk-p2sns0bn.js +2 -0
- package/dist/{chunk-jgrtvs81.js → chunk-pmpb34md.js} +5 -5
- package/dist/chunk-q2a58n2a.js +2 -0
- package/dist/{chunk-5xwmkxkk.js → chunk-qazn64pm.js} +1 -1
- package/dist/{chunk-7bwkeake.js → chunk-qccgncp2.js} +6 -6
- package/dist/{chunk-1edvsndv.js → chunk-qdyp2zqf.js} +2 -2
- package/dist/chunk-rr8a7d4q.js +11 -0
- package/dist/{chunk-mr9c2ej6.js → chunk-s12bnv32.js} +2 -2
- package/dist/chunk-s1sycp43.js +2 -0
- package/dist/chunk-s932zfjz.js +2 -0
- package/dist/chunk-sp46w7z9.js +2 -0
- package/dist/{chunk-tasjpnbf.js → chunk-sv5nvfmb.js} +2 -2
- package/dist/chunk-sy1bk1ry.js +2 -0
- package/dist/chunk-t48ws5j0.js +2 -0
- package/dist/{chunk-sn3htx1z.js → chunk-t4g2fptt.js} +6 -6
- package/dist/{chunk-d8ek63nc.js → chunk-t8wpzqs4.js} +1 -1
- package/dist/{chunk-bpdsdbvg.js → chunk-ta3wn842.js} +2 -2
- package/dist/chunk-thbc9gtj.js +2 -0
- package/dist/chunk-tn9v10q2.js +2 -0
- package/dist/chunk-tpd5nwa3.js +2 -0
- package/dist/chunk-tpt4bgs5.js +2 -0
- package/dist/{chunk-n829xbbq.js → chunk-tszkg6sj.js} +2 -2
- package/dist/chunk-v8p5p2kp.js +2 -0
- package/dist/chunk-v9jd283e.js +2 -0
- package/dist/{chunk-4xvbc0mb.js → chunk-vpdx7qr3.js} +2 -2
- package/dist/chunk-vq0cb1m9.js +2 -0
- package/dist/chunk-vx75fb0d.js +33 -0
- package/dist/{chunk-pveafhzg.js → chunk-w3rmepwy.js} +2 -2
- package/dist/{chunk-xsxh7h8z.js → chunk-wg2w7zmt.js} +2 -2
- package/dist/chunk-wgkxgsqx.js +2 -0
- package/dist/{chunk-707n4pbz.js → chunk-wwj8zbzc.js} +5 -5
- package/dist/{chunk-p3xkj7pm.js → chunk-xpnpg967.js} +2 -2
- package/dist/chunk-y1bppxgw.js +2 -0
- package/dist/{chunk-1w9ngqpv.js → chunk-y8q1n7hx.js} +10 -10
- package/dist/{chunk-vmetcczm.js → chunk-yfq2v7x5.js} +6 -6
- package/dist/{chunk-h72befy4.js → chunk-yhpyqsbr.js} +4 -4
- package/dist/{chunk-n0kw3q6p.js → chunk-yk3fbzx5.js} +4 -4
- package/dist/chunk-yv5rwthv.js +2 -0
- package/dist/{chunk-mp99h8wh.js → chunk-yy3ser06.js} +5 -5
- package/dist/chunk-yygze2s0.js +2 -0
- package/dist/chunk-z1r4tdqy.js +2 -0
- package/dist/chunk-z732tf98.js +2 -0
- package/dist/{chunk-haeb904b.js → chunk-zk2xk0wd.js} +2 -2
- package/dist/chunk-zv288w4e.js +2 -0
- package/dist/{chunk-j4zyq2ap.js → chunk-zz02hwec.js} +11 -11
- package/dist/cli.js +19 -19
- package/dist/client-script-bundler.d.ts +12 -0
- package/dist/client-script-bundler.js +19 -5
- package/dist/composable-loader.js +2 -2
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/native/bridge/protocol.d.ts +2 -0
- package/dist/native/compiler/bundle.d.ts +22 -0
- package/dist/native/compiler/bundle.js +164 -20
- package/dist/native/runtime/craft-bridge.js +16 -0
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +3 -3
- package/dist/store-loader.js +7 -7
- package/package.json +5 -5
- package/dist/chunk-08a98yqt.js +0 -2
- package/dist/chunk-0q5s55km.js +0 -2
- package/dist/chunk-181m21rg.js +0 -2
- package/dist/chunk-194qgkc9.js +0 -2
- package/dist/chunk-1nbn56jw.js +0 -2
- package/dist/chunk-2ry2pfpe.js +0 -2
- package/dist/chunk-3bj1w990.js +0 -2
- package/dist/chunk-4a12azrb.js +0 -2
- package/dist/chunk-6aq3sm83.js +0 -2
- package/dist/chunk-6fpynp8q.js +0 -2
- package/dist/chunk-6q3yszw9.js +0 -74
- package/dist/chunk-6ryab0yy.js +0 -2
- package/dist/chunk-6sasxbv9.js +0 -2
- package/dist/chunk-6w9km7qb.js +0 -2
- package/dist/chunk-7kh4p06d.js +0 -2
- package/dist/chunk-7xrrzqh7.js +0 -2
- package/dist/chunk-7y73q42g.js +0 -11
- package/dist/chunk-8jaw6exk.js +0 -2
- package/dist/chunk-98r9jk2b.js +0 -2
- package/dist/chunk-9dgygz8d.js +0 -2
- package/dist/chunk-a51f04an.js +0 -2
- package/dist/chunk-aa52jhak.js +0 -2
- package/dist/chunk-ambynnzb.js +0 -2
- package/dist/chunk-ampr3fpv.js +0 -2
- package/dist/chunk-asbq9cgs.js +0 -2
- package/dist/chunk-bbdg3sqq.js +0 -33
- package/dist/chunk-bmtsb5mr.js +0 -2
- package/dist/chunk-c8rd3573.js +0 -2
- package/dist/chunk-d4b8cgvt.js +0 -2
- package/dist/chunk-d7skqhrc.js +0 -2
- package/dist/chunk-ensp20xk.js +0 -2
- package/dist/chunk-f1zyc84x.js +0 -2
- package/dist/chunk-f2y8bwdd.js +0 -2
- package/dist/chunk-g9vtny6q.js +0 -2
- package/dist/chunk-hcsrj8z6.js +0 -3
- package/dist/chunk-hj1bntaa.js +0 -2
- package/dist/chunk-hwy3aw5v.js +0 -2
- package/dist/chunk-hyafyqy6.js +0 -2
- package/dist/chunk-j75hqvgt.js +0 -2
- package/dist/chunk-j83ax407.js +0 -2
- package/dist/chunk-k3hfwve1.js +0 -2
- package/dist/chunk-ktc1ecsm.js +0 -2
- package/dist/chunk-mbmbaj0m.js +0 -2
- package/dist/chunk-nd3qttxh.js +0 -2
- package/dist/chunk-ndc1bmj7.js +0 -2
- package/dist/chunk-nn462qm9.js +0 -2
- package/dist/chunk-nr07vxm2.js +0 -2
- package/dist/chunk-q7a5pwaz.js +0 -2
- package/dist/chunk-qx6tr8mr.js +0 -2
- package/dist/chunk-r51vyhms.js +0 -2
- package/dist/chunk-s68bqf62.js +0 -2
- package/dist/chunk-s6sf70ty.js +0 -2
- package/dist/chunk-svavrmxb.js +0 -2
- package/dist/chunk-sw7mvg9p.js +0 -2
- package/dist/chunk-tz40t18m.js +0 -2
- package/dist/chunk-v1k0bdsg.js +0 -2
- package/dist/chunk-vd10tty0.js +0 -2
- package/dist/chunk-vqkzhd19.js +0 -2
- package/dist/chunk-w1yft5gg.js +0 -2
- package/dist/chunk-w6sa921x.js +0 -2
- package/dist/chunk-y120qq1a.js +0 -15
- package/dist/chunk-zcw74jmk.js +0 -2
- package/dist/chunk-zxvndwaz.js +0 -2
- package/dist/chunk-zzr0p4bb.js +0 -2
package/dist/chunk-6q3yszw9.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-qfb34r6k.js";import"./chunk-7hr63cp5.js";import"./chunk-h72befy4.js";import{mr,Ws,Ki}from"./chunk-haeb904b.js";import"./chunk-4xvbc0mb.js";import{Kn,Zn,n,o}from"./chunk-34fajf1n.js";import"./chunk-tybk9hw9.js";import"./chunk-x5xwe5nr.js";import"./chunk-vde4mtfr.js";import"./chunk-1wkpxa58.js";import"./chunk-1edvsndv.js";import"./chunk-550q827h.js";import{Ne}from"./chunk-nskvepjv.js";import"./chunk-7j9m4d7x.js";import{existsSync as ne,mkdirSync as cn,readFileSync as ln}from"fs";import M from"path";import{existsSync as nt,mkdirSync as et}from"fs";import F from"path";import{existsSync as nn}from"fs";import q from"path";var at="data-stx-b",Ae=new Set(Ws),ct=new Set(mr);function lt(r){if(r==="ref"||r==="data-stx-ref")return"ref";if(r.startsWith("::"))return null;if(r.startsWith("@bind:")||r.startsWith("x-bind:"))return"attr";if(r.startsWith("@")||r.startsWith(":")){let e=r.slice(1).split(".")[0];if(Ae.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(Ki(e))return"event";if(r.startsWith("@"))return"event";return"attr"}if(r.startsWith("x-")){let e=r.split(".")[0];if(!ct.has(e))return"attr";let t=e.slice(2);if(t==="cloak"||t==="data"||t==="bind")return null;if(t==="tooltip"||t==="tooltip-position")return null;return Ae.has(t)?t==="if"?"if":t:"attr"}return null}function dt(r){let e=[];for(let[t,i]of r){let s=lt(t);if(s)e.push({name:t,value:i,kind:s})}return e}var ut=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,oe=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function Ee(r){let e=[],t=0;return{html:r.replace(ut,(s,a,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let d=[];oe.lastIndex=0;for(let p=oe.exec(c);p;p=oe.exec(c))d.push([p[1],p[2]??p[3]??p[4]??""]);let l=dt(d);if(!l.length)return s;let g={id:t++,bindings:l};if(l.some((p)=>p.kind==="for"))g.template=!0;e.push(g);let m=s.endsWith("/>");return`${s.slice(0,m?-2:-1).trimEnd()} ${at}="${g.id}"${m?"/>":">"}`}),manifest:{entries:e}}}var se={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var ce={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText"},le=new Set(Object.values(ce));var Pe=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),Ce=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight"];function A(r){let e=typeof r==="number"?r:Number.parseFloat(String(r??""));return Number.isFinite(e)?e:0}function j(r){return Math.round(r*1000)/1000}function de(r){if(Array.isArray(r)&&r.length===4&&r.every((t)=>Number.isFinite(Number(t))))return r.map(Number);let e=String(r??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((t)=>!Number.isFinite(t))||e[2]<=0||e[3]<=0)return null;return e}function ft(r){let e=String(r??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var _e=/[MLHVCSQTAZ]/i,ae=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function pt(r){let e=[],t=r,i=_e.exec(t);while(i){let s=i.index;t=t.slice(s);let a=t[0];t=t.slice(1);let c=_e.exec(t),d=c?t.slice(0,c.index):t,l;if(a==="A"||a==="a"){l=[];let g=0,m=d.trim(),u=0;while(u<m.length){let p=g%7,y=m.slice(u).replace(/^[\s,]+/,"");if(u=m.length-y.length,!y)break;if(p===3||p===4)l.push(y[0]==="1"?1:0),u+=1;else{ae.lastIndex=0;let S=ae.exec(y);if(!S||S.index!==0)break;l.push(Number.parseFloat(S[0])),u+=S[0].length}g++}}else l=(d.match(ae)||[]).map(Number.parseFloat);e.push({command:a,args:l}),i=c}return e}function gt(r,e,t,i,s,a,c,d,l){if(r===d&&e===l)return[];let g=Math.abs(t),m=Math.abs(i);if(!g||!m)return[1,d,l];let u=s*Math.PI/180,p=Math.cos(u),y=Math.sin(u),S=(r-d)/2,b=(e-l)/2,f=p*S+y*b,w=-y*S+p*b,v=f*f/(g*g)+w*w/(m*m);if(v>1)g*=Math.sqrt(v),m*=Math.sqrt(v);let x=g*g*m*m-g*g*w*w-m*m*f*f,h=g*g*w*w+m*m*f*f,k=Math.sqrt(Math.max(0,x/h));if(a===c)k=-k;let T=k*(g*w)/m,N=k*-(m*f)/g,_=p*T-y*N+(r+d)/2,B=y*T+p*N+(e+l)/2,P=(I,O,D,H)=>{let re=I*H-O*D<0?-1:1,ie=(I*D+O*H)/(Math.hypot(I,O)*Math.hypot(D,H));return re*Math.acos(Math.min(1,Math.max(-1,ie)))},E=P(1,0,(f-T)/g,(w-N)/m),C=P((f-T)/g,(w-N)/m,(-f-T)/g,(-w-N)/m);if(!c&&C>0)C-=2*Math.PI;if(c&&C<0)C+=2*Math.PI;let V=Math.max(1,Math.ceil(Math.abs(C)/(Math.PI/2))),W=C/V,K=1.3333333333333333*Math.tan(W/4),we=[],xe=(I)=>{let O=g*Math.cos(I),D=m*Math.sin(I);return[p*O-y*D+_,y*O+p*D+B]},ke=(I)=>{let O=-g*Math.sin(I),D=m*Math.cos(I);return[p*O-y*D,y*O+p*D]},J=E;for(let I=0;I<V;I++){let O=J+W,[D,H]=xe(J),[re,ie]=ke(J),[Te,Re]=xe(O),[ot,st]=ke(O);we.push(2,D+K*re,H+K*ie,Te-K*ot,Re-K*st,I===V-1?d:Te,I===V-1?l:Re),J=O}return we}function ht(r){let e=[],t=0,i=0,s=0,a=0,c=0,d=0,l=0,g=0,m="";for(let{command:u,args:p}of pt(String(r??""))){let y=u===u.toLowerCase(),S=u.toUpperCase(),b=()=>y?t:0,f=()=>y?i:0,w=0,v=(h)=>{if(w+h>p.length)return null;let k=p.slice(w,w+h);return w+=h,k};if(S==="Z"){e.push(4),t=s,i=a,m="Z";continue}let x=!0;while(w<p.length||x&&S==="Z"){switch(S){case"M":{let h=v(2);if(!h)return e;if(t=h[0]+b(),i=h[1]+f(),x)e.push(0,t,i),s=t,a=i;else e.push(1,t,i);m=x?"M":"L";break}case"L":{let h=v(2);if(!h)return e;t=h[0]+b(),i=h[1]+f(),e.push(1,t,i),m="L";break}case"H":{let h=v(1);if(!h)return e;t=h[0]+b(),e.push(1,t,i),m="L";break}case"V":{let h=v(1);if(!h)return e;i=h[0]+f(),e.push(1,t,i),m="L";break}case"C":{let h=v(6);if(!h)return e;let k=h[0]+b(),T=h[1]+f();c=h[2]+b(),d=h[3]+f(),t=h[4]+b(),i=h[5]+f(),e.push(2,k,T,c,d,t,i),m="C";break}case"S":{let h=v(4);if(!h)return e;let k=m==="C"?2*t-c:t,T=m==="C"?2*i-d:i;c=h[0]+b(),d=h[1]+f(),t=h[2]+b(),i=h[3]+f(),e.push(2,k,T,c,d,t,i),m="C";break}case"Q":{let h=v(4);if(!h)return e;l=h[0]+b(),g=h[1]+f(),t=h[2]+b(),i=h[3]+f(),e.push(3,l,g,t,i),m="Q";break}case"T":{let h=v(2);if(!h)return e;l=m==="Q"?2*t-l:t,g=m==="Q"?2*i-g:i,t=h[0]+b(),i=h[1]+f(),e.push(3,l,g,t,i),m="Q";break}case"A":{let h=v(7);if(!h)return e;let k=h[5]+b(),T=h[6]+f();e.push(...gt(t,i,h[0],h[1],h[2],h[3],h[4],k,T)),t=k,i=T,m="A";break}default:return e}x=!1}}return e.map((u)=>j(u))}function Ie(r,e,t,i){if(t<=0||i<=0)return[];let s=0.5522847498;return[0,r+t,e,2,r+t,e+s*i,r+s*t,e+i,r,e+i,2,r-s*t,e+i,r-t,e+s*i,r-t,e,2,r-t,e-s*i,r-s*t,e-i,r,e-i,2,r+s*t,e-i,r+t,e-s*i,r+t,e,4].map(j)}function ue(r,e){switch(r){case"Path":return ht(String(e.d??""));case"Line":return[0,A(e.x1),A(e.y1),1,A(e.x2),A(e.y2)].map(j);case"Rect":{let t=A(e.x),i=A(e.y),s=A(e.width),a=A(e.height);if(s<=0||a<=0)return[];let c=e.rx===void 0?A(e.ry):A(e.rx),d=e.ry===void 0?c:A(e.ry);if(c=Math.min(Math.max(0,c),s/2),d=Math.min(Math.max(0,d),a/2),!c||!d)return[0,t,i,1,t+s,i,1,t+s,i+a,1,t,i+a,4].map(j);let l=0.5522847498;return[0,t+c,i,1,t+s-c,i,2,t+s-c+l*c,i,t+s,i+d-l*d,t+s,i+d,1,t+s,i+a-d,2,t+s,i+a-d+l*d,t+s-c+l*c,i+a,t+s-c,i+a,1,t+c,i+a,2,t+c-l*c,i+a,t,i+a-d+l*d,t,i+a-d,1,t,i+d,2,t,i+d-l*d,t+c-l*c,i,t+c,i,4].map(j)}case"Circle":return Ie(A(e.cx),A(e.cy),A(e.r),A(e.r));case"Ellipse":return Ie(A(e.cx),A(e.cy),A(e.rx),A(e.ry));case"Polyline":case"Polygon":{let t=ft(e.points);if(t.length<4)return[];let i=[0,t[0],t[1]];for(let s=2;s<t.length;s+=2)i.push(1,t[s],t[s+1]);if(r==="Polygon")i.push(4);return i.map(j)}default:return null}}var mt=[...Ce,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","blurRadius","contentContainerStyle","defaultSource","defaultValue","ellipsizeMode","fadeDuration","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","iosBackgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","maxLength","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","statusBarTranslucent","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],Oe=new Set(["animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture"]),yt=new Map(mt.map((r)=>[Be(r),r]));function Be(r){return r.replace(/[-_]/g,"").toLowerCase()}function fe(r){return yt.get(Be(r))??r}var bt={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function Me(r){return bt[r.toLowerCase()]||r}var St={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bed:"bed.double",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function pe(r,e=!1){let t=String(r??"").trim();if(!t)return{symbol:"circle",known:!1};if(e)return{symbol:t,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(t)??/^([a-z0-9]+):(.+)$/.exec(t),s=i?i[1]:"lucide",a=i?i[2]:t;if(s==="lucide"){let c=St[a];if(c)return{symbol:c,iconify:`i-lucide-${a}`,known:!0};if(!i&&t.includes("."))return{symbol:t,known:!0}}return{symbol:"circle",iconify:i?t:`i-lucide-${a}`,known:!1}}var vt={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Fe={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},De={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},L={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function X(r){let e=r.lastIndexOf("/");if(e>0&&!r.endsWith("]")){let i=X(r.slice(0,e)),s=r.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return wt(i,a/100)}if(r==="transparent")return"transparent";if(r==="current")return"currentColor";if(r==="black")return"#000000";if(r==="white")return"#ffffff";let t=r.split("-");if(t.length===2){let[i,s]=t,a=vt[i];if(a&&typeof a==="object")return a[s]}if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function wt(r,e){if(r==="transparent")return r;let t=r.startsWith("#")?r.slice(1):"";if(t.length===3)t=t.split("").map((s)=>s+s).join("");if(t.length===8)t=t.slice(0,6);if(t.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${t}${i.toString(16).padStart(2,"0")}`}function ge(r,e=16){if(!r.startsWith("[")||!r.endsWith("]"))return;let t=r.slice(1,-1),i=Number.parseFloat(t);if(!Number.isFinite(i))return;if(t.endsWith("rem"))return i*16;if(t.endsWith("em"))return i*e;return i}function R(r){if(r.startsWith("[")&&r.endsWith("]")){let e=r.slice(1,-1);if(e.endsWith("%"))return;let t=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(t)?t:void 0}return Fe[r]}function Y(r){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(r);if(e)return`${Number.parseFloat(e[1])}%`;return R(r)}var xt={flex:(r,e)=>(e.display="flex",!0),hidden:(r,e)=>(e.display="none",!0),grid:(r,e)=>(e.display="grid",!0),"flex-row":(r,e)=>(e.flexDirection="row",!0),"flex-col":(r,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(r,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(r,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(r,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(r,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(r,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(r,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(r,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(r,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(r,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(r,e)=>(e.flexGrow=1,!0),"grow-0":(r,e)=>(e.flexGrow=0,!0),shrink:(r,e)=>(e.flexShrink=1,!0),"shrink-0":(r,e)=>(e.flexShrink=0,!0),"justify-start":(r,e)=>(e.justifyContent="flex-start",!0),"justify-center":(r,e)=>(e.justifyContent="center",!0),"justify-end":(r,e)=>(e.justifyContent="flex-end",!0),"justify-between":(r,e)=>(e.justifyContent="space-between",!0),"justify-around":(r,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(r,e)=>(e.justifyContent="space-evenly",!0),"items-start":(r,e)=>(e.alignItems="flex-start",!0),"items-center":(r,e)=>(e.alignItems="center",!0),"items-end":(r,e)=>(e.alignItems="flex-end",!0),"items-stretch":(r,e)=>(e.alignItems="stretch",!0),"items-baseline":(r,e)=>(e.alignItems="baseline",!0),"self-auto":(r,e)=>(e.alignSelf="auto",!0),"self-start":(r,e)=>(e.alignSelf="flex-start",!0),"self-center":(r,e)=>(e.alignSelf="center",!0),"self-end":(r,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(r,e)=>(e.alignSelf="stretch",!0),"self-baseline":(r,e)=>(e.alignSelf="baseline",!0),"min-w-0":(r,e)=>(e.minWidth=0,!0),"aspect-square":(r,e)=>(e.aspectRatio=1,!0),"inset-0":(r,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(r,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(r,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(r,e)=>(e.letterSpacing=0,!0),"tracking-wide":(r,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(r,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(r,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(r,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(r,e)=>(e.position="relative",!0),absolute:(r,e)=>(e.position="absolute",!0),"overflow-visible":(r,e)=>(e.overflow="visible",!0),"overflow-hidden":(r,e)=>(e.overflow="hidden",!0),"overflow-scroll":(r,e)=>(e.overflow="scroll",!0),"font-thin":(r,e)=>(e.fontWeight="100",!0),"font-extralight":(r,e)=>(e.fontWeight="200",!0),"font-light":(r,e)=>(e.fontWeight="300",!0),"font-normal":(r,e)=>(e.fontWeight="400",!0),"font-medium":(r,e)=>(e.fontWeight="500",!0),"font-semibold":(r,e)=>(e.fontWeight="600",!0),"font-bold":(r,e)=>(e.fontWeight="bold",!0),"font-extrabold":(r,e)=>(e.fontWeight="800",!0),"font-black":(r,e)=>(e.fontWeight="900",!0),italic:(r,e)=>(e.fontStyle="italic",!0),"not-italic":(r,e)=>(e.fontStyle="normal",!0),"text-left":(r,e)=>(e.textAlign="left",!0),"text-center":(r,e)=>(e.textAlign="center",!0),"text-right":(r,e)=>(e.textAlign="right",!0),"text-justify":(r,e)=>(e.textAlign="justify",!0),uppercase:(r,e)=>(e.textTransform="uppercase",!0),lowercase:(r,e)=>(e.textTransform="lowercase",!0),capitalize:(r,e)=>(e.textTransform="capitalize",!0),"normal-case":(r,e)=>(e.textTransform="none",!0),underline:(r,e)=>(e.textDecorationLine="underline",!0),"line-through":(r,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(r,e)=>(e.textDecorationLine="none",!0)};function Nt(r,e){if(!r.startsWith("bg-"))return!1;let t=r.slice(3),i=X(t);if(i)return e.backgroundColor=i,!0;return!1}function kt(r,e){if(!r.startsWith("text-"))return!1;let t=r.slice(5);if(De[t])return e.fontSize=De[t],!0;if(t.startsWith("[")&&t.endsWith("]")){let s=t.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(s)){let a=s.endsWith("rem")||s.endsWith("em")?Number.parseFloat(s)*16:Number.parseFloat(s);if(Number.isFinite(a))return e.fontSize=a,!0}}let i=X(t);if(i)return e.color=i,!0;return!1}var Tt=new Set(["t","tr","r","br","b","bl","l","tl"]);function Rt(r,e){let t=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(r);if(t&&Tt.has(t[1]))return e.gradientDirection=`to-${t[1]}`,!0;let i=/^(from|via|to)-(.+)$/.exec(r);if(!i)return!1;let s=X(i[2]);if(!s)return!1;if(i[1]==="from")e.gradientFrom=s;else if(i[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function At(r,e){for(let t of["fill","stroke"]){let i=`${t}-`;if(!r.startsWith(i))continue;let s=r.slice(i.length);if(s==="none")return e[t]="none",!0;if(t==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(t==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=X(s);if(a)return e[t]=a,!0}return!1}function Et(r,e){if(r.startsWith("p-")){let t=R(r.slice(2));if(t!==void 0)return e.padding=t,!0}if(r.startsWith("px-")){let t=R(r.slice(3));if(t!==void 0)return e.paddingHorizontal=t,!0}if(r.startsWith("py-")){let t=R(r.slice(3));if(t!==void 0)return e.paddingVertical=t,!0}if(r.startsWith("pt-")){let t=R(r.slice(3));if(t!==void 0)return e.paddingTop=t,!0}if(r.startsWith("pr-")){let t=R(r.slice(3));if(t!==void 0)return e.paddingRight=t,!0}if(r.startsWith("pb-")){let t=R(r.slice(3));if(t!==void 0)return e.paddingBottom=t,!0}if(r.startsWith("pl-")){let t=R(r.slice(3));if(t!==void 0)return e.paddingLeft=t,!0}return!1}function Ve(r,e){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(r)){let t={};if(!Ve(r.slice(1),t))return!1;let i=Object.entries(t);if(i.some(([,s])=>typeof s!=="number"))return!1;for(let[s,a]of i)e[s]=-a;return!0}if(r.startsWith("m-")){let t=R(r.slice(2));if(t!==void 0)return e.margin=t,!0}if(r.startsWith("mx-")){let t=R(r.slice(3));if(t!==void 0)return e.marginHorizontal=t,!0}if(r.startsWith("my-")){let t=R(r.slice(3));if(t!==void 0)return e.marginVertical=t,!0}if(r.startsWith("mt-")){let t=R(r.slice(3));if(t!==void 0)return e.marginTop=t,!0}if(r.startsWith("mr-")){let t=R(r.slice(3));if(t!==void 0)return e.marginRight=t,!0}if(r.startsWith("mb-")){let t=R(r.slice(3));if(t!==void 0)return e.marginBottom=t,!0}if(r.startsWith("ml-")){let t=R(r.slice(3));if(t!==void 0)return e.marginLeft=t,!0}return!1}function _t(r,e){if(!r.startsWith("w-"))return!1;let t=r.slice(2);if(t==="full")return e.width="100%",!0;if(t==="screen")return e.width="100%",!0;if(t==="auto")return e.width="auto",!0;if(t.includes("/")){let[s,a]=t.split("/"),c=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${c}%`,!0}let i=Y(t);if(i!==void 0)return e.width=i,!0;return!1}function It(r,e){if(!r.startsWith("h-"))return!1;let t=r.slice(2);if(t==="full")return e.height="100%",!0;if(t==="screen")return e.height="100%",!0;if(t==="auto")return e.height="auto",!0;let i=Y(t);if(i!==void 0)return e.height=i,!0;return!1}function Pt(r,e){if(!r.startsWith("rounded"))return!1;if(r==="rounded")return e.borderRadius=L.DEFAULT,!0;let t=r.slice(8);if(t==="")return!1;let i=/^(?:(t|b|l|r)-)?(\[[^\]]+\])$/.exec(t);if(i){let a=ge(i[2]);if(a===void 0)return!1;let c={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"]};for(let d of i[1]?c[i[1]]:["borderRadius"])e[d]=a;return!0}if(t.startsWith("t-")){let a=L[t.slice(2)]??L.DEFAULT;return e.borderTopLeftRadius=a,e.borderTopRightRadius=a,!0}if(t.startsWith("b-")){let a=L[t.slice(2)]??L.DEFAULT;return e.borderBottomLeftRadius=a,e.borderBottomRightRadius=a,!0}if(t.startsWith("l-")){let a=L[t.slice(2)]??L.DEFAULT;return e.borderTopLeftRadius=a,e.borderBottomLeftRadius=a,!0}if(t.startsWith("r-")){let a=L[t.slice(2)]??L.DEFAULT;return e.borderTopRightRadius=a,e.borderBottomRightRadius=a,!0}let s=L[t];if(s!==void 0)return e.borderRadius=s,!0;return!1}function Ct(r,e){if(!r.startsWith("border"))return!1;if(r==="border")return e.borderWidth=1,!0;let t=r.match(/^border-(\d+)$/);if(t)return e.borderWidth=Number.parseInt(t[1]),!0;let i=r.match(/^border-(t|r|b|l)-?(\d*)$/);if(i){let[,s,a]=i,c=a?Number.parseInt(a):1;switch(s){case"t":e.borderTopWidth=c;break;case"r":e.borderRightWidth=c;break;case"b":e.borderBottomWidth=c;break;case"l":e.borderLeftWidth=c;break}return!0}return!1}function Ot(r,e){if(!r.startsWith("border-"))return!1;let t=r.slice(7),i=X(t);if(i)return e.borderColor=i,!0;return!1}function Bt(r,e){if(!r.startsWith("opacity-"))return!1;let t=Number.parseInt(r.slice(8));if(!Number.isNaN(t))return e.opacity=t/100,!0;return!1}function Mt(r,e){if(r.startsWith("tracking-[")){let t=ge(r.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(t===void 0)return!1;return e.letterSpacing=t,!0}if(r.startsWith("leading-")){let t=r.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=t.startsWith("[")?/^\[[\d.]+\]$/.test(t)?Number.parseFloat(t.slice(1,-1))*i:ge(t,i):s[t]!==void 0?s[t]*i:Fe[t];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Dt(r,e){let t=/^grid-cols-(\d+)$/.exec(r);if(!t)return!1;return e.gridColumns=Number(t[1]),!0}function Lt(r,e){if(!r.startsWith("size-"))return!1;let t=r.slice(5),i=t==="full"?"100%":Y(t);if(i===void 0)return!1;return e.width=i,e.height=i,!0}var Ft={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function Vt(r,e){let t=/^(min|max)-(w|h)-(.+)$/.exec(r);if(!t)return!1;let[,i,s,a]=t,c=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&i==="max"&&Ft[a]||Y(a);if(c===void 0&&a!=="none")return!1;let d=`${i}${s==="w"?"Width":"Height"}`;if(c===void 0)delete e[d];else e[d]=c;return!0}function Wt(r,e){let t=/^(-?)(top|right|bottom|left)-(.+)$/.exec(r);if(!t)return!1;let i=t[3]==="full"?"100%":R(t[3]);if(i===void 0)return!1;return e[t[2]]=typeof i==="number"&&t[1]?-i:i,!0}function $t(r,e){let t=/^space-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=R(t[2]);if(i===void 0)return!1;return e.gap=i,!0}function jt(r,e){if(r.startsWith("gap-")){let t=R(r.slice(4));if(t!==void 0)return e.gap=t,!0}if(r.startsWith("gap-x-")){let t=R(r.slice(6));if(t!==void 0)return e.columnGap=t,!0}if(r.startsWith("gap-y-")){let t=R(r.slice(6));if(t!==void 0)return e.rowGap=t,!0}return!1}function Xt(r,e){let i={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[r];if(!i)return!1;let[s,a,c,d]=i;return Object.assign(e,{shadowColor:"#000000",shadowOpacity:c,shadowRadius:s,shadowOffset:{width:0,height:a},elevation:d}),!0}function Q(r){let e=[],t=[],i=[];function s(l,g){let m=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(l),u=m&&Kn[m[2]];return u?`${m[1]}-${u[g]}${m[3]||""}`:l}for(let l of r.split(/\s+/).filter(Boolean))if(l.startsWith("dark:"))t.push(s(l.slice(5),"dark"));else if(!l.includes(":")||l.startsWith("[")){if(e.push(s(l,"light")),s(l,"dark")!==l)i.push(s(l,"dark"))}let a=[],d={style:Le(e.join(" "),a),unknown:a};if(t.length||i.length)d.dark=Le([...i,...t].join(" "),a);for(let l of e){if(l==="truncate")d.numberOfLines=1;let g=/^line-clamp-(\d+)$/.exec(l);if(g)d.numberOfLines=Number(g[1]);if(!d.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(l))d.icon=l}return d.unknown=a.filter((l)=>!/^line-clamp-\d+$/.test(l)),d}function Le(r,e){let t={},i=r.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=xt[s];if(a){a("",t);continue}if(Xt(s,t))continue;if(Rt(s,t))continue;if(Nt(s,t))continue;if(At(s,t))continue;if(kt(s,t))continue;if(Et(s,t))continue;if(Ve(s,t))continue;if(_t(s,t))continue;if(It(s,t))continue;if(Pt(s,t))continue;if(Ct(s,t))continue;if(Ot(s,t))continue;if(Bt(s,t))continue;if(jt(s,t))continue;if(Mt(s,t))continue;if(Lt(s,t))continue;if(Vt(s,t))continue;if(Dt(s,t))continue;if(Wt(s,t))continue;if($t(s,t))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return t}function z(r,e={},t={},i={},s=[]){return{type:r,props:e,style:t,events:i,children:s}}function We(r,e,t={}){return{version:"1.0.0",root:r,script:e,meta:{source:t.source||"unknown",compiledAt:t.compiledAt||Date.now(),headwindConfig:t.headwindConfig}}}var $e=new Set(["script","style","head","meta","link","title","base","noscript"]),je=new Set(["template","body","html","main","fragment"]),Z=new Set,zt=new Set(["onBlur","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),he=new Set(["display","gridColumns","gridTemplateColumns","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Ht=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),Ut=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),Xe=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...le]),qt=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"],["listrole","listRole"]]),ze=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Gt={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function U(r){return r.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,t)=>{let i=Gt[t.toLowerCase()];if(i!==void 0)return i;if(t[0]==="#"){let s=t[1]==="x"||t[1]==="X"?Number.parseInt(t.slice(2),16):Number.parseInt(t.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function He(r){return r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Ue(r){let e=/^(-?[\d.]+)px$/.exec(r);if(e)return Number.parseFloat(e[1]);let t=/^(-?[\d.]+)r?em$/.exec(r);if(t)return Number.parseFloat(t[1])*16;if(/^-?[\d.]+$/.test(r))return Number.parseFloat(r);return r}function qe(r,e,t){let i={},s={},a={},c="",d={};for(let[m,u]of e){let p=m.toLowerCase();if(p==="class"||p==="classname"){c=c?`${c} ${u}`:u;continue}if(p==="style"){d={...d,...Jt(r,u,t)};continue}if(p.startsWith(":")||p.startsWith("x-")&&p!=="x-cloak"){a[p.startsWith(":")?p.slice(1):p.slice(2)]=U(u);continue}if(p==="x-cloak")continue;if(p.startsWith("@")||p.startsWith("v-on:")){let b=p.startsWith("@")?p.slice(1):p.slice(5),[f]=b.split("."),w=se[f]??(f.startsWith("on")?f:"");if(!w||!zt.has(w)){t.push({kind:"unread-event",tag:r,name:m});continue}s[w]=U(u);continue}if(p==="key"){i.key=u;continue}let y=U(u),S=fe(m);if(y===""&&Oe.has(S)){i[S]=!0;continue}try{i[S]=JSON.parse(y)}catch{i[S]=y}}let l=c?Q(c):void 0;for(let m of new Set(l?.unknown??[]))t.push({kind:"unknown-class",tag:r,name:m});let g={...l?.style,...d};return{props:i,style:g,events:s,bindings:a,classes:c,inline:d}}function Kt(r,e){if(r==="shadowOffset"){if(!e||typeof e!=="object"||Array.isArray(e))return;let{width:t,height:i}=e;return typeof t==="number"&&typeof i==="number"?{width:t,height:i}:void 0}if(r==="transform"){if(!Array.isArray(e))return;let t=e.filter((i)=>Boolean(i)&&typeof i==="object"&&!Array.isArray(i)&&Object.keys(i).length===1).filter((i)=>["number","string"].includes(typeof Object.values(i)[0]));return t.length?t:void 0}return}function Ge(r,e){if(Ht.has(r))return!1;if(Ut.has(r))return/^-?[\d.]+%$/.test(e);return!0}function Jt(r,e,t){let i={},s=U(e);try{let a=JSON.parse(s);if(a&&typeof a==="object"&&!Array.isArray(a)){for(let[c,d]of Object.entries(a)){let l=he.has(c)?c:He(c.trim().toLowerCase());if(!he.has(l)){t.push({kind:"unknown-style",tag:r,name:l});continue}if(d===null||d===void 0)continue;let g=typeof d==="string"?Ue(d):d;if(typeof g==="object"){let m=Kt(l,g);if(m===void 0)t.push({kind:"non-numeric-style",tag:r,name:l});else i[l]=m;continue}if(typeof g!=="string"&&typeof g!=="number")continue;if(typeof g==="string"&&!Ge(l,g)){t.push({kind:"non-numeric-style",tag:r,name:l});continue}i[l]=g}return i}}catch{}for(let a of s.split(";")){let c=a.indexOf(":");if(c===-1)continue;let d=He(a.slice(0,c).trim().toLowerCase()),l=a.slice(c+1).trim();if(!d||!l)continue;if(!he.has(d)){t.push({kind:"unknown-style",tag:r,name:d});continue}let g=Ue(l);if(typeof g==="string"&&!Ge(d,g)){t.push({kind:"non-numeric-style",tag:r,name:d});continue}i[d]=g}return i}function me(r){return r.children.map((e)=>typeof e==="string"?e:me(e)).join("").replace(/\s+/g," ").trim()}function Yt(r,e){let t=r.node,i=t.children.filter((a)=>typeof a!=="string"),s=t.children.filter((a)=>typeof a==="string").join("").trim();if(t.type==="Svg"||t.type==="G")return t.children=i,t;if(t.type==="SvgText"){let a=me(t);return t.children=a?[a]:[],t}if(ze.has(t.type)&&i.length===0&&s)return t.type="Text",t.children=[s],t;if(t.type==="Text"&&!s&&i.length===0&&typeof t.props.text==="string")return t.children=t.props.text?[t.props.text]:[],delete t.props.text,t;if(t.type==="Text"&&i.length>0){let a=me(t);return e.push({kind:"flattened-text",tag:r.tag}),t.children=a?[a]:[],t}if(ze.has(t.type)&&i.length>0)t.children=i;return t}async function Qt(r,e={}){let t=[],i=[],s=[],a=new Set;function c(u){let p=s[s.length-1];if(!p)i.push(u);else if(!p.dropped)p.node.children.push(u)}function d(u){if(u.node.bindings&&Object.keys(u.node.bindings).length>0){let y=u.node.children,S=y.filter((f)=>typeof f!=="string"),b=S.length===1&&S.length===y.length?S[0]:z("View",{},{},{},y);if(b.bindings={...u.node.bindings,...b.bindings},b.bindingId===void 0&&u.node.bindingId!==void 0)b.bindingId=u.node.bindingId;c(b);return}let p=s[s.length-1];for(let y of u.node.children){if(typeof y==="string"){if(p&&!p.dropped)p.node.children.push(y);continue}if(!p)i.push(y);else if(!p.dropped)p.node.children.push(y)}}function l(u,p){let y=s[s.length-1];if(u==="svg"||y?.svg)return g(u,p,y);let S=$e.has(u)&&!Z.has(u),b=s[s.length-1]?.dropped??!1,{props:f,style:w,events:v,bindings:x,classes:h,inline:k}=S||b?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:qe(u,p,t),T=f["data-native"],N;if(typeof T==="string"&&Xe.has(T))N=T,delete f["data-native"];else N=Z.has(u)?"View":Me(u);if(N===u&&!Xe.has(N)&&!$e.has(u)&&!je.has(u)&&!a.has(u))a.add(u),t.push({kind:"unmapped-tag",tag:u});if((S||Z.has(u))&&!a.has(`drop:${u}`))a.add(`drop:${u}`),t.push({kind:"dropped-subtree",tag:u});if(N==="Video"&&f.source===void 0&&f.src!==void 0)f.source=f.src,delete f.src;if(N==="Icon"){let P=Q(h).icon,E=pe(String(f.symbol||f.name||P||""),Boolean(f.symbol));if(f.symbol=E.symbol,E.iconify)f.iconify=E.iconify}if(N==="FlatList"||N==="SectionList"){let P=new Set([...Object.keys(f),...Object.keys(x)].map((E)=>E.toLowerCase()));for(let[E,C]of qt)if(P.has(E))t.push({kind:"unsupported-list-prop",tag:N,name:C})}let _=z(N,f,w,v);_._inlineStyle=k;let B=f["data-stx-b"];if(typeof B==="number"&&Number.isInteger(B))_.bindingId=B;if(delete f["data-stx-b"],h)_._classes=h;if(Object.keys(x).length>0)_.bindings=x;if(typeof f.key==="string")_.key=f.key,delete f.key;return{tag:u,node:_,dropped:S||b||Z.has(u),discard:S||b,unwrap:je.has(u)}}function g(u,p,y){let S=y?.dropped??!1,b=ce[u];if(S||!b){if(!S&&!a.has(`drop:${u}`))a.add(`drop:${u}`),t.push({kind:Pe.has(u)?"dropped-subtree":"unmapped-tag",tag:u});return{tag:u,node:z("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let{props:f,style:w,events:v,bindings:x,classes:h,inline:k}=qe(u,p,t);if(b==="Svg"){let B=de(f.viewBox);if(B)f.viewBox=B;else delete f.viewBox;for(let P of["width","height"]){if(typeof f[P]==="number"&&w[P]===void 0)w[P]=f[P];delete f[P]}}if(typeof f.strokeDasharray==="string"||typeof f.strokeDasharray==="number"){let B=String(f.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);f.strokeDasharray=B}let T=ue(b,f);if(T)f.geometry=T;let N=z(b,f,w,v);N._inlineStyle=k;let _=f["data-stx-b"];if(typeof _==="number"&&Number.isInteger(_))N.bindingId=_;if(delete f["data-stx-b"],h)N._classes=h;if(Object.keys(x).length>0)N.bindings=x;if(typeof f.key==="string")N.key=f.key,delete f.key;return{tag:u,node:N,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(u){let p=u.tagName.toLowerCase(),y=l(p,[...u.attributes]),S=!0;try{u.onEndTag(()=>{if(s.pop(),y.discard)return;if(y.unwrap)d(y);else c(Yt(y,t))})}catch{S=!1}if(S)s.push(y);else if(!y.discard)c(y.node)},text(u){let p=s[s.length-1];if(!p||p.dropped)return;let y=U(u.text).replace(/\s+/g," ");if(!y.trim())return;p.node.children.push(y)}}).transform(new Response(r)).text(),i.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);return{root:i.length===1?i[0]:z("View",{},{},{},i),diagnostics:t}}async function Ke(r,e={}){let{root:t,diagnostics:i}=await Qt(r,e),s=e.script??{exports:{},functions:[],code:""};return{document:We(t,s,{source:e.source??"unknown"}),diagnostics:i}}var Je=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Zt=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,en=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Ye=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function ye(r){let e=[];Je.lastIndex=0;for(let a of r.matchAll(Je)){let c=a[1]??"";if(/\bserver\b/.test(c))continue;e.push(a[2].trim())}let t=e.filter(Boolean).join(`
|
|
3
|
-
|
|
4
|
-
`),i=[];for(let a of[Zt,en]){a.lastIndex=0;for(let c of t.matchAll(a))if(!i.includes(c[1]))i.push(c[1])}let s={};Ye.lastIndex=0;for(let a of t.matchAll(Ye)){let c=a[2];try{s[a[1]]=JSON.parse(c.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=c}}return{exports:s,functions:i,code:t}}var ee=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,Qe=/function\s+(__stx_setup_[\w$]+)\s*\(/,tn=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function be(r){ee.lastIndex=0;for(let e of r.matchAll(ee)){let t=e[2].trim(),i=Qe.exec(t)?.[1];if(i)return{name:i,code:t}}return null}function Ze(r){let e=[];ee.lastIndex=0;for(let t of r.matchAll(ee)){let i=t[1],s=t[2].trim(),a=tn.exec(i)?.[1],c=/\bdata-stx-component-factories\b/i.test(i);if(!s||!a&&!c&&!Qe.test(s))continue;e.push(a?{code:s,owner:a}:{code:s})}return e}function rn(){let r=[q.join(import.meta.dir,"..","primitives"),q.join(import.meta.dir,"native","primitives")];for(let e of r)if(nn(q.join(e,"View.stx")))return e;return r[0]}async function on(r,e,t={}){let i=t.root??q.dirname(e),s=await o(i),a={root:i,componentsDir:t.componentsDir??q.join(i,"components"),buildMode:"serve",cache:!1,_targetComponentDirs:[rn()],_pluginComponentDirs:s._pluginComponentDirs??[]},c={...t.context??{},__stx_inject_css:!1},d=new Set([e]),l=await n(r,c,e,a,d),{html:g,manifest:m}=Ee(l),{document:u,diagnostics:p}=await Ke(g,{source:e,script:ye(r)}),y=be(g),S=Ze(g);if(ye(r).code.trim()){let b=await Zn(r,e,t.context,{forceClientSetup:!0}),f=be(b.setupCode??"");if(y=f??y,f&&!S.some((w)=>w.code===f.code))S.push({code:f.code})}return{document:u,manifest:m,setup:y,scripts:S,diagnostics:p,html:g,dependencies:[...d]}}async function te(r,e={}){return on(await Bun.file(r).text(),r,e)}var G="__app";function Se(r){let t=[F.join(import.meta.dir,"..","runtime",`${r}.ts`),F.join(import.meta.dir,"..","runtime",`${r}.js`),F.join(import.meta.dir,"native","runtime",`${r}.js`)].find((i)=>nt(i));if(!t)throw Error(`Native runtime module ${r} is missing`);return t}async function tt(r,e,t,i){let s={name:"stx-screen-inputs",setup(c){c.onLoad({filter:/.*/,namespace:"file"},({path:d})=>{i.add(d);return})}},a=await Bun.build({entrypoints:[r],target:"browser",format:"iife",minify:t,plugins:[s,...e],define:{"process.env.NODE_ENV":JSON.stringify(t?"production":"development")}});if(!a.success){let c=a.logs.map((d)=>String(d.message??d)).join(`
|
|
5
|
-
`);throw Error(`Could not bundle ${r}:
|
|
6
|
-
${c}`)}return(await a.outputs[0].text()).trim()}function sn(r){return{...r,script:{exports:r.script.exports,functions:[],code:""}}}async function ve(r){let e=Object.keys(r.screens);if(e.length===0)throw Error("screens must name at least one .stx file");let t=r.routed??!0,i=r.initialScreen??e[0];if(!r.screens[i])throw Error(`Initial screen ${i} is not in screens`);let s=F.resolve(r.root??process.cwd()),a=[];for(let v of e){let x=F.resolve(s,r.screens[v]);if(!x.endsWith(".stx"))throw Error(`Screen ${v} must name a .stx file`);a.push({name:v,file:x,compiled:await te(x,{root:s})})}let c=Se("jsc-globals"),d=Se("shared-screen"),l=r.app?F.resolve(s,r.app):null;if(l&&!nt(l))throw Error(`The app script ${r.app} does not exist`);if(l&&!t)throw Error("An app script needs a routed bundle");if(l&&r.screens[G])throw Error(`${G} is the app script's route, not a screen name`);let g=r.browser;if(g&&r.routesDir)throw Error("A browser screen is one route; routesDir is for device hosts");let m=(v,x)=>{let h=t?`var routeName = g.__stxNativeRoute || ${JSON.stringify(i)};
|
|
7
|
-
var isApp = ${l?`routeName === ${JSON.stringify(G)}`:"false"};
|
|
8
|
-
if (!isApp && routeNames.indexOf(routeName) === -1) throw new Error(['Unknown native screen:', routeName].join(' '));
|
|
9
|
-
if (isApp ? ${!x} : ${JSON.stringify(v.map(({name:E})=>E))}.indexOf(routeName) === -1) throw new Error(['This bundle does not hold the native screen', routeName].join(' '));`:`var routeName = 'main';
|
|
10
|
-
var isApp = false;`,k=v.map(({name:E,compiled:C},V)=>`${V===0?"if":"else if"} (routeName === ${JSON.stringify(t?E:"main")}) {
|
|
11
|
-
nativeDocument = ${JSON.stringify(sn(C.document))};
|
|
12
|
-
manifest = ${JSON.stringify(C.manifest)};
|
|
13
|
-
}`).join(`
|
|
14
|
-
`),T=v.map(({name:E,compiled:C},V)=>`${V===0?"if":"else if"} (routeName === ${JSON.stringify(t?E:"main")}) {
|
|
15
|
-
g.__stx_latestSetup = null;
|
|
16
|
-
${C.scripts.map((W)=>W.owner?` g.__STX_SETUP_ROOT__ = screen && screen.scopeRoot(${JSON.stringify(W.owner)});
|
|
17
|
-
try {
|
|
18
|
-
${W.code}
|
|
19
|
-
}
|
|
20
|
-
finally { g.__STX_SETUP_ROOT__ = null; }`:W.code).join(`
|
|
21
|
-
`)}
|
|
22
|
-
}`).join(`
|
|
23
|
-
`),N=x&&l,_=g?Se("browser-screen"):null,B=g?Bun.resolveSync(g.platformModule,s):null;return`
|
|
24
|
-
import { installJSCGlobals } from ${JSON.stringify(c)};
|
|
25
|
-
import { prepareNativeApp, prepareSharedNativeScreen } from ${JSON.stringify(d)};
|
|
26
|
-
${g?`import { createBrowserScreenBridge } from ${JSON.stringify(_)};
|
|
27
|
-
import { createBrowserPlatform } from ${JSON.stringify(B)};`:""}
|
|
28
|
-
${N?`import * as nativeAppModule from ${JSON.stringify(l)};`:"var nativeAppModule = null;"}
|
|
29
|
-
${g?"(async function() {":""}
|
|
30
|
-
var g = globalThis;
|
|
31
|
-
installJSCGlobals(g);
|
|
32
|
-
${g?`var browserPlatform = await createBrowserPlatform(${JSON.stringify(g.platformOptions??{})});
|
|
33
|
-
var browserBridge = createBrowserScreenBridge(browserPlatform, ${JSON.stringify(g)});
|
|
34
|
-
var bridge = browserBridge;
|
|
35
|
-
g.__stxNativeRoute = ${JSON.stringify(i)};`:"var bridge = g.__stxNativeBridge;"}
|
|
36
|
-
if (!bridge) throw new Error('Missing __stxNativeBridge');
|
|
37
|
-
var routeNames = ${JSON.stringify(t?e:["main"])};
|
|
38
|
-
${h}
|
|
39
|
-
g.__stxNativeRoute = routeName;
|
|
40
|
-
var nativeDocument;
|
|
41
|
-
var manifest;
|
|
42
|
-
${k}
|
|
43
|
-
var screen = null;
|
|
44
|
-
var app = null;
|
|
45
|
-
if (isApp) {
|
|
46
|
-
app = prepareNativeApp(bridge, { routeName: routeName, routeNames: routeNames });
|
|
47
|
-
g.__stxNativeUnmount = function() { app.unmount(); };
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
screen = prepareSharedNativeScreen(nativeDocument, manifest, bridge, { routeName: routeName, routeNames: routeNames });
|
|
51
|
-
g.__stx_host = screen.host;
|
|
52
|
-
g.__stxNativeUnmount = function() { screen.unmount(); };
|
|
53
|
-
}
|
|
54
|
-
${Ne()}
|
|
55
|
-
var pageSetup = g.__stx_latestSetup;
|
|
56
|
-
var pageRuntimeSetup = g.stx && g.stx._latestSetup;
|
|
57
|
-
${T}
|
|
58
|
-
// The screen's setup is the native host's to run. A screen script publishes
|
|
59
|
-
// it where a page's document runtime adopts its own, and in a browser that
|
|
60
|
-
// runtime's DOMContentLoaded and stx:load ran it a second time: another copy
|
|
61
|
-
// of the screen, mounted beside this one. Take it, and hand the page back
|
|
62
|
-
// whatever setup it had.
|
|
63
|
-
var screenSetup = g.__stx_latestSetup || null;
|
|
64
|
-
g.__stx_latestSetup = pageSetup;
|
|
65
|
-
if (g.stx) g.stx._latestSetup = pageRuntimeSetup || null;
|
|
66
|
-
if (isApp) app.start(nativeAppModule);
|
|
67
|
-
else screen.mount(g.stx, screenSetup);
|
|
68
|
-
${g?`var stopApp = nativeAppModule && typeof nativeAppModule.default === 'function' ? nativeAppModule.default(g.craft) : null;
|
|
69
|
-
var unmount = g.__stxNativeUnmount;
|
|
70
|
-
var ended = false;
|
|
71
|
-
g.__stxNativeUnmount = function() { if (ended) return; ended = true; if (typeof stopApp === 'function') stopApp(); unmount(); browserBridge.dispose(); };
|
|
72
|
-
g.addEventListener('pagehide', function(event) { if (!event.persisted) g.__stxNativeUnmount(); });
|
|
73
|
-
})().catch(function(error) { console.error('[stx browser screen]', error); var node = document.querySelector(${JSON.stringify(g.container)}); if (node) { node.textContent = 'This screen could not start. Reload to try again.'; node.setAttribute('role', 'alert'); } });`:""}
|
|
74
|
-
`},u=(v)=>({name:"stx-native-shared-screens",setup(x){x.onResolve({filter:/^stx:native-shared-screens$/},()=>({path:"entry",namespace:"stx-native-shared-screens"})),x.onLoad({filter:/.*/,namespace:"stx-native-shared-screens"},()=>({contents:v,loader:"js"}))}}),p=new Set(a.flatMap(({compiled:v})=>v.dependencies)),y=a.flatMap(({compiled:v})=>v.diagnostics).map((v)=>({level:"warning",message:[v.kind,v.tag,v.name].filter(Boolean).join(": ")})),S=r.minify??!1,b;if(r.routesDir){let v=F.resolve(s,r.routesDir);et(v,{recursive:!0});let x=[...a.map((h)=>({name:h.name,screens:[h],app:!1})),...l?[{name:G,screens:[],app:!0}]:[]];b={};for(let h=0;h<x.length;h+=6)await Promise.all(x.slice(h,h+6).map(async(k)=>{let T=F.join(v,`${k.name}.js`);await Bun.write(T,await tt("stx:native-shared-screens",[u(m(k.screens,k.app))],S,p)),b[k.name]=T}));if(!r.outFile)return{code:"",routes:b,diagnostics:y,dependencies:[...p]}}let f=await tt("stx:native-shared-screens",[u(m(a,!0))],S,p);if(!r.outFile)return{code:f,diagnostics:y,dependencies:[...p]};let w=F.resolve(s,r.outFile);return et(F.dirname(w),{recursive:!0}),await Bun.write(w,f),{code:f,outFile:w,...b?{routes:b}:{},diagnostics:y,dependencies:[...p]}}async function an(r,e={}){return ve({...e,screens:{main:r},routed:!1})}function rt(r,e={}){return an(r,e)}var it=["native.config.json","stx-native.config.json"];function dn(r=process.cwd(),e){let t=e?M.resolve(r,e):it.map((l)=>M.join(r,l)).find((l)=>ne(l));if(!t)return null;if(!ne(t))throw Error(`Native config not found: ${t}`);let i=JSON.parse(ln(t,"utf8")),s=Object.entries(i.screens??{});if(s.length===0)throw Error(`${M.basename(t)} must name at least one screen in "screens"`);let a={};for(let[l,g]of s){if(!/^[A-Z][\w-]*$/i.test(l))throw Error(`Invalid native screen name: ${l}`);if(typeof g!=="string"||!g.endsWith(".stx"))throw Error(`Screen ${l} must name a .stx file`);if(a[l]=M.resolve(M.dirname(t),g),!ne(a[l]))throw Error(`Screen ${l} not found: ${a[l]}`)}let c=i.initialScreen||s[0][0];if(!a[c])throw Error(`Initial screen ${c} is not in screens`);if(i.app!==void 0&&typeof i.app!=="string")throw Error(`"app" must name the app script's file`);let d=i.app?M.resolve(M.dirname(t),i.app):void 0;if(d&&!ne(d))throw Error(`App script not found: ${d}`);return{initialScreen:c,screens:a,file:t,...d?{app:d}:{}}}async function Cr(r,e={}){let t=M.resolve(e.cwd??process.cwd()),i=e.format??"ir";if(i!=="ir"&&i!=="bundle")throw Error(`Unknown compile format: ${i}. Expected ir or bundle.`);let s=r?null:dn(t,e.config);if(!r&&!s)throw Error(`Please specify an input file: stx native compile <file.stx>, or add ${it[0]}`);let a,c=[];if(i==="bundle"){let l=s?await ve({screens:s.screens,initialScreen:s.initialScreen,minify:e.minify,root:t,...s.app?{app:s.app}:{}}):await rt(M.resolve(t,r),{minify:e.minify});a=l.code,c=l.diagnostics}else{let l=async(m)=>{let u=await te(m);return c.push(...u.diagnostics.map((p)=>({level:"warning",message:[p.kind,p.tag,p.name].filter(Boolean).join(": ")}))),u.document},g=s?{initialScreen:s.initialScreen,screens:Object.fromEntries(await Promise.all(Object.entries(s.screens).map(async([m,u])=>[m,await l(u)])))}:await l(M.resolve(t,r));a=JSON.stringify(g,null,2)}if(!e.output)return{output:a,diagnostics:c};let d=M.resolve(t,e.output);return cn(M.dirname(d),{recursive:!0}),await Bun.write(d,a),{output:a,written:d,diagnostics:c}}export{Cr as runNativeCompile};
|
package/dist/chunk-6ryab0yy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{J,_s,Es,Ts,n}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{J as injectRouterScript,n as processDirectives,_s as processJsonDirective,Es as processOnceDirective,Ts as validateClientScript};
|
package/dist/chunk-6sasxbv9.js
DELETED
package/dist/chunk-6w9km7qb.js
DELETED
package/dist/chunk-7kh4p06d.js
DELETED
package/dist/chunk-7xrrzqh7.js
DELETED
package/dist/chunk-7y73q42g.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{y}from"./chunk-haeb904b.js";import{O,Dt}from"./chunk-4xvbc0mb.js";import{w,qe,j,o}from"./chunk-34fajf1n.js";import{ce,vt,xt}from"./chunk-y120qq1a.js";import{Me,Jt,mt,V}from"./chunk-1swmxkdt.js";import{E,En}from"./chunk-4z21afpp.js";import f from"path";var l=new Map;function _(c,s){for(let n of c.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(n[1])s.add(n[1]);for(let n of c.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let r of(n[1]??"").split(",")){let i=((r.includes(":")?r.split(":").pop():r)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(i))s.add(i)}for(let n of c.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let r of(n[1]??"").split(",")){let a=r.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(a))s.add(a)}}async function dd(c){let s;if(c)s=f.resolve(c);else{let t=await o();s=f.resolve(t.root||process.cwd(),t.storesDir||"stores")}let n=new Bun.Glob("*.ts"),r=[];try{for await(let t of n.scan({cwd:s,absolute:!0})){let e=f.basename(t,".ts");if(["index","types"].includes(e))continue;if(t.includes(".d.ts"))continue;r.push(t)}}catch{return V(l,s,"",""),null}let a=()=>[...new Set([...r,...r.flatMap((t)=>ce(t))])],i=Me(a()),u=mt(l,s,i);if(u!==void 0)return u||null;if(r.length===0)return V(l,s,i,""),null;let p=[];for(let t of r){let e=await Bun.file(t).text();p.push({file:t,hasUseStore:/useStore\s*\(/.test(e)})}p.sort((t,e)=>{if(t.hasUseStore===e.hasUseStore)return 0;return t.hasUseStore?1:-1});let b=p.map((t)=>t.file),m=[],d=new Set,x=j({loader:"ts",target:"browser",define:w()});for(let t of b)try{let e=await Bun.file(t).text(),v=f.basename(t,".ts");if(_(e,d),vt(e))e=await xt(e,t,{projectRoot:process.cwd(),externalizeUserModules:E()});e=qe(e),e=O(e),e=Dt(e),e=e.replace(/^export\s+(default\s+)?/gm,""),e=x.transformSync(e),m.push(`// Store: ${v}
|
|
3
|
-
${e.trim()}`)}catch(e){console.warn(`[stx] Failed to load store ${t}:`,e)}if(m.length===0)return V(l,s,i,""),null;let g=m.join(`
|
|
4
|
-
|
|
5
|
-
`),S=`;(function(){
|
|
6
|
-
var __stx = window.stx || {};
|
|
7
|
-
${y.filter((t)=>!d.has(t)&&new RegExp(`\\b${t}\\b`).test(g)).map((t)=>`var ${t} = __stx[${JSON.stringify(t)}];`).join(`
|
|
8
|
-
`)}
|
|
9
|
-
${g}
|
|
10
|
-
})();`,h=E()?En(S):S;return i=Me(a()),V(l,s,i,h),h}function ud(){l.clear(),Jt()}
|
|
11
|
-
export{dd,ud};
|
package/dist/chunk-8jaw6exk.js
DELETED
package/dist/chunk-98r9jk2b.js
DELETED
package/dist/chunk-9dgygz8d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ru,kc,ms,hs,pi,fi,ys,bs,Zn,Cc,gi,mi,_c,qe}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{ru as clearScriptScanCache,ys as convertServerLoopAttributesToDirectives,pi as convertSignalDirectivesToAttributes,bs as convertSignalLoopsToAttributes,Cc as extractExports,mi as findMarkupIndexOutsideScripts,hs as hasSignalsSyntax,ms as parseLoopExpression,fi as preEvalLiteralReactiveIfs,Zn as processScriptSetup,gi as processSignals,_c as rewriteStxImportSpecifiers,kc as scanScriptTags,qe as stripStxRuntimeImports};
|
package/dist/chunk-a51f04an.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fe,gc,Vd,Wd,qd,Gd,mc,hc,Kd,Xd,ti,Jd,ln,dn,Gn}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Gd as __setSignalsGeneratorsForTest,Fe as cacheEngineFingerprint,dn as cacheTemplate,ln as checkCache,Jd as clearDevCaches,hc as getCachedRouterScript,mc as getCachedSignalsRuntime,Kd as getServeClientAsset,ti as getServeModuleBundle,Gn as hashFilePath,Wd as invalidateFileCache,qd as invalidateFileCacheByDir,Vd as readFileCached,Xd as registerServeModuleBundle,gc as templateCache};
|
package/dist/chunk-aa52jhak.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{A,Vc,$s,o,P,au,cu}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{P as config,A as defaultConfig,au as defineStxConfig,$s as discoverConfig,o as loadStxConfig,Vc as resolveStxDirectories,cu as validateConfig};
|
package/dist/chunk-ambynnzb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{d,ws,hi,yi,Mc,Nc,Lc,jc,Bc,Fc,Ge,j,Ke,zc,er,Hc,xi,Uc,Xe,r,tr,Si,g,ne,iu}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{ne as clearComponentCache,Uc as componentClientSignalNames,ws as convertToCommonJS,g as createDetailedErrorMessage,Bc as extractDirectiveNames,hi as extractScriptFromTemplate,d as extractVariables,r as fileExists,iu as getComponentCacheStats,Nc as getPositionInfo,j as getSharedTranspiler,Si as getSourceLineInfo,jc as hasDirectives,yi as hasVariables,Hc as isHydrateTrigger,Fc as isJavaScriptScript,Xe as renderComponentWithSlot,tr as resolveTemplatePath,zc as scopeOnRootElement,Ge as shouldTranspileTypeScript,xi as slotContentHasExpressions,Ke as transpileTypeScript,er as userComponentFileExists,Lc as validateDirective,Mc as validateTemplate};
|
package/dist/chunk-ampr3fpv.js
DELETED
package/dist/chunk-asbq9cgs.js
DELETED
package/dist/chunk-bbdg3sqq.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{y}from"./chunk-haeb904b.js";import{O,Dt}from"./chunk-4xvbc0mb.js";import{kt,m,h,w,qe,j,o}from"./chunk-34fajf1n.js";import{ce,vt,xt}from"./chunk-y120qq1a.js";import{Me,Jt,mt,V}from"./chunk-1swmxkdt.js";import{E,En}from"./chunk-4z21afpp.js";import S from"path";var C=new Map,D=new Map,k=m(64),A=new Map,Z=["composables","functions"];function J(t){let n=S.basename(t,".ts");return n==="index"||n==="types"||t.endsWith(".d.ts")}async function q(t){if(t)return S.resolve(t);let n=`<default>:${process.cwd()}`,a=A.get(n);if(a!==void 0)return a;let e=await Q();if(e!==null)A.set(n,e);return e}async function Q(){let t=await o(),n=t.root||process.cwd(),a=t.composablesDir;if(a)return S.resolve(n,a);for(let e of Z){let s=S.resolve(n,e);try{let d=new Bun.Glob("**/*.ts");for await(let c of d.scan({cwd:s,absolute:!0}))if(!J(c))return s}catch{}}return null}async function K(t){let n=Array.isArray(t)?t:t?[S.resolve(t)]:(await o())._layerComposableDirs??[await q()].filter((e)=>!!e),a=new Map;for(let e of n){let s=new Bun.Glob("**/*.ts");try{for await(let d of s.scan({cwd:e,absolute:!0})){let c=S.relative(e,d);if(!J(d)&&!a.has(c))a.set(c,d)}}catch{}}return{key:n.join("\x00"),files:[...a.values()].sort()}}async function Vr(t){let{files:n}=await K(t),a=j({loader:"ts",target:"browser",define:w()}),e=[];for(let s of n)try{let d=await Bun.file(s).text(),c=a.scan(d).exports.filter((p)=>p!=="default");if(c.length>0)e.push({file:s,names:c})}catch{}return e}function Y(t,n){return new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(t)}function L(t,n){let a=new Set(t.match(/\w+/g)),e=new Set;for(let s of n)if(/^\w+$/.test(s)?a.has(s):Y(t,s))e.add(s);return e}var G=m(64);function ee(t,n){let a=h(t,n.size),e=G.get(a);if(e)return e;let s;try{s=kt(t,n)}catch{s=L(t,n)}let d=[...t.matchAll(/(?:const|let|var)\s*\{([^}]*)\}\s*=\s*window\.__composables\u0008/g),...t.matchAll(/import\s*\{([^}]*)\}\s*from\s*['"]@composables['"]/g)];for(let c of d)for(let p of c[1].split(",")){let g=p.trim().split(/\s*(?::|\u0008as\u0008)\s*/)[0];if(g&&n.has(g))s.add(g)}return G.set(a,s),s}function te(t,n,a){let e=new Map;for(let{file:u,names:l}of t)for(let f of l)if(!e.has(f))e.set(f,u);let s=(u)=>{let l=[];for(let f of L(u,e.keys()))l.push(e.get(f));return l},d=new Set(e.keys()),c=(u)=>{let l=[];for(let f of ee(u,d))l.push(e.get(f));return l},p=new Set,g=a.flatMap((u,l)=>l===0?s(u):c(u));while(g.length>0){let u=[];for(let l of g){if(p.has(l))continue;p.add(l);for(let f of c(n.get(l)??""))if(!p.has(f))u.push(f)}g=u}return p}async function Ul(t,n,a){let{key:e,files:s}=await K(t);if(!e)return null;let d=()=>[...new Set([...s,...s.flatMap((r)=>ce(r))])],c=Me(d());if(s.length===0)return V(C,e,c,""),null;s.sort();let p=j({loader:"ts",target:"browser",define:w()}),g=mt(D,e,c);if(!g){let r=new Map,i=[];for(let _ of s)try{let x=await Bun.file(_).text();r.set(_,x);let b=p.scan(x).exports.filter((X)=>X!=="default");if(b.length>0)i.push({file:_,names:b})}catch{r.set(_,"")}g=V(D,e,c,{codeByFile:r,modules:i})}let{codeByFile:u,modules:l}=g,f;if(n===void 0)f=new Set(s);else{let r=a?[n,...a]:[n],i=h(r.join("\x00"),e,r.length,c),_=k.get(i);if(f=_??te(l,u,r),!_)k.set(i,f)}if(f.size===0)return null;let I=s.filter((r)=>f.has(r)),B=`${e}\x00${I.join("\x00")}`,F=mt(C,B,c);if(F!==void 0)return F||null;let M=[],v=new Set,R=new Set;for(let r of I)try{let i=u.get(r)??await Bun.file(r).text(),_=S.basename(r,".ts");for(let b of i.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(b[1])R.add(b[1]);let x=[];try{for(let b of p.scan(i).exports)if(b!=="default")v.add(b),x.push(b)}catch{}if(i=O(i),vt(i))i=await xt(i,r,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),i=qe(i);i=Dt(i),i=i.replace(/^export\s+(default\s+)?/gm,""),i=p.transformSync(i),M.push(`// Composable: ${_}
|
|
3
|
-
${i.trim()}`)}catch(i){console.warn(`[stx] Failed to load composable ${r}:`,i)}if(M.length===0||v.size===0)return V(C,B,c,""),null;let H=[...v].map((r)=>` try { if (!(${JSON.stringify(r)} in __c)) __c[${JSON.stringify(r)}] = ${r}; } catch (e) {}`).join(`
|
|
4
|
-
`),P=JSON.stringify([...v]),N=M.join(`
|
|
5
|
-
|
|
6
|
-
`),W=y.filter((r)=>!R.has(r)&&new RegExp(`\\b${r}\\b`).test(N)).map((r)=>`var ${r} = __stx[${JSON.stringify(r)}];`).join(`
|
|
7
|
-
`),T=JSON.stringify(new Bun.CryptoHasher("md5").update(`${P}\x00${N}`).digest("hex").slice(0,12)),U=`;(function(){
|
|
8
|
-
var __bundles = window.__stxComposableBundles || (window.__stxComposableBundles = {});
|
|
9
|
-
if (__bundles[${T}]) return;
|
|
10
|
-
__bundles[${T}] = true;
|
|
11
|
-
var __published = window.__stxComposableGlobals || (window.__stxComposableGlobals = {});
|
|
12
|
-
window.__composables = window.__composables || {};
|
|
13
|
-
var __c = window.__composables;
|
|
14
|
-
var __stx = window.stx || {};
|
|
15
|
-
${W}
|
|
16
|
-
${N}
|
|
17
|
-
${H}
|
|
18
|
-
var __names = ${P};
|
|
19
|
-
for (var __i = 0; __i < __names.length; __i++) {
|
|
20
|
-
var __n = __names[__i];
|
|
21
|
-
if (!(__n in __c) || __published[__n]) continue;
|
|
22
|
-
var __takenByBuiltin = !!(window.stx && __n in window.stx);
|
|
23
|
-
if (__takenByBuiltin || __n in window) {
|
|
24
|
-
console.warn('[stx] composable "' + __n + '" is not available as a bare identifier: '
|
|
25
|
-
+ (__takenByBuiltin ? 'a built-in of that name already exists' : 'window already defines that property')
|
|
26
|
-
+ '. Rename it, or use: import { ' + __n + ' } from "@composables"');
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
window[__n] = __c[__n];
|
|
30
|
-
__published[__n] = true;
|
|
31
|
-
}
|
|
32
|
-
})();`,z=E()?En(U):U;return c=Me(d()),V(C,B,c,z),z}function Vl(){C.clear(),Jt(),D.clear(),k.clear(),A.clear()}
|
|
33
|
-
export{Vr,Ul,Vl};
|
package/dist/chunk-bmtsb5mr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{la,fo,ul,da,ua,pl,fl}from"./chunk-1w9ngqpv.js";import"./chunk-bbdg3sqq.js";import"./chunk-y120qq1a.js";import"./chunk-mp99h8wh.js";import"./chunk-kskyfss0.js";import{We,xc}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{la as buildVirtualSource,We as extractScriptBlocks,xc as extractTemplateExpressions,da as findRuntimeTypeDeclarations,ua as findStxModuleDeclarations,fl as formatTypecheckDiagnostics,ul as sourcePathFor,pl as typecheckStxFiles,fo as virtualPathFor};
|
package/dist/chunk-c8rd3573.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{_t,vs,bi,Oc}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Oc as declareBareLoopHead,_t as parseLoopBinding,bi as processLoops,vs as reportDeferredLoopWarnings};
|
package/dist/chunk-d4b8cgvt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Do,Mo,No,Dd}from"./chunk-j4zyq2ap.js";import"./chunk-6wz6f8d5.js";import"./chunk-t79xnvzr.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Do as buildNative,Dd as default,No as getAvailableFormats,Mo as getAvailableTargets};
|
package/dist/chunk-d7skqhrc.js
DELETED
package/dist/chunk-ensp20xk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hl,yl,bl,wl,fa,vl,xl,Sl,kl,Cl,_l,El}from"./chunk-bpdsdbvg.js";export{_l as Broadcast,El as BroadcastServer,fa as broadcast,kl as broadcastPresence,Sl as broadcastPrivate,Cl as channel,hl as getBroadcastServer,wl as loadChannels,yl as startBroadcasting,bl as stopBroadcasting,vl as toUser,xl as toUsers};
|
package/dist/chunk-f1zyc84x.js
DELETED
package/dist/chunk-f2y8bwdd.js
DELETED
package/dist/chunk-g9vtny6q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{il}from"./chunk-sf7z2ar9.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{il as startInteractive};
|
package/dist/chunk-hcsrj8z6.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var At=".stx",o="STX_DIR",e=null;function Ii(t){e=t?.trim()||null}function gn(){return process.env[o]?.trim()||e||At}function a(t=process.cwd(),...n){let r=gn();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function mn(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==At&&!n.startsWith(`${At}/`))return t;let r=n.slice(At.length+1);return r?i.join(gn(),r):gn()}
|
|
3
|
-
export{At,Ii,gn,a,mn};
|
package/dist/chunk-hj1bntaa.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fs,gu,mu,ji,he,qc,ur,hu,yu,bu,wu,vu,xu,Su,ku,Cu}from"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";export{xu as applyHead,hu as definePageMeta,Fs as getHead,gu as getPageMeta,he as mergeHeadConfigs,Su as processHeadDirective,Cu as processMetaDirective,ku as processTitleDirective,vu as renderBodyAttrs,bu as renderHead,wu as renderHtmlAttrs,mu as resetHead,ur as seoMetaToHeadConfig,ji as useHead,yu as usePageTitle,qc as useSeoMeta,yu as useTitle};
|
package/dist/chunk-hwy3aw5v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tl}from"./chunk-n829xbbq.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Tl as buildApp};
|
package/dist/chunk-hyafyqy6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{su,Dc,xe,wi,ou,xs,Ss,ks}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{ou as clearOnceStore,wi as onceStore,xe as partialsCache,xs as processIncludes,Ss as processStackPushDirectives,ks as processStackReplacements,su as resetUnscopedSignalWarnings,Dc as topLevelElements};
|
package/dist/chunk-j75hqvgt.js
DELETED
package/dist/chunk-j83ax407.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Wn,cc,Bd,lc,Fd,dc,qn,b,Et,ve,uc,is,pc,zd,X,fc,Hd,x,Ud}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{fc as applyFilters,Fd as clearCustomFilters,uc as clientLoopScopes,Wn as defaultFilters,b as escapeHtml,Et as escapeHtmlValue,x as evaluateExpression,dc as findMustacheEnd,lc as getAllFilters,pc as interpolateScriptAttributes,is as interpolateScriptExpressions,zd as interpolateScriptsInTemplate,X as processExpressions,cc as registerFilter,Bd as registerFilters,qn as replaceInterpolations,Hd as resetRejectedExpressionWarnings,Ud as unescapeHtml,ve as usesSignalsInScript};
|
package/dist/chunk-k3hfwve1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{qs,Gs,nt,Z,$n,hr,Rn,yr,br,Gc,Kc,Xc,An,Jc,Yc,Zc,Qc,Xi,Ji,Yi,Ks,Zi,el,rt,st,ot,it,at,ct,Te,tl}from"./chunk-h72befy4.js";export{Rn as Router,Zc as abortNavigation,hr as bracketPathToRegex,rt as clearMiddleware,Ji as createClientCookieManager,at as createMiddlewareContext,it as createRouteLocation,Xi as createServerCookieManager,Yi as createStorageManager,Qc as defineMiddleware,Kc as defineRoute,Xc as defineRoutes,yr as findErrorPage,br as formatRoutes,Gs as generateRouteManifest,qs as generateRouteTypes,Zi as getMiddleware,st as getMiddlewareNames,Te as getRouterScript,tl as getRouterScriptDev,el as hasMiddleware,nt as isFileRequestPath,ot as loadMiddlewareFromDirectory,$n as matchRoute,Yc as navigateTo,Z as patternToRegex,Ks as registerMiddleware,Jc as resetRoutes,An as route,ct as runMiddleware,Gc as setAppUrl};
|
package/dist/chunk-ktc1ecsm.js
DELETED
package/dist/chunk-mbmbaj0m.js
DELETED
package/dist/chunk-nd3qttxh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ml}from"./chunk-6rfm6b1c.js";import"./chunk-pqkb1m5x.js";import"./chunk-nskvepjv.js";import"./chunk-mp99h8wh.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{ml as buildForProduction};
|
package/dist/chunk-ndc1bmj7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lr,jr,Br,Ca,Fr,zr,_a,Hr,Ur,_o,Ea}from"./chunk-szfkkbve.js";export{Lr as VideoProcessorCache,_o as analyzeVideo,Ca as clearVideoCache,Ur as generateDASHManifest,Hr as generateHLSManifest,Fr as generatePoster,_a as generateSpriteSheet,zr as generateThumbnails,jr as getCachedVideoResult,Ea as processVideo,Br as setCachedVideoResult};
|
package/dist/chunk-nn462qm9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bd,Ro,qa,wd,vd,xd,Sd,kd,Ga,Ka,Cd,_d,Ed,Td}from"./chunk-vmetcczm.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{qa as SUSPENSE_RESOLVER_RUNTIME,Ro as buildSuspenseResolveScript,kd as createStreamRenderer,xd as extractStreamBoundaries,Td as generateHydrationRuntime,Ka as islandDirective,_d as processSectionDirectives,vd as processStreamDirectives,Cd as registerStreamingDirectives,wd as renderStreamingPage,bd as streamTemplate,Sd as streamTemplateSimple,Ed as streamToResponse,Ga as streamingSuspenseDirective};
|
package/dist/chunk-nr07vxm2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{St,Zr,Qr,es,Ld,ts}from"./chunk-mp99h8wh.js";import"./chunk-550q827h.js";import"./chunk-vde4mtfr.js";import"./chunk-h72befy4.js";export{Qr as buildServerApi,Ld as createServerApi,St as discoverServerApi,Zr as generateApiTypes,ts as isServerApiSource,es as productionApiDispatcher};
|
package/dist/chunk-q7a5pwaz.js
DELETED
package/dist/chunk-qx6tr8mr.js
DELETED
package/dist/chunk-r51vyhms.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{al}from"./chunk-je0cttam.js";import"./chunk-pqkb1m5x.js";import"./chunk-mp99h8wh.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{al as startProductionServer};
|
package/dist/chunk-s68bqf62.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ta,lo,na,ra,uo,sa,oa,ia,aa,po,ca,dl}from"./chunk-wvk932dp.js";import{So,ga}from"./chunk-xh0808cd.js";import{B,F,z,Ft,Q,ie,jn,De,gt,zt,Ht,Ut,H,Vt,Wt,Bn}from"./chunk-tasjpnbf.js";import{Wa}from"./chunk-pveafhzg.js";import"./chunk-t79xnvzr.js";export{F as DEFAULT_FORMATS,z as DEFAULT_QUALITY,B as DEFAULT_WIDTHS,Bn as ImageProcessingError,ra as clearImageCache,uo as createImageDirective,ga as createImageHandler,oa as createImagePlugin,dl as defaultImageConfig,Wt as formatSize,po as generateImageManifest,gt as generateSizes,De as generateSrcSet,zt as getFallbackVariant,jn as getImageMetadata,H as getMimeType,Vt as getTotalSize,Ht as groupVariantsByFormat,So as handleImageRequest,sa as imageDirective,Q as isImageBackendAvailable,Ut as isImageFile,Ft as isSharpAvailable,aa as optimizeDirectory,ia as optimizeImage,lo as parseImageComponent,ie as processImage,na as processImageComponents,ta as renderImageComponent,Wa as rewriteImagesWithSiblings,ca as writeImageManifest};
|
package/dist/chunk-s6sf70ty.js
DELETED
package/dist/chunk-svavrmxb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Os,Ds,Ms,Ns,ir,ar,lu,du,uu,pu,cr,fu}from"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";export{fu as generateDefaultRobotsTxt,cr as generateRobotsTxt,du as generateSitemap,uu as generateSitemapIndex,Ns as injectSeoTags,ir as metaDirective,Os as processMetaDirectives,Ms as processSeoDirective,Ds as processStructuredData,lu as registerSeoDirectives,pu as scanForSitemapEntries,ar as structuredDataDirective};
|
package/dist/chunk-sw7mvg9p.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yd,ni,Zd,ri,yc,bc,Tt,un,Qd,wc,vc,eu,f}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Tt as buildCss,wc as extractClassNames,bc as fingerprintConfig,vc as generateCss,Qd as getCachedCSS,Yd as getCssServeAsset,f as injectCss,ni as loadCssEngine,ri as loadCssEngineConfig,un as rebuildCss,Zd as resetCssCache,yc as resolveUserCssConfig,eu as withLinkedModuleBundles};
|
package/dist/chunk-tz40t18m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Vr,Ul,Vl}from"./chunk-bbdg3sqq.js";import"./chunk-y120qq1a.js";import"./chunk-mp99h8wh.js";import"./chunk-kskyfss0.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Vl as clearComposableCache,Ul as getComposableScript,Vr as listComposableModules};
|
package/dist/chunk-v1k0bdsg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rt,Ec,Tc,$c,Rc,Ac,d,Pc,ws,Ic,hi,yi}from"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Rt as STX_ENGINE_BINDING_NAMES,ws as convertToCommonJS,hi as extractScriptFromTemplate,d as extractVariables,yi as hasVariables,Pc as isCompleteImport,Ac as isMissingBindingFailure,$c as isModuleResolutionFailure,Rc as isSyntaxFailure,Ic as splitDeclaration,Ec as stripTypeScript,Tc as withoutStxReferrer};
|
package/dist/chunk-vd10tty0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ha,Rl,ya,ba,Al,Pl}from"./chunk-32gycb72.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{Pl as applySlots,Al as extractSlotContent,Rl as parseSlotElement,ha as parseSlots,ba as processSlots,ya as renderSlot};
|
package/dist/chunk-vqkzhd19.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dr,Mr,Nr,wa,va,xa,Co,Sa,ka}from"./chunk-d8ek63nc.js";export{Dr as ImageProcessorCache,Co as applyTransformations,wa as clearImageCache,Sa as generateResponsiveVariants,ka as generateSrcset,Mr as getCachedImageResult,xa as optimizeImage,va as processImage,Nr as setCachedImageResult};
|
package/dist/chunk-w1yft5gg.js
DELETED
package/dist/chunk-w6sa921x.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ce,tc,Ko,bt,wt,Nd,Xo,vt,sn,nc,rc,sc,oc,xt,ic}from"./chunk-y120qq1a.js";import"./chunk-mp99h8wh.js";import"./chunk-kskyfss0.js";import"./chunk-34fajf1n.js";import"./chunk-7j9m4d7x.js";import"./chunk-7hr63cp5.js";import"./chunk-550q827h.js";import"./chunk-1wkpxa58.js";import"./chunk-vde4mtfr.js";import"./chunk-x5xwe5nr.js";import"./chunk-tybk9hw9.js";import"./chunk-qfb34r6k.js";import"./chunk-4xvbc0mb.js";import"./chunk-haeb904b.js";import"./chunk-h72befy4.js";import"./chunk-1edvsndv.js";export{sn as MODULE_SPECIFIER_PREFIX,xt as bundleClientScript,wt as clearBundleFailures,ce as clientBundleDependencies,bt as getBundleFailures,vt as hasUserImports,rc as normalizeRegistrySpecifiers,oc as queueClientBundleBuild,Ko as recordBundleFailure,nc as registryIdForPath,Xo as resolveBundlerFallback,sc as rewriteRegistryImports,Nd as setBundlerFallbackMode,tc as shouldLogBundlerDiagnostics,ic as tempBuildName};
|
package/dist/chunk-y120qq1a.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{on,le}from"./chunk-kskyfss0.js";import{m,an,w,Fe,o,P}from"./chunk-34fajf1n.js";import{ts}from"./chunk-mp99h8wh.js";import{s,Se}from"./chunk-8efe5vpm.js";import{a}from"./chunk-hcsrj8z6.js";import h from"path";import v from"fs";var pe=10;function J(e,n,i){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(h.basename(e))||ts(e,n,i)}var ne=1,re=new Map,V=600,fe=100,W=new Map;async function me(e){let n=W.get(e)??0;if(n>0&&n<fe){W.set(e,n+1);return}W.set(e,1);try{let i=(await v.promises.readdir(e)).filter((c)=>c.endsWith(".js"));if(i.length<=V)return;let g=(await Promise.all(i.map(async(c)=>{try{return{name:c,at:(await v.promises.stat(h.join(e,c))).mtimeMs}}catch{return null}}))).filter((c)=>c!==null);g.sort((c,l)=>l.at-c.at);for(let c of g.slice(V)){let l=c.name.slice(0,-3);await v.promises.rm(h.join(e,`${l}.js`),{force:!0}),await v.promises.rm(h.join(e,`${l}.deps.json`),{force:!0})}R("pruned bundle cache to",V,"entries")}catch{}}function ce(e){return re.get(e)??[]}function X(e,n){if(e)re.set(e,n)}function tc(e=process.env){return e.STX_DEBUG==="true"||e.STX_DEBUG==="1"}function R(...e){if(tc())console.log("[stx:bundler]",...e)}var Z=[];function Ko(e,n,i){Z.push({filePath:e||"<inline>",message:n,details:i})}function bt(){return Z.slice()}function wt(){Z.length=0}var q;function Nd(e){q=e}function Xo(){if(q)return q;try{let e=P.strict;return typeof e==="object"&&e!==null?e.bundlerFallback??"warn":"warn"}catch{return"warn"}}var H=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function vt(e){let n=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,i;while((i=n.exec(e))!==null){let g=i[1];if(!H.some((l)=>l.test(g)))return R("detected user import:",g),!0}let u=/^[ \t]*import[ \t]*['"]([^'"]+)['"]/gm;while((i=u.exec(e))!==null){let g=i[1];if(/\.css(?:\?.*)?$/.test(g))continue;if(!H.some((l)=>l.test(g)))return R("detected side-effect import:",g),!0}return!1}var sn="stx-module:",ge=/\.(?:[cm]?[jt]sx?|json)$/i;function nc(e,n){return h.relative(e,n).split(h.sep).join("/")}function rc(e,n){if(n.size===0)return e;return e.replace(/^([ \t]*import(?:(?:\s+|(?=[{*]))[^;"']*?\s*from\s*|\s*))(["'])([^"']+)\2/gm,(i,u,g,c)=>{let l=n.get(c);return l&&!c.startsWith(sn)?`${u}${g}${l}${g}`:i})}function sc(e,n){let i=0,u=(c)=>{let l=`__stxMod${i++}`,S=JSON.stringify(c);return n.push(`var ${l} = globalThis.__stxModules && globalThis.__stxModules[${S}];`,`if (${l} === undefined) throw new Error("[stx] module " + ${JSON.stringify(S)} + " is not registered on this page (#1957)");`),l},g=(c,l)=>{for(let S of c.split(",")){let M=S.trim();if(!M)continue;let f=M.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!f)continue;let t=f[1].startsWith('"')?JSON.parse(f[1]):f[1],r=f[2]??t;n.push(`var ${r} = ${l}[${JSON.stringify(t)}];`)}};return e=e.replace(/^[ \t]*import(?:\s+|(?=[{*]))([^;"']+?)\s*from\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(c,l,S)=>{let M=S.slice(sn.length),f=u(M),t=l.trim(),r=t.match(/^([\w$]+)\s*(?:,\s*|$)/);if(r&&!t.startsWith("{")&&!t.startsWith("*"))n.push(`var ${r[1]} = ${f}.default;`),t=t.slice(r[0].length).trim();let d=t.match(/^\*\s*as\s+([\w$]+)$/);if(d)n.push(`var ${d[1]} = ${f};`);else if(t.startsWith("{"))g(t.replace(/^\{|\}$/g,""),f);return""}),e=e.replace(/^[ \t]*import\s*["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(c,l)=>(u(l.slice(sn.length)),"")),e}function ee(e){let n=[e,`${e}.ts`,`${e}.tsx`,`${e}.js`,`${e}.mjs`,`${e}.jsx`,h.join(e,"index.ts"),h.join(e,"index.tsx"),h.join(e,"index.js"),h.join(e,"index.mjs")];for(let i of n)try{if(v.existsSync(i)&&v.statSync(i,{throwIfNoEntry:!1})?.isFile())return i}catch{}return}function he(e,n,i,u,g,c=new Map,l){let S=(f,t,r)=>{if(J(t,e,l))return null;if(!g||f!==i||!ge.test(t))return null;try{if(!v.statSync(t,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}u.add(t);let d=`${sn}${nc(process.cwd(),t)}`;return c.set(r,d),{path:d,external:!0}},M=(f,t)=>{let r=f===i?n:h.dirname(f),d=h.resolve(r,t);return ee(d)??d};return{name:"stx-client-bundle",setup(f){if(f.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(t)=>({path:t.path,external:!0})),f.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(t)=>({path:t.path,external:!0})),f.onResolve({filter:/^\//},(t)=>{let r=ee(t.path);if(r){let d=S(t.importer,r,t.path);if(d)return d;if(r!==i)u.add(r);return{path:r}}return{path:t.path,external:!0}}),f.onResolve({filter:/^\.\.?\//},(t)=>{let r=M(t.importer,t.path),d=S(t.importer,r,t.path);if(d)return d;return u.add(r),{path:r}}),f.onResolve({filter:/^[@~]\//},(t)=>{let r=h.resolve(e,t.path.slice(2)),d=[r,`${r}.ts`,`${r}.tsx`,`${r}.js`,`${r}.mjs`,`${r}.jsx`,h.join(r,"index.ts"),h.join(r,"index.tsx"),h.join(r,"index.js"),h.join(r,"index.mjs")];for(let E of d)if(v.existsSync(E)&&v.statSync(E,{throwIfNoEntry:!1})?.isFile()){let O=S(t.importer,E,t.path);if(O)return O;return R(`resolved ${t.path[0]}/ import:`,t.path,"\u2192",E),u.add(E),{path:E}}return console.warn(`[stx:bundler] could not resolve ${t.path[0]}/ import:`,t.path),{path:r}}),g)f.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(t)=>{if(t.importer!==i)return;let r=`${sn}npm:${t.path}`;return c.set(t.path,r),{path:r,external:!0}});f.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(t)=>{if(J(t.path,e,l))throw Error(`Server-only API source cannot be imported by a client script: ${t.path}`);let r=h.extname(t.path).toLowerCase(),d=r===".json"?"json":r===".tsx"?"tsx":r===".jsx"?"jsx":r===".ts"||r===".mts"||r===".cts"?"ts":"js";if(t.path!==i)u.add(t.path);return{contents:v.readFileSync(t.path,"utf8"),loader:d}})}}}var G=new Map,k=m(64),te=Symbol.for("stx.client-bundle-build-queue");function oc(e){let n=globalThis,u=(n[te]??Promise.resolve()).then(e,e);return n[te]=u.then(()=>{return},()=>{return}),u}async function xt(e,n,i={}){let u=i.projectRoot||process.cwd(),g=(await o(u)).serverApi,c=i.minify??!1,l=i.externalizeUserModules??!0,S=i.expose?.length?[...new Set(i.expose)].sort():void 0,M=i.cacheDir||a(u,"bundle-cache"),f=new Bun.CryptoHasher("md5");f.update(`${pe}\x00${Fe()}\x00${JSON.stringify(g??!1)}\x00${l?"registry":"inline"}\x00${S?S.join(","):"*"}\x00${c?"minified":"readable"}\x00${e}\x00${n}`);let t=f.digest("hex").slice(0,12),r=h.join(M,`${t}.js`),d=k.get(r);if(d){if(an(d.files)&&d.files.every((A)=>!J(A.path,u,g))){R("memo hit:",t);let A=d.files.map((B)=>B.path);return X(n,A),i.collectInputs?.push(...A),d.code}k.delete(r),R("memo invalidated by dep change:",t)}let E=h.join(M,`${t}.deps.json`),O=Bun.file(r);if(await O.exists()){let A=Bun.file(E),B=!1,N=null;if(await A.exists())try{let D=JSON.parse(await A.text());if(D.metadataVersion!==ne||!Array.isArray(D.files))B=!1;else N=D.files,B=!0;if(N&&(!an(N)||N.some((I)=>J(I.path,u,g))))B=!1}catch{B=!1}if(B){if(R("cache hit:",t),N)X(n,N.map((I)=>I.path)),i.collectInputs?.push(...N.map((I)=>I.path));let D=await O.text();if(N)k.set(r,{code:D,files:N});return D}R("cache invalidated by dep change:",t)}let _=G.get(t);if(_){let A=await _;if(i.collectInputs)i.collectInputs.push(...(k.get(r)?.files??[]).map((B)=>B.path));return A}let L=oc(()=>$e(e,n,{projectRoot:u,minify:c,cacheDir:M,hash:t,cachePath:r,depsPath:E,collectInputs:i.collectInputs,externalizeUserModules:l,serverApi:g,expose:S,throwOnFailure:i.throwOnFailure}));G.set(t,L);try{return await L}finally{G.delete(t)}}var xe=0;function ic(e){return`${e}-${process.pid}-${++xe}`}async function $e(e,n,i){let{projectRoot:u,minify:g,cacheDir:c,hash:l,cachePath:S,depsPath:M,externalizeUserModules:f}=i,t=a(u,"bundle-tmp"),r=ic(l),d=h.join(t,`${r}.ts`),E=h.join(t,"out",r);v.mkdirSync(t,{recursive:!0}),v.mkdirSync(E,{recursive:!0});let O=h.dirname(n),_=new Set,L=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,A=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,B=s(e),{depths:N,balanced:D}=Se(B),I=(j)=>!D||N[j]===0,y;while((y=L.exec(B))!==null){if(y[1])continue;if(!I(y.index))continue;if(y[2])y[2].split(",").forEach((j)=>{let p=we(j);if(p)_.add(p)});else if(y[3])_.add(y[3])}while((y=A.exec(B))!==null){if(y[1])continue;if(!I(y.index))continue;_.add(y[2])}let se=/^[ \t]*import[ \t]+(?!type\b)(?:(\w+)\s*(?:,\s*)?)?(?:\*\s+as\s+(\w+)|\{([^}]+)\})?\s+from\b/gm;while((y=se.exec(B))!==null){if(!I(y.index))continue;let j=/^\s*['"]([^'"]+)['"]/.exec(e.slice(y.index+y[0].length))?.[1];if(j&&H.some((p)=>p.test(j)))continue;if(y[1])_.add(y[1]);if(y[2])_.add(y[2]);for(let p of(y[3]??"").split(",")){let b=p.trim();if(!b||/^type\s/.test(b))continue;let T=/\bas\s+(\w+)\s*$/.exec(b)?.[1]??/^\w+$/.exec(b)?.[0];if(T)_.add(T)}}for(let j of B.matchAll(/\bexport\s*\{([^}]+)\}/g))for(let p of j[1].split(",")){let b=/\bas\s+(\w+)\s*$/.exec(p)?.[1]??/^\s*(\w+)\s*$/.exec(p)?.[1];if(b)_.delete(b)}let ie=_.size>0?`
|
|
3
|
-
export { ${[..._].join(", ")} }`:"";await Bun.write(d,e+ie),R("bundling:",l,"from:",h.basename(n));let Y=new Set,Q=new Map;try{let j=await Bun.build({entrypoints:[d],outdir:E,target:"browser",format:"esm",minify:g?{whitespace:!1,identifiers:!0,syntax:!0}:!1,plugins:[he(u,O,d,Y,f,Q,i.serverApi)],define:{"process.env.NODE_ENV":g?'"production"':'"development"',...w()},root:u});if(!j.success){let F=j.logs.filter((C)=>C.level==="error").map((C)=>C.message).join(", ")||`Unable to bundle ${h.basename(n)}`,U=on(j.logs,n||void 0);if(console.warn("[stx:bundler] build failed:",F),Ko(n||"",F,U),i.throwOnFailure||Xo()==="error")throw Error(F);return e}let p="";for(let x of j.outputs){p=await x.text();break}let b=[];for(let x of p.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let F of x[1].split(",")){let U=F.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(U){b.push([U[2],U[1]]);continue}let C=F.trim();if(/^[A-Za-z_$][\w$]*$/.test(C))b.push([C,C])}if(i.expose){let x=new Set(i.expose);for(let F=b.length-1;F>=0;F--)if(!x.has(b[F][0]))b.splice(F,1)}let T=[];p=sc(rc(p,Q),T);let oe=p.match(/^\s*import(?:\s+|(?=["'{*]))[^;]+;?\s*$/gm)||[];if(p=p.replace(/^\s*import(?:\s+|(?=["'{*]))[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),g&&p)try{p=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(p)}catch{}let K=`__stxBundle_${l}`,ae=b.map(([x,F])=>`${JSON.stringify(x)}: ${F}`).join(", "),ue=b.map(([x])=>`var ${x} = undefined;`).join(`
|
|
4
|
-
`),de=b.map(([x])=>`${x} = ${K}[${JSON.stringify(x)}];`).join(`
|
|
5
|
-
`);if(p=`${oe.join(`
|
|
6
|
-
`)}
|
|
7
|
-
${ue}
|
|
8
|
-
var ${K} = (function() {
|
|
9
|
-
${T.join(`
|
|
10
|
-
`)}
|
|
11
|
-
${p}
|
|
12
|
-
return { ${ae} };
|
|
13
|
-
})();
|
|
14
|
-
${de}`.trim(),R("bundled:",l,"output:",p.length,"bytes"),_.size>0&&b.length===0)return console.warn(`[stx:bundler] dropped every binding for ${h.basename(n)} (${l}); serving the unbundled source and not caching this result`),e;v.mkdirSync(c,{recursive:!0}),await Bun.write(S,p);let z=Array.from(Y).map((x)=>{try{return{path:x,mtimeMs:v.statSync(x).mtimeMs}}catch{return null}}).filter((x)=>x!==null);return await Bun.write(M,JSON.stringify({metadataVersion:ne,files:z})),X(n,z.map((x)=>x.path)),i.collectInputs?.push(...z.map((x)=>x.path)),k.set(S,{code:p,files:z}),await me(c),p}catch(j){let p=on(j,n||void 0),b=le(j,n||void 0);if(console.warn(`[stx:bundler] error: ${b}`),Ko(n||"",b,p),i.throwOnFailure||Xo()==="error")throw j;return e}finally{try{v.rmSync(d,{force:!0}),v.rmSync(E,{recursive:!0,force:!0})}catch{}}}function we(e){let n=e.trim();if(!n)return null;let i=n.indexOf("=");if(i!==-1)n=n.slice(0,i).trim();let u=n.indexOf(":");if(u!==-1)n=n.slice(u+1).trim();if(n.startsWith("..."))n=n.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(n)?n:null}
|
|
15
|
-
export{ce,tc,Ko,bt,wt,Nd,Xo,vt,sn,nc,rc,sc,oc,xt,ic};
|