@stacksjs/stx 0.2.570 → 0.2.572
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-01mxer9s.js +2 -0
- package/dist/chunk-09gtbb1w.js +2 -0
- package/dist/{chunk-v9gy8rda.js → chunk-0bt0fbs1.js} +59 -59
- package/dist/{chunk-k0shfsfx.js → chunk-0dz1b6a1.js} +3 -3
- package/dist/{chunk-3m01ym55.js → chunk-0g2ybnht.js} +2 -2
- package/dist/{chunk-jvm6agq7.js → chunk-0q6n3by0.js} +3 -3
- package/dist/chunk-15erabm6.js +2 -0
- package/dist/chunk-194qgkc9.js +2 -0
- package/dist/{chunk-fas9k7sw.js → chunk-1dg5qxg9.js} +5 -5
- package/dist/{chunk-tdv9np5t.js → chunk-1edvsndv.js} +2 -2
- package/dist/{chunk-brkq2s62.js → chunk-1n64749x.js} +3 -3
- package/dist/chunk-1z6c6dyk.js +2 -0
- package/dist/{chunk-36aj0yzt.js → chunk-232jswfm.js} +1 -1
- package/dist/chunk-279jv0yf.js +2 -0
- package/dist/chunk-2a1q5y6r.js +2 -0
- package/dist/{chunk-xfpfs9zq.js → chunk-2ads8rw5.js} +2 -2
- package/dist/chunk-2cqbyb8w.js +2 -0
- package/dist/{chunk-wjazf68a.js → chunk-2crxkm7j.js} +3 -3
- package/dist/{chunk-he2et28k.js → chunk-2jjff8kv.js} +5 -5
- package/dist/chunk-2jsnrfc8.js +2 -0
- package/dist/{chunk-ffxwsa94.js → chunk-2z0trbbm.js} +2 -2
- package/dist/{chunk-ywah1c30.js → chunk-36agnyhe.js} +7 -7
- package/dist/chunk-3gft8zng.js +2 -0
- package/dist/chunk-49gwmcrn.js +2 -0
- package/dist/{chunk-r17t24jr.js → chunk-4bgfpkwx.js} +3 -3
- package/dist/{chunk-dgr561sc.js → chunk-4easd8da.js} +11 -11
- package/dist/chunk-4wfr074d.js +2 -0
- package/dist/{chunk-cbyh8fhn.js → chunk-58tz7tmf.js} +3 -3
- package/dist/chunk-5afw7z6v.js +2 -0
- package/dist/{chunk-9d6dr0dr.js → chunk-5dmkkvs7.js} +2 -2
- package/dist/chunk-5fv4g4et.js +2 -0
- package/dist/{chunk-d8jdr1k4.js → chunk-5t1whxxt.js} +6 -6
- package/dist/{chunk-dkyqkkpj.js → chunk-5vw8493b.js} +3 -3
- package/dist/chunk-604rs9sq.js +2 -0
- package/dist/chunk-636sfxyj.js +2 -0
- package/dist/chunk-6aq3sm83.js +2 -0
- package/dist/chunk-6f4qrd0s.js +2 -0
- package/dist/chunk-6va5pe2m.js +2 -0
- package/dist/{chunk-r8h9b3f8.js → chunk-6wc2t6cd.js} +6 -6
- package/dist/{chunk-2t3bhp2j.js → chunk-707n4pbz.js} +5 -5
- package/dist/{chunk-5s555c1r.js → chunk-74xwzxwz.js} +3 -3
- package/dist/{chunk-nmy7mcbd.js → chunk-79vdkvhf.js} +5 -5
- package/dist/{chunk-mbj9dbrh.js → chunk-7bwkeake.js} +6 -6
- package/dist/chunk-7kh4p06d.js +2 -0
- package/dist/{chunk-8cs45k3f.js → chunk-7t3ykgsm.js} +2 -2
- package/dist/chunk-7xrrzqh7.js +2 -0
- package/dist/{chunk-724zsgbk.js → chunk-83fdt4yj.js} +6 -6
- package/dist/chunk-8jaw6exk.js +2 -0
- package/dist/chunk-8k61b4ae.js +2 -0
- package/dist/{chunk-chythmea.js → chunk-9k7bq97t.js} +1 -1
- package/dist/chunk-9yar9rfq.js +2 -0
- package/dist/{chunk-knpzph55.js → chunk-a6jq7hex.js} +3 -3
- package/dist/{chunk-mw2dravv.js → chunk-anjm087t.js} +5 -5
- package/dist/chunk-asbq9cgs.js +2 -0
- package/dist/{chunk-0zq4btre.js → chunk-b2q8bk8p.js} +2 -2
- package/dist/chunk-b7t8jejd.js +2 -0
- package/dist/chunk-b894fxfc.js +2 -0
- package/dist/{chunk-y3mmeywt.js → chunk-b9r88ysg.js} +2 -2
- package/dist/{chunk-0pzbg1bt.js → chunk-beqkrwt1.js} +2 -2
- package/dist/chunk-bm2q1srp.js +2 -0
- package/dist/{chunk-xjr67xvb.js → chunk-bpdsdbvg.js} +2 -2
- package/dist/{chunk-8zmahjqg.js → chunk-c4zpzxex.js} +6 -6
- package/dist/chunk-cgwyd9aq.js +2 -0
- package/dist/chunk-cvswrbzw.js +2 -0
- package/dist/{chunk-hvzznc50.js → chunk-cyg9w31a.js} +2 -2
- package/dist/chunk-d8206zbp.js +2 -0
- package/dist/chunk-dcpf6kas.js +15 -0
- package/dist/chunk-ensp20xk.js +2 -0
- package/dist/chunk-f10299sf.js +2 -0
- package/dist/chunk-f1apaqfk.js +2 -0
- package/dist/chunk-f4jh9vrj.js +2834 -0
- package/dist/{chunk-rrce2fyv.js → chunk-g66m3g2r.js} +1 -1
- package/dist/chunk-g6zeqvvb.js +2 -0
- package/dist/chunk-ghy82tsc.js +2 -0
- package/dist/{chunk-35kmebz9.js → chunk-gzgc8zk5.js} +4 -4
- package/dist/{chunk-qw4fjtt1.js → chunk-h4k3hyny.js} +2 -2
- package/dist/chunk-jqefcghh.js +31 -0
- package/dist/chunk-jw33eys8.js +2 -0
- package/dist/chunk-jwvzvapp.js +11 -0
- package/dist/{chunk-b76jbdtk.js → chunk-jze68d0z.js} +2 -2
- package/dist/chunk-k6wgh598.js +2 -0
- package/dist/{chunk-c1ys37c9.js → chunk-k7ht6tqe.js} +2 -2
- package/dist/{chunk-q94wdmdp.js → chunk-kgj852hx.js} +4 -4
- package/dist/{chunk-nebtks7j.js → chunk-kzjrgh0b.js} +10 -10
- package/dist/chunk-m2a1fxpb.js +2 -0
- package/dist/chunk-m6mxqepz.js +2 -0
- package/dist/chunk-mbmbaj0m.js +2 -0
- package/dist/{chunk-3tzkqf6e.js → chunk-mr9c2ej6.js} +2 -2
- package/dist/chunk-mzqyv7s5.js +33 -0
- package/dist/chunk-n61v7e3s.js +2 -0
- package/dist/chunk-n6qp05t9.js +2 -0
- package/dist/chunk-nn174xjh.js +2 -0
- package/dist/chunk-ntgy4e1q.js +2 -0
- package/dist/chunk-nw4axkpx.js +2 -0
- package/dist/chunk-p5chk3s9.js +2 -0
- package/dist/{chunk-w8vg3te3.js → chunk-phzs239m.js} +4 -4
- package/dist/{chunk-gwabvrc3.js → chunk-pnag11c4.js} +3 -3
- package/dist/{chunk-tc5zk2ka.js → chunk-pqcvh9pp.js} +1 -1
- package/dist/{chunk-a849hqna.js → chunk-pveafhzg.js} +2 -2
- package/dist/chunk-pw9verqx.js +2 -0
- package/dist/{chunk-rh606w0q.js → chunk-q79kmad5.js} +1 -1
- package/dist/chunk-q83w8edy.js +3 -0
- package/dist/{chunk-je0jxvmj.js → chunk-qcymqscj.js} +5 -5
- package/dist/{chunk-rtc17gy5.js → chunk-qt3x1sh3.js} +3 -3
- package/dist/chunk-qx6tr8mr.js +2 -0
- package/dist/{chunk-q8nw82pz.js → chunk-qzbzn1yf.js} +23 -23
- package/dist/{chunk-kaaxb9c5.js → chunk-r4w1cye7.js} +2 -2
- package/dist/{chunk-ebg20d8s.js → chunk-rfnr4xz6.js} +2 -2
- package/dist/{chunk-dajh1369.js → chunk-rrj5m9xv.js} +2 -2
- package/dist/{chunk-d4ybwtqt.js → chunk-s12b57m9.js} +2 -2
- package/dist/chunk-s34g3awk.js +74 -0
- package/dist/chunk-s6sf70ty.js +2 -0
- package/dist/{chunk-wemq37qe.js → chunk-sfwprq8q.js} +8 -8
- package/dist/chunk-ta8bhz27.js +2 -0
- package/dist/chunk-tc5r2vmw.js +2 -0
- package/dist/chunk-ts80ktq7.js +2 -0
- package/dist/{chunk-9k6r7f3c.js → chunk-tv784gv0.js} +4 -4
- package/dist/{chunk-3wcwtqx1.js → chunk-vp31ff54.js} +2 -2
- package/dist/{chunk-nz0krznq.js → chunk-vr36s2en.js} +2 -2
- package/dist/chunk-vyg8bvkt.js +2 -0
- package/dist/{chunk-9zf49tqg.js → chunk-wwhxgvr8.js} +4 -4
- package/dist/{chunk-ncq5n15k.js → chunk-xckzvbvn.js} +1 -1
- package/dist/chunk-xq2ck69k.js +2 -0
- package/dist/chunk-y4ajd836.js +2 -0
- package/dist/{chunk-j3vwyzvb.js → chunk-ydx3mfpp.js} +7 -7
- package/dist/{chunk-z3smaz4z.js → chunk-yk3wh2xv.js} +3 -3
- package/dist/{chunk-5hxsdkvp.js → chunk-ymawe0y5.js} +2 -2
- package/dist/{chunk-zckbg2vb.js → chunk-zd01r00t.js} +1 -1
- package/dist/chunk-zddzjd60.js +2 -0
- package/dist/chunk-zgxj1q7w.js +2 -0
- package/dist/chunk-zs7qhh40.js +2 -0
- package/dist/{chunk-qh0es7mk.js → chunk-zyk12484.js} +2 -2
- package/dist/cli.js +20 -20
- package/dist/client-script-bundler.js +1 -1
- package/dist/composable-loader.js +3 -2
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/env.d.ts +16 -0
- package/dist/env.js +12 -0
- package/dist/native/compiler/bundle.d.ts +2 -0
- package/dist/native/compiler/bundle.js +51 -12
- package/dist/process.js +3 -3
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +8 -8
- package/dist/store-loader.js +4 -3
- package/package.json +5 -5
- package/dist/chunk-0mw3d5fc.js +0 -2
- package/dist/chunk-1sh80b1c.js +0 -2
- package/dist/chunk-1xyhdpbn.js +0 -2
- package/dist/chunk-20nrvpps.js +0 -2
- package/dist/chunk-2j7tr8wj.js +0 -2
- package/dist/chunk-2mxhp1yy.js +0 -2
- package/dist/chunk-32yj7sbw.js +0 -2
- package/dist/chunk-3ss3vfad.js +0 -2
- package/dist/chunk-4zp2zzch.js +0 -2
- package/dist/chunk-503w9dn3.js +0 -2
- package/dist/chunk-6m406xsn.js +0 -63
- package/dist/chunk-6yja1c8e.js +0 -2
- package/dist/chunk-74va4kza.js +0 -2
- package/dist/chunk-74w81h3v.js +0 -2
- package/dist/chunk-85j8cxfd.js +0 -2
- package/dist/chunk-8bwp2m95.js +0 -2
- package/dist/chunk-8rj08x1d.js +0 -2
- package/dist/chunk-8yn9wxzt.js +0 -31
- package/dist/chunk-98xp5rfe.js +0 -2
- package/dist/chunk-9ah35e2w.js +0 -2
- package/dist/chunk-9d1bs55s.js +0 -2
- package/dist/chunk-9rts16ta.js +0 -2
- package/dist/chunk-a2mztbta.js +0 -33
- package/dist/chunk-ajezxt0s.js +0 -2
- package/dist/chunk-bf572npc.js +0 -2
- package/dist/chunk-cqeccn7x.js +0 -2
- package/dist/chunk-dkyjw3hc.js +0 -3
- package/dist/chunk-dsdxa5x1.js +0 -2
- package/dist/chunk-ectcp21m.js +0 -2
- package/dist/chunk-ewcnyvcd.js +0 -2
- package/dist/chunk-ez7r18ef.js +0 -2
- package/dist/chunk-ffgsaf9e.js +0 -2
- package/dist/chunk-fnnhekdc.js +0 -2
- package/dist/chunk-g8b74qvn.js +0 -2
- package/dist/chunk-ge87hcgb.js +0 -2
- package/dist/chunk-gra2v7xz.js +0 -2
- package/dist/chunk-jg9fydw8.js +0 -2
- package/dist/chunk-k50k9zbw.js +0 -2
- package/dist/chunk-kz131809.js +0 -2834
- package/dist/chunk-mg8yjzkr.js +0 -2
- package/dist/chunk-mjkw1esn.js +0 -2
- package/dist/chunk-n0ra4mv3.js +0 -2
- package/dist/chunk-nspfk500.js +0 -2
- package/dist/chunk-nwyp2xaf.js +0 -2
- package/dist/chunk-pdk87hhe.js +0 -2
- package/dist/chunk-pxcmv1xz.js +0 -2
- package/dist/chunk-re030f77.js +0 -2
- package/dist/chunk-rn80ctkd.js +0 -2
- package/dist/chunk-s7dzs6yg.js +0 -2
- package/dist/chunk-t1tqn3xx.js +0 -2
- package/dist/chunk-tgwdk0gt.js +0 -15
- package/dist/chunk-tma2vac1.js +0 -2
- package/dist/chunk-v0chatw1.js +0 -2
- package/dist/chunk-v9mkambt.js +0 -2
- package/dist/chunk-vwjqbn5y.js +0 -2
- package/dist/chunk-wrvksj26.js +0 -2
- package/dist/chunk-wvjpvs89.js +0 -11
- package/dist/chunk-xkxwg6d4.js +0 -2
- package/dist/chunk-xspkz804.js +0 -2
- package/dist/chunk-xwqyw7zt.js +0 -2
- package/dist/chunk-y3kp87w1.js +0 -2
- package/dist/chunk-ya39wk58.js +0 -2
- package/dist/chunk-ygbdfzqn.js +0 -2
- package/dist/chunk-ypswj8sv.js +0 -2
- package/dist/chunk-yqzhev40.js +0 -2
- package/dist/chunk-z1tnn2pm.js +0 -2
package/dist/chunk-6m406xsn.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-j3vwyzvb.js";import"./chunk-3wcwtqx1.js";import"./chunk-w8vg3te3.js";import{pr,Hs,qi}from"./chunk-c1ys37c9.js";import"./chunk-d4ybwtqt.js";import{Wn,Xn,n,o}from"./chunk-kz131809.js";import"./chunk-wemq37qe.js";import"./chunk-ywah1c30.js";import"./chunk-ebg20d8s.js";import"./chunk-dajh1369.js";import"./chunk-tdv9np5t.js";import"./chunk-9k6r7f3c.js";import{Me}from"./chunk-r8h9b3f8.js";import"./chunk-gwabvrc3.js";import{existsSync as te,mkdirSync as an,readFileSync as cn}from"fs";import C from"path";import{existsSync as et,mkdirSync as rn}from"fs";import F from"path";import{existsSync as en}from"fs";import U from"path";var ot="data-stx-b",Re=new Set(Hs),st=new Set(pr);function at(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(Re.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(qi(e))return"event";if(r.startsWith("@"))return"event";return"attr"}if(r.startsWith("x-")){let e=r.split(".")[0];if(!st.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 Re.has(t)?t==="if"?"if":t:"attr"}return null}function ct(r){let e=[];for(let[t,i]of r){let s=at(t);if(s)e.push({name:t,value:i,kind:s})}return e}var lt=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,ie=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function Ae(r){let e=[],t=0;return{html:r.replace(lt,(s,a,c)=>{if(!c||!/[:@]|x-/.test(c))return s;let d=[];ie.lastIndex=0;for(let g=ie.exec(c);g;g=ie.exec(c))d.push([g[1],g[2]??g[3]??g[4]??""]);let l=ct(d);if(!l.length)return s;let p={id:t++,bindings:l};if(l.some((g)=>g.kind==="for"))p.template=!0;e.push(p);let m=s.endsWith("/>");return`${s.slice(0,m?-2:-1).trimEnd()} ${ot}="${p.id}"${m?"/>":">"}`}),manifest:{entries:e}}}var oe={"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 ae={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText"},ce=new Set(Object.values(ae));var Ie=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),Pe=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight"];function R(r){let e=typeof r==="number"?r:Number.parseFloat(String(r??""));return Number.isFinite(e)?e:0}function V(r){return Math.round(r*1000)/1000}function le(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 dt(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 Ee=/[MLHVCSQTAZ]/i,se=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function ut(r){let e=[],t=r,i=Ee.exec(t);while(i){let s=i.index;t=t.slice(s);let a=t[0];t=t.slice(1);let c=Ee.exec(t),d=c?t.slice(0,c.index):t,l;if(a==="A"||a==="a"){l=[];let p=0,m=d.trim(),u=0;while(u<m.length){let g=p%7,y=m.slice(u).replace(/^[\s,]+/,"");if(u=m.length-y.length,!y)break;if(g===3||g===4)l.push(y[0]==="1"?1:0),u+=1;else{se.lastIndex=0;let b=se.exec(y);if(!b||b.index!==0)break;l.push(Number.parseFloat(b[0])),u+=b[0].length}p++}}else l=(d.match(se)||[]).map(Number.parseFloat);e.push({command:a,args:l}),i=c}return e}function ft(r,e,t,i,s,a,c,d,l){if(r===d&&e===l)return[];let p=Math.abs(t),m=Math.abs(i);if(!p||!m)return[1,d,l];let u=s*Math.PI/180,g=Math.cos(u),y=Math.sin(u),b=(r-d)/2,S=(e-l)/2,f=g*b+y*S,w=-y*b+g*S,k=f*f/(p*p)+w*w/(m*m);if(k>1)p*=Math.sqrt(k),m*=Math.sqrt(k);let E=p*p*m*m-p*p*w*w-m*m*f*f,h=p*p*w*w+m*m*f*f,v=Math.sqrt(Math.max(0,E/h));if(a===c)v=-v;let x=v*(p*w)/m,N=v*-(m*f)/p,A=g*x-y*N+(r+d)/2,B=y*x+g*N+(e+l)/2,P=(_,I,O,X)=>{let ne=_*X-I*O<0?-1:1,re=(_*O+I*X)/(Math.hypot(_,I)*Math.hypot(O,X));return ne*Math.acos(Math.min(1,Math.max(-1,re)))},L=P(1,0,(f-x)/p,(w-N)/m),D=P((f-x)/p,(w-N)/m,(-f-x)/p,(-w-N)/m);if(!c&&D>0)D-=2*Math.PI;if(c&&D<0)D+=2*Math.PI;let H=Math.max(1,Math.ceil(Math.abs(D)/(Math.PI/2))),ve=D/H,q=1.3333333333333333*Math.tan(ve/4),we=[],xe=(_)=>{let I=p*Math.cos(_),O=m*Math.sin(_);return[g*I-y*O+A,y*I+g*O+B]},Ne=(_)=>{let I=-p*Math.sin(_),O=m*Math.cos(_);return[g*I-y*O,y*I+g*O]},G=L;for(let _=0;_<H;_++){let I=G+ve,[O,X]=xe(G),[ne,re]=Ne(G),[ke,Te]=xe(I),[rt,it]=Ne(I);we.push(2,O+q*ne,X+q*re,ke-q*rt,Te-q*it,_===H-1?d:ke,_===H-1?l:Te),G=I}return we}function pt(r){let e=[],t=0,i=0,s=0,a=0,c=0,d=0,l=0,p=0,m="";for(let{command:u,args:g}of ut(String(r??""))){let y=u===u.toLowerCase(),b=u.toUpperCase(),S=()=>y?t:0,f=()=>y?i:0,w=0,k=(h)=>{if(w+h>g.length)return null;let v=g.slice(w,w+h);return w+=h,v};if(b==="Z"){e.push(4),t=s,i=a,m="Z";continue}let E=!0;while(w<g.length||E&&b==="Z"){switch(b){case"M":{let h=k(2);if(!h)return e;if(t=h[0]+S(),i=h[1]+f(),E)e.push(0,t,i),s=t,a=i;else e.push(1,t,i);m=E?"M":"L";break}case"L":{let h=k(2);if(!h)return e;t=h[0]+S(),i=h[1]+f(),e.push(1,t,i),m="L";break}case"H":{let h=k(1);if(!h)return e;t=h[0]+S(),e.push(1,t,i),m="L";break}case"V":{let h=k(1);if(!h)return e;i=h[0]+f(),e.push(1,t,i),m="L";break}case"C":{let h=k(6);if(!h)return e;let v=h[0]+S(),x=h[1]+f();c=h[2]+S(),d=h[3]+f(),t=h[4]+S(),i=h[5]+f(),e.push(2,v,x,c,d,t,i),m="C";break}case"S":{let h=k(4);if(!h)return e;let v=m==="C"?2*t-c:t,x=m==="C"?2*i-d:i;c=h[0]+S(),d=h[1]+f(),t=h[2]+S(),i=h[3]+f(),e.push(2,v,x,c,d,t,i),m="C";break}case"Q":{let h=k(4);if(!h)return e;l=h[0]+S(),p=h[1]+f(),t=h[2]+S(),i=h[3]+f(),e.push(3,l,p,t,i),m="Q";break}case"T":{let h=k(2);if(!h)return e;l=m==="Q"?2*t-l:t,p=m==="Q"?2*i-p:i,t=h[0]+S(),i=h[1]+f(),e.push(3,l,p,t,i),m="Q";break}case"A":{let h=k(7);if(!h)return e;let v=h[5]+S(),x=h[6]+f();e.push(...ft(t,i,h[0],h[1],h[2],h[3],h[4],v,x)),t=v,i=x,m="A";break}default:return e}E=!1}}return e.map((u)=>V(u))}function _e(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(V)}function de(r,e){switch(r){case"Path":return pt(String(e.d??""));case"Line":return[0,R(e.x1),R(e.y1),1,R(e.x2),R(e.y2)].map(V);case"Rect":{let t=R(e.x),i=R(e.y),s=R(e.width),a=R(e.height);if(s<=0||a<=0)return[];let c=e.rx===void 0?R(e.ry):R(e.rx),d=e.ry===void 0?c:R(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(V);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(V)}case"Circle":return _e(R(e.cx),R(e.cy),R(e.r),R(e.r));case"Ellipse":return _e(R(e.cx),R(e.cy),R(e.rx),R(e.ry));case"Polyline":case"Polygon":{let t=dt(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(V)}default:return null}}var gt=[...Pe,"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"],Ce=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"]),ht=new Map(gt.map((r)=>[Oe(r),r]));function Oe(r){return r.replace(/[-_]/g,"").toLowerCase()}function ue(r){return ht.get(Oe(r))??r}var mt={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 Be(r){return mt[r.toLowerCase()]||r}var yt={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 fe(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=yt[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 bt={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},Le={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},M={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function W(r){let e=r.lastIndexOf("/");if(e>0&&!r.endsWith("]")){let i=W(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 St(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=bt[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 St(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 pe(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 T(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 K(r){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(r);if(e)return`${Number.parseFloat(e[1])}%`;return T(r)}var vt={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 wt(r,e){if(!r.startsWith("bg-"))return!1;let t=r.slice(3),i=W(t);if(i)return e.backgroundColor=i,!0;return!1}function xt(r,e){if(!r.startsWith("text-"))return!1;let t=r.slice(5);if(Le[t])return e.fontSize=Le[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=W(t);if(i)return e.color=i,!0;return!1}var Nt=new Set(["t","tr","r","br","b","bl","l","tl"]);function kt(r,e){let t=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(r);if(t&&Nt.has(t[1]))return e.gradientDirection=`to-${t[1]}`,!0;let i=/^(from|via|to)-(.+)$/.exec(r);if(!i)return!1;let s=W(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 Tt(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=W(s);if(a)return e[t]=a,!0}return!1}function Rt(r,e){if(r.startsWith("p-")){let t=T(r.slice(2));if(t!==void 0)return e.padding=t,!0}if(r.startsWith("px-")){let t=T(r.slice(3));if(t!==void 0)return e.paddingHorizontal=t,!0}if(r.startsWith("py-")){let t=T(r.slice(3));if(t!==void 0)return e.paddingVertical=t,!0}if(r.startsWith("pt-")){let t=T(r.slice(3));if(t!==void 0)return e.paddingTop=t,!0}if(r.startsWith("pr-")){let t=T(r.slice(3));if(t!==void 0)return e.paddingRight=t,!0}if(r.startsWith("pb-")){let t=T(r.slice(3));if(t!==void 0)return e.paddingBottom=t,!0}if(r.startsWith("pl-")){let t=T(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=T(r.slice(2));if(t!==void 0)return e.margin=t,!0}if(r.startsWith("mx-")){let t=T(r.slice(3));if(t!==void 0)return e.marginHorizontal=t,!0}if(r.startsWith("my-")){let t=T(r.slice(3));if(t!==void 0)return e.marginVertical=t,!0}if(r.startsWith("mt-")){let t=T(r.slice(3));if(t!==void 0)return e.marginTop=t,!0}if(r.startsWith("mr-")){let t=T(r.slice(3));if(t!==void 0)return e.marginRight=t,!0}if(r.startsWith("mb-")){let t=T(r.slice(3));if(t!==void 0)return e.marginBottom=t,!0}if(r.startsWith("ml-")){let t=T(r.slice(3));if(t!==void 0)return e.marginLeft=t,!0}return!1}function At(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=K(t);if(i!==void 0)return e.width=i,!0;return!1}function Et(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=K(t);if(i!==void 0)return e.height=i,!0;return!1}function _t(r,e){if(!r.startsWith("rounded"))return!1;if(r==="rounded")return e.borderRadius=M.DEFAULT,!0;let t=r.slice(8);if(t==="")return!1;let i=/^(?:(t|b|l|r)-)?(\[[^\]]+\])$/.exec(t);if(i){let a=pe(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=M[t.slice(2)]??M.DEFAULT;return e.borderTopLeftRadius=a,e.borderTopRightRadius=a,!0}if(t.startsWith("b-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderBottomLeftRadius=a,e.borderBottomRightRadius=a,!0}if(t.startsWith("l-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopLeftRadius=a,e.borderBottomLeftRadius=a,!0}if(t.startsWith("r-")){let a=M[t.slice(2)]??M.DEFAULT;return e.borderTopRightRadius=a,e.borderBottomRightRadius=a,!0}let s=M[t];if(s!==void 0)return e.borderRadius=s,!0;return!1}function It(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 Pt(r,e){if(!r.startsWith("border-"))return!1;let t=r.slice(7),i=W(t);if(i)return e.borderColor=i,!0;return!1}function Ct(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 Ot(r,e){if(r.startsWith("tracking-[")){let t=pe(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:pe(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 Bt(r,e){let t=/^grid-cols-(\d+)$/.exec(r);if(!t)return!1;return e.gridColumns=Number(t[1]),!0}function Mt(r,e){if(!r.startsWith("size-"))return!1;let t=r.slice(5),i=t==="full"?"100%":K(t);if(i===void 0)return!1;return e.width=i,e.height=i,!0}var Lt={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function Dt(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"&&Lt[a]||K(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 Ft(r,e){let t=/^(-?)(top|right|bottom|left)-(.+)$/.exec(r);if(!t)return!1;let i=t[3]==="full"?"100%":T(t[3]);if(i===void 0)return!1;return e[t[2]]=typeof i==="number"&&t[1]?-i:i,!0}function Vt(r,e){let t=/^space-(x|y)-(.+)$/.exec(r);if(!t)return!1;let i=T(t[2]);if(i===void 0)return!1;return e.gap=i,!0}function Wt(r,e){if(r.startsWith("gap-")){let t=T(r.slice(4));if(t!==void 0)return e.gap=t,!0}if(r.startsWith("gap-x-")){let t=T(r.slice(6));if(t!==void 0)return e.columnGap=t,!0}if(r.startsWith("gap-y-")){let t=T(r.slice(6));if(t!==void 0)return e.rowGap=t,!0}return!1}function $t(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 J(r){let e=[],t=[],i=[];function s(l,p){let m=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(l),u=m&&Wn[m[2]];return u?`${m[1]}-${u[p]}${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:De(e.join(" "),a),unknown:a};if(t.length||i.length)d.dark=De([...i,...t].join(" "),a);for(let l of e){if(l==="truncate")d.numberOfLines=1;let p=/^line-clamp-(\d+)$/.exec(l);if(p)d.numberOfLines=Number(p[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 De(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=vt[s];if(a){a("",t);continue}if($t(s,t))continue;if(kt(s,t))continue;if(wt(s,t))continue;if(Tt(s,t))continue;if(xt(s,t))continue;if(Rt(s,t))continue;if(Ve(s,t))continue;if(At(s,t))continue;if(Et(s,t))continue;if(_t(s,t))continue;if(It(s,t))continue;if(Pt(s,t))continue;if(Ct(s,t))continue;if(Wt(s,t))continue;if(Ot(s,t))continue;if(Mt(s,t))continue;if(Dt(s,t))continue;if(Bt(s,t))continue;if(Ft(s,t))continue;if(Vt(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 j(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"]),Y=new Set,jt=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"]),ge=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"]),Xt=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"]),zt=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",...ce]),Ut=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"],["listrole","listRole"]]),ze=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Ht={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function z(r){return r.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,t)=>{let i=Ht[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 Ue(r){return r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function He(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 g=m.toLowerCase();if(g==="class"||g==="classname"){c=c?`${c} ${u}`:u;continue}if(g==="style"){d={...d,...Gt(r,u,t)};continue}if(g.startsWith(":")||g.startsWith("x-")&&g!=="x-cloak"){a[g.startsWith(":")?g.slice(1):g.slice(2)]=z(u);continue}if(g==="x-cloak")continue;if(g.startsWith("@")||g.startsWith("v-on:")){let S=g.startsWith("@")?g.slice(1):g.slice(5),[f]=S.split("."),w=oe[f]??(f.startsWith("on")?f:"");if(!w||!jt.has(w)){t.push({kind:"unread-event",tag:r,name:m});continue}s[w]=z(u);continue}if(g==="key"){i.key=u;continue}let y=z(u),b=ue(m);if(y===""&&Ce.has(b)){i[b]=!0;continue}try{i[b]=JSON.parse(y)}catch{i[b]=y}}let l=c?J(c):void 0;for(let m of new Set(l?.unknown??[]))t.push({kind:"unknown-class",tag:r,name:m});let p={...l?.style,...d};return{props:i,style:p,events:s,bindings:a,classes:c,inline:d}}function qt(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(Xt.has(r))return!1;if(zt.has(r))return/^-?[\d.]+%$/.test(e);return!0}function Gt(r,e,t){let i={},s=z(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=ge.has(c)?c:Ue(c.trim().toLowerCase());if(!ge.has(l)){t.push({kind:"unknown-style",tag:r,name:l});continue}if(d===null||d===void 0)continue;let p=typeof d==="string"?He(d):d;if(typeof p==="object"){let m=qt(l,p);if(m===void 0)t.push({kind:"non-numeric-style",tag:r,name:l});else i[l]=m;continue}if(typeof p!=="string"&&typeof p!=="number")continue;if(typeof p==="string"&&!Ge(l,p)){t.push({kind:"non-numeric-style",tag:r,name:l});continue}i[l]=p}return i}}catch{}for(let a of s.split(";")){let c=a.indexOf(":");if(c===-1)continue;let d=Ue(a.slice(0,c).trim().toLowerCase()),l=a.slice(c+1).trim();if(!d||!l)continue;if(!ge.has(d)){t.push({kind:"unknown-style",tag:r,name:d});continue}let p=He(l);if(typeof p==="string"&&!Ge(d,p)){t.push({kind:"non-numeric-style",tag:r,name:d});continue}i[d]=p}return i}function he(r){return r.children.map((e)=>typeof e==="string"?e:he(e)).join("").replace(/\s+/g," ").trim()}function Kt(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=he(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=he(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 Jt(r,e={}){let t=[],i=[],s=[],a=new Set;function c(u){let g=s[s.length-1];if(!g)i.push(u);else if(!g.dropped)g.node.children.push(u)}function d(u){if(u.node.bindings&&Object.keys(u.node.bindings).length>0){let y=u.node.children,b=y.filter((f)=>typeof f!=="string"),S=b.length===1&&b.length===y.length?b[0]:j("View",{},{},{},y);if(S.bindings={...u.node.bindings,...S.bindings},S.bindingId===void 0&&u.node.bindingId!==void 0)S.bindingId=u.node.bindingId;c(S);return}let g=s[s.length-1];for(let y of u.node.children){if(typeof y==="string"){if(g&&!g.dropped)g.node.children.push(y);continue}if(!g)i.push(y);else if(!g.dropped)g.node.children.push(y)}}function l(u,g){let y=s[s.length-1];if(u==="svg"||y?.svg)return p(u,g,y);let b=$e.has(u)&&!Y.has(u),S=s[s.length-1]?.dropped??!1,{props:f,style:w,events:k,bindings:E,classes:h,inline:v}=b||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:qe(u,g,t),x=f["data-native"],N;if(typeof x==="string"&&Xe.has(x))N=x,delete f["data-native"];else N=Y.has(u)?"View":Be(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((b||Y.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=J(h).icon,L=fe(String(f.symbol||f.name||P||""),Boolean(f.symbol));if(f.symbol=L.symbol,L.iconify)f.iconify=L.iconify}if(N==="FlatList"||N==="SectionList"){let P=new Set([...Object.keys(f),...Object.keys(E)].map((L)=>L.toLowerCase()));for(let[L,D]of Ut)if(P.has(L))t.push({kind:"unsupported-list-prop",tag:N,name:D})}let A=j(N,f,w,k);A._inlineStyle=v;let B=f["data-stx-b"];if(typeof B==="number"&&Number.isInteger(B))A.bindingId=B;if(delete f["data-stx-b"],h)A._classes=h;if(Object.keys(E).length>0)A.bindings=E;if(typeof f.key==="string")A.key=f.key,delete f.key;return{tag:u,node:A,dropped:b||S||Y.has(u),discard:b||S,unwrap:je.has(u)}}function p(u,g,y){let b=y?.dropped??!1,S=ae[u];if(b||!S){if(!b&&!a.has(`drop:${u}`))a.add(`drop:${u}`),t.push({kind:Ie.has(u)?"dropped-subtree":"unmapped-tag",tag:u});return{tag:u,node:j("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let{props:f,style:w,events:k,bindings:E,classes:h,inline:v}=qe(u,g,t);if(S==="Svg"){let B=le(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 x=de(S,f);if(x)f.geometry=x;let N=j(S,f,w,k);N._inlineStyle=v;let A=f["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))N.bindingId=A;if(delete f["data-stx-b"],h)N._classes=h;if(Object.keys(E).length>0)N.bindings=E;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 g=u.tagName.toLowerCase(),y=l(g,[...u.attributes]),b=!0;try{u.onEndTag(()=>{if(s.pop(),y.discard)return;if(y.unwrap)d(y);else c(Kt(y,t))})}catch{b=!1}if(b)s.push(y);else if(!y.discard)c(y.node)},text(u){let g=s[s.length-1];if(!g||g.dropped)return;let y=z(u.text).replace(/\s+/g," ");if(!y.trim())return;g.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]:j("View",{},{},{},i),diagnostics:t}}async function Ke(r,e={}){let{root:t,diagnostics:i}=await Jt(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,Yt=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Qt=/(?:^|\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 me(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[Yt,Qt]){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 Q=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,Qe=/function\s+(__stx_setup_[\w$]+)\s*\(/,Zt=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function ye(r){Q.lastIndex=0;for(let e of r.matchAll(Q)){let t=e[2].trim(),i=Qe.exec(t)?.[1];if(i)return{name:i,code:t}}return null}function Ze(r){let e=[];Q.lastIndex=0;for(let t of r.matchAll(Q)){let i=t[1],s=t[2].trim(),a=Zt.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 tn(){let r=[U.join(import.meta.dir,"..","primitives"),U.join(import.meta.dir,"native","primitives")];for(let e of r)if(en(U.join(e,"View.stx")))return e;return r[0]}async function nn(r,e,t={}){let i=t.root??U.dirname(e),s=await o(i),a={root:i,componentsDir:t.componentsDir??U.join(i,"components"),buildMode:"serve",cache:!1,_targetComponentDirs:[tn()],_pluginComponentDirs:s._pluginComponentDirs??[]},c={...t.context??{},__stx_inject_css:!1},d=new Set([e]),l=await n(r,c,e,a,d),{html:p,manifest:m}=Ae(l),{document:u,diagnostics:g}=await Ke(p,{source:e,script:me(r)}),y=ye(p),b=Ze(p);if(me(r).code.trim()){let S=await Xn(r,e,t.context,{forceClientSetup:!0}),f=ye(S.setupCode??"");if(y=f??y,f&&!b.some((w)=>w.code===f.code))b.push({code:f.code})}return{document:u,manifest:m,setup:y,scripts:b,diagnostics:g,html:p,dependencies:[...d]}}async function Z(r,e={}){return nn(await Bun.file(r).text(),r,e)}var ee="__app";function be(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)=>et(i));if(!t)throw Error(`Native runtime module ${r} is missing`);return t}async function on(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()}async function Se(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 Z(x,{root:s})})}let c=be("jsc-globals"),d=be("shared-screen"),l=r.app?F.resolve(s,r.app):null;if(l&&!et(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[ee])throw Error(`${ee} is the app script's route, not a screen name`);let p=r.browser,m=t?`var routeName = g.__stxNativeRoute || ${JSON.stringify(i)};
|
|
7
|
-
var isApp = ${l?`routeName === ${JSON.stringify(ee)}`:"false"};
|
|
8
|
-
if (!isApp && routeNames.indexOf(routeName) === -1) throw new Error(['Unknown native screen:', routeName].join(' '));`:`var routeName = 'main';
|
|
9
|
-
var isApp = false;`,u=a.map(({name:v,compiled:x},N)=>`${N===0?"if":"else if"} (routeName === ${JSON.stringify(t?v:"main")}) {
|
|
10
|
-
nativeDocument = ${JSON.stringify(x.document)};
|
|
11
|
-
manifest = ${JSON.stringify(x.manifest)};
|
|
12
|
-
}`).join(`
|
|
13
|
-
`),g=a.map(({name:v,compiled:x},N)=>`${N===0?"if":"else if"} (routeName === ${JSON.stringify(t?v:"main")}) {
|
|
14
|
-
g.__stx_latestSetup = null;
|
|
15
|
-
${x.scripts.map((A)=>A.owner?` g.__STX_SETUP_ROOT__ = screen && screen.scopeRoot(${JSON.stringify(A.owner)});
|
|
16
|
-
try {
|
|
17
|
-
${A.code}
|
|
18
|
-
}
|
|
19
|
-
finally { g.__STX_SETUP_ROOT__ = null; }`:A.code).join(`
|
|
20
|
-
`)}
|
|
21
|
-
}`).join(`
|
|
22
|
-
`),y=p?be("browser-screen"):null,b=p?Bun.resolveSync(p.platformModule,s):null,S=`
|
|
23
|
-
import { installJSCGlobals } from ${JSON.stringify(c)};
|
|
24
|
-
import { prepareNativeApp, prepareSharedNativeScreen } from ${JSON.stringify(d)};
|
|
25
|
-
${p?`import { createBrowserScreenBridge } from ${JSON.stringify(y)};
|
|
26
|
-
import { createBrowserPlatform } from ${JSON.stringify(b)};`:""}
|
|
27
|
-
${l?`import * as nativeAppModule from ${JSON.stringify(l)};`:"var nativeAppModule = null;"}
|
|
28
|
-
${p?"(async function() {":""}
|
|
29
|
-
var g = globalThis;
|
|
30
|
-
installJSCGlobals(g);
|
|
31
|
-
${p?`var browserPlatform = await createBrowserPlatform(${JSON.stringify(p.platformOptions??{})});
|
|
32
|
-
var browserBridge = createBrowserScreenBridge(browserPlatform, ${JSON.stringify(p)});
|
|
33
|
-
var bridge = browserBridge;
|
|
34
|
-
g.__stxNativeRoute = ${JSON.stringify(i)};`:"var bridge = g.__stxNativeBridge;"}
|
|
35
|
-
if (!bridge) throw new Error('Missing __stxNativeBridge');
|
|
36
|
-
var routeNames = ${JSON.stringify(t?e:["main"])};
|
|
37
|
-
${m}
|
|
38
|
-
g.__stxNativeRoute = routeName;
|
|
39
|
-
var nativeDocument;
|
|
40
|
-
var manifest;
|
|
41
|
-
${u}
|
|
42
|
-
var screen = null;
|
|
43
|
-
var app = null;
|
|
44
|
-
if (isApp) {
|
|
45
|
-
app = prepareNativeApp(bridge, { routeName: routeName, routeNames: routeNames });
|
|
46
|
-
g.__stxNativeUnmount = function() { app.unmount(); };
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
screen = prepareSharedNativeScreen(nativeDocument, manifest, bridge, { routeName: routeName, routeNames: routeNames });
|
|
50
|
-
g.__stx_host = screen.host;
|
|
51
|
-
g.__stxNativeUnmount = function() { screen.unmount(); };
|
|
52
|
-
}
|
|
53
|
-
${Me()}
|
|
54
|
-
${g}
|
|
55
|
-
if (isApp) app.start(nativeAppModule);
|
|
56
|
-
else screen.mount(g.stx, g.__stx_latestSetup || null);
|
|
57
|
-
${p?`var stopApp = nativeAppModule && typeof nativeAppModule.default === 'function' ? nativeAppModule.default(g.craft) : null;
|
|
58
|
-
var unmount = g.__stxNativeUnmount;
|
|
59
|
-
var ended = false;
|
|
60
|
-
g.__stxNativeUnmount = function() { if (ended) return; ended = true; if (typeof stopApp === 'function') stopApp(); unmount(); browserBridge.dispose(); };
|
|
61
|
-
g.addEventListener('pagehide', function(event) { if (!event.persisted) g.__stxNativeUnmount(); });
|
|
62
|
-
})().catch(function(error) { console.error('[stx browser screen]', error); var node = document.querySelector(${JSON.stringify(p.container)}); if (node) { node.textContent = 'This screen could not start. Reload to try again.'; node.setAttribute('role', 'alert'); } });`:""}
|
|
63
|
-
`,f={name:"stx-native-shared-screens",setup(v){v.onResolve({filter:/^stx:native-shared-screens$/},()=>({path:"entry",namespace:"stx-native-shared-screens"})),v.onLoad({filter:/.*/,namespace:"stx-native-shared-screens"},()=>({contents:S,loader:"js"}))}},w=new Set(a.flatMap(({compiled:v})=>v.dependencies)),k=await on("stx:native-shared-screens",[f],r.minify??!1,w),E=a.flatMap(({compiled:v})=>v.diagnostics).map((v)=>({level:"warning",message:[v.kind,v.tag,v.name].filter(Boolean).join(": ")}));if(!r.outFile)return{code:k,diagnostics:E,dependencies:[...w]};let h=F.resolve(s,r.outFile);return rn(F.dirname(h),{recursive:!0}),await Bun.write(h,k),{code:k,outFile:h,diagnostics:E,dependencies:[...w]}}async function sn(r,e={}){return Se({...e,screens:{main:r},routed:!1})}function tt(r,e={}){return sn(r,e)}var nt=["native.config.json","stx-native.config.json"];function ln(r=process.cwd(),e){let t=e?C.resolve(r,e):nt.map((l)=>C.join(r,l)).find((l)=>te(l));if(!t)return null;if(!te(t))throw Error(`Native config not found: ${t}`);let i=JSON.parse(cn(t,"utf8")),s=Object.entries(i.screens??{});if(s.length===0)throw Error(`${C.basename(t)} must name at least one screen in "screens"`);let a={};for(let[l,p]of s){if(!/^[A-Z][\w-]*$/i.test(l))throw Error(`Invalid native screen name: ${l}`);if(typeof p!=="string"||!p.endsWith(".stx"))throw Error(`Screen ${l} must name a .stx file`);if(a[l]=C.resolve(C.dirname(t),p),!te(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?C.resolve(C.dirname(t),i.app):void 0;if(d&&!te(d))throw Error(`App script not found: ${d}`);return{initialScreen:c,screens:a,file:t,...d?{app:d}:{}}}async function Pr(r,e={}){let t=C.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:ln(t,e.config);if(!r&&!s)throw Error(`Please specify an input file: stx native compile <file.stx>, or add ${nt[0]}`);let a,c=[];if(i==="bundle"){let l=s?await Se({screens:s.screens,initialScreen:s.initialScreen,minify:e.minify,root:t,...s.app?{app:s.app}:{}}):await tt(C.resolve(t,r),{minify:e.minify});a=l.code,c=l.diagnostics}else{let l=async(m)=>{let u=await Z(m);return c.push(...u.diagnostics.map((g)=>({level:"warning",message:[g.kind,g.tag,g.name].filter(Boolean).join(": ")}))),u.document},p=s?{initialScreen:s.initialScreen,screens:Object.fromEntries(await Promise.all(Object.entries(s.screens).map(async([m,u])=>[m,await l(u)])))}:await l(C.resolve(t,r));a=JSON.stringify(p,null,2)}if(!e.output)return{output:a,diagnostics:c};let d=C.resolve(t,e.output);return an(C.dirname(d),{recursive:!0}),await Bun.write(d,a),{output:a,written:d,diagnostics:c}}export{Pr as runNativeCompile};
|
package/dist/chunk-6yja1c8e.js
DELETED
package/dist/chunk-74va4kza.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ct,bs,hi,Pc}from"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{Pc as declareBareLoopHead,Ct as parseLoopBinding,hi as processLoops,bs as reportDeferredLoopWarnings};
|
package/dist/chunk-74w81h3v.js
DELETED
package/dist/chunk-85j8cxfd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ga,Tl,ma,ha,$l,Rl}from"./chunk-5hxsdkvp.js";import"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{Rl as applySlots,$l as extractSlotContent,Tl as parseSlotElement,ga as parseSlots,ha as processSlots,ma as renderSlot};
|
package/dist/chunk-8bwp2m95.js
DELETED
package/dist/chunk-8rj08x1d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{j,B,F,Bt,Z,ie,Dn,fa,Oe,gt,Ft,zt,Ht,z,Ut,Vt,Mn}from"./chunk-qh0es7mk.js";import"./chunk-rtc17gy5.js";export{B as DEFAULT_FORMATS,F as DEFAULT_QUALITY,j as DEFAULT_WIDTHS,Mn as ImageProcessingError,Vt as formatSize,gt as generateSizes,Oe as generateSrcSet,Ft as getFallbackVariant,Dn as getImageMetadata,z as getMimeType,Ut as getTotalSize,zt as groupVariantsByFormat,Z as isImageBackendAvailable,Ht as isImageFile,Bt as isSharpAvailable,ie as processImage,fa as resizeAndConvert};
|
package/dist/chunk-8yn9wxzt.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pt}from"./chunk-wemq37qe.js";import{Zo,rs,H,ze,Q,_t,x,Ue,Ve,Jn,d}from"./chunk-kz131809.js";import{D}from"./chunk-dkyjw3hc.js";var V=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function B(t,n,e){let r={fullTag:e,content:n,attrs:t};if(/\bserver\b/.test(t))return{...r,type:"server"};if(/\bdata-stx-scoped\b/.test(t))return{...r,type:"client"};if(V.test(n))return{...r,type:"signals"};if(/\bclient\b/.test(t)||/\btype\s*=\s*["']module["']/.test(t)||/\bsrc\s*=/.test(t))return{...r,type:"client"};return{...r,type:"server"}}var q=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function uo(t){let n=[],e=[],r=[],i=0;while(i<t.length){let s=t.indexOf("<",i);if(s===-1)break;let a=ze(t,s);if(a>s){i=a;continue}let o=H(t,s);if(o>s){let c=t.slice(s,o),u=q.exec(c);if(u){let l=B(u[1],u[2],c);switch(l.type){case"signals":n.push(l);break;case"client":e.push(l);break;case"server":r.push(l);break}}i=o;continue}i=s+(t.startsWith("<!--",s)?4:1)}return{signals:n,client:e,server:r}}var z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function G(t){let n=[],e=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,r;while((r=e.exec(t))!==null)n.push({start:r.index,end:r.index+r[0].length});return n}function T(t,n){return n.some((e)=>t>=e.start&&t<e.end)}function U(t){let n=(t||"").trim();if(!n)return null;if(/[\s>+~,:]/.test(n))return null;let e={},r=n,i=r.match(/^[a-z][\w-]*/i);if(i)e.tag=i[0].toLowerCase(),r=r.slice(i[0].length);while(r.length>0){let s=r.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(s){if(e.attr=s[1],s[3]!==void 0&&s[3]!=="")e.attrValue=s[3];r=r.slice(s[0].length);continue}let a=r.match(/^#([\w-]+)/);if(a){e.id=a[1],r=r.slice(a[0].length);continue}let o=r.match(/^\.([\w-]+)/);if(o){e.className=o[1],r=r.slice(o[0].length);continue}return null}if(!e.tag&&!e.attr&&!e.id&&!e.className)return null;return e}function W(t,n){if(n.attr){if(!(n.attrValue===void 0?new RegExp(`\\b${n.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${n.attr}\\s*=\\s*(["'])\\s*${n.attrValue}\\s*\\1`,"i")).test(t))return!1}if(n.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${n.id}\\s*\\1`,"i").test(t))return!1}if(n.className){let e=t.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!e)return!1;if(!e[2].split(/\s+/).includes(n.className))return!1}return!0}function O(t,n="main"){let e=U(n);if(!e)return null;let r=/<([a-z][\w-]*)\b([^>]*)>/gi,i=G(t),s;while((s=r.exec(t))!==null){if(T(s.index,i))continue;let a=s[1].toLowerCase(),o=s[2]||"";if(o.trimEnd().endsWith("/")||z.has(a))continue;if(e.tag&&e.tag!==a)continue;if(!W(o,e))continue;let c=s[0],u=s.index+c.length,l=new RegExp(`<(/?)${a}\\b([^>]*)>`,"gi");l.lastIndex=u;let f=1,m;while((m=l.exec(t))!==null){if(T(m.index,i))continue;let S=m[1]==="/";if(!S&&(m[2]||"").trimEnd().endsWith("/"))continue;if(f+=S?-1:1,f===0)return{openTag:c,openIndex:s.index,start:u,end:m.index,tagName:a}}return null}return null}var Ie="private, no-store";function po(t){return t.replace(/&#(\d+);/g,(n,e)=>M(Number(e),n)).replace(/&#x([0-9a-f]+);/gi,(n,e)=>M(Number.parseInt(e,16),n)).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")}function M(t,n){if(!Number.isInteger(t)||t<0||t>1114111)return n;try{return String.fromCodePoint(t)}catch{return n}}function se(t){return t.headers.get("X-STX-Router")==="true"}function X(t,n){if(!t)return n;return t.split(",").some((r)=>r.trim().toLowerCase()===n.toLowerCase())?t:`${t}, ${n}`}function E(t){return{Vary:X(t,"X-STX-Router")}}import k from"path";var J="stx-page-head:",K=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,v={dev:null,prod:null};function Y(){let t=D()?"dev":"prod",n=v[t];if(n!==null)return n;try{let e=import.meta.require("./chunk-v9mkambt.js"),r=t==="dev"&&typeof e.getRouterScriptDev==="function"?e.getRouterScriptDev:e.getRouterScript;v[t]=`<script>${r()}</script>`}catch{v[t]=""}return v[t]}async function fo(t,n){if(n===!1)return null;if(n&&typeof n==="string"){let r=k.resolve(t,n);if(await Bun.file(r).exists())return r;return null}let e=k.join(t,"app.stx");if(await Bun.file(e).exists())return e;return null}async function $r(t,n){try{let e=await Bun.file(t).text(),r=e,i=e.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(i)r=i[1].trim();let s=uo(e),a=[...s.client.map((p)=>p.fullTag),...s.signals.map((p)=>p.fullTag)],o=[],c=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,u;while((u=c.exec(e))!==null)o.push(u[0]);let l=r;for(let p of s.server)l=l.replace(p.fullTag,"");for(let p of s.client)l=l.replace(p.fullTag,"");l=l.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let f="<!--__STX_PAGE_SLOT__-->";if(l=l.replace(/<slot\s*\/>/gi,f).replace(/<slot\s*>\s*<\/slot>/gi,f),!l.includes(f))return console.warn(`[stx] Shell ${t} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:m,extractVariables:S,defaultConfig:b,loadStxConfig:w}=await import("./chunk-s7dzs6yg.js"),y=await w(),g={__filename:t,__dirname:k.dirname(t)};for(let p of a){let C=p.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(C&&!p.includes("client")&&!p.includes('type="module"'))await S(C[1],g,t)}let R=await m(l,g,t,{...b,...y,...n},new Set),h=R.indexOf(f);if(h===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:R.substring(0,h),afterSlot:R.substring(h+f.length),filePath:t,shellScripts:a,shellStyles:o}}catch(e){return console.error(`[stx] Error processing shell ${t}:`,e),null}}function On(t,n,e){let r,i="",s=n.match(K);if(s){n=n.replace(s[0],"");try{let l=Buffer.from(s[1],"base64").toString("utf8"),f=l.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(f)r=f[1].trim();i=l.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let a=e||r||"stx App",o=Y(),c="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>${a}</title>
|
|
8
|
-
${i?` ${i}
|
|
9
|
-
`:""} ${t.shellStyles.join(`
|
|
10
|
-
`)}
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
${t.beforeSlot}
|
|
14
|
-
<div data-stx-content>${n}</div>
|
|
15
|
-
${t.afterSlot}
|
|
16
|
-
${t.shellScripts.filter((l)=>!l.includes("server")).join(`
|
|
17
|
-
`)}
|
|
18
|
-
${c}
|
|
19
|
-
${o}
|
|
20
|
-
</body>
|
|
21
|
-
</html>`}function ye(t,n={}){let e=t.trim();if(!Pt(e))return t;let r=[],i=e.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if(i){let c=i[1],u=/<style\b[^>]*>[\s\S]*?<\/style>/gi,l;while((l=u.exec(c))!==null)r.push(l[0]);let f=c.match(/<script\b[^>]*data-stx-server-data[^>]*>[\s\S]*?<\/script>/i);if(f)r.push(f[0]);let m=c.match(/<script\b[^>]*data-stx-runtime-config[^>]*>[\s\S]*?<\/script>/i);if(m)r.push(m[0])}if(n.preserveHead&&i){let c=[],u=/<title\b[^>]*>[\s\S]*?<\/title>|<meta\b[^>]*>|<link\b[^>]*>/gi,l;while((l=u.exec(i[1]))!==null){if(/<meta\b[^>]*(?:\bcharset|name="viewport")/i.test(l[0]))continue;c.push(l[0])}if(c.length>0)r.unshift(`<!--${J}${Buffer.from(c.join(`
|
|
22
|
-
`),"utf8").toString("base64")}-->`)}let s=e.match(/<body\b[^>]*>/i),a=e.lastIndexOf("</body>");if(s&&a!==-1){let c=s.index+s[0].length,u=e.slice(c,a).trim();if(r.length>0)return r.join(`
|
|
23
|
-
`)+`
|
|
24
|
-
`+u;return u}let o=e;if(o=o.replace(/<!DOCTYPE\b[^>]*>/i,""),o=o.replace(/<html\b[^>]*>/i,""),o=o.replace(/<\/html\s*>/i,""),i)o=o.replace(/<head\b[^>]*>[\s\S]*?<\/head>/i,r.join(`
|
|
25
|
-
`));return o=o.replace(/<body\b[^>]*>/i,""),o=o.replace(/<\/body\s*>/i,""),o.trim()}var j=/^<script\b[^>]*\sdata-stx-(?:owner|instance)(?=[\s=/>])/i;function N(t,n,e,r){if(!j.test(n))return!1;let i=n.slice(0,n.indexOf(">")+1),s=/\sdata-stx-owner="([^"]+)"/i.exec(i)?.[1];if(!s)return!0;let a=`data-stx-scope="${s}"`;for(let o=t.indexOf(a);o!==-1;o=t.indexOf(a,o+a.length))if(o>=e&&o<r)return!1;return!0}function go(t){return se(t)}function Z(t,n){let e=[],r=new Set;for(let i of Q(t,H)){if(i.start>=n.start&&i.start<n.end)continue;let s=i.token.match(/^<script\b((?:"[^"]*"|'[^']*'|[^'">])*)>/i)?.[1]??"",a=new Map;for(let u of s.matchAll(/([^\s=/>]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g))a.set(u[1].toLowerCase(),u[2]??u[3]??u[4]??"");let o=a.get("src")?.trim(),c=a.get("type")?.trim().toLowerCase();if(!o||a.has("server")||c&&!["module","text/javascript","application/javascript"].includes(c))continue;if(a.has("data-stx-runtime")||a.has("data-stx-router")||/^\/_stx\/(?:runtime|router)(?:\.[a-f0-9]{16})?\.js(?:[?#]|$)/i.test(o))continue;if(N(t,i.token,n.start,n.end)||r.has(i.token))continue;r.add(i.token),e.push(i.token)}return e}function oe(t,n="main"){let e=t.trim(),r=[],i=[],s=e.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if(s){let g=s[1],R=/<style\b[^>]*>[\s\S]*?<\/style>/gi,h;while((h=R.exec(g))!==null)r.push(h[0]);let p=/<script\b[^>]*data-stx-(?:route-params|server-data|scoped|component-factories)[^>]*>[\s\S]*?<\/script>/gi;while((h=p.exec(g))!==null){if(j.test(h[0])||h[0].includes("__stx_early_mounts")||/^<script\b[^>]*\bdata-stx-runtime(?=[\s=>])/i.test(h[0]))continue;i.push(h[0])}}let a=O(e,n);if(!a)return ye(t);let o=Z(e,a),c=new Set(o),{tagName:u,start:l,end:f}=a,m=e.slice(l,f).trim(),S=[],b=e.match(/<body\b[^>]*>/i),w=e.lastIndexOf("</body>");if(b&&b.index!==void 0&&w!==-1){let R=[[b.index+b[0].length,a.openIndex],[f+`</${u}>`.length,w]],h=/<script\b[^>]*>[\s\S]*?<\/script>/gi;for(let[p,C]of R){if(p>=C)continue;let L=e.slice(p,C),A;h.lastIndex=0;while((A=h.exec(L))!==null){if(N(e,A[0],l,f))continue;S.push(A[0])}}}let y=[];if(r.length>0)y.push(r.join(`
|
|
26
|
-
`));if(o.length>0)y.push(o.join(`
|
|
27
|
-
`));if(i.length>0)y.push(i.filter((g)=>!c.has(g)).join(`
|
|
28
|
-
`));if(S.length>0)y.push(S.filter((g)=>!c.has(g)).join(`
|
|
29
|
-
`));return y.push(m),y.join(`
|
|
30
|
-
`)}import _ from"fs";import I from"path";function mo(t,n,e){return{version:1,buildTime:new Date().toISOString(),routes:t,assets:n,outputDir:e}}function ho(t,n){let e=I.join(n,"manifest.json");_.writeFileSync(e,JSON.stringify(t,null,2))}function yo(t){let n=I.join(t,"manifest.json");if(!_.existsSync(n))return null;try{let e=_.readFileSync(n,"utf-8"),r=JSON.parse(e);if(r.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${r.version}`),null;return r}catch(e){return console.warn("[stx] Failed to load manifest:",e),null}}function P(t,n,e={}){let r=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`;if(e.maxAge!==void 0)r+=`; Max-Age=${e.maxAge}`;if(e.expires)r+=`; Expires=${e.expires.toUTCString()}`;if(e.path)r+=`; Path=${e.path}`;if(e.domain)r+=`; Domain=${e.domain}`;if(e.secure)r+="; Secure";if(e.httpOnly)r+="; HttpOnly";if(e.sameSite)r+=`; SameSite=${e.sameSite}`;return r}async function tt(t){let n=t.headers.get("content-type")||"",e={},r=(i,s)=>{let a=e[i];if(a===void 0)e[i]=s;else if(Array.isArray(a))a.push(s);else e[i]=[a,s]};if(n.includes("multipart/form-data")){let i=await t.formData();for(let[s,a]of i.entries())if(typeof a==="string")r(s,a);return e}if(n.includes("application/x-www-form-urlencoded")){for(let[i,s]of new URLSearchParams(await t.text()).entries())r(i,s);return e}return e}function Rr(t){if(!t)return!1;let n=t.toUpperCase();return n!=="GET"&&n!=="HEAD"}async function F(t,n={}){let e=n.request,r=n.method??e?.method;if(!e||!Rr(r))return{ran:!1};if(typeof t.action!=="function")return{ran:!1};let i={};try{i=await tt(e)}catch{}let s=await t.action({request:e,form:i,params:n.params??{},query:t.query??{},cookies:n.cookies??{}});if(s&&typeof s==="object"){let a=s,o=et(a.cookies),c=a.redirect;if(typeof c==="string"&&c)return{redirect:c,ran:!0,...o.length>0?{cookies:o}:{}};let{cookies:u,redirect:l,...f}=a;if(Object.assign(t,f),o.length>0)return{ran:!0,cookies:o}}return{ran:!0}}function et(t){if(!t||typeof t!=="object"||Array.isArray(t))return[];let n=[];for(let[e,r]of Object.entries(t)){if(!e)continue;if(typeof r==="string"){n.push(P(e,r));continue}if(r&&typeof r==="object"){let i=r;if(typeof i.value!=="string")continue;n.push(P(e,i.value,i))}}return n}function bo(t,n=[],e){let r=new Headers({Location:t,"Cache-Control":"no-store"});for(let i of n)r.append("Set-Cookie",i);for(let[i,s]of Object.entries(e??{}))if(i.toLowerCase()!=="location")r.set(i,s);return new Response(null,{status:303,headers:r})}async function Lt(t,n={}){let{html:e,context:r,redirect:i,cookies:s}=await nt(t,n),a=Ue(r),o=Ve(r);if(i)return{html:e,redirect:i,cookies:s,status:a,headers:o};let{extractStreamBoundaries:c}=await import("./chunk-1xyhdpbn.js"),u=c(r),l=t.streamTemplates;if(l&&Object.keys(l).length>0){let{processDirectives:f}=await import("./chunk-yqzhev40.js"),{defaultConfig:m}=await import("./chunk-ya39wk58.js"),S=r.streamBoundaries||{},b={...m,autoShell:!1},w=Object.keys(l).map((g)=>({id:g,render:async()=>{let R=typeof S[g]==="function"?await S[g]():void 0;return f(l[g],{...r,$boundary:R},t.sourceFile,b,new Set)}})),y=new Set(w.map((g)=>g.id));u=[...(u||[]).filter((g)=>!y.has(g.id)),...w]}return{html:e,boundaries:u&&u.length>0?u:void 0,cookies:s,status:a,headers:o}}async function nt(t,n){let e={__filename:t.sourceFile,__dirname:t.sourceFile.replace(/[/\\][^/\\]+$/,""),...n};if(!t.hasServerScripts&&!rs(t.html))return{html:t.html,context:e};for(let a of t.serverScriptContent)try{await d(a,e,t.sourceFile)}catch(o){if(n.__stx_strict_hydration)throw o;console.warn(`[stx] Server script error in ${t.sourceFile}:`,o)}let r=await F(e,{request:n.request,method:n.method,params:n.params??{},cookies:n.cookies??{}}),i=(a)=>{let o=a.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),c=Jn(e);if(!c)return o;let u=o.indexOf("</head>");return u<0?c+o:o.slice(0,u)+c+o.slice(u)};if(r.redirect)return{html:t.html,context:e,redirect:r.redirect,cookies:r.cookies};if(!rs(t.html))return{html:i(t.html),context:e,cookies:r.cookies};let s=new Map;for(let[a,o]of Object.entries(t.placeholders))if(o.expression)try{let c=x(o.expression,e);if(o.type==="raw")s.set(a,c!==void 0&&c!==null?String(c):"");else s.set(a,c!==void 0&&c!==null?_t(String(c)):"")}catch(c){if(n.__stx_strict_hydration)throw c;s.set(a,"")}return{html:i(Zo(t.html,s)),context:e,cookies:r.cookies}}
|
|
31
|
-
export{uo,Ie,po,se,E,fo,$r,On,ye,go,oe,mo,ho,yo,Rr,bo,Lt};
|
package/dist/chunk-98xp5rfe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$t,Cc,_c,Ec,Tc,$c,d,Rc,ys,Ac,gi,mi}from"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{$t as STX_ENGINE_BINDING_NAMES,ys as convertToCommonJS,gi as extractScriptFromTemplate,d as extractVariables,mi as hasVariables,Rc as isCompleteImport,$c as isMissingBindingFailure,Ec as isModuleResolutionFailure,Tc as isSyntaxFailure,Ac as splitDeclaration,Cc as stripTypeScript,_c as withoutStxReferrer};
|
package/dist/chunk-9ah35e2w.js
DELETED
package/dist/chunk-9d1bs55s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Po,Io,Oo,Pd}from"./chunk-q8nw82pz.js";import"./chunk-35kmebz9.js";import"./chunk-rtc17gy5.js";import"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{Po as buildNative,Pd as default,Oo as getAvailableFormats,Io as getAvailableTargets};
|
package/dist/chunk-9rts16ta.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dr,Mr,Nr,Sa,Lr,jr,ka,Br,Fr,So,Ca}from"./chunk-knpzph55.js";export{Dr as VideoProcessorCache,So as analyzeVideo,Sa as clearVideoCache,Fr as generateDASHManifest,Br as generateHLSManifest,Lr as generatePoster,ka as generateSpriteSheet,jr as generateThumbnails,Mr as getCachedVideoResult,Ca as processVideo,Nr as setCachedVideoResult};
|
package/dist/chunk-a2mztbta.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{y}from"./chunk-c1ys37c9.js";import{I,Ot}from"./chunk-d4ybwtqt.js";import{Go,m,h,w,qe,L,o}from"./chunk-kz131809.js";import{ce,vt,xt}from"./chunk-tgwdk0gt.js";import{De,Xt,mt,U}from"./chunk-cbyh8fhn.js";import S from"path";var C=new Map,D=new Map,k=m(64),A=new Map,X=["composables","functions"];function z(t){let n=S.basename(t,".ts");return n==="index"||n==="types"||t.endsWith(".d.ts")}async function Z(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 X){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(!z(c))return s}catch{}}return null}async function G(t){let n=Array.isArray(t)?t:t?[S.resolve(t)]:(await o())._layerComposableDirs??[await Z()].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(!z(d)&&!a.has(c))a.set(c,d)}}catch{}}return{key:n.join("\x00"),files:[...a.values()].sort()}}async function zr(t){let{files:n}=await G(t),a=L({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 Q(t,n){return new RegExp(`\\b${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(t)}function J(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):Q(t,s))e.add(s);return e}var T=m(64);function V(t,n){let a=h(t,n.size),e=T.get(a);if(e)return e;let s;try{s=Go(t,n)}catch{s=J(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 T.set(a,s),s}function Y(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 J(u,e.keys()))l.push(e.get(f));return l},d=new Set(e.keys()),c=(u)=>{let l=[];for(let f of V(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 zl(t,n,a){let{key:e,files:s}=await G(t);if(!e)return null;let d=()=>[...new Set([...s,...s.flatMap((r)=>ce(r))])],c=De(d());if(s.length===0)return U(C,e,c,""),null;s.sort();let p=L({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((W)=>W!=="default");if(b.length>0)i.push({file:_,names:b})}catch{r.set(_,"")}g=U(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=_??Y(l,u,r),!_)k.set(i,f)}if(f.size===0)return null;let E=s.filter((r)=>f.has(r)),B=`${e}\x00${E.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 E)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=I(i),vt(i))i=await xt(i,r,{projectRoot:process.cwd(),externalizeUserModules:!1,expose:x}),i=qe(i);i=Ot(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 U(C,B,c,""),null;let K=[...v].map((r)=>` try { if (!(${JSON.stringify(r)} in __c)) __c[${JSON.stringify(r)}] = ${r}; } catch (e) {}`).join(`
|
|
4
|
-
`),j=JSON.stringify([...v]),N=M.join(`
|
|
5
|
-
|
|
6
|
-
`),H=y.filter((r)=>!R.has(r)&&new RegExp(`\\b${r}\\b`).test(N)).map((r)=>`var ${r} = __stx[${JSON.stringify(r)}];`).join(`
|
|
7
|
-
`),P=JSON.stringify(new Bun.CryptoHasher("md5").update(`${j}\x00${N}`).digest("hex").slice(0,12)),O=`;(function(){
|
|
8
|
-
var __bundles = window.__stxComposableBundles || (window.__stxComposableBundles = {});
|
|
9
|
-
if (__bundles[${P}]) return;
|
|
10
|
-
__bundles[${P}] = true;
|
|
11
|
-
var __published = window.__stxComposableGlobals || (window.__stxComposableGlobals = {});
|
|
12
|
-
window.__composables = window.__composables || {};
|
|
13
|
-
var __c = window.__composables;
|
|
14
|
-
var __stx = window.stx || {};
|
|
15
|
-
${H}
|
|
16
|
-
${N}
|
|
17
|
-
${K}
|
|
18
|
-
var __names = ${j};
|
|
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
|
-
})();`;return c=De(d()),U(C,B,c,O),O}function Hl(){C.clear(),Xt(),D.clear(),k.clear(),A.clear()}
|
|
33
|
-
export{zr,zl,Hl};
|
package/dist/chunk-ajezxt0s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Me,Jt,dd}from"./chunk-r8h9b3f8.js";import{V,Nn,Yt,Hr,Ur,Ln,ud,pd,fd,Zt,Qt,Vr,jn,gd}from"./chunk-0zq4btre.js";import"./chunk-c1ys37c9.js";export{Hr as batch,dd as default,Nn as derived,Yt as effect,Me as generateSignalsRuntime,Jt as generateSignalsRuntimeDev,Qt as isDerived,Zt as isSignal,Ln as onDestroy,Ur as onMount,jn as peek,fd as pendingLifecycleCounts,pd as runDestroyCallbacks,ud as runMountCallbacks,V as state,Vr as untrack,gd as useOptimistic};
|
package/dist/chunk-bf572npc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{js,uu,pu,Ni,me,Vc,cr,fu,gu,mu,hu,yu,bu,wu,vu,xu}from"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";export{bu as applyHead,fu as definePageMeta,js as getHead,uu as getPageMeta,me as mergeHeadConfigs,wu as processHeadDirective,xu as processMetaDirective,vu as processTitleDirective,yu as renderBodyAttrs,mu as renderHead,hu as renderHtmlAttrs,pu as resetHead,cr as seoMetaToHeadConfig,Ni as useHead,gu as usePageTitle,Vc as useSeoMeta,gu as useTitle};
|
package/dist/chunk-cqeccn7x.js
DELETED
package/dist/chunk-dkyjw3hc.js
DELETED
package/dist/chunk-dsdxa5x1.js
DELETED
package/dist/chunk-ectcp21m.js
DELETED
package/dist/chunk-ewcnyvcd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cd,ld}from"./chunk-wvjpvs89.js";import"./chunk-tgwdk0gt.js";import"./chunk-nmy7mcbd.js";import"./chunk-ffxwsa94.js";import"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{ld as clearStoreCache,cd as getStoreScript};
|
package/dist/chunk-ez7r18ef.js
DELETED
package/dist/chunk-ffgsaf9e.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gl,ml,hl,yl,ua,bl,wl,vl,xl,Sl,kl,Cl}from"./chunk-xjr67xvb.js";export{kl as Broadcast,Cl as BroadcastServer,ua as broadcast,xl as broadcastPresence,vl as broadcastPrivate,Sl as channel,gl as getBroadcastServer,yl as loadChannels,ml as startBroadcasting,hl as stopBroadcasting,bl as toUser,wl as toUsers};
|
package/dist/chunk-fnnhekdc.js
DELETED
package/dist/chunk-g8b74qvn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{G,Qr,es,oc,kt,Ko,ts,Xo,Md,Fe,ns,be}from"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import{Ei,s}from"./chunk-5s555c1r.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{G as BROWSER_CORE_IMPORTS,oc as STX_AUTO_IMPORTS,Qr as extractAndStripCssImports,Fe as extractBridgeData,Ei as findInterpolationEnd,Xo as generateAutoImportDestructuring,Md as generateBrowserAutoImportDestructuring,ns as generateServerDataBridge,kt as injectBrowserCoreAutoImports,be as processClientScript,ts as referencesName,es as renderVendorStyleTags,s as stripCommentsAndLiterals,Ko as transformAutoImports};
|
package/dist/chunk-ge87hcgb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Be,pc,zd,Hd,Ud,Vd,fc,gc,Wd,qd,Qo,Gd,on,an,Vn}from"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{Vd as __setSignalsGeneratorsForTest,Be as cacheEngineFingerprint,an as cacheTemplate,on as checkCache,Gd as clearDevCaches,gc as getCachedRouterScript,fc as getCachedSignalsRuntime,Wd as getServeClientAsset,Qo as getServeModuleBundle,Vn as hashFilePath,Hd as invalidateFileCache,Ud as invalidateFileCacheByDir,zd as readFileCached,qd as registerServeModuleBundle,pc as templateCache};
|
package/dist/chunk-gra2v7xz.js
DELETED
package/dist/chunk-jg9fydw8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{eu,xc,ps,gs,di,ui,ms,hs,Xn,Sc,pi,fi,kc,qe}from"./chunk-kz131809.js";import"./chunk-gwabvrc3.js";import"./chunk-3wcwtqx1.js";import"./chunk-9k6r7f3c.js";import"./chunk-dajh1369.js";import"./chunk-ebg20d8s.js";import"./chunk-ywah1c30.js";import"./chunk-wemq37qe.js";import"./chunk-j3vwyzvb.js";import"./chunk-d4ybwtqt.js";import"./chunk-c1ys37c9.js";import"./chunk-w8vg3te3.js";import"./chunk-tdv9np5t.js";export{eu as clearScriptScanCache,ms as convertServerLoopAttributesToDirectives,di as convertSignalDirectivesToAttributes,hs as convertSignalLoopsToAttributes,Sc as extractExports,fi as findMarkupIndexOutsideScripts,gs as hasSignalsSyntax,ps as parseLoopExpression,ui as preEvalLiteralReactiveIfs,Xn as processScriptSetup,pi as processSignals,kc as rewriteStxImportSpecifiers,xc as scanScriptTags,qe as stripStxRuntimeImports};
|
package/dist/chunk-k50k9zbw.js
DELETED