@stacksjs/stx 0.2.838 → 0.2.840
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/builtins/image-delivery.js +7 -3
- package/dist/chunk-02cntwd8.js +2 -0
- package/dist/chunk-03v59965.js +2 -0
- package/dist/chunk-07hvjvj1.js +2 -0
- package/dist/{chunk-gh62p9mx.js → chunk-11y84h2d.js} +2 -2
- package/dist/{chunk-3bjnrmha.js → chunk-1b1ntgt7.js} +2 -2
- package/dist/{chunk-z25w7kmr.js → chunk-1m16mvt4.js} +4 -4
- package/dist/{chunk-4ntm3dtk.js → chunk-23r3rby6.js} +2 -2
- package/dist/{chunk-ya6bp08c.js → chunk-2fj5zev7.js} +1 -1
- package/dist/{chunk-29f6vmyz.js → chunk-2j5yane9.js} +4 -4
- package/dist/chunk-2knr61g3.js +2 -0
- package/dist/chunk-2pgc087j.js +2 -0
- package/dist/chunk-2vprq4x0.js +54 -0
- package/dist/{chunk-ac9ncbfw.js → chunk-321e41ck.js} +3 -3
- package/dist/chunk-3gzhh69y.js +2 -0
- package/dist/chunk-40bkdswh.js +2 -0
- package/dist/chunk-41sh9y5w.js +2 -0
- package/dist/chunk-4654xm1h.js +2 -0
- package/dist/{chunk-amg6kr1p.js → chunk-4657mnht.js} +4 -4
- package/dist/{chunk-s33andzg.js → chunk-4dxq7ft1.js} +2 -2
- package/dist/chunk-4eagsz5d.js +2 -0
- package/dist/{chunk-f7jgda7x.js → chunk-4j08cbjd.js} +5 -5
- package/dist/chunk-4rswqcfc.js +2 -0
- package/dist/{chunk-tx8wk6h7.js → chunk-4y6hes3h.js} +2 -2
- package/dist/{chunk-6s3hgq9z.js → chunk-57x8wxdf.js} +32 -32
- package/dist/chunk-5khpy4na.js +2 -0
- package/dist/{chunk-5w0cf32p.js → chunk-5pbxjx8s.js} +1 -1
- package/dist/chunk-5t93dqft.js +2 -0
- package/dist/chunk-66eba1h4.js +2 -0
- package/dist/chunk-6efz68j8.js +2 -0
- package/dist/chunk-6n5kew7a.js +3 -0
- package/dist/chunk-6nb07mdj.js +2 -0
- package/dist/{chunk-2x9zhezb.js → chunk-6wrf6302.js} +2 -2
- package/dist/{chunk-1zxahmnh.js → chunk-7cg2f588.js} +1 -1
- package/dist/{chunk-nm26vnzd.js → chunk-7dnp8evg.js} +6 -6
- package/dist/chunk-7m0r7mq9.js +2 -0
- package/dist/{chunk-jstrmqna.js → chunk-7m53tpxn.js} +2 -2
- package/dist/{chunk-ckg6q98b.js → chunk-7t57cnz9.js} +5 -5
- package/dist/{chunk-jr0r5pzw.js → chunk-7vhm0jj5.js} +2 -2
- package/dist/{chunk-mvehmtap.js → chunk-7y5gz0cs.js} +14 -14
- package/dist/{chunk-vfj9wp11.js → chunk-8370x30n.js} +2 -2
- package/dist/{chunk-65tptp4x.js → chunk-88rwr1w2.js} +2 -2
- package/dist/{chunk-txd2js5v.js → chunk-89d3h8mp.js} +14 -14
- package/dist/chunk-8c363c2r.js +2 -0
- package/dist/{chunk-wfsa28e7.js → chunk-8d4br2j5.js} +9 -9
- package/dist/chunk-8gdtys3s.js +2 -0
- package/dist/{chunk-em8tv6nz.js → chunk-8pj4v1eh.js} +2 -2
- package/dist/{chunk-z0ynyz62.js → chunk-8qbp5skx.js} +7 -7
- package/dist/chunk-8w0n2rae.js +2 -0
- package/dist/{chunk-c3dg8qdn.js → chunk-97k72dfh.js} +2 -2
- package/dist/{chunk-d689fbv1.js → chunk-9razzga7.js} +6 -6
- package/dist/{chunk-s53wjw7y.js → chunk-9xps62ek.js} +2 -2
- package/dist/{chunk-52g026sc.js → chunk-a1s5wqw4.js} +2 -2
- package/dist/chunk-a2p42cxf.js +2 -0
- package/dist/{chunk-myje6fhm.js → chunk-a9tzjqny.js} +5 -5
- package/dist/{chunk-ax624h16.js → chunk-azderqyk.js} +7 -7
- package/dist/chunk-b0fkvrat.js +2 -0
- package/dist/chunk-b3fx75th.js +2 -0
- package/dist/{chunk-20mmryy5.js → chunk-b685aqy4.js} +3 -3
- package/dist/chunk-b6w3457c.js +2 -0
- package/dist/{chunk-j59js1nh.js → chunk-b90xw7v4.js} +3 -3
- package/dist/{chunk-fvgk1w9s.js → chunk-bp918end.js} +2 -2
- package/dist/chunk-bq7qcndg.js +3 -0
- package/dist/chunk-c18pafmf.js +3 -0
- package/dist/chunk-c87zgwzn.js +2 -0
- package/dist/{chunk-c9vxm8yq.js → chunk-ca3c5qx2.js} +31 -31
- package/dist/{chunk-3yggtch5.js → chunk-chjdnmqv.js} +10 -10
- package/dist/{chunk-bky02g7k.js → chunk-d0dzzpfx.js} +2 -2
- package/dist/chunk-d44g9sek.js +2 -0
- package/dist/chunk-d5vr9g4b.js +2 -0
- package/dist/{chunk-yw1s8kyj.js → chunk-dgn87554.js} +4 -4
- package/dist/{chunk-fzdgevxr.js → chunk-ebxz30e5.js} +56 -56
- package/dist/{chunk-11fn3hgv.js → chunk-ecjx9z8a.js} +2 -2
- package/dist/{chunk-33czswpt.js → chunk-f1hkagxk.js} +3 -3
- package/dist/chunk-fpn5txnm.js +2 -0
- package/dist/chunk-g6r2313a.js +2 -0
- package/dist/{chunk-55e46spy.js → chunk-g7rsd8st.js} +5 -5
- package/dist/chunk-g957a2m3.js +2 -0
- package/dist/chunk-ga8waz0a.js +2 -0
- package/dist/chunk-gaxx0z19.js +2 -0
- package/dist/chunk-gbcwna5q.js +2 -0
- package/dist/chunk-gft9pg9n.js +2 -0
- package/dist/chunk-h8h79939.js +2 -0
- package/dist/{chunk-q5pwvr98.js → chunk-jc5y35b7.js} +1 -1
- package/dist/chunk-jgx0ex9p.js +3 -0
- package/dist/{chunk-vfxkn1pe.js → chunk-kd6r7z27.js} +3 -3
- package/dist/chunk-ksc83y9t.js +2 -0
- package/dist/{chunk-gw83680k.js → chunk-kvpzxnww.js} +5 -5
- package/dist/{chunk-rnm8ejpz.js → chunk-m5bj2jnb.js} +2 -2
- package/dist/{chunk-ckasfph2.js → chunk-m7acbayx.js} +5 -5
- package/dist/chunk-mh4kpnjr.js +2 -0
- package/dist/{chunk-b7tb00nz.js → chunk-mhyd24bg.js} +2 -2
- package/dist/chunk-n7pvz99f.js +2 -0
- package/dist/chunk-ndah5rvs.js +2 -0
- package/dist/{chunk-n4qznmkm.js → chunk-ngnr831a.js} +5 -5
- package/dist/chunk-nhk0aat9.js +2 -0
- package/dist/{chunk-t2vmk8tf.js → chunk-ns0171xk.js} +3 -3
- package/dist/chunk-p2e02hh7.js +2 -0
- package/dist/{chunk-cwfavkk0.js → chunk-p65ax8s0.js} +2 -2
- package/dist/{chunk-dv11h4f0.js → chunk-p9d2txcg.js} +1 -1
- package/dist/chunk-pjkdn8zf.js +2 -0
- package/dist/{chunk-pft65534.js → chunk-pqn7r8fw.js} +1 -1
- package/dist/{chunk-29bt1fbn.js → chunk-px5kda00.js} +5 -5
- package/dist/{chunk-xtqapjz3.js → chunk-q0s0kc66.js} +2 -2
- package/dist/{chunk-b1m41fwr.js → chunk-q1nj47gn.js} +3 -3
- package/dist/chunk-q88w2rv9.js +2 -0
- package/dist/chunk-qb3c05qq.js +2 -0
- package/dist/chunk-qcars8ar.js +2 -0
- package/dist/{chunk-v3xyb3ws.js → chunk-qfvddpcg.js} +2 -2
- package/dist/{chunk-e75dntfb.js → chunk-qk079ca7.js} +2 -2
- package/dist/{chunk-zj4s3rnw.js → chunk-qzms4d8s.js} +5 -5
- package/dist/chunk-r5bhgyes.js +2 -0
- package/dist/{chunk-64eeb5p5.js → chunk-rb17ssxh.js} +2 -2
- package/dist/{chunk-7bvvv74e.js → chunk-rk2ex6qx.js} +3 -3
- package/dist/chunk-rmc6dfj4.js +2 -0
- package/dist/chunk-rzfbffnv.js +2 -0
- package/dist/{chunk-r32q8mjw.js → chunk-s2k1x2rn.js} +3 -3
- package/dist/chunk-spdh99jy.js +2 -0
- package/dist/chunk-st75663x.js +2 -0
- package/dist/chunk-sv2d6nfe.js +2 -0
- package/dist/{chunk-7k9yahng.js → chunk-t0jed809.js} +6 -6
- package/dist/{chunk-s5dhvnnd.js → chunk-t3p0jy0s.js} +6 -6
- package/dist/{chunk-f49x34sr.js → chunk-v3q126ys.js} +2 -2
- package/dist/{chunk-kw5gra2z.js → chunk-v4ybemgb.js} +2 -2
- package/dist/{chunk-trwe0mfa.js → chunk-vbw9jhz2.js} +103 -103
- package/dist/chunk-vcx6dy59.js +2 -0
- package/dist/chunk-vv7b8p5z.js +2 -0
- package/dist/{chunk-wzjdq7d6.js → chunk-vwddsdk5.js} +9 -9
- package/dist/{chunk-vyv76w55.js → chunk-wbgc2n04.js} +2 -2
- package/dist/chunk-x0ygwk9x.js +2 -0
- package/dist/{chunk-nyg0nbjj.js → chunk-x110ssw2.js} +3 -3
- package/dist/chunk-x42tsdbx.js +2 -0
- package/dist/{chunk-sfsek961.js → chunk-x4f7efgp.js} +3 -3
- package/dist/chunk-x5wkbcsf.js +2 -0
- package/dist/{chunk-w0a6yz73.js → chunk-xbcnnk8x.js} +5 -5
- package/dist/{chunk-38ncpvww.js → chunk-xdzy4pm0.js} +2 -2
- package/dist/{chunk-84nw3921.js → chunk-xmsf1bnx.js} +3 -3
- package/dist/{chunk-4sv740a5.js → chunk-xqtt5t6d.js} +6 -6
- package/dist/{chunk-nmvhktsg.js → chunk-xz2569ra.js} +6 -6
- package/dist/chunk-y64qhgv1.js +2 -0
- package/dist/{chunk-52t0qpx6.js → chunk-y68xstqy.js} +1 -1
- package/dist/{chunk-evgghnjc.js → chunk-y8zzvzww.js} +4 -4
- package/dist/chunk-yg5a54pj.js +2 -0
- package/dist/chunk-yjskeqaj.js +2 -0
- package/dist/chunk-ywpan1k5.js +2 -0
- package/dist/chunk-yxqzarzh.js +2 -0
- package/dist/chunk-z4g64re8.js +3 -0
- package/dist/chunk-z9xjhc5m.js +42 -0
- package/dist/{chunk-ms3v5nat.js → chunk-zg44cf8a.js} +7 -7
- package/dist/{chunk-s6r54dyf.js → chunk-zjqvbcwa.js} +2 -2
- package/dist/chunk-znwc8gta.js +2 -0
- package/dist/{chunk-917v0bar.js → chunk-zrp4159x.js} +12 -12
- package/dist/{chunk-0rvntfhj.js → chunk-zvy88beh.js} +3 -3
- package/dist/cli.js +20 -20
- package/dist/compression.js +3 -3
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/dev-server/port-utils.js +2 -1
- package/dist/expressions.js +1 -1
- package/dist/html-masking.d.ts +2 -0
- package/dist/html-masking.js +23 -0
- package/dist/image-optimization/processor.js +2 -2
- package/dist/includes.js +5 -4
- package/dist/misc-directives.js +2 -2
- package/dist/native/runtime/craft-bridge.js +2 -10
- package/dist/native/runtime/craft.d.ts +11 -0
- package/dist/native/runtime/navigation-chrome.d.ts +2 -0
- package/dist/native/runtime/navigation-chrome.js +25 -3
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +8 -11
- package/dist/utils.js +16 -13
- package/package.json +5 -5
- package/dist/chunk-0a36jnq4.js +0 -2
- package/dist/chunk-0c02182b.js +0 -42
- package/dist/chunk-0rnfywsx.js +0 -2
- package/dist/chunk-1bpx9b0m.js +0 -2
- package/dist/chunk-1g6xxftp.js +0 -2
- package/dist/chunk-2fcg7aws.js +0 -2
- package/dist/chunk-2nxxhcyy.js +0 -2
- package/dist/chunk-4wgfqa56.js +0 -2
- package/dist/chunk-5p6x0ztt.js +0 -2
- package/dist/chunk-6aak0b7c.js +0 -2
- package/dist/chunk-6c6m6p9t.js +0 -3
- package/dist/chunk-6g8byhwn.js +0 -2
- package/dist/chunk-70akxpk5.js +0 -2
- package/dist/chunk-72gq0ywg.js +0 -2
- package/dist/chunk-72n804gy.js +0 -2
- package/dist/chunk-7efkc3gk.js +0 -2
- package/dist/chunk-88zc5chj.js +0 -2
- package/dist/chunk-8gg8gn87.js +0 -2
- package/dist/chunk-8wv2p899.js +0 -2
- package/dist/chunk-9w3r1ch2.js +0 -3
- package/dist/chunk-a1hxz8q4.js +0 -2
- package/dist/chunk-a579jdwb.js +0 -2
- package/dist/chunk-ahd8jdzx.js +0 -2
- package/dist/chunk-aqrx322x.js +0 -2
- package/dist/chunk-ay7ggc4k.js +0 -2
- package/dist/chunk-bc4x45vx.js +0 -2
- package/dist/chunk-c77vxvp3.js +0 -2
- package/dist/chunk-c7hw37ww.js +0 -2
- package/dist/chunk-cfrgrnej.js +0 -2
- package/dist/chunk-cw8vpk41.js +0 -2
- package/dist/chunk-d96b9qgj.js +0 -2
- package/dist/chunk-db1c0c3c.js +0 -2
- package/dist/chunk-f6vzn90z.js +0 -2
- package/dist/chunk-fd3815fe.js +0 -2
- package/dist/chunk-gtj8wy95.js +0 -2
- package/dist/chunk-h4tbpr7p.js +0 -2
- package/dist/chunk-h5aaq0j8.js +0 -2
- package/dist/chunk-j0j4p9t1.js +0 -2
- package/dist/chunk-j0w048sj.js +0 -2
- package/dist/chunk-jvg9e6t6.js +0 -2
- package/dist/chunk-k761q7s7.js +0 -2
- package/dist/chunk-m3tnxk01.js +0 -2
- package/dist/chunk-mdtysd2d.js +0 -2
- package/dist/chunk-nmtya57z.js +0 -3
- package/dist/chunk-nxfyjw59.js +0 -2
- package/dist/chunk-pe5qqem0.js +0 -2
- package/dist/chunk-pwv77cyb.js +0 -2
- package/dist/chunk-qs0vtav5.js +0 -2
- package/dist/chunk-qv21bsa1.js +0 -2
- package/dist/chunk-rrba4t7k.js +0 -2
- package/dist/chunk-s3j5vxy9.js +0 -3
- package/dist/chunk-ssrxqj55.js +0 -2
- package/dist/chunk-t612xpa4.js +0 -2
- package/dist/chunk-tesbhpbp.js +0 -2
- package/dist/chunk-tkgkdf93.js +0 -2
- package/dist/chunk-tvw571ab.js +0 -2
- package/dist/chunk-txzap6yn.js +0 -2
- package/dist/chunk-vhrq4xjf.js +0 -2
- package/dist/chunk-vqpypnys.js +0 -2
- package/dist/chunk-vv3w8z4v.js +0 -2
- package/dist/chunk-vypnjn9g.js +0 -3
- package/dist/chunk-w39cfxa6.js +0 -2
- package/dist/chunk-wj937ceq.js +0 -2
- package/dist/chunk-xbavxkm5.js +0 -2
- package/dist/chunk-xrspzeqx.js +0 -2
- package/dist/chunk-y41hhypj.js +0 -2
- package/dist/chunk-yv9589qr.js +0 -54
- package/dist/chunk-z0yq548d.js +0 -2
- package/dist/chunk-zfjbwp54.js +0 -2
package/dist/chunk-0c02182b.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ml,hl}from"./chunk-4ntm3dtk.js";import{f,P,ot,d}from"./chunk-txd2js5v.js";import{U,br,Ns,Ms,ai,ci,Ds,vr,fn,Me,fe,J,Sr,ie,Y,N,st,kr,di,Er,ze,r,p,W,xn}from"./chunk-trwe0mfa.js";import{n}from"./chunk-vypnjn9g.js";import{oe}from"./chunk-3bjnrmha.js";import{s}from"./chunk-sfsek961.js";import{g}from"./chunk-0dve54ne.js";import{createHash as Ct}from"crypto";import Q from"fs";import Z from"path";import{decode as on,generateThumbHash as an}from"ts-images";import{createImageDeliveryCatalog as yt}from"ts-images/delivery";import je from"fs";function Ce(e,i,t){let o=Buffer.alloc(t),a=je.readSync(e,o,0,t,i);return o.subarray(0,a)}function Le(e){if(e.length<25)return!1;let i=(o,a)=>String.fromCharCode(...e.subarray(o,a));if(i(0,4)!=="RIFF"||i(8,12)!=="WEBP")return!1;let t=i(12,16);if(t==="VP8X")return(e[20]&16)!==0;if(t==="VP8L")return((e[21]|e[22]<<8|e[23]<<16|e[24]<<24)>>>28&1)===1;return!1}function Ue(e){let i;try{i=je.openSync(e,"r");let t=Ce(i,0,33);if(t.length>=3&&t[0]===255&&t[1]===216&&t[2]===255)return"none";if(t.length>=26&&t[0]===137&&t.toString("latin1",1,4)==="PNG"){let o=t[25];if(o===4||o===6)return"possible";let a=8;for(let c=0;c<64;c++){let l=Ce(i,a,8);if(l.length<8)return"unknown";let m=l.toString("latin1",4,8);if(m==="tRNS")return"possible";if(m==="IDAT"||m==="IEND")return"none";a+=12+l.readUInt32BE(0)}return"unknown"}if(t.length>=25&&t.toString("latin1",0,4)==="RIFF"&&t.toString("latin1",8,12)==="WEBP"){if(Le(t))return"possible";let o=t.toString("latin1",12,16);return o==="VP8 "||o==="VP8X"?"none":"unknown"}return"unknown"}catch{return"unknown"}finally{if(i!==void 0)je.closeSync(i)}}import Yt from"fs";import ke from"os";import{join as gt}from"path";import{fileURLToPath as pt}from"url";var Pe=Symbol("stx.image-worker.unavailable");function Qt(e=typeof ke.availableParallelism==="function"?ke.availableParallelism():ke.cpus().length){return Math.max(1,Math.min(2,e-1))}var Ae=0,ht=[];async function en(){if(Ae<Qt()){Ae++;return}await new Promise((e)=>ht.push(e)),Ae++}function tn(){Ae--,ht.shift()?.()}var nn="@stacksjs/stx/builtins/image-warmup-worker";function rn(e=process.cwd()){let i=import.meta.url.endsWith(".ts")?"ts":"js";try{let t=new URL(`./image-warmup-worker.${i}`,import.meta.url);if(t.protocol==="file:"&&Yt.existsSync(pt(t)))return pt(t)}catch{}try{let t=typeof Bun<"u"?Bun.resolveSync(nn,e):void 0;return t&&sn(t)?t:void 0}catch{return}}function sn(e,i=process.env){let t=e.replace(/\\/g,"/");if(t.split("/").some((a)=>/@\d[^/]*@@@\d+$/.test(a)))return!1;return![i.BUN_INSTALL_CACHE_DIR,gt(i.BUN_INSTALL||gt(ke.homedir(),".bun"),"install","cache")].filter((a)=>!!a).map((a)=>`${a.replace(/\\/g,"/").replace(/\/$/,"")}/`).some((a)=>t.startsWith(a))}var mt=!1;function ue(e){if(!mt)mt=!0,console.warn(`[stx] image worker unavailable (${e}); running the image pass on the serving thread instead. Results are the same, but requests may stall while it runs.`);return Pe}function Re(e){return e instanceof Error?e.message:String(e)}async function Fe(e,i){let t;try{t=(await import("worker_threads")).Worker}catch(a){return ue(`could not load node:worker_threads: ${Re(a)}`)}if(typeof t!=="function")return ue("node:worker_threads has no Worker in this runtime");let o=rn();if(!o)return ue("no image-warmup-worker entry beside this module or in the installed @stacksjs/stx");await en();try{return await new Promise((a,c)=>{let l;try{l=new t(o)}catch(y){a(ue(`could not start ${o}: ${Re(y)}`));return}let m=!1,u=!1,x=(y)=>{if(u)return;u=!0,y(),l.terminate()};l.on("message",(y)=>{if(y.type==="ready"){m=!0,l.postMessage({task:e,args:i});return}if(y.type==="result"){x(()=>a(y.value));return}let h=Error(y.error?.message??"image worker failed");if(y.error?.name)h.name=y.error.name;if(y.error?.stack)h.stack=y.error.stack;x(()=>c(h))}),l.on("error",(y)=>{x(()=>m?c(y instanceof Error?y:Error(Re(y)||"image worker crashed")):a(ue(`the worker failed before it was ready: ${Re(y)}`)))}),l.on("exit",(y)=>{x(()=>m?c(Error("image worker exited before it finished")):a(ue(`the worker exited with code ${y} before it was ready`)))})})}finally{tn()}}var cn=new Set([".avif",".jpeg",".jpg",".png",".webp"]),ln=[320,640,960,1280,1920],ye="/_stx/images",un=`stx:${ye}:alpha-1`,dn=`stx:${ye}:opaque-1`,gn=["@stacksjs/ts-webp","@stacksjs/ts-avif","ts-images"],Ie;function pn(e,i){let t=Z.dirname(Bun.resolveSync(e,i));while(t!==Z.dirname(t)){let o=Z.join(t,"package.json");if(Q.existsSync(o)){let a=JSON.parse(Q.readFileSync(o,"utf8"));if(a.name===e)return a.version}t=Z.dirname(t)}return}function bt(){if(Ie!==void 0)return Ie;let e;try{e=Z.dirname(Bun.resolveSync("ts-images",import.meta.dir))}catch{}return Ie=gn.map((i)=>{let t;try{t=e?pn(i,e):void 0}catch{}return`${i.replace("@stacksjs/","")}@${t??"unknown"}`}).join("+"),Ie}var vt=Symbol.for("stx.image-delivery");function be(){let e=globalThis;return e[vt]??={catalog:new Map,transparent:new Set},e[vt]}var xt=new Set;function mn(e){return`/${e.split(Z.sep).map(encodeURIComponent).join("/")}`}function hn(e){let i=Z.extname(e),t=e.slice(0,-i.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),o=Ct("sha256").update(e).digest("hex").slice(0,8);return`${t||"image"}-${o}`}function wt(e,i=`stx:${ye}`){let t=(o)=>`${ye}/${o.split("/").map(encodeURIComponent).join("/")}`;return{cacheNamespace:i,async stat(o){let a=Z.join(e,o);try{let c=await Q.promises.stat(a);return c.size>0?{bytes:c.size,path:a,url:t(o)}:null}catch{return null}},async write(o,a){let c=Z.join(e,o);await Q.promises.mkdir(Z.dirname(c),{recursive:!0});let l=`${c}.${process.pid}.tmp`;return await Q.promises.writeFile(l,a),await Q.promises.rename(l,c),{bytes:a.byteLength,path:c,url:t(o)}},url:t}}async function Rt(e,i=e){let t=await Q.promises.readdir(i,{withFileTypes:!0});t.sort((a,c)=>a.name.localeCompare(c.name));let o=[];for(let a of t){let c=Z.join(i,a.name);if(a.isDirectory()){o.push(...await Rt(e,c));continue}if(!a.isFile()||!cn.has(Z.extname(a.name).toLowerCase()))continue;o.push({absolutePath:c,relativePath:Z.relative(e,c)})}return o}function $t(e,i){return e.map((t)=>({key:mn(t.relativePath),input:t.absolutePath,name:hn(t.relativePath),...yn(t.absolutePath)?{options:{storage:i}}:{}}))}function yn(e){return Ue(e)==="possible"}function bn(e){for(let i=3;i<e.length;i+=4)if(e[i]!==255)return!0;return!1}async function vn(e){let i=Object.entries(e).filter(([,a])=>a.fallback.format==="png"),t=new Set,o=8;for(let a=0;a<i.length;a+=8)await Promise.all(i.slice(a,a+8).map(async([c,l])=>{let m=l.variants.filter((u)=>u.format==="png").sort((u,x)=>u.width-x.width)[0];try{let u=await on(new Uint8Array(await Q.promises.readFile(m?.path??l.fallback.path)));if(bn(u.data))t.add(c)}catch{t.add(c)}}));return t}function wn(e,i){let t=[];for(let o of i){let a=e[o],c=a?.variants.filter((m)=>m.format==="webp")??[];if(!a||c.length===0)continue;if(!c.some((m)=>{let u;try{return u=Q.openSync(m.path,"r"),!Le(Ce(u,0,32))}catch{return!0}finally{if(u!==void 0)Q.closeSync(u)}}))continue;if(a.variants=a.variants.filter((m)=>m.format!=="webp"),delete a.sources.webp,t.push(o),!xt.has(o))xt.add(o),console.warn(`[stx-images] ${o} is transparent but its WebP variants have no alpha channel; serving PNG instead. Upgrade @stacksjs/ts-webp to 0.1.6 or later.`)}return t}async function $n(e){let i=[],t=8;for(let o=0;o<e.length;o+=8){let a=e.slice(o,o+8),c=await Promise.all(a.map(async(l)=>{try{return await an(l.absolutePath),l}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${l.relativePath}`),null}}));i.push(...c.filter((l)=>l!==null))}return i}function We(e){return Z.join(e,"undecodable.json")}function Sn(e){try{let i=Q.readFileSync(We(e),"utf-8"),t=JSON.parse(i);return t&&typeof t==="object"?t:{}}catch{return{}}}function Cn(e,i){try{Q.mkdirSync(Z.dirname(We(e)),{recursive:!0}),Q.writeFileSync(We(e),JSON.stringify(i))}catch{}}function St(e){try{let i=Q.statSync(e);return{mtimeMs:i.mtimeMs,size:i.size}}catch{return}}function kt(e){if(!e||e.startsWith("data:")||e.startsWith("blob:")||/^https?:\/\//i.test(e)||e.startsWith("//"))return;let i=e.split(/[?#]/,1)[0];if(!i)return;try{return`/${i.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function jo(e){let i=kt(e);return i?be().catalog.get(i):void 0}function Bo(e){let i=kt(e);return i?be().transparent.has(i):!1}function Fo(e){let i=(o)=>e.variants.filter((a)=>a.format===o).reduce((a,c)=>a+c.bytes,0),t=i(e.fallback.format);return["avif","webp"].map((o)=>({format:o,srcset:e.sources[o]||"",bytes:i(o)})).filter((o)=>o.srcset&&o.bytes>0&&o.bytes<t).sort((o,a)=>o.bytes-a.bytes).map(({format:o,srcset:a})=>({format:o,srcset:a}))}function Nh(e){let i=jo(e);if(!i)return;return{src:i.fallback.url,srcset:i.sources[i.fallback.format]||"",sources:Fo(i).map(({format:t,srcset:o})=>({type:`image/${t}`,srcset:o})),width:i.source.width,height:i.source.height,placeholder:Bo(e)?void 0:i.placeholder?.dataUrl}}function us(){let e=be();e.catalog=new Map,e.transparent=new Set}function Rn(e){let i=be();i.catalog=new Map(e.entries),i.transparent=new Set(e.transparent)}async function Mh(e,i,t={}){if(!e||!Q.existsSync(e))return us(),{count:0,fingerprint:""};if(t.offThread){let v=await Fe("delivery",{publicDir:e,outputDir:i});if(v!==Pe)return Rn(v.state),v.result}let o=await Rt(e);if(o.length===0)return us(),{count:0,fingerprint:""};let a=Sn(i),c=o.filter((v)=>{let b=a[v.relativePath];if(!b)return!0;let S=St(v.absolutePath);return!S||S.mtimeMs!==b.mtimeMs||S.size!==b.size});if(c.length===0)return us(),{count:0,fingerprint:""};let l=wt(Z.join(i,"_stx","images"),`${un}:${bt()}`),m={outDir:Z.join(i,"_stx","images"),storage:wt(Z.join(i,"_stx","images"),`${dn}:${bt()}`),baseUrl:ye,widths:ln,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},u=c,x;try{x=await yt({...m,entries:$t(c,l)})}catch(v){if(u=await $n(c),u.length===c.length)throw v;let b=new Set(u.map((k)=>k.relativePath)),S=!1;for(let k of c){if(b.has(k.relativePath))continue;let A=St(k.absolutePath);if(!A)continue;a[k.relativePath]=A,S=!0}if(S)Cn(i,a);if(u.length===0)return us(),{count:0,fingerprint:""};x=await yt({...m,entries:$t(u,l)})}let y=await vn(x.entries),h=wn(x.entries,y),C=be();C.catalog=new Map(Object.entries(x.entries)),C.transparent=y;let w=y.size===0&&h.length===0?x.fingerprint:Ct("sha256").update(x.fingerprint).update(JSON.stringify({transparent:[...y].sort(),droppedWebp:h.sort()})).digest("hex");return{count:u.length,fingerprint:w}}class At{builtins=new Map;registerBuiltin(e){this.builtins.set(e.name.toLowerCase(),e);for(let i of e.aliases)this.builtins.set(i.toLowerCase(),e)}isBuiltin(e){return this.builtins.has(e.toLowerCase())}getBuiltin(e){return this.builtins.get(e.toLowerCase())??null}async resolveFile(e,i,t,o){let a=ai(e,o);if(a!==void 0)return a;for(let c of ci(e,i,t,o))if(await r(c))return c;return null}}var de=new At;var re="\x00stx-boolean-attribute";function He(e){return e.indexOf("\x00")===-1?e:e.replace(/\0/g,"")}var kn=new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","role","slot","spellcheck","style","tabindex","title","translate","accept","action","alt","autocomplete","capture","cite","cols","colspan","content","controls","datetime","default","download","enctype","for","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","href","hreflang","kind","label","loading","loop","max","maxlength","media","method","min","minlength","multiple","muted","name","open","pattern","placeholder","playsinline","poster","preload","readonly","referrerpolicy","rel","required","reversed","rows","rowspan","scope","selected","shape","size","span","src","srcdoc","srclang","srcset","start","step","target","type","usemap","value","width","wrap"]);function qe(e){let i=e.toLowerCase();return i.startsWith("aria-")||i.startsWith("data-")||kn.has(i)}function se(e,i){let t=[];for(let[o,a]of Object.entries(e.static)){if(i.has(o))continue;let c=e.staticNames?.[o]??o;if(typeof a==="boolean"){if(a)t.push(p(c));continue}if(a===re){t.push(p(c));continue}t.push(`${p(c)}="${xn(c,He(String(a)))}"`)}return t}function ae(e,i){let t=[];for(let[o,a]of Object.entries(e.serverDynamic??{})){if(i.has(o))continue;if(a===null||a===void 0||a===!1)continue;let c=e.serverDynamicNames?.[o]??o;if(a===!0){t.push(p(c));continue}if(typeof a==="object")continue;t.push(`${p(c)}="${xn(c,He(String(a)))}"`)}return t}function An(e){if(e.clientReactive.to)return{value:e.clientReactive.to,reactive:!0};if(e.serverDynamic.to!==void 0)return{value:String(e.serverDynamic.to),reactive:!1};if(typeof e.static.to==="string")return{value:e.static.to,reactive:!1};return{value:"#",reactive:!1}}var Xe={name:"StxLink",aliases:["stx-link"],render(e,i,t){let o=An(e),a=(typeof e.static.class==="string"?e.static.class:"")||(typeof e.static.className==="string"?e.static.className:""),c=typeof e.static.activeClass==="string"?e.static.activeClass:"active",l=typeof e.static.exactActiveClass==="string"?e.static.exactActiveClass:"exact-active",m=e.static.prefetch===!0||e.static.prefetch==="true"||e.serverDynamic.prefetch===!0,u=[];if(o.reactive)u.push(`:href="${n(o.value)}"`);else u.push(`href="${n(vr(o.value,"navigable"))}"`);if(a)u.push(`class="${n(a)}"`);if(u.push("data-stx-link"),u.push(`data-stx-active-class="${n(c)}"`),u.push(`data-stx-exact-active-class="${n(l)}"`),m)u.push("data-stx-prefetch");let x=typeof e.static.activeMatch==="string"?e.static.activeMatch.trim():"";if(x)u.push(`data-stx-active-match="${n(x)}"`);let y=new Set(["to","class","className","activeClass","exactActiveClass","activeMatch","prefetch"]);return u.push(...se(e,y)),u.push(...ae(e,y)),`<a ${u.join(" ")}>${i}</a>`}};var Pn=new Map;function Ve(e){if(!e)return;let i=e.split("?")[0].split("#")[0];return Pn.get(i)}var In={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Ze=[320,640,768,1024,1280,1536,1920];function V(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function _e(e,i,t=!1){let o=e.serverDynamic[i];if(o!==void 0)return o!==!1&&o!=="false";let a=e.static[i];if(a!==void 0)return a!=="false"&&a!==!1;return t}function Ge(e){if(e.includes("(")||e.includes(","))return e;let i=e.trim().split(/\s+/),t=[];for(let o of i)if(o.includes(":")){let[a,c]=o.split(":"),l=In[a];if(l)t.push(`(max-width: ${l}px) ${c}`);else{let m=Number.parseInt(a);if(!Number.isNaN(m))t.push(`(max-width: ${m}px) ${c}`)}}else t.push(o);return t.join(", ")}function Ke(e,i,t,o){return i.map((a)=>`${ve(e,a,void 0,t,o)} ${a}w`).join(", ")}function _n(e,i,t,o,a){return i.map((c)=>{let l=t?t*c:void 0;return`${ve(e,l,void 0,o,a)} ${c}x`}).join(", ")}function ve(e,i,t,o,a){if(!o||o==="local"||o==="static")return e;if(o==="cloudinary"){let c=[];if(i)c.push(`w_${i}`);if(t)c.push(`h_${t}`);if(a)c.push(`f_${a}`);c.push("q_auto");let l=c.join(",");return e.replace("/upload/",`/upload/${l}/`)}if(o==="imgix"){let c=new URLSearchParams;if(i)c.set("w",String(i));if(t)c.set("h",String(t));if(a)c.set("fm",a);c.set("auto","format");let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}if(o==="bunny"){let c=new URLSearchParams;if(i)c.set("width",String(i));if(t)c.set("height",String(t));if(a)c.set("format",a);let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}return e}function En(e){return`var s=this.style;${e.map((i)=>`s.${i}=''`).join(";")}`}function Nn(e,i,t="#e5e7eb"){let o=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${i}"><rect width="100%" height="100%" fill="${t}"/></svg>`;return`data:image/svg+xml;base64,${btoa(o)}`}var Je={name:"StxImage",aliases:["Image","stx-image","stx-img"],render(e,i,t){let o=V(e,"src")||"",a=jo(o),c=V(e,"alt")||"",l=V(e,"width")||(a?String(a.source.width):void 0),m=V(e,"height")||(a?String(a.source.height):void 0),u=V(e,"sizes"),x=V(e,"srcset"),y=V(e,"densities"),h=V(e,"format"),C=Bo(o)||Ve(o)?.transparent===!0,w=V(e,"placeholder")||(a&&!C?"thumbhash":void 0),v=V(e,"placeholderColor")||"#e5e7eb",b=V(e,"provider"),S=V(e,"class")||V(e,"className")||"",k=V(e,"style")||"",A=V(e,"objectFit")||V(e,"fit"),R=V(e,"objectPosition")||V(e,"position"),B=V(e,"quality"),G=_e(e,"lazy",!0),M=_e(e,"preload",!1),F=_e(e,"priority",!1),H=V(e,"loading"),E=V(e,"decoding")||"async",D=!!a||_e(e,"picture",!1)||!!h,O=l?Number.parseInt(l):void 0,q=m?Number.parseInt(m):void 0,z=x||"",X="";if(a)z=a.sources[a.fallback.format]||"",X=u?Ge(u):"100vw";else if(!z&&u&&b&&b!=="local"&&b!=="static")z=Ke(o,Ze,b,h),X=Ge(u);else if(!z&&y){let I=y.split(/\s+/).map((_)=>Number.parseFloat(_.replace("x","")));z=_n(o,I,O,b,h)}else if(u)X=Ge(u);let L=[];if(k)L.push(k);if(A)L.push(`object-fit:${A}`);if(R)L.push(`object-position:${R}`);if(O&&q)L.push(`aspect-ratio:${O}/${q}`);let T=[],ce=w==="blur"||w==="color"||w==="thumbhash";if(ce&&!C){let I=a?.placeholder?{dataUrl:a.placeholder.dataUrl,color:v}:Ve(o);if(I&&w==="color")L.push(`background-color:${I.color}`),T.push("backgroundColor");else if(I)L.push(`background-color:${I.color}`),L.push(`background-image:url(${I.dataUrl})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),T.push("backgroundColor","backgroundImage");else{let _=Nn(O||16,q||9,v);L.push(`background-image:url(${_})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),T.push("backgroundImage")}}else if(!ce&&w&&w!=="empty"&&w!=="none")L.push(`background-image:url(${n(w)})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),T.push("backgroundImage");let $e=a?.fallback.url||ve(o,O,q,b,h),K=[];if(K.push(`src="${n(vr($e,"fetched"))}"`),K.push(`alt="${n(c)}"`),l)K.push(`width="${n(l)}"`);if(m)K.push(`height="${n(m)}"`);let le=H||(F||M?"eager":G?"lazy":"");if(le)K.push(`loading="${n(le)}"`);if(F)K.push('fetchpriority="high"');if(K.push(`decoding="${n(E)}"`),S)K.push(`class="${n(S)}"`);if(L.length>0)K.push(`style="${n(L.join(";"))}"`);if(z)K.push(`srcset="${n(vr(z,"fetched"))}"`);if(X)K.push(`sizes="${n(X)}"`);let te=new Set(["src","alt","width","height","lazy","sizes","srcset","placeholder","placeholderColor","class","className","style","objectFit","objectPosition","fit","position","format","provider","quality","densities","preload","priority","picture","loading","decoding"]);if(T.length>0){let I=typeof e.static.onload==="string"?e.static.onload:"",_=En(T)+(I?`;${I}`:"");K.push(`onload="${n(_)}"`),te.add("onload")}K.push(...se(e,te)),K.push(...ae(e,te));let Te=`<img ${K.join(" ")} />`,j="";if(M){let _=h==="webp"?"image/webp":h==="avif"?"image/avif":"";j=`<link rel="preload" as="image" href="${n($e)}"${_?` type="${_}"`:""}${z?` imagesrcset="${n(z)}"`:""}${X?` imagesizes="${n(X)}"`:""} />
|
|
3
|
-
`}if(D){let I=[];if(a)for(let _ of Fo(a))I.push(`<source type="image/${_.format}" srcset="${n(_.srcset)}"${X?` sizes="${n(X)}"`:""} />`);if(!a&&(h==="avif"||h==="auto")){let _=ve(o,O,q,b,"avif"),ee=z?Ke(o,Ze,b,"avif"):`${_}`;I.push(`<source type="image/avif" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}if(!a&&(h==="webp"||h==="auto")){let _=ve(o,O,q,b,"webp"),ee=z?Ke(o,Ze,b,"webp"):`${_}`;I.push(`<source type="image/webp" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}return`${j}<picture>
|
|
4
|
-
${I.join(`
|
|
5
|
-
`)}
|
|
6
|
-
${Te}
|
|
7
|
-
</picture>`}return`${j}${Te}`}};var Pt="/images/safe-image-default.svg";function ge(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var On=`<script>window.__stxSafeImageHandler||(window.__stxSafeImageHandler=function(i){if(i.__stx_fb)return;i.__stx_fb=1;var f=i.getAttribute('data-fallback')||'${Pt}';var c=i.getAttribute('data-fallback-class');i.src=f;if(c)i.className=c;});</script>`,Ye={name:"SafeImage",aliases:["safe-image","safe-img"],render(e,i,t){let o=ge(e,"src")||"",a=ge(e,"alt")||"",c=ge(e,"fallback")||Pt,l=ge(e,"class")||ge(e,"className")||"",m=ge(e,"fallbackClassName")||"",u=[];if(u.push(`src="${n(o)}"`),u.push(`alt="${n(a)}"`),l)u.push(`class="${n(l)}"`);if(u.push(`data-fallback="${n(c)}"`),m)u.push(`data-fallback-class="${n(m)}"`);u.push('onerror="window.__stxSafeImageHandler(this)"');let x=new Set(["src","alt","fallback","class","className","fallbackClassName"]);u.push(...se(e,x)),u.push(...ae(e,x));let y=`<img ${u.join(" ")} />`,h=t.context;if(!h.__safeImageHandlerEmitted)return h.__safeImageHandlerEmitted=!0,`${On}${y}`;return y}};function Qe(e){return e.replace(/[;{}()]/g,"").replace(/url/gi,"")}function xe(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function Ee(e,i,t){let o=xe(e,i);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return t}var et={name:"StxLoadingIndicator",aliases:["stx-loading-indicator"],render(e,i,t){let o=Qe(xe(e,"color")||"#6366f1"),a=Qe(xe(e,"initialColor")||xe(e,"initial-color")||""),c=Qe(xe(e,"height")||"3px"),l=Ee(e,"duration",2000),m=Ee(e,"throttle",200),u=Ee(e,"zIndex",999999)||Ee(e,"z-index",999999),x=a?`linear-gradient(to right, ${a}, ${o})`:o;return`
|
|
8
|
-
<div id="stx-loading-indicator" style="position:fixed;top:0;left:0;right:0;height:${c};background:${x};z-index:${u};transform:scaleX(0);transform-origin:left;transition:transform 0.1s ease-out,opacity 0.3s ease;opacity:0;pointer-events:none">
|
|
9
|
-
<div style="position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.4) 50%,transparent 100%);animation:stx-shimmer 1.5s infinite"></div>
|
|
10
|
-
</div>
|
|
11
|
-
<style>@keyframes stx-shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}</style>
|
|
12
|
-
<script>
|
|
13
|
-
(function(){var el=document.getElementById('stx-loading-indicator'),p=0,l=!1,i=null;function u(v){p=Math.min(Math.max(v,0),100);if(el){el.style.opacity=p>0?'1':'0';el.style.transform='scaleX('+(p/100)+')'}}window.stxLoading={start:function(){l=!0;p=0;u(10);if(i)clearInterval(i);i=setInterval(function(){if(!l)return;var r=90-p,inc=Math.max(0.5,r*0.1);if(p<90)u(p+inc)},${m})},finish:function(){l=!1;if(i){clearInterval(i);i=null}u(100);setTimeout(function(){if(el)el.style.opacity='0';setTimeout(function(){p=0;if(el)el.style.transform='scaleX(0)'},300)},200)},set:function(v){u(v)},clear:function(){l=!1;p=0;if(i){clearInterval(i);i=null}if(el){el.style.opacity='0';el.style.transform='scaleX(0)'}}};document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a');if(!a)return;var h=a.getAttribute('href');if(!h||h.startsWith('http')||h.startsWith('#')||h.startsWith('mailto:')||h.startsWith('tel:')||a.target==='_blank')return;window.stxLoading.start()});window.addEventListener('popstate',function(){window.stxLoading.start()});window.addEventListener('load',function(){window.stxLoading.finish()})})();
|
|
14
|
-
</script>`}};function _t(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function Bn(e,i,t){let o=_t(e,i);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return t}var It={"top-right":"top:1rem;right:1rem","top-left":"top:1rem;left:1rem","top-center":"top:1rem;left:50%;transform:translateX(-50%)","bottom-right":"bottom:1rem;right:1rem","bottom-left":"bottom:1rem;left:1rem","bottom-center":"bottom:1rem;left:50%;transform:translateX(-50%)"},tt={name:"StxToast",aliases:["stx-toast"],render(e,i,t){let o=n(_t(e,"position")||"top-right"),a=Bn(e,"max",5),c=It[o]||It["top-right"];return`<div id="stx-toast-container" data-stx-toast-position="${o}" data-stx-toast-max="${a}" style="position:fixed;${c};z-index:999999;display:flex;flex-direction:column;gap:0.5rem;pointer-events:none;max-width:24rem;width:100%"></div>
|
|
15
|
-
<style>
|
|
16
|
-
@keyframes stx-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
|
|
17
|
-
@keyframes stx-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
|
|
18
|
-
@keyframes stx-toast-in-left{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}
|
|
19
|
-
@keyframes stx-toast-out-left{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-100%)}}
|
|
20
|
-
@keyframes stx-toast-in-center{from{opacity:0;transform:translateY(-1rem)}to{opacity:1;transform:translateY(0)}}
|
|
21
|
-
@keyframes stx-toast-out-center{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-1rem)}}
|
|
22
|
-
</style>`}};function Ne(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var Et={sm:"max-width:24rem",md:"max-width:32rem",lg:"max-width:42rem",xl:"max-width:56rem",full:"max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)"},nt={name:"StxModal",aliases:["stx-modal"],render(e,i,t){let o=Ne(e,"id");if(!o)return console.warn('[stx] <StxModal> requires an "id" prop'),"<!-- StxModal: missing id prop -->";let a=n(o),c=Ne(e,"size")||"md",l=Ne(e,"closeOnBackdrop")!=="false",m=Ne(e,"closeOnEscape")!=="false",u=Et[c]||Et.md;return`<div id="stx-modal-${a}" class="stx-modal-backdrop" data-stx-modal="${a}" data-close-backdrop="${l}" data-close-escape="${m}" style="display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);backdrop-filter:blur(2px);opacity:0;transition:opacity 0.2s ease" aria-modal="true" role="dialog">
|
|
23
|
-
<div class="stx-modal-panel" style="${u};width:100%;margin:1rem;border-radius:0.75rem;box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow:hidden;transform:scale(0.95) translateY(8px);transition:transform 0.2s ease,opacity 0.2s ease;opacity:0;background:var(--stx-modal-bg,#fff);color:var(--stx-modal-text,#1f2937)">
|
|
24
|
-
<div style="padding:1.5rem">${i}</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<style>
|
|
28
|
-
@media(prefers-color-scheme:dark){[data-stx-modal]{--stx-modal-bg:#1f2937;--stx-modal-text:#f3f4f6}}
|
|
29
|
-
.stx-modal-backdrop[data-stx-modal-open]{display:flex!important;opacity:1}
|
|
30
|
-
.stx-modal-backdrop[data-stx-modal-open] .stx-modal-panel{transform:scale(1) translateY(0);opacity:1}
|
|
31
|
-
</style>`}};function pe(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var Nt={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},rt={name:"StxDrawer",aliases:["stx-drawer"],render(e,i,t){let o=pe(e,"id");if(!o)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let a=n(o),c=pe(e,"side")||"right",l=pe(e,"size")||"md",m=pe(e,"closeOnBackdrop")!=="false",u=pe(e,"closeOnEscape")!=="false",x=pe(e,"overlay")!=="false",y=Nt[l]||Nt.md,h=c==="left",C=h?"left:0":"right:0",w=h?"translateX(-100%)":"translateX(100%)",v=h?"stx-drawer-slide-left":"stx-drawer-slide-right";return`<div id="stx-drawer-${a}" class="stx-drawer-backdrop" data-stx-drawer="${a}" data-close-backdrop="${m}" data-close-escape="${u}" style="display:none;position:fixed;inset:0;z-index:99999;${x?"background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)":"background:transparent;pointer-events:none"};opacity:0;transition:opacity 0.2s ease" role="dialog" aria-modal="true">
|
|
32
|
-
<div class="stx-drawer-panel" style="position:fixed;top:0;bottom:0;${C};width:${y};max-width:100vw;transform:${w};transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);background:var(--stx-drawer-bg,#fff);color:var(--stx-drawer-text,#1f2937);box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow-y:auto;pointer-events:auto">
|
|
33
|
-
<div style="padding:1.5rem">${i}</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<style>
|
|
37
|
-
@media(prefers-color-scheme:dark){[data-stx-drawer]{--stx-drawer-bg:#1f2937;--stx-drawer-text:#f3f4f6}}
|
|
38
|
-
.stx-drawer-backdrop[data-stx-drawer-open]{display:block!important;opacity:1}
|
|
39
|
-
.stx-drawer-backdrop[data-stx-drawer-open] .stx-drawer-panel{transform:translateX(0)}
|
|
40
|
-
</style>`}};import{existsSync as Dn,readFileSync as Tn}from"fs";var Oe=new Map,Ot=new Set;function jn(e){if(Ot.has(e))return;Ot.add(e),console.warn(`[stx] icon collection "${e}" is not installed, so its icons render as nothing. Install it with \`bun add -d @iconify-json/${e}\`.`)}function Mn(e){let i=process.cwd();for(let t of[`${i}/node_modules/@iconify-json/${e}/icons.json`,`${i}/pantry/@iconify-json/${e}/icons.json`,`${i}/node_modules/@iconify/json/json/${e}.json`,`${i}/pantry/@iconify/json/json/${e}.json`])if(Dn(t))return t;for(let t of[`@iconify-json/${e}/icons.json`,`@iconify/json/json/${e}.json`])try{return g.resolve(t)}catch{}return null}function Ln(e){if(Oe.has(e))return Oe.get(e);let i=Mn(e);if(!i)return jn(e),null;try{let t=JSON.parse(Tn(i,"utf8"));return Oe.set(e,t),t}catch{return null}}function zn(e,i,t,o){let a=[];if(i.rotate)a.push(`rotate(${i.rotate*90} ${t/2} ${o/2})`);if(i.hFlip)a.push(`translate(${t} 0) scale(-1 1)`);if(i.vFlip)a.push(`translate(0 ${o}) scale(1 -1)`);return a.length?`<g transform="${a.join(" ")}">${e}</g>`:e}function Un(e,i){let t=i,o=e.icons[t],a={hFlip:!1,vFlip:!1,rotate:0};for(let m=0;!o&&m<8;m++){let u=e.aliases?.[t];if(!u)return null;if(u.hFlip)a.hFlip=!a.hFlip;if(u.vFlip)a.vFlip=!a.vFlip;if(u.rotate)a.rotate=((a.rotate+u.rotate)%4+4)%4;t=u.parent,o=e.icons[t]}if(!o)return null;let c=o.width??e.width??24,l=o.height??e.height??24;return{body:zn(o.body,a,c,l),width:c,height:l}}function me(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);if(e.static[i]!==void 0)return String(e.static[i]);if(e.clientReactive[i]!==void 0)return e.clientReactive[i];return}var it={name:"Icon",aliases:["icon","stx-icon"],render(e,i,t){let o=me(e,"name")??me(e,"icon");if(!o)return"<!-- Icon: missing name/icon prop -->";let a="lucide",c=o;if(o.includes(":")){let S=o.split(":");a=S[0],c=S[1]}let l=n(me(e,"size")||"24"),m=n(me(e,"color")||"currentColor"),u=n(me(e,"class")||""),x=n(me(e,"style")||""),y=Oe.get(a)??Ln(a);if(!y)return`<!-- Icon: collection "${a}" not loaded -->`;let h=Un(y,c);if(!h)return`<!-- Icon: "${c}" not found in ${a} -->`;let C=`0 0 ${h.width} ${h.height}`,w=h.body;if(m!=="currentColor")w=w.replace(/currentColor/g,m);let v=u?` class="${u}"`:"",b=x?` style="${x}"`:"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${l}" height="${l}" viewBox="${C}" fill="none"${v}${b}>${w}</svg>`}};function Bt(e,...i){for(let t of i){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o}return}function Dt(e,i){let t=new RegExp(`<(template|div|span)[^>]*\\bslot=["']${i}["'][^>]*>([\\s\\S]*?)<\\/\\1>`,"i"),o=e.match(t);if(!o)return{region:null,rest:e};return{region:o[2],rest:e.replace(o[0],"")}}var at={name:"Suspense",aliases:["suspense"],render(e,i,t){let o=Dt(i,"fallback"),a=o.rest,c=Dt(a,"error"),l=c.rest,m=o.region??Bt(e,"fallback")??'<div class="stx-suspense-loading">Loading\u2026</div>',u=c.region??Bt(e,"errorFallback","error-fallback")??'<div class="stx-suspense-error">Something went wrong.</div>';return`<div data-stx-suspense><div data-stx-suspense-fallback>${m}</div><div data-stx-suspense-error hidden>${u}</div><div data-stx-suspense-content hidden>${l}</div></div>`}};function Be(e,...i){for(let t of i){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o}return}var ct={name:"TransitionGroup",aliases:["transition-group"],render(e,i,t){let o=(Be(e,"name")||"v").replace(/["'<>]/g,""),a=(Be(e,"tag")||"div").replace(/[^a-z0-9-]/gi,"")||"div",c=Be(e,"class"),l=Be(e,"id"),m=[`data-stx-transition-group="${o}"`,c?`class="${c}"`:"",l?`id="${l}"`:""].filter(Boolean).join(" ");return`<${a} ${m}>${i}</${a}>`}};function Tt(e=de){e.registerBuiltin(Xe),e.registerBuiltin(Je),e.registerBuiltin(Ye),e.registerBuiltin(et),e.registerBuiltin(tt),e.registerBuiltin(nt),e.registerBuiltin(rt),e.registerBuiltin(it),e.registerBuiltin(at),e.registerBuiltin(ct)}var jt=new Map;function Fn(e){let i=jt.get(e.source);if(!i)i=new RegExp(`(${e.source})(?![\\w.:-])`,"y"),jt.set(e.source,i);return i}var Mt=new WeakMap;function Lt(e){let i=Mt.get(e);if(!i)i=new Set([...e].map((o)=>o.toLowerCase())),Mt.set(e,i);let t=i;return(o)=>!/[a-z]/.test(o)&&t.has(o.toLowerCase())}function Wn(e,i){let t="";for(let o=i;o<e.length;o++){let a=e[o];if(t){if(a==="\\")o++;else if(a===t)t=""}else if(a==='"'||a==="'")t=a;else if(a===">")return o}return e.length}function zt(e,i,t){let o=[],a=0,c=typeof t==="function"?t:t?(l)=>t.has(l.toLowerCase()):void 0;while(a<e.length){let l=e.indexOf("<",a);if(l===-1)break;let m=Fn(i);m.lastIndex=l+1;let u=m.exec(e);if(!u){a=l+1;continue}let x=u[1];if(c&&c(x)){let S=l+1+x.length;while(S<e.length&&e[S]!==">")S++;a=S+1;continue}let y=l+1+x.length,h=null,C=y,w=-1,v=!1;while(y<e.length){let S=e[y];if(h){if(S==="\\"&&y+1<e.length){y+=2;continue}if(S===h)h=null;y++;continue}if(S==='"'||S==="'"){h=S,y++;continue}if(S==="/"&&y+1<e.length&&e[y+1]===">"){w=y+2,v=!0;break}if(S===">"){w=y+1;break}y++}if(w===-1){a=l+1;continue}let b=e.slice(C,v?w-2:w-1).trim();if(v)o.push({fullMatch:e.slice(l,w),tagName:x,attributes:b,content:"",startIndex:l,endIndex:w,isSelfClosing:!0}),a=w;else{let S=`<${x}`,k=`</${x}>`,A=1,R=w,B=-1;while(A>0&&R<e.length){let F=e.indexOf(S,R),H=e.indexOf(k,R);if(H===-1)break;if(F!==-1&&F<H){let E=e[F+S.length];if(E===" "||E===">"||E==="/"||E===`
|
|
41
|
-
`||E==="\t"){let D=Wn(e,F+S.length);if(e[D-1]!=="/")A++;R=D+1}else R=F+S.length}else{if(A--,A===0){B=H;break}R=H+k.length}}if(B===-1){a=w;continue}let G=e.slice(w,B),M=B+k.length;o.push({fullMatch:e.slice(l,M),tagName:x,attributes:b,content:G,startIndex:l,endIndex:M,isSelfClosing:!1}),a=M}}return o}function lt(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/'/gi,"'").replace(/&/g,"&")}function Ut(e,i){try{let t=Buffer.from(e,"base64").toString("utf8");return JSON.parse(t)}catch{}try{let t=e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");return JSON.parse(t)}catch(t){if(i?.debug)console.error("Error decoding __stx_ prop:",t);return e}}function De(e,i){let t=0,o="",a=i;while(a<e.length){let c=e[a];if(o){if(c==="\\")a++;else if(c===o)o=""}else if(c==='"'||c==="'"||c==="`")o=c;else if(c==="{")t++;else if(c==="}"){if(t--,t===0)return e.slice(i,a+1)}a++}return e.slice(i)}function Ft(e){let i=e.trim();if(!i.startsWith("{")||!i.endsWith("}"))return null;if(De(i,0).length!==i.length)return null;return i.slice(1,-1).trim()}function Wt(e){let i=[],t=0,o=e.length;while(t<o){while(t<o&&/\s/.test(e[t]))t++;if(t>=o)break;let a="";while(t<o&&!/[\s=]/.test(e[t]))a+=e[t],t++;if(!a)break;while(t<o&&/\s/.test(e[t]))t++;if(t<o&&e[t]==="="){t++;while(t<o&&/\s/.test(e[t]))t++;let c="";if(t<o&&(e[t]==='"'||e[t]==="'")){let l=e[t];t++;while(t<o&&e[t]!==l){if(e[t]==="\\"&&t+1<o)t++,c+=e[t];else c+=e[t];t++}if(t<o)t++}else if(e[t]==="{")c=De(e,t),t+=c.length;else while(t<o&&!/\s/.test(e[t]))c+=e[t],t++;i.push({name:a,value:c})}else i.push({name:a,value:!0})}return i}var Hn=new Set(["disabled","checked","readonly","required","autofocus","autoplay","controls","default","defer","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","reversed","selected"]),qn=new Set([":for","x-for","v-for","@for"]),Xn=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Vn(e){return ut(e).map((i)=>[i.start,i.end])}function ut(e){let i=[],t=new Map;for(let o of fn(e)){let a=o.name.toLowerCase();if(o.closing){let x=t.get(a)?.pop();if(x)x.end=o.end;continue}let l=/(?::for|x-for|v-for|@for)\s*=/.test(o.attributes)?Wt(o.attributes).find((x)=>qn.has(x.name)):void 0,m=typeof l?.value==="string"?l.value:null,u=m!==null?{start:o.start,end:o.end,names:Y(m)}:null;if(u)i.push(u);if(!o.selfClosing&&!Xn.has(a)){let x=t.get(a);if(!x)x=[],t.set(a,x);x.push(u)}}return i}function Ht(e){if(typeof e==="string")return e;if(Array.isArray(e))return e.filter(Boolean).map((i)=>Ht(i)).join(" ");if(e&&typeof e==="object")return Object.entries(e).filter(([,i])=>i).map(([i])=>i).join(" ");return e?String(e):""}function lc(e,i){if(!/:[\w-]+=/.test(e))return e;let t=e,o=/<(script|style)\b[^>]*>[\s\S]*?<\/\1>/gi,a=[],c;while((c=o.exec(e))!==null)a.push([c.index,c.index+c[0].length]);a.push(...Vn(e));let l=new Set([...st(i),...Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[]]);function m(h){return a.some(([C,w])=>h>=C&&h<w)}let u=[],x=new Map,y=256;for(let h of fn(t)){if(h.closing||m(h.start))continue;let C=h.attributes.trimEnd();if(!C||!C.includes(":"))continue;let w=/(?:^|\s)data-native(?:\s|=|$)/i.test(C.replace(/"[^"]*"|'[^']*'/g,"")),v=/\s:([a-zA-Z_][\w-]*)\s*=\s*"([^"]*)"/g,b,S=C,k=!1;while((b=v.exec(C))!==null){if(Sr(C,b.index,!0)?.kind==="attribute")continue;let A=b[1],R=b[2];if(ml(A))continue;if(N(R,l))continue;if(R.includes("()")&&!R.includes(".get(")||R.includes("$store")||R.includes("$ref"))continue;try{let B=Object.keys(i),G=Object.values(i),M=R.match(/^([a-zA-Z_$][\w$]*)/);if(M&&!B.includes(M[1])&&!["true","false","null","undefined","Math","JSON","String","Number","Array","Object","Date","parseInt","parseFloat"].includes(M[1]))continue;let F=JSON.stringify([B,R]),H=x.get(F);if(!H){if(H=Function(...B,`return (${R})`),x.size>=y)x.clear();x.set(F,H)}let E=H(...G);if(A==="class"){let D=W(Ht(E));if(D){let O=S.match(/\sclass="([^"]*)"/);if(O)S=S.replace(O[0],()=>` class="${O[1]} ${D}"`);else S=S.replace(b[0],()=>` class="${D}"`)}else S=S.replace(b[0],"");k=!0;continue}if(Hn.has(A)){if(E)S=S.replace(b[0],` ${A}`);else S=S.replace(b[0],"");k=!0;continue}if(E===null||E===void 0||E===!1)S=S.replace(b[0],"");else{let D=w&&typeof E==="object"?JSON.stringify(E):String(E),O=xn(A,D);S=S.replace(b[0],()=>` ${A}="${O}"`)}k=!0}catch(B){if(B instanceof ie)throw B;continue}}if(k){let A=h.selfClosing?" /":"",B=`<${h.name}${S}${A}>`;u.push({start:h.start,end:h.end,replacement:B})}}if(u.length>0){let h=Array(u.length*2+1),C=0;for(let w=0;w<u.length;w++){let{start:v,end:b,replacement:S}=u[w];h[w*2]=t.slice(C,v),h[w*2+1]=S,C=b}h[u.length*2]=t.slice(C),t=h.join("")}return t}import qt from"fs";import Xt from"path";var Vt=!1;function Zn(e,i,t,o=!1,a=new Set){let c={static:{},staticNames:{},serverDynamic:{},serverDynamicNames:{},clientReactive:{},events:{}},l=new Set(Array.isArray(i.__stx_client_signal_names)?i.__stx_client_signal_names:[]),m=(h)=>{if(l.size===0)return!1;let C=s(h),w=C.match(/^\s*[!+~(-]*\s*([a-zA-Z_$][\w$]*)/)?.[1];if(w&&l.has(w))return!0;for(let v of l){let b=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`(?:^|[^\\w$.])${b}\\s*\\(`).test(C))return!0}return!1},u=new Set(hl),x=(h)=>{if(!h.includes("-")||h.startsWith("@")||h.startsWith(":")||h.startsWith("x-")||h.startsWith("__"))return h;if(h.startsWith("aria-")||h.startsWith("data-"))return h;return h.replace(/-([a-z0-9])/g,(C,w)=>w.toUpperCase())},y=(h,C)=>{let w=x(h);if(c.static[w]=C,w!==h)c.staticNames[w]=h};for(let[h,C]of Object.entries(e)){let w=h.startsWith("x-")&&!u.has(h)&&!h.startsWith("x-bind:")&&!h.startsWith("x-on:")?`:${h.slice(2)}`:h;if(w.startsWith("@")){c.events[w]=C;continue}if(w.startsWith("__stx_")){let v=x(w.slice(6));c.serverDynamic[v]=Ut(C,t);continue}if(w.startsWith(":")){let v=x(w.slice(1)),b=C===re?v:C;if(v==="if"||v==="for"||v==="show"){c.clientReactive[v]=b;continue}if(o){c.clientReactive[v]=b;continue}if(N(b,a)){c.clientReactive[v]=b;continue}if(m(b)){c.clientReactive[v]=b;continue}try{if(!f(b)){if(t.debug)console.error(`Unsafe expression in :${v} binding: ${b}`);c.clientReactive[v]=b;continue}let S=Object.keys(i),k=new Set(["true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","if","else"]),A=new Set(Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[]);if(ot(b).some((M)=>!k.has(M)&&!S.includes(M)&&(!(M in globalThis)||A.has(M)))){c.clientReactive[v]=b;continue}let G=d(b,S)(...Object.values(i));if(c.serverDynamic[v]=G,v!==w.slice(1)&&c.serverDynamicNames)c.serverDynamicNames[v]=w.slice(1)}catch{c.clientReactive[v]=b}continue}if(typeof C==="string"&&C.includes("{{")&&C.includes("}}")){let v=Gn(C,a);if(v!==null){c.clientReactive[x(w)]=v;continue}let b=C.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(b)try{let S=b[1];if(f(S)){let A=d(S,Object.keys(i))(...Object.values(i));y(w,A!=null?String(A):"")}else{if(t.debug)console.error(`Unsafe expression in ${w}: ${S}`);y(w,C)}}catch(S){if(t.debug)console.error(`Error evaluating expression for ${w}:`,S);y(w,C)}else{let S=C,k=/\{\{\s*([\s\S]+?)\s*\}\}/g,A;while((A=k.exec(C))!==null)try{let R=A[1];if(!f(R)){if(t.debug)console.error(`Unsafe expression in ${w}: ${R}`);continue}let G=d(R,Object.keys(i))(...Object.values(i));S=S.replace(A[0],String(G??""))}catch(R){if(t.debug)console.error(`Error evaluating expression in ${w}:`,R)}y(w,S)}continue}y(w,C===re?"true":lt(C))}return c}function Gn(e,i){if(i.size===0)return null;let t=/\{\{\s*([\s\S]+?)\s*\}\}/g,o=[...e.matchAll(t)];if(!o.some((m)=>N(m[1],i)))return null;let a=e.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(a&&o.length===1)return a[1];let c="",l=0;for(let m of o)c+=e.slice(l,m.index).replace(/[`\\$]/g,(u)=>`\\${u}`),c+=`\${${m[1]}}`,l=m.index+m[0].length;return c+=e.slice(l).replace(/[`\\$]/g,(m)=>`\\${m}`),`\`${c}\``}var Kn=[[/@if\s*\(/,"@endif"],[/@unless\s*\(/,"@endunless"]];function Jn(e,i,t){if(!e.includes("@"))return e;if(!Kn.some(([a,c])=>a.test(e)&&e.includes(c)))return e;try{return oe(e,i,t)}catch{return e}}function he(e){let i={},t=0,o=e.length;while(t<o){while(t<o&&/\s/.test(e[t]))t++;if(t>=o)break;let a="";while(t<o&&!/[\s=]/.test(e[t]))a+=e[t],t++;if(!a)break;while(t<o&&/\s/.test(e[t]))t++;if(t<o&&e[t]==="="){t++;while(t<o&&/\s/.test(e[t]))t++;let c="";if(t<o&&(e[t]==='"'||e[t]==="'")){let l=e[t];t++;while(t<o){let m=e[t];if(m==="\\"&&t+1<o){t++,c+=e[t],t++;continue}if(m===l){t++;break}c+=m,t++}}else if(e[t]==="{"){c=De(e,t),t+=c.length;let l=Ft(c);if(l!==null){i[`:${a}`]=l;continue}}else while(t<o&&!/\s/.test(e[t]))c+=e[t],t++;i[a]=c}else i[a]=re}return i}function Zt(e){return Object.entries(e).map(([i,t])=>t===re?i:`${i}="${Yn(t)}"`).join(" ")}function Yn(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Qn(e){let i=new Set,t=/<([A-Z][A-Za-z0-9]*|stx-[a-z0-9-]+)\b[^>]*>/g,o;while((o=t.exec(e))!==null){let a=o[1];if(de.isBuiltin(a))i.add(a)}return[...i].sort()}async function Mf(e,i,t,o,a){if(!/import\s/.test(e))return e;if(!i.__importedComponents)i.__importedComponents=new Map;let c=i.__importedComponents,l=Xt.dirname(t),m=[],u=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;for(let h of e.matchAll(u)){let[C,w,v]=h,b=/import\s+(?:(\{[^}]*\})|([A-Za-z_$][\w$]*))\s+from\s+['"]([^'"]+)['"]\s*;?\s*\n?/g,S=v,k,A=[];while((k=b.exec(v))!==null){let[R,B,G,M]=k,F=null,H=null;if(M.startsWith(".")||M.startsWith("/")){let O=Xt.resolve(l,M);if(O.endsWith(".stx"))H=O;else{let q=`${O}.stx`;try{if(qt.statSync(q).isFile())H=q}catch{try{if(qt.statSync(O).isDirectory())F=O}catch{}}}}else F=Ns(M,l);if(!F&&!H)continue;let E=!1,D=(O,q)=>{c.set(O,q),c.set(O.toLowerCase(),q);let z=O.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();c.set(z,q),a.add(q)};if(G&&H)D(G,H),E=!0;else if(B){let O=B.slice(1,-1).split(",").map((z)=>z.trim()).filter(Boolean).map((z)=>{let X=z.match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(X)return{source:X[1],local:X[2]};return{source:z,local:z}}),q=F?br(F):null;for(let{source:z,local:X}of O){let L=null;if(H)L=H;else if(q)L=q.get(z)??q.get(z.toLowerCase())??q.get(z.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())??null;if(L)D(X,L),E=!0}}if(E)A.push({start:k.index,end:k.index+R.length})}if(A.length===0)continue;for(let R=A.length-1;R>=0;R--)S=S.slice(0,A[R].start)+S.slice(A[R].end);m.push({start:h.index,end:h.index+C.length,value:`<script${w}>${S}</script>`})}if(m.length===0)return e;let x=[],y=0;for(let h of m)x.push(e.slice(y,h.start),h.value),y=h.end;return x.push(e.slice(y)),x.join("")}async function er(e,i,t,o,a){let c=e;if(!i.__importedComponents)i.__importedComponents=new Map;let l=i.__importedComponents,m=/@import\s*\(\s*([^)]+)\s*\)/g,u;while((u=m.exec(c))!==null){let[x,y]=u,h=y.split(",").map((C)=>C.trim().replace(/^['"]|['"]$/g,"")).filter((C)=>C.length>0);for(let C of h){let w=C.split("/"),b=w[w.length-1].replace(/\.stx$/,""),S=b.includes("-")?b.split("-").map((R)=>R.charAt(0).toUpperCase()+R.slice(1)).join(""):b.charAt(0).toUpperCase()+b.slice(1),k=null,A=Ms(C,t,o);for(let R of A)try{if(await Bun.file(R).exists()){k=R;break}}catch{}if(k){l.set(S,k),l.set(b,k),l.set(b.toLowerCase(),k);let R=S.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();if(l.set(R,k),a.add(k),o.debug)console.log(`Imported component: ${S} -> ${k}`)}else if(o.debug)console.warn(`Could not resolve imported component: ${C}`)}c=c.replace(x,""),m.lastIndex=0}return c}async function tr(e,i,t,o,a){let c=e,l=o.componentsDir||"components";if(!i.__processedComponents)i.__processedComponents=new Set;let m=i.__processedComponents,u=/@component\s*\(/g,x;while((x=u.exec(c))!==null){let y=x.index,h=y+x[0].length-1,C=1,w=h+1;while(w<c.length&&C>0){if(c[w]==="(")C++;else if(c[w]===")"){if(C--,C===0)break}w++}if(C!==0)break;let v=c.substring(h+1,w),b=w+1,S=v.match(/^\s*['"]([^'"]+)['"]/);if(!S){u.lastIndex=b;continue}let k=S[1],A,R=v.slice(S[0].length),B=R.match(/^\s*,\s*/);if(B)A=R.slice(B[0].length).trim();let G={};if(A)try{G=P(A,i)}catch(O){let q=O instanceof Error?O.message:String(O);c=c.replace(c.substring(y,b),`[Error parsing component props: ${q}]`);continue}let M="",F=b,E=c.substring(b).match(/^([\s\S]*?)@endcomponent/);if(E)M=E[1].trim(),F=b+E[0].length;let D=await ze(k,G,M,l,i,t,o,m,a);c=c.substring(0,y)+D+c.substring(F),u.lastIndex=0}return c}async function nr(e,i,t,o,a){if(!e)return e;let c=e,l=o.componentsDir||"components";if(!i.__processedComponents)i.__processedComponents=new Set;let m=i.__processedComponents,u=ir(c);if(u.size>0){let b=Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[];i.__stx_client_declared_names=[...new Set([...b,...u])]}let x=J(c);c=x.output;let y=st(i);return c=await v(c,/[a-z][a-z0-9]*-[a-z0-9-]*/,!1),c=await v(c,/[A-Z][a-zA-Z0-9]*/,!0,Lt(kr)),c=await v(c,/[a-z][a-z0-9]*/,!1,kr),c=x.restore(c),c;async function v(b,S,k,A){if(!b)return b;let R=b,B=zt(R,S,A),G=ut(R),M=new Map;for(let E=B.length-1;E>=0;E--){let D=B[E],O=k?U(D.tagName):D.tagName,q=he(Jn(D.attributes,i,t)),z=G.filter(({start:I,end:_})=>D.startIndex>=I&&D.startIndex<_),X=z.length>0,L=new Set(y);for(let I of z)for(let _ of I.names)L.add(_);let T=Zn(q,i,o,X,L);if(typeof T.clientReactive.for==="string")for(let I of Y(T.clientReactive.for))L.add(I);let ce=de.getBuiltin(D.tagName),$e=ce?await Er(D.tagName,l,i,t,o):!1,K=D.tagName==="Image"&&Ds([...Object.keys(T.static),...Object.keys(T.serverDynamic),...Object.keys(T.clientReactive)],Object.keys(T.events),{...T.static,...T.serverDynamic})&&(o._pluginComponentDirs??[]).some((I)=>br(I).has("Image"));if(ce&&!$e&&!K){let I={context:i,filePath:t,options:o,dependencies:a},_=ce.render(T,D.content,I);if(Object.keys(T.events).length>0){let ee=Zt(T.events);_=_.replace(/^(\s*<[a-zA-Z][a-zA-Z0-9-]*)/,`$1 ${ee}`)}if(Object.keys(T.clientReactive).length>0)_=Gt(_,T.clientReactive);M.set(E,_);continue}if(!k&&D.tagName.includes("-")&&!await Er(O,l,i,t,o))continue;let le={};for(let[I,_]of Object.entries(T.static))le[I]=_;for(let[I,_]of Object.entries(T.serverDynamic))le[I]=_;let te={declaredProps:new Set,consumedProps:new Set,reactiveProps:Object.keys(T.clientReactive),events:Object.keys(T.events)},j=await ze(O,le,x.restore(D.content),l,i,t,o,m,a,[...L],te,D.tagName);if(j=rr(j,T,te.declaredProps,te.consumedProps,o._nativeHostAttrs),o._nativeHostAttrs){let I=te.reactiveProps.filter((ne)=>!te.consumedProps.has(ne)&&!["if","for","show","key","ref"].includes(ne)).map(U),_=ft(j,!0);if(I.length&&_){if(!Object.hasOwn(he(j.slice(_.insertPos,_.tagEnd)),"data-stx-native-host-root"))j=j.slice(0,_.insertPos)+' data-stx-native-host-root="true"'+j.slice(_.insertPos);let ne=we(j);j=j.slice(0,ne.insertPos)+` data-stx-native-forward="${I.join(" ")}"`+j.slice(ne.insertPos)}let ee=ft(j,!0);if(ee){let ne=he(j.slice(ee.insertPos,ee.tagEnd)),Se=we(j),Jt=he(j.slice(Se.insertPos,Se.tagEnd));if(Object.hasOwn(ne,"data-stx-native-host-root")&&!Object.hasOwn(Jt,"data-stx-native-host-owner"))j=j.slice(0,Se.insertPos)+" data-stx-native-host-owner"+j.slice(Se.insertPos)}}if(Object.keys(T.events).length>0){let I=we(j);if(I){let _=Zt(T.events),ee=Object.keys(T.events).map((ne)=>ne.replace(/^@/,"").split(".")[0]).join(" ");j=j.substring(0,I.insertPos)+` data-stx-parent-events="${ee}" ${_}`+j.substring(I.insertPos)}}if(Object.keys(T.clientReactive).length>0)j=Gt(j,T.clientReactive);M.set(E,j)}if(M.size===0)return R;let F="",H=0;for(let E=0;E<B.length;E++){let D=M.get(E);if(D===void 0)continue;F+=R.slice(H,B[E].startIndex),F+=D,H=B[E].endIndex}return F+=R.slice(H),F}}function Gt(e,i){let t=new Set(["if","for"]),o=new Set(["show"]),a=Object.entries(i).filter(([y])=>!t.has(y)),c=a.filter(([y])=>!o.has(y)).map(([y])=>U(y)).join(" "),l=e,m=a.length>0?we(l):null;if(m){let y=a.map(([C,w])=>`:${U(C)}="${w.replace(/"/g,""")}"`).join(" "),h=c?` data-stx-parent-bindings="${c}"`:"";l=l.substring(0,m.insertPos)+`${h} ${y}`+l.substring(m.insertPos)}let u=i.if;if(u)l=`<template :if="${u.replace(/"/g,""")}">${l}</template>`;let x=i.for;if(x){let y=i.key,h=y?` :key="${y.replace(/"/g,""")}"`:"";l=`<template :for="${x.replace(/"/g,""")}"${h}>${l}</template>`}return l}function rr(e,i,t=new Set,o=new Set,a=!1){let c=ft(e,a);if(!c)return e;let l=e.slice(c.insertPos,c.tagEnd),m=i.serverDynamic.class??i.static.class;if(a&&typeof m==="string"&&m&&!o.has("class")){let v=/(^|\s)class\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i,b=v.test(l)?l.replace(v,(S,k,A,R,B)=>`${k}class="${n(`${lt(A??R??B)} ${m}`)}"`):` class="${n(m)}"${l}`;e=e.slice(0,c.insertPos)+b+e.slice(c.tagEnd),c.tagEnd+=b.length-l.length,l=b}let u=a||/\bdata-native(?:\s|=)/i.test(l),x=u?o:t,y=new Set(Object.keys(he(l))),h=new Set(["class","className"]);for(let v of Object.keys(i.static)){let b=i.staticNames[v]??v;if(y.has(b)||x.has(v)||!u&&!qe(b))h.add(v)}for(let v of Object.keys(i.serverDynamic)){let b=i.serverDynamicNames?.[v]??v;if(y.has(b)||x.has(v)||!u&&!qe(b))h.add(v)}let C=[];if(u){for(let[v,b]of Object.entries(i.static)){if(h.has(v)||b!==!0&&b!==re)continue;h.add(v),C.push(`${n(i.staticNames?.[v]??v)}="true"`)}for(let[v,b]of Object.entries(i.serverDynamic)){if(h.has(v)||b!==!0)continue;h.add(v),C.push(`${n(i.serverDynamicNames?.[v]??v)}="true"`)}}let w=[...se(i,h),...ae(i,h),...C];if(u){for(let[v,b]of Object.entries(i.serverDynamic)){if(h.has(v)||b!==!1)continue;let S=i.serverDynamicNames?.[v]??v;w.push(`${n(S)}="false"`)}for(let[v,b]of Object.entries(i.serverDynamic)){if(h.has(v)||b===null||typeof b!=="object")continue;let S=JSON.stringify(b);if(S!==void 0){let k=i.serverDynamicNames?.[v]??v;w.push(`${n(k)}="${n(S)}"`)}}}if(w.length===0)return e;return`${e.slice(0,c.insertPos)} ${w.join(" ")}${e.slice(c.insertPos)}`}function we(e){let i=Kt(e,0);if(i)return i;let t=/<([a-zA-Z][a-zA-Z0-9-]*)\b[^>]*\bdata-stx-scope(?:\s|=|>)/i.exec(e);if(t)return{insertPos:t.index+1+t[1].length,tagEnd:dt(e,t.index+1+t[1].length)};return null}function ft(e,i=!1){let t=we(e);if(!t)return null;let o=e.slice(t.insertPos,t.tagEnd),a=/\bdata-stx-component-wrapper(?:\s|=|>|$)/i.test(o)?Kt(e,t.tagEnd+1):t;return a&&i?sr(e,a)??a:a}function sr(e,i){if(!e.includes("data-stx-native-host-root"))return null;let t=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),o=e.lastIndexOf("<",i.insertPos),a=0,c;while(o>=0&&o<e.length){if(e.startsWith("<!--",o)){let y=e.indexOf("-->",o+4);if(y<0)return null;o=e.indexOf("<",y+3);continue}let l=/^<(\/?)([a-z][\w-]*)\b/i.exec(e.slice(o));if(!l){o=e.indexOf("<",o+1);continue}let m=l[2].toLowerCase(),u=o+l[0].length,x=dt(e,u);if(l[1]){if(a--,c!==void 0&&a<c)c=void 0;if(a<=0)return null}else if(m==="script"||m==="style"){let y=new RegExp(`</${m}\\s*>`,"gi");if(y.lastIndex=x+1,!y.exec(e))return null;o=e.indexOf("<",y.lastIndex);continue}else{let y=he(e.slice(u,x)),h=a>0&&(Object.hasOwn(y,"data-stx-component-wrapper")||Object.hasOwn(y,"data-stx-native-host-owner"));if(c===void 0&&!h&&Object.hasOwn(y,"data-stx-native-host-root"))return{insertPos:u,tagEnd:x};if(!t.has(m)&&e[x-1]!=="/"){if(a++,c===void 0&&h)c=a}else if(a===0)return null}o=e.indexOf("<",x+1)}return null}function Kt(e,i){let t=i;while(t<e.length){let o=e.slice(t),a=o.match(/^\s+/);if(a){t+=a[0].length;continue}if(o.startsWith("<!--")){let m=e.indexOf("-->",t+4);if(m===-1)return null;t=m+3;continue}let c=o.match(/^<(script|style)\b[^>]*>/i);if(c){let m=`</${c[1].toLowerCase()}>`,u=e.toLowerCase().indexOf(m,t+c[0].length);if(u===-1)return null;t=u+m.length;continue}let l=o.match(/^<([a-zA-Z][a-zA-Z0-9-]*)(?:\s|>|\/)/);if(!l)return null;return{insertPos:t+1+l[1].length,tagEnd:dt(e,t+1+l[1].length)}}return null}function dt(e,i){let t="";for(let o=i;o<e.length;o++){let a=e[o];if(t){if(a==="\\")o++;else if(a===t)t=""}else if(a==='"'||a==="'")t=a;else if(a===">")return o}return e.length}function ir(e){let i=new Set;for(let t of e.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi)){let o=t[1];if(!/\bclient\b/.test(o)||/\bserver\b/.test(o))continue;for(let a of di(t[2]))i.add(a);for(let a of t[2].matchAll(/^\s*import\s+(?:type\s+)?(?:([\w$]+)\s*,?\s*)?(?:\{([^}]*)\}|\*\s+as\s+([\w$]+))?\s*from\s/gm)){if(a[1])i.add(a[1]);if(a[3])i.add(a[3]);for(let c of(a[2]??"").split(",")){let l=c.replace(/^\s*type\s+/,"").split(/\s+as\s+/).pop().trim();if(/^[A-Za-z_$][\w$]*$/.test(l))i.add(l)}}}return i}async function ds(e,i,t,o,a){if(!Vt)Tt(de),Vt=!0;let c=await Mf(e,i,t,o,a);c=await er(c,i,t,o,a),c=await tr(c,i,t,o,a);let l=[];for(let m=0;m<3;m++){let u=l.length,x=fe(c,Me,(h,C)=>`\x00STX_COMPONENT_COMMENT_${u+C}\x00`,`STX_COMPONENT_COMMENT:${u}`);l.push(...x.tokens);let y=c;if(c=await nr(x.output,i,t,o,a),c===y)break}if(l.length>0)c=c.replace(/\x00STX_COMPONENT_COMMENT_(\d+)\x00/g,(m,u)=>l[Number(u)]??"");if(o.debug){let m=Qn(c);if(m.length>0)console.warn(`[stx] ${t}: unresolved component tag(s) after render passes: ${m.join(", ")}. Check nested component output for malformed root tags or recursive component markup.`)}return c}
|
|
42
|
-
export{jo,Bo,Fo,Nh,us,Mh,lc,Mf,ds};
|
package/dist/chunk-0rnfywsx.js
DELETED
package/dist/chunk-1bpx9b0m.js
DELETED
package/dist/chunk-1g6xxftp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{F,Vf,Yo,a,O,Uh,Wh}from"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{O as config,F as defaultConfig,Uh as defineStxConfig,Yo as discoverConfig,a as loadStxConfig,Vf as resolveStxDirectories,Wh as validateConfig};
|
package/dist/chunk-2fcg7aws.js
DELETED
package/dist/chunk-2nxxhcyy.js
DELETED
package/dist/chunk-4wgfqa56.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Vl,bm,Ul,Wl,wm,vm}from"./chunk-11fn3hgv.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{vm as applySlots,wm as extractSlotContent,bm as parseSlotElement,Vl as parseSlots,Wl as processSlots,Ul as renderSlot};
|
package/dist/chunk-5p6x0ztt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xe,Ws,bg,Qh,wg,ey,Dt,p,W,Q,xn,ke,vg,xi,xg,ty,_,Sg,ny,R,ry}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Sg as applyFilters,ey as clearCustomFilters,vg as clientLoopScopes,Ws as defaultFilters,xn as escapeAttributeValue,p as escapeHtml,W as escapeHtmlValue,Q as escapeInterpolatedHtmlValue,R as evaluateExpression,xe as findMustacheEnd,wg as getAllFilters,xg as interpolateScriptAttributes,xi as interpolateScriptExpressions,ty as interpolateScriptsInTemplate,_ as processExpressions,bg as registerFilter,Qh as registerFilters,Dt as replaceInterpolations,ny as resetRejectedExpressionWarnings,ry as unescapeHtml,ke as usesSignalsInScript};
|
package/dist/chunk-6aak0b7c.js
DELETED
package/dist/chunk-6c6m6p9t.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{He,M,Lt}from"./chunk-vfj9wp11.js";import{T}from"./chunk-txd2js5v.js";import{gt,Ee,j,Ke,Te,fa,yo,ga,Nn}from"./chunk-nm26vnzd.js";import{kt,de,tt}from"./chunk-29f6vmyz.js";import{Oo}from"./chunk-zj4s3rnw.js";import{Mn}from"./chunk-fvgk1w9s.js";import{we}from"./chunk-4sv740a5.js";import Z from"fs";import P from"path";var{serve:ce}=globalThis.Bun;import F from"zlib";import{promisify as Q}from"util";var K=Q(F.brotliCompress),ee=Q(F.gzip),te=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],ne=["text/event-stream","multipart/x-mixed-replace"],re=1024;function se(t){if(!t)return!1;let e=t.toLowerCase();if(ne.some((a)=>e.startsWith(a)))return!1;return te.some((a)=>e.startsWith(a))}function oe(t){let e=new Map;for(let a of t.split(",")){let[r,...i]=a.trim().split(";"),f=r.trim().toLowerCase();if(!f)continue;let h=1;for(let g of i){let l=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(g);if(!l)continue;let m=Number.parseFloat(l[1]);if(Number.isFinite(m))h=m}e.set(f,h)}return e}function ae(t){if(!t)return null;let e=oe(t),a=e.get("*"),r=(i)=>e.get(i)??a??0;if(r("br")>0)return"br";if(r("gzip")>0)return"gzip";return null}var Y=33554432,H=new Map,U=0;function ie(t,e){if(e.length>Y/8)return;H.set(t,e),U+=e.length;for(let[a,r]of H){if(U<=Y)break;H.delete(a),U-=r.length}}async function An(t,e,a={}){if(e.headers.get("content-encoding"))return e;if(e.status===204||e.status===304||!e.body)return e;if(!se(e.headers.get("content-type")))return e;let r=ae(t.headers.get("accept-encoding"));if(!r)return e;let i;try{i=new Uint8Array(await e.arrayBuffer())}catch{return e}let f=()=>new Response(i,{status:e.status,statusText:e.statusText,headers:J(e.headers)});if(i.length<(a.threshold??re))return f();try{let h=a.quality??5,g=`${r}:${h}:${i.length}:${Bun.hash(i)}`,l=H.get(g);if(!l)l=r==="br"?await K(i,{params:{[F.constants.BROTLI_PARAM_QUALITY]:h,[F.constants.BROTLI_PARAM_SIZE_HINT]:i.length}}):await ee(i),ie(g,l);if(l.length>=i.length)return f();let m=J(e.headers);return m.set("Content-Encoding",r),m.set("Content-Length",String(l.length)),new Response(l,{status:e.status,statusText:e.statusText,headers:m})}catch{return f()}}function J(t){let e=new Headers(t),a=e.get("Vary");if(!a)return e.set("Vary","Accept-Encoding"),e;if(!a.split(",").some((i)=>i.trim().toLowerCase()==="accept-encoding"))e.set("Vary",`${a}, Accept-Encoding`);return e}class G{now;entries=new T(1000,{maxBytes:33554432,sizeOf:(t)=>t.body.byteLength+JSON.stringify(t.headers).length*2});pending=new Map;generation=0;constructor(t=Date.now){this.now=t}invalidate(t){this.generation++,this.pending.clear();for(let e of Array.from(this.entries.keys()))if(t===void 0||this.entries.get(e)?.path===t)this.entries.delete(e)}async respond(t,e,a){let r,i=async()=>{let s=r??await a();return s.headers.set("Cache-Control","private, no-store"),s.headers.set("Vary",j(s.headers.get("Vary")).Vary),s};if(!e||t.method!=="GET"||t.headers.has("Cookie")||t.headers.has("Authorization")||t.headers.has("Range"))return i();let f=new URL(t.url),h=`${f.origin}${f.pathname}${f.search}|${Ee(t)?"fragment":"document"}`,g=this.entries.get(h),l=(s)=>{let b=new Headers(s.headers);return b.set("Cache-Control","private, no-store"),b.set("Age",String(Math.max(0,Math.floor((this.now()-s.created)/1000)))),new Response(s.body.slice(0),{headers:b})},m=g?(this.now()-g.created)/1000:1/0;if(g&&m<e.maxAge)return l(g);let v=this.generation,k=async()=>{let s=await a();r=s;let b=(s.headers.get("Vary")??"").toLowerCase().split(",").map((y)=>y.trim()).filter(Boolean);if(s.status!==200||s.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(s.headers.get("Cache-Control")??"")||b.some((y)=>y!=="x-stx-router"&&y!=="accept-encoding"))return null;let B=await s.clone().arrayBuffer();if(B.byteLength>1048576)return null;s.headers.set("Vary",j(s.headers.get("Vary")).Vary);let n={body:B,headers:Array.from(s.headers.entries()),created:this.now(),path:f.pathname};if(this.generation===v)this.entries.set(h,n);return n},x=this.pending.get(h);if(!x){if(this.pending.size>=1000)return i();x=k().finally(()=>{if(this.pending.get(h)===x)this.pending.delete(h)}),this.pending.set(h,x)}if(g&&m<e.maxAge+(e.swr??0))return x.catch(()=>{}),l(g);let E=await x;return E?l(E):i()}}var pe={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function Yg(t={}){let e=P.resolve(t.outputDir||".output"),a=t.port??3000,r=fa(e);if(!r)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${r.routes.length} routes...`);let i=Mn(r.routeRules),f=new G,h=Oo(e,r.apiRoutes??[]),g=Bun.file(P.join(e,"server/runtime-config.json")),l=t.runtimeConfig??(await g.exists()?await g.json():void 0),m=l?M(l):void 0,v=new Map,k=new Map,x=new Map,E=new Map;for(let n of r.routes)try{let y=P.join(e,n.compiledPath),c=JSON.parse(await Bun.file(y).text());if(m)c.html=Lt(c.html,m);v.set(n.pattern,c),x.set(n.pattern,tt(c.html)),E.set(n.pattern,we(c.html));let _=P.join(e,n.fragmentPath);if(Ke(c.html,r.routerContainer||"main")&&await Bun.file(_).exists()){let A=await Bun.file(_).text();k.set(n.pattern,m?Lt(A,m):A)}}catch(y){console.warn(`[stx] Failed to load route ${n.pattern}:`,y)}let s=new Map,b=[];for(let n of r.routes)if(n.hasParams){let{regex:y,params:c}=de(n.pattern,{page:!0});b.push({regex:y,route:n,paramNames:c})}else s.set(n.pattern,n);let B=ce({port:a,async fetch(n){return An(n,await He(m??M(),async()=>{let c=new URL(n.url).pathname;if(t.onRequest){let p=await t.onRequest(n);if(p)return p}if(t.apiRouter){let p=await t.apiRouter.handleRequest(n);if(p.status!==404)return p}if(t.apiRoutes?.[c])return t.apiRoutes[c](n);let _=await h(n);if(_)return _;if((n.method==="GET"||n.method==="HEAD")&&c!=="/"){let p=P.resolve(e,"public"),d;try{d=decodeURIComponent(c)}catch{d=c}if(!d.includes("\x00")){let u=P.resolve(p,`.${d}`);if(u===p||u.startsWith(`${p}${P.sep}`))try{if(Z.existsSync(u)&&Z.statSync(u).isFile()){let R=P.extname(u).toLowerCase(),L=pe[R]||"application/octet-stream",N=c.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(c);return new Response(Bun.file(u),{headers:{"Content-Type":L,"Cache-Control":N?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let A=Ee(n),C=null,q={};if(C=s.get(c)||null,!C)for(let{regex:p,route:d,paramNames:u}of b){let o=c.match(p);if(o){C=d,u.forEach((R,L)=>{q[R]=o[L+1]});break}}if(!C){let p=kt(c)?null:s.get("/404")||null;if(p){let d=v.get(p.pattern);if(d)return new Response(d.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain; charset=utf-8"}})}let O=i(c),W=Object.keys(O).length>0;return f.respond(n,O.cache,async()=>{let p=v.get(C.pattern);if(A&&n.method==="GET"&&p&&!p.hasServerScripts&&Object.keys(p.placeholders).length===0){let o=k.get(C.pattern);if(o){let R=x.get(C.pattern);return new Response(o,{status:p.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...E.has(C.pattern)?{"X-STX-Runtime":E.get(C.pattern)?"true":"false"}:{},...R?{"X-STX-Layout":R.layout,"X-STX-Layout-Group":R.group}:{},...j(),...O.cache?{}:{"Cache-Control":gt}}})}}let d=yo(n.method),u=v.get(C.pattern);if(!u){let o=s.get("/500")||null;if(o){let R=v.get(o.pattern);if(R)return new Response(R.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(C.prerendered&&d)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!d&&!u.hasServerScripts&&Object.keys(u.placeholders).length===0)return new Response(u.html,{status:u.status??200,headers:{"Content-Type":"text/html",...j(),"Cache-Control":"public, max-age=60"}});try{let{html:o,boundaries:R,redirect:L,cookies:N,status:I,headers:D}=await Nn(u,{params:q,request:n,method:n.method,__stx_strict_hydration:W,__stx_runtime_config:m});if(L)return ga(L,N,D);if(R&&R.length>0){let{renderStreamingPage:S,streamToResponse:z}=await import("./chunk-y41hhypj.js"),X=new Headers({...j(),...D,"Cache-Control":"private, no-store"});for(let V of N??[])X.append("Set-Cookie",V);if(A&&!d&&Ke(o,r.routerContainer||"main")){let V=tt(o);X.set("X-STX-Fragment","true"),X.set("X-STX-Runtime",we(o)?"true":"false"),X.set("X-STX-Layout",V.layout),X.set("X-STX-Layout-Group",V.group)}return z(S(A&&!d&&Ke(o,r.routerContainer||"main")?Te(o,r.routerContainer||"main",!0):o,R,{timeoutMs:30000}),{status:I??u.status??200,headers:X})}let w=new Headers({"Content-Type":"text/html",...j(),...O.cache?{}:{"Cache-Control":"private, no-store"}});for(let S of N??[])w.append("Set-Cookie",S);for(let[S,z]of Object.entries(D??{}))w.set(S,z);if(w.set("Vary",j(w.get("Vary")).Vary),A&&!d&&Ke(o,r.routerContainer||"main")){let S=tt(o);return w.set("X-STX-Fragment","true"),w.set("X-STX-Runtime",we(o)?"true":"false"),w.set("X-STX-Layout",S.layout),w.set("X-STX-Layout-Group",S.group),new Response(Te(o,r.routerContainer||"main",!0),{status:I??u.status??200,headers:w})}return new Response(o,{status:I??u.status??200,headers:w})}catch(o){if(console.error(`[stx] Hydration error for ${c}:`,o),W)return new Response("Internal Server Error",{status:500});return new Response(u.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${B.port}`),console.log(`[stx] Serving ${r.routes.length} routes (${v.size} pre-loaded)`),{port:B.port,stop:()=>{f.invalidate(),B.stop()},invalidate:(n)=>f.invalidate(n)}}
|
|
3
|
-
export{An,Yg};
|
package/dist/chunk-6g8byhwn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ff,Lh,jh,Bh,Fh,zf,Hf,zh,Hh,Jo,Vh,ur,dr,vs}from"./chunk-65tptp4x.js";import{rt}from"./chunk-car6nhfe.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Fh as __setSignalsGeneratorsForTest,rt as cacheEngineFingerprint,dr as cacheTemplate,ur as checkCache,Vh as clearDevCaches,Hf as getCachedRouterScript,zf as getCachedSignalsRuntime,zh as getServeClientAsset,Jo as getServeModuleBundle,vs as hashFilePath,jh as invalidateFileCache,Bh as invalidateFileCacheByDir,Lh as readFileCached,Hh as registerServeModuleBundle,Ff as templateCache};
|
package/dist/chunk-70akxpk5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{m,hi,Kc,Xc,ug,dg,pg,fg,gg,Us,mg,Be,Z,Fe,hg,Er,yg,Yc,Zc,wi,ze,r,vn,Qc,h,ge,Zh}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Zc as SIGNAL_COMPOSABLE_CALL,ge as clearComponentCache,wi as componentClientSignalNames,hi as convertToCommonJS,h as createDetailedErrorMessage,gg as extractDirectiveNames,Kc as extractScriptFromTemplate,m as extractVariables,r as fileExists,Zh as getComponentCacheStats,dg as getPositionInfo,Z as getSharedTranspiler,Qc as getSourceLineInfo,fg as hasDirectives,Xc as hasVariables,yg as isHydrateTrigger,mg as isJavaScriptScript,ze as renderComponentWithSlot,vn as resolveTemplatePath,hg as scopeOnRootElement,Us as scopeSequenceKey,Be as shouldTranspileTypeScript,Yc as slotContentHasExpressions,Fe as transpileTypeScript,Er as userComponentFileExists,pg as validateDirective,ug as validateTemplate};
|
package/dist/chunk-72gq0ywg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{om}from"./chunk-jstrmqna.js";import"./chunk-nm26vnzd.js";import"./chunk-w0a6yz73.js";import"./chunk-38ncpvww.js";import"./chunk-zj4s3rnw.js";import"./chunk-6s3hgq9z.js";import"./chunk-wzjdq7d6.js";import"./chunk-yv9589qr.js";import"./chunk-s33andzg.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-65tptp4x.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{om as buildForProduction};
|
package/dist/chunk-72n804gy.js
DELETED
package/dist/chunk-7efkc3gk.js
DELETED
package/dist/chunk-88zc5chj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bn,tg,ng,rg,sg,og,m,ig,hi,ag,Kc,Xc}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{bn as STX_ENGINE_BINDING_NAMES,hi as convertToCommonJS,Kc as extractScriptFromTemplate,m as extractVariables,Xc as hasVariables,ig as isCompleteImport,og as isMissingBindingFailure,rg as isModuleResolutionFailure,sg as isSyntaxFailure,ag as splitDeclaration,tg as stripTypeScript,ng as withoutStxReferrer};
|
package/dist/chunk-8gg8gn87.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$l,Rl}from"./chunk-fzdgevxr.js";import"./chunk-e75dntfb.js";import"./chunk-r32q8mjw.js";import"./chunk-64eeb5p5.js";import"./chunk-6c6m6p9t.js";import"./chunk-n4qznmkm.js";import"./chunk-55e46spy.js";import"./chunk-917v0bar.js";import"./chunk-jstrmqna.js";import"./chunk-nm26vnzd.js";import"./chunk-f49x34sr.js";import"./chunk-xtqapjz3.js";import"./chunk-q5pwvr98.js";import"./chunk-11fn3hgv.js";import"./chunk-nmtya57z.js";import"./chunk-vyv76w55.js";import"./chunk-z25w7kmr.js";import"./chunk-ckg6q98b.js";import"./chunk-s5dhvnnd.js";import"./chunk-7k9yahng.js";import"./chunk-20mmryy5.js";import"./chunk-nmvhktsg.js";import"./chunk-b7tb00nz.js";import"./chunk-0rvntfhj.js";import"./chunk-myje6fhm.js";import"./chunk-f7jgda7x.js";import"./chunk-gw83680k.js";import"./chunk-b1m41fwr.js";import"./chunk-w0a6yz73.js";import"./chunk-29bt1fbn.js";import"./chunk-s53wjw7y.js";import"./chunk-ac9ncbfw.js";import{en}from"./chunk-38ncpvww.js";import"./chunk-evgghnjc.js";import"./chunk-zj4s3rnw.js";import"./chunk-tx8wk6h7.js";import{Ae,i}from"./chunk-6s3hgq9z.js";import"./chunk-wzjdq7d6.js";import"./chunk-yv9589qr.js";import"./chunk-s33andzg.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import{ve}from"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import{ur,dr}from"./chunk-65tptp4x.js";import{Ss,F,a}from"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{m,je}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";import"./chunk-dv11h4f0.js";import"./chunk-nyg0nbjj.js";export{Ss as buildWebComponents,dr as cacheTemplate,ur as checkCache,en as classifyAllScripts,$l as createMiddleware,Rl as createRoute,F as defaultConfig,m as extractVariables,ve as injectRouterScript,a as loadStxConfig,je as processClientScript,i as processDirectives,Ae as readMarkdownFile};
|
package/dist/chunk-8wv2p899.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Se,yi,bi,cg,Mt,Gc,lg,Jc,Yh,Le,wn,je}from"./chunk-trwe0mfa.js";import{rl,s}from"./chunk-sfsek961.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Se as BROWSER_CORE_IMPORTS,cg as STX_AUTO_IMPORTS,yi as extractAndStripCssImports,Le as extractBridgeData,rl as findInterpolationEnd,Jc as generateAutoImportDestructuring,Yh as generateBrowserAutoImportDestructuring,wn as generateServerDataBridge,Mt as injectBrowserCoreAutoImports,je as processClientScript,lg as referencesName,bi as renderVendorStyleTags,s as stripCommentsAndLiterals,Gc as transformAutoImports};
|
package/dist/chunk-9w3r1ch2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var dn=".stx",o="STX_DIR",e=null;function Rc(t){e=t?.trim()||null}function hr(){return process.env[o]?.trim()||e||dn}function c(t=process.cwd(),...n){let r=hr();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function yr(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==dn&&!n.startsWith(`${dn}/`))return t;let r=n.slice(dn.length+1);return r?i.join(hr(),r):hr()}
|
|
3
|
-
export{dn,Rc,hr,c,yr};
|
package/dist/chunk-a1hxz8q4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{si,oi,kt,de,fr,$s,gr,Rs,As,Wf,qf,Kf,mr,Xf,Gf,Jf,Yf,Cc,Ec,Tc,ii,$c,Zf,_t,Ct,Et,Tt,$t,Rt,nt,Qf}from"./chunk-29f6vmyz.js";export{gr as Router,Jf as abortNavigation,$s as bracketPathToRegex,_t as clearMiddleware,Ec as createClientCookieManager,$t as createMiddlewareContext,Tt as createRouteLocation,Cc as createServerCookieManager,Tc as createStorageManager,Yf as defineMiddleware,qf as defineRoute,Kf as defineRoutes,Rs as findErrorPage,As as formatRoutes,oi as generateRouteManifest,si as generateRouteTypes,$c as getMiddleware,Ct as getMiddlewareNames,nt as getRouterScript,Qf as getRouterScriptDev,Zf as hasMiddleware,kt as isFileRequestPath,Et as loadMiddlewareFromDirectory,fr as matchRoute,Gf as navigateTo,de as patternToRegex,ii as registerMiddleware,Xf as resetRoutes,mr as route,Rt as runMiddleware,Wf as setAppUrl};
|
package/dist/chunk-a579jdwb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ji,Bi,Fi,Bg,zi,Hi,Fg,Vi,Ui,El,zg}from"./chunk-nyg0nbjj.js";export{ji as VideoProcessorCache,El as analyzeVideo,Bg as clearVideoCache,Ui as generateDASHManifest,Vi as generateHLSManifest,zi as generatePoster,Fg as generateSpriteSheet,Hi as generateThumbnails,Bi as getCachedVideoResult,zg as processVideo,Fi as setCachedVideoResult};
|
package/dist/chunk-ahd8jdzx.js
DELETED
package/dist/chunk-aqrx322x.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vo,ph,fh}from"./chunk-b1m41fwr.js";import"./chunk-evgghnjc.js";import"./chunk-zj4s3rnw.js";import"./chunk-tx8wk6h7.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{fh as clearComposableCache,ph as getComposableScript,vo as listComposableModules};
|
package/dist/chunk-ay7ggc4k.js
DELETED
package/dist/chunk-bc4x45vx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ri,sy,oy,dl,Ue,kg,Zs,iy,ay,cy,ly,uy,dy,py,fy,gy}from"./chunk-txd2js5v.js";export{dy as applyHead,iy as definePageMeta,Ri as getHead,sy as getPageMeta,Ue as mergeHeadConfigs,py as processHeadDirective,gy as processMetaDirective,fy as processTitleDirective,uy as renderBodyAttrs,cy as renderHead,ly as renderHtmlAttrs,oy as resetHead,Zs as seoMetaToHeadConfig,dl as useHead,ay as usePageTitle,kg as useSeoMeta,ay as useTitle};
|
package/dist/chunk-c77vxvp3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{an,Po,Io,Oo,$h,No}from"./chunk-zj4s3rnw.js";import"./chunk-amg6kr1p.js";import"./chunk-29f6vmyz.js";import"./chunk-vfj9wp11.js";export{Io as buildServerApi,$h as createServerApi,an as discoverServerApi,Po as generateApiTypes,No as isServerApiSource,Oo as productionApiDispatcher};
|
package/dist/chunk-c7hw37ww.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yt,Un,gh}from"./chunk-w0a6yz73.js";import{ue,Wn,mh,qn,xo,Jr,Yr,hh,yh,bh,Kn,Xn,So,Zr,wh}from"./chunk-rnm8ejpz.js";import"./chunk-4ntm3dtk.js";export{xo as batch,gh as default,Wn as derived,qn as effect,yt as generateSignalsRuntime,Un as generateSignalsRuntimeDev,Xn as isDerived,Kn as isSignal,mh as memo,Yr as onDestroy,Jr as onMount,Zr as peek,bh as pendingLifecycleCounts,yh as runDestroyCallbacks,hh as runMountCallbacks,ue as state,So as untrack,wh as useOptimistic};
|
package/dist/chunk-cfrgrnej.js
DELETED
package/dist/chunk-cw8vpk41.js
DELETED
package/dist/chunk-d96b9qgj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dh,gs,Wo,ms,ar,qo,Ko,jf,hs,ys,bs,Xo,uc,Bf,vt}from"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{V}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{jf as bindLoopInterpolations,Dh as clearScriptScanCache,hs as convertServerLoopAttributesToDirectives,qo as convertSignalDirectivesToAttributes,ys as convertSignalLoopsToAttributes,ar as extractClientSignalNames,V as extractExports,uc as findMarkupIndexOutsideScripts,ms as hasSignalsSyntax,Wo as parseLoopExpression,Ko as preEvalLiteralReactiveIfs,bs as processScriptSetup,Xo as processSignals,Bf as rewriteStxImportSpecifiers,gs as scanScriptTags,vt as stripStxRuntimeImports};
|
package/dist/chunk-db1c0c3c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{im,am,cm,lm,zl,um,dm,pm,fm,gm,mm,hm}from"./chunk-f49x34sr.js";export{mm as Broadcast,hm as BroadcastServer,zl as broadcast,fm as broadcastPresence,pm as broadcastPrivate,gm as channel,im as getBroadcastServer,lm as loadChannels,am as startBroadcasting,cm as stopBroadcasting,um as toUser,dm as toUsers};
|
package/dist/chunk-f6vzn90z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{uo,na,Ur,po,fo,Pn,Xt,ra,Wr,qr,go,mo,Zg,Qg,ft}from"./chunk-n4qznmkm.js";export{ft as DeployError,na as calculateSha1,Ur as collectDeployFiles,qr as createDefaultNetlifyConfig,po as createFileManifest,uo as createNetlifyClient,Zg as deploy,Wr as detectProjectConfig,fo as filterRequiredFiles,Pn as formatSize,ra as generateNetlifyToml,Xt as getTotalSize,mo as hasNetlifyConfig,Qg as initNetlify,go as writeNetlifyConfig};
|
package/dist/chunk-fd3815fe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rf,ic,Rh,ac,Af,Pf,ln,ir,Ah,If,Of,Ph,b}from"./chunk-wzjdq7d6.js";import"./chunk-65tptp4x.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{ln as buildCss,If as extractClassNames,Pf as fingerprintConfig,Of as generateCss,Ah as getCachedCSS,Rf as getCssServeAsset,b as injectCss,ic as loadCssEngine,ac as loadCssEngineConfig,ir as rebuildCss,Rh as resetCssCache,Af as resolveUserCssConfig,Ph as withLinkedModuleBundles};
|
package/dist/chunk-gtj8wy95.js
DELETED
package/dist/chunk-h4tbpr7p.js
DELETED
package/dist/chunk-h5aaq0j8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ih,Nf,Ye,cc,Oh,as,cs,ls}from"./chunk-yv9589qr.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-3bjnrmha.js";import"./chunk-ya6bp08c.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Oh as clearOnceStore,cc as onceStore,Ye as partialsCache,as as processIncludes,cs as processStackPushDirectives,ls as processStackReplacements,Ih as resetUnscopedSignalWarnings,Nf as topLevelElements};
|
package/dist/chunk-j0j4p9t1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ta,$a,Ra,Aa,Ch}from"./chunk-mvehmtap.js";import"./chunk-c9vxm8yq.js";import"./chunk-29bt1fbn.js";import"./chunk-s53wjw7y.js";import"./chunk-6s3hgq9z.js";import"./chunk-wzjdq7d6.js";import"./chunk-yv9589qr.js";import"./chunk-s33andzg.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-65tptp4x.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Ta as buildNative,Ch as default,$a as findCraftBinary,Aa as getAvailableFormats,Ra as getAvailableTargets};
|
package/dist/chunk-j0w048sj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ei,ti,ni,ri,Cs,Es,qh,Kh,Xh,Gh,Ts,Jh}from"./chunk-ms3v5nat.js";import"./chunk-txd2js5v.js";export{Jh as generateDefaultRobotsTxt,Ts as generateRobotsTxt,Kh as generateSitemap,Xh as generateSitemapIndex,ri as injectSeoTags,Cs as metaDirective,ei as processMetaDirectives,ni as processSeoDirective,ti as processStructuredData,qh as registerSeoDirectives,Gh as scanForSitemapEntries,Es as structuredDataDirective};
|
package/dist/chunk-jvg9e6t6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{aa,tm,ca,nm,Bl,Fl,rm,sm}from"./chunk-917v0bar.js";import"./chunk-b1m41fwr.js";import"./chunk-evgghnjc.js";import"./chunk-zj4s3rnw.js";import"./chunk-tx8wk6h7.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{It,eg}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{aa as buildScriptVirtualFile,tm as buildVirtualSource,It as extractScriptBlocks,eg as extractTemplateExpressions,Bl as findRuntimeTypeDeclarations,Fl as findStxModuleDeclarations,sm as formatTypecheckDiagnostics,nm as sourcePathFor,rm as typecheckStxFiles,ca as virtualPathFor};
|
package/dist/chunk-k761q7s7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pl,sa,Il,Ol,oa,Nl,Ml,Dl,Ll,ia,jl,em}from"./chunk-55e46spy.js";import{ma,Hl}from"./chunk-xtqapjz3.js";import{ee,te,ne,Dn,he,$e,Xr,mt,Gt,Ln,jn,Bn,re,Fn,zn,Gr}from"./chunk-nmtya57z.js";import{Kl}from"./chunk-vyv76w55.js";import"./chunk-s53wjw7y.js";export{te as DEFAULT_FORMATS,ne as DEFAULT_QUALITY,ee as DEFAULT_WIDTHS,Gr as ImageProcessingError,Ol as clearImageCache,oa as createImageDirective,Hl as createImageHandler,Ml as createImagePlugin,em as defaultImageConfig,zn as formatSize,ia as generateImageManifest,Gt as generateSizes,mt as generateSrcSet,Ln as getFallbackVariant,Xr as getImageMetadata,re as getMimeType,Fn as getTotalSize,jn as groupVariantsByFormat,ma as handleImageRequest,Nl as imageDirective,he as isImageBackendAvailable,Bn as isImageFile,Dn as isSharpAvailable,Ll as optimizeDirectory,Dl as optimizeImage,sa as parseImageComponent,$e as processImage,Il as processImageComponents,Pl as renderImageComponent,Kl as rewriteImagesWithSiblings,jl as writeImageManifest};
|
package/dist/chunk-m3tnxk01.js
DELETED
package/dist/chunk-mdtysd2d.js
DELETED
package/dist/chunk-nmtya57z.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Xe,se,Za}from"./chunk-s53wjw7y.js";import v from"fs";import g from"path";import V from"crypto";import{generatePlaceholder as T,processImage as L}from"ts-images";var ee=[320,640,768,1024,1280,1536,1920],te=["webp","jpeg"],ne=80,D=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],U={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},I=null,M=!1;async function d(){if(M)return I;M=!0;try{let t=await import("sharp");return I=t.default||t,I}catch{return null}}async function Dn(){return await d()!==null}async function he(){return!0}async function $e(t,e={}){let{widths:a=ee,formats:r=te,quality:n=ne,fit:c="cover",placeholder:i="none",outputDir:m=".stx/images",baseUrl:s="/images"}=e,h,l;if(typeof t==="string"){if(l=t,!await Bun.file(t).exists())throw new Gr(`Image not found: ${t}`,"NOT_FOUND");h=await Bun.file(t).arrayBuffer().then((o)=>Buffer.from(o))}else l="buffer-input",h=t;let b=V.createHash("sha256").update(h).digest("hex").slice(0,12),j=await Xr(h),{width:u,height:x}=j,F=u/x;await v.promises.mkdir(m,{recursive:!0});let B=[],A=g.basename(l,g.extname(l)),f=a.filter((o)=>o<=u);if(!f.includes(u)&&u<=Math.max(...a))f.push(u);f.sort((o,p)=>o-p);for(let o of f){let p=Math.round(o/F);for(let w of r){let S=`${A}-${o}w-${b}.${w}`,P=g.join(m,S),q=`${s}/${S}`,E=await ql(h,{width:o,height:p,format:w,quality:n,fit:c});await Bun.write(P,E),B.push({path:P,url:q,width:o,height:p,format:w,size:E.length})}}let y;if(i!=="none")y=await k(h,i);return{src:l,variants:B,placeholder:y,width:u,height:x,aspectRatio:F,hash:b}}async function Xr(t){let e=typeof t==="string"?Buffer.from(await Bun.file(t).arrayBuffer()):t,a=await d();if(a){let n=await a(e).metadata();return{width:n.width||0,height:n.height||0,format:n.format||"unknown",hasAlpha:n.hasAlpha}}return R(e)}function R(t){if(t[0]===137&&t[1]===80&&t[2]===78&&t[3]===71){let e=t.readUInt32BE(16),a=t.readUInt32BE(20);return{width:e,height:a,format:"png",hasAlpha:!0}}if(t[0]===255&&t[1]===216){let e=2;while(e<t.length){if(t[e]!==255)break;let a=t[e+1];if(a>=192&&a<=207&&a!==196&&a!==200&&a!==204){let n=t.readUInt16BE(e+5);return{width:t.readUInt16BE(e+7),height:n,format:"jpeg",hasAlpha:!1}}let r=t.readUInt16BE(e+2);e+=2+r}}if(t.toString("utf8",0,4)==="RIFF"&&t.toString("utf8",8,12)==="WEBP"){let e=t.toString("utf8",12,16);if(e==="VP8 "){let a=t.readUInt16LE(26)&16383,r=t.readUInt16LE(28)&16383;return{width:a,height:r,format:"webp",hasAlpha:!1}}if(e==="VP8L"){let a=t.readUInt32LE(21),r=(a&16383)+1,n=(a>>14&16383)+1;return{width:r,height:n,format:"webp",hasAlpha:!0}}}if(t.toString("utf8",0,3)==="GIF"){let e=t.readUInt16LE(6),a=t.readUInt16LE(8);return{width:e,height:a,format:"gif",hasAlpha:!0}}throw new Gr("Unable to parse image dimensions","PARSE_ERROR")}async function ql(t,e){let a=await d();if(a){let r=a(t).resize(e.width,e.height,{fit:e.fit});switch(e.format){case"webp":r=r.webp({quality:e.quality});break;case"avif":r=r.avif({quality:e.quality});break;case"jpeg":r=r.jpeg({quality:e.quality});break;case"png":r=r.png({quality:e.quality});break}return r.toBuffer()}return await Za("img",async(r)=>{let n=g.join(r,`out.${e.format}`);return await L({input:t,output:n,format:e.format,quality:e.quality,resize:{width:e.width,height:e.height,fit:e.fit}}),Buffer.from(await Bun.file(n).arrayBuffer())})}async function k(t,e){let a=await d();if(e==="blur"&&a){let m=(await a(t).resize(20).blur(10).toBuffer()).toString("base64"),s=await Xr(t);return`data:${U[s.format]||"image/jpeg"};base64,${m}`}if(e==="dominant-color"&&a){let{dominant:i}=await a(t).resize(1,1).toBuffer().then(async(m)=>{let s=await a(m).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${i.r}, ${i.g}, ${i.b})`}let r=await Xr(t),n=Xe("ph"),c=g.join(n,`in.${r.format==="unknown"?"bin":r.format}`);try{await Bun.write(c,t);let i=e==="blur"?"blur":e==="thumbhash"?"thumbhash":"dominant-color",s=await T(c,{strategy:i,width:i==="thumbhash"?void 0:32});if(e==="dominant-color"&&s.dominantColor)return s.dominantColor;if(s.dataURL)return s.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{se(n)}}function mt(t,e){return(e?t.filter((r)=>r.format===e):t).sort((r,n)=>r.width-n.width).map((r)=>`${r.url} ${r.width}w`).join(", ")}function Gt(t){if(!t||Object.keys(t).length===0)return"100vw";return Object.entries(t).sort((a,r)=>{let n=Number.parseInt(a[0].replace(/\D/g,""))||0;return(Number.parseInt(r[0].replace(/\D/g,""))||0)-n}).map(([a,r])=>`(max-width: ${a}) ${r}`).join(", ")+", 100vw"}function Ln(t){let e=t.filter((r)=>r.format==="jpeg");if(e.length===0)return t[Math.floor(t.length/2)];let a=e.sort((r,n)=>r.width-n.width);return a[Math.floor(a.length/2)]}function jn(t){let e=new Map;for(let a of t){let r=e.get(a.format)||[];r.push(a),e.set(a.format,r)}return e}function Bn(t){let e=g.extname(t).toLowerCase();return D.includes(e)}function re(t){return U[t]||"application/octet-stream"}function Fn(t){return t.reduce((e,a)=>e+a.size,0)}function zn(t){if(t<1024)return`${t} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;return`${(t/1048576).toFixed(2)} MB`}class Gr extends Error{code;constructor(t,e){super(t);this.name="ImageProcessingError",this.code=e}}
|
|
3
|
-
export{ee,te,ne,Dn,he,$e,Xr,ql,mt,Gt,Ln,jn,Bn,re,Fn,zn,Gr};
|
package/dist/chunk-nxfyjw59.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hu,Co,Gn,yu,bu,wu,vu,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Mu,Du,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,sd,od,id,ad,Yt,Pa,cd,ld,ud,Ia,dd,pd,fd,gd,md,hd,Oa,yd,bd,wd,vd,xd,Sd,kd,_d,Cd,Jn,Ed,Td,$d,Rd,Ad,Pd,Id,Od,Nd,Md,Dd,Ld,Eo,jd,Bd,Fd,zd,Hd,es,ts,Vd,Ud,Wd,qd,Kd,Na,Xd,Gd,Jd,Ma,To,Yd,Zd,Da,La,ns,ja,Qd,Zt,ep,Ba,Fa,$o,tp,Ro,np,rp,sp,op,ip,ap,cp,za,lp,up,Ha,dp,pp,fp,gp,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Pp,Ip,Op,Np,Va,Mp,Dp,Lp,jp,Bp,Fp,zp,Hp,Vp,Up,Wp,Yn,Ua,Wa,qp,Zn,Kp,Xp,Gp,qa,Ka,rs,ss,Jp,Ao,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,gf,mf,hf,yf,Xa,bf,wf,Ga,Ja,vf,xf}from"./chunk-c9vxm8yq.js";export{id as AVAILABLE_COMPONENTS,Na as AutoUpdater,ad as COMPONENT_STYLES,rs as DEFAULT_WATCH_INTERVAL_MS,Ka as MAX_WATCH_INTERVAL_MS,qa as MIN_WATCH_INTERVAL_MS,hd as MODAL_STYLES,Cu as TOAST_STYLES,kd as TRAY_MENU_STYLES,Da as UPDATE_MANIFEST_ASSET,pd as alert,Pp as appInfo,nf as appleScript,xf as applicationDataDirectory,tf as audio,wf as backgroundDelay,Tp as battery,ef as biometric,Up as bluetooth,cf as bonjour,Zt as bundlePathForExecutable,tp as caffeinate,Xd as canReplaceBundle,Gd as clearQuarantine,bp as clipboard,md as closeAllModals,Ld as closeAllWindows,dd as confirm,Np as contextMenu,gf as continuityCamera,ff as coreml,qd as craftBinaryNotFoundMessage,Eo as craftWindowArguments,Yn as crashReporter,Xu as createAccordion,zu as createAutocomplete,Iu as createAvatar,Pu as createBadge,Eu as createButton,Ou as createCard,td as createChart,$u as createCheckbox,Uu as createChip,nd as createCodeEditor,ju as createColorPicker,ed as createDataGrid,Bu as createDatePicker,ts as createDiskImage,Mu as createDropdown,sd as createFileExplorer,Qd as createGitHubUpdateManifest,ja as createGitHubUpdater,Vu as createImageView,gp as createInterval,Hu as createLabel,Yu as createListView,rd as createMediaPlayer,yd as createMenubar,Ju as createModalComponent,vf as createNativeUpdateApi,Ja as createPantrySelfUpdater,ip as createPreferences,Au as createProgressBar,Lu as createRadioButton,Du as createRating,qu as createScrollView,$o as createSelfUpdater,Ru as createSlider,Ku as createSplitView,Gu as createStepper,Oa as createSystemTray,Zu as createTable,Nu as createTabs,Tu as createTextInput,Fu as createTimePicker,fp as createTimer,Wu as createTooltip,Qu as createTreeView,od as createWebView,jd as createWindow,Fd as createWindowWithHTML,Ro as decaffeinate,Ep as deepLinks,mp as delay,Su as dismissAlertById,ku as dismissAllAlerts,_p as dragOut,Jd as extractBundle,rf as fileAssociations,Ao as focus,Zp as focusShortcutsReady,yp as formatCompact,op as formatDuration,sp as formatRemainingTime,lp as formatShortcut,hp as formatTime,vp as fs,Ma as generateUpdateManifest,_u as getActiveAlertCount,gd as getActiveModalCount,bd as getActiveTrayInstances,Md as getActiveWindowIds,rp as getCaffeinateStatus,yf as getCapabilities,Xa as getCapability,Od as getDesktopConfig,Pd as getDialogBridgeScript,pp as getRegisteredHotkeys,xd as getSimulatedTrayHTML,Sd as getTrayBridgeScript,wd as getTrayInstance,Dd as getWindow,Hd as getWindowBridgeScript,La as githubLatestAssetUrl,ns as githubReleaseAssetUrl,Sp as globalShortcuts,Zn as handoff,Yp as hasFocusShortcuts,qp as iap,cp as isAutoLaunchEnabled,bf as isAvailable,np as isCaffeinated,Cp as isDragOutAvailable,zd as isWebviewAvailable,Lp as keychain,Kp as liveActivities,Qp as localServer,Xp as location,af as log,Vd as macOSRuntimeExecutablePath,Op as menu,pf as midi,Fp as nativeAutoLaunch,zp as nativeTray,Hp as nativeWindow,$p as network,wp as notifications,xu as notify,Bd as openDevWindow,Ud as pack,Wd as packageApp,Ga as parsePantryUpdateManifest,za as parseShortcut,of as pdf,jp as permissions,Bp as printing,fd as prompt,Ba as quitLauncher,To as readBundleIdentity,Ua as redactPII,up as registerHotkey,Fa as relaunchBundle,hu as requestNotificationPermission,Nd as resetDesktopConfig,Kd as resolveCraftBinary,es as resolveCraftExecutablePath,ep as runningBundleTeamId,Dp as screen,Gp as screenCapture,ss as screenSharing,hf as serial,mf as serviceMenu,ap as setAutoLaunch,Id as setDesktopConfig,xp as shell,Co as showAlert,Td as showAlertDialog,Ed as showColorPicker,$d as showConfirmDialog,Rd as showErrorDialog,ld as showErrorModal,vu as showErrorToast,Pa as showInfoModal,yu as showInfoToast,Jn as showMessageBox,Yt as showModal,_d as showOpenDialog,Ia as showQuestionModal,Cd as showSaveDialog,ud as showSuccessModal,bu as showSuccessToast,Gn as showToast,Ad as showWarningDialog,cd as showWarningModal,wu as showWarningToast,Va as sidebar,Wa as signPayload,Wp as speech,uf as speechRecognition,lf as spotlight,Ip as standardMenus,Yd as swapBundle,Mp as system,sf as tags,kp as theme,Vp as touchbar,vd as triggerTrayAction,dp as unregisterAllHotkeys,Ha as unregisterHotkey,Rp as updater,Zd as verifyBundleTrust,df as vision,Jp as watchScreenSharing,Ap as windowEvents};
|
package/dist/chunk-pe5qqem0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zl,Ql,eu,tu,nu,ru,su,ou,iu,au,Nm}from"./chunk-7k9yahng.js";export{Zl as createIslandRegistry,Nm as default,au as generateIslandManifest,eu as generatePartialHydrationCSS,ru as hydrateAll,nu as hydrateByStrategy,tu as hydrateIsland,su as isHydrated,ou as onHydrated,Ql as processPartialHydrationDirectives,iu as processStaticDirectives};
|
package/dist/chunk-pwv77cyb.js
DELETED
package/dist/chunk-qs0vtav5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Sf,kf,ye,_f,nc,tn,nn,Eh,rc,rn,tr,Cf,Ef,Tf,os,sn,$f,on,sc,Th}from"./chunk-evgghnjc.js";import"./chunk-zj4s3rnw.js";import"./chunk-tx8wk6h7.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{tr as MODULE_SPECIFIER_PREFIX,Sf as bundleCacheDir,kf as bundleCacheEntryLimit,Th as bundleClientEntriesSplit,on as bundleClientScript,nn as clearBundleFailures,ye as clientBundleDependencies,tn as getBundleFailures,rn as hasUserImports,sn as moduleSubstitutionKey,Ef as normalizeRegistrySpecifiers,$f as queueClientBundleBuild,nc as recordBundleFailure,Cf as registryIdForPath,rc as resolveBundlerFallback,Tf as rewriteRegistryImports,Eh as setBundlerFallbackMode,_f as shouldLogBundlerDiagnostics,sc as tempBuildName,os as withModuleSubstitutes};
|
package/dist/chunk-qv21bsa1.js
DELETED
package/dist/chunk-rrba4t7k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gg}from"./chunk-r32q8mjw.js";import"./chunk-6s3hgq9z.js";import"./chunk-wzjdq7d6.js";import"./chunk-yv9589qr.js";import"./chunk-s33andzg.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-65tptp4x.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Gg as startInteractive};
|
package/dist/chunk-s3j5vxy9.js
DELETED
package/dist/chunk-ssrxqj55.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yg}from"./chunk-6c6m6p9t.js";import"./chunk-nm26vnzd.js";import"./chunk-38ncpvww.js";import"./chunk-zj4s3rnw.js";import"./chunk-vypnjn9g.js";import"./chunk-4sv740a5.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Yg as startProductionServer};
|
package/dist/chunk-t612xpa4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ee,te,ne,Dn,he,$e,Xr,ql,mt,Gt,Ln,jn,Bn,re,Fn,zn,Gr}from"./chunk-nmtya57z.js";import"./chunk-s53wjw7y.js";export{te as DEFAULT_FORMATS,ne as DEFAULT_QUALITY,ee as DEFAULT_WIDTHS,Gr as ImageProcessingError,zn as formatSize,Gt as generateSizes,mt as generateSrcSet,Ln as getFallbackVariant,Xr as getImageMetadata,re as getMimeType,Fn as getTotalSize,jn as groupVariantsByFormat,he as isImageBackendAvailable,Bn as isImageFile,Dn as isSharpAvailable,$e as processImage,ql as resizeAndConvert};
|
package/dist/chunk-tesbhpbp.js
DELETED
package/dist/chunk-tkgkdf93.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ps,Df,zo,Lf}from"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{Pt}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Lf as declareBareLoopHead,Pt as parseLoopBinding,Df as processLoops,zo as processLoopsAsync,ps as reportDeferredLoopWarnings};
|
package/dist/chunk-tvw571ab.js
DELETED
package/dist/chunk-txzap6yn.js
DELETED
package/dist/chunk-vhrq4xjf.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jg}from"./chunk-64eeb5p5.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Jg as buildApp};
|
package/dist/chunk-vqpypnys.js
DELETED
package/dist/chunk-vv3w8z4v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mf,ds}from"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-3bjnrmha.js";import"./chunk-ya6bp08c.js";import{_r}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import{ot}from"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{ot as freeIdentifiers,ds as processComponents,Mf as processESImports,_r as rendersAsElement};
|
package/dist/chunk-vypnjn9g.js
DELETED
package/dist/chunk-w39cfxa6.js
DELETED
package/dist/chunk-wj937ceq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wa,cu,Hn,Mm,lu,uu,du,Dm}from"./chunk-20mmryy5.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Hn as Validator,cu as defineForm,lu as processErrorDirective,uu as processErrorsDirective,Dm as processFormValidationDirectives,du as processHasErrorsDirective,wa as useForm,Mm as v};
|
package/dist/chunk-xbavxkm5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rr,i}from"./chunk-6s3hgq9z.js";import"./chunk-wzjdq7d6.js";import"./chunk-yv9589qr.js";import"./chunk-s33andzg.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import{ve}from"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-65tptp4x.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{Ne,Hs,Vs}from"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{rr as buildModulesTag,ve as injectRouterScript,i as processDirectives,Hs as processJsonDirective,Vs as processOnceDirective,Ne as validateClientScript};
|
package/dist/chunk-xrspzeqx.js
DELETED
package/dist/chunk-y41hhypj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lm,va,pu,jm,Bm,Fm,zm,Hm,fu,gu,Vm,Um,Wm,qm}from"./chunk-nmvhktsg.js";import"./chunk-6s3hgq9z.js";import"./chunk-wzjdq7d6.js";import"./chunk-yv9589qr.js";import"./chunk-s33andzg.js";import"./chunk-0c02182b.js";import"./chunk-vypnjn9g.js";import"./chunk-j59js1nh.js";import"./chunk-3bjnrmha.js";import"./chunk-wfsa28e7.js";import"./chunk-4sv740a5.js";import"./chunk-ya6bp08c.js";import"./chunk-65tptp4x.js";import"./chunk-3yggtch5.js";import"./chunk-t2vmk8tf.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-trwe0mfa.js";import"./chunk-cwfavkk0.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{pu as SUSPENSE_RESOLVER_RUNTIME,va as buildSuspenseResolveScript,Hm as createStreamRenderer,Fm as extractStreamBoundaries,qm as generateHydrationRuntime,gu as islandDirective,Um as processSectionDirectives,Bm as processStreamDirectives,Vm as registerStreamingDirectives,jm as renderStreamingPage,Lm as streamTemplate,zm as streamTemplateSimple,Wm as streamToResponse,fu as streamingSuspenseDirective};
|