@stacksjs/stx 0.2.819 → 0.2.821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-nsxjt6h3.js → chunk-06hc6rs6.js} +1 -1
- package/dist/{chunk-skht06a2.js → chunk-076fj387.js} +1 -1
- package/dist/{chunk-p7hy0seh.js → chunk-079g8e4w.js} +1 -1
- package/dist/chunk-09285y4b.js +2 -0
- package/dist/{chunk-v041eh5f.js → chunk-0dvgrqt8.js} +3 -3
- package/dist/chunk-0dzmw98y.js +2 -0
- package/dist/{chunk-g7mjv276.js → chunk-1f7d1c0y.js} +2 -2
- package/dist/chunk-22ekceg9.js +2 -0
- package/dist/{chunk-ax16vnn5.js → chunk-242qc25m.js} +6 -6
- package/dist/{chunk-4gg9594a.js → chunk-2b8pyef0.js} +5 -5
- package/dist/{chunk-sjd6rt97.js → chunk-2c6qbvne.js} +4 -4
- package/dist/{chunk-fmawgk87.js → chunk-2nj9aewf.js} +1 -1
- package/dist/{chunk-m7hfcxt3.js → chunk-2vqpz4qv.js} +2 -2
- package/dist/{chunk-dq9djbgq.js → chunk-30rpspzt.js} +4 -4
- package/dist/{chunk-1hg0zb3p.js → chunk-3axb6t08.js} +2 -2
- package/dist/chunk-3bf48zrh.js +2 -0
- package/dist/chunk-3dnkp861.js +2 -0
- package/dist/chunk-3rkh5etz.js +2 -0
- package/dist/chunk-3xc2bg6x.js +2 -0
- package/dist/{chunk-mr2ke5km.js → chunk-3yh6y00f.js} +6 -6
- package/dist/chunk-4ff1hdsh.js +2 -0
- package/dist/{chunk-1a8qtvs1.js → chunk-4mj9dem1.js} +2 -2
- package/dist/{chunk-p3dc6rg2.js → chunk-4wjsfq4s.js} +6 -6
- package/dist/{chunk-s6mte5vy.js → chunk-5v1gp0g1.js} +8 -5
- package/dist/{chunk-vmxzktdr.js → chunk-67kbsav0.js} +1 -1
- package/dist/chunk-6h1qa3hw.js +2 -0
- package/dist/{chunk-xc7nynb9.js → chunk-6qvn1h09.js} +3 -3
- package/dist/{chunk-e758jz81.js → chunk-73h35m0a.js} +6 -6
- package/dist/{chunk-k3t72x38.js → chunk-76eh43e9.js} +2 -2
- package/dist/chunk-7pz76f28.js +2 -0
- package/dist/{chunk-6s9bk98p.js → chunk-7yb82rm6.js} +2 -2
- package/dist/chunk-817rcghe.js +2 -0
- package/dist/chunk-856zaqcm.js +2 -0
- package/dist/{chunk-e4d0jgcw.js → chunk-8724whyk.js} +6 -6
- package/dist/{chunk-72jt897s.js → chunk-8ttmzcxb.js} +12 -12
- package/dist/{chunk-035m9ada.js → chunk-8w9spdbn.js} +4 -4
- package/dist/chunk-966f94qx.js +2 -0
- package/dist/{chunk-e3t2bqyf.js → chunk-9gmceny5.js} +5 -5
- package/dist/chunk-9gpdkqzn.js +2 -0
- package/dist/{chunk-brbqz5he.js → chunk-9wab73nn.js} +13 -13
- package/dist/{chunk-rccv14mn.js → chunk-a6tajb47.js} +5 -5
- package/dist/chunk-a8fy7jv8.js +2 -0
- package/dist/chunk-adsyh38d.js +2 -0
- package/dist/{chunk-4fbg7gq8.js → chunk-akj26p4b.js} +2 -2
- package/dist/chunk-b22yj5j5.js +2 -0
- package/dist/{chunk-b9d70mgr.js → chunk-b4x5ndt9.js} +3 -3
- package/dist/{chunk-zhvmcj78.js → chunk-bfbh0hfn.js} +5 -5
- package/dist/{chunk-0rjcbqk3.js → chunk-brhas9mp.js} +2 -2
- package/dist/{chunk-1tzqqr0p.js → chunk-bt0amey5.js} +2 -2
- package/dist/{chunk-1rvgv1fr.js → chunk-btxnrqxf.js} +5 -5
- package/dist/{chunk-93f6kwht.js → chunk-c0gj3pty.js} +2 -2
- package/dist/chunk-c1e45rtv.js +2 -0
- package/dist/{chunk-cbt1dchd.js → chunk-ctygc783.js} +4 -4
- package/dist/{chunk-4jaet63w.js → chunk-cveanyb3.js} +2 -2
- package/dist/{chunk-tj6zvs8f.js → chunk-cxz4cdcn.js} +2 -2
- package/dist/{chunk-m7kct2sg.js → chunk-d457yx0w.js} +4 -4
- package/dist/{chunk-mbhvf0sv.js → chunk-d6d2s7n6.js} +2 -2
- package/dist/chunk-dpndrajq.js +2 -0
- package/dist/{chunk-gcje06er.js → chunk-e4jwhmpb.js} +30 -30
- package/dist/{chunk-x46hqa74.js → chunk-enhys344.js} +4 -4
- package/dist/{chunk-mjg9cx5a.js → chunk-f0txsdpa.js} +3 -3
- package/dist/chunk-fb41ty71.js +2 -0
- package/dist/{chunk-bnewgd23.js → chunk-fqxcs1h1.js} +2 -2
- package/dist/chunk-g8nqmnb7.js +2 -0
- package/dist/{chunk-hwcfgs3e.js → chunk-gjf8cjdt.js} +3 -3
- package/dist/{chunk-ek5ynvqh.js → chunk-gxg4vvws.js} +1 -1
- package/dist/chunk-h67pm636.js +2 -0
- package/dist/chunk-hb8jxg45.js +2 -0
- package/dist/chunk-hfgzqapw.js +2 -0
- package/dist/chunk-hzrdtg2s.js +2 -0
- package/dist/chunk-j0hrk24j.js +2 -0
- package/dist/{chunk-k3zcadcc.js → chunk-j737tnvt.js} +4 -4
- package/dist/chunk-jjbdtj4w.js +2 -0
- package/dist/chunk-jyz2g48d.js +2 -0
- package/dist/{chunk-nqdh7z2d.js → chunk-jzgyrxye.js} +1 -1
- package/dist/chunk-k0xdvegc.js +2 -0
- package/dist/{chunk-9gwhs0gk.js → chunk-k81trehg.js} +2 -2
- package/dist/{chunk-7c5b0th8.js → chunk-k90sf0w8.js} +10 -10
- package/dist/chunk-k9g43d24.js +3 -0
- package/dist/chunk-khcb6pm1.js +2 -0
- package/dist/chunk-kqgpd3ee.js +2 -0
- package/dist/chunk-kqq896j6.js +2 -0
- package/dist/chunk-ktna9keb.js +2 -0
- package/dist/chunk-m934bzg2.js +2 -0
- package/dist/chunk-matr6j2d.js +2 -0
- package/dist/{chunk-znx5m1jv.js → chunk-me6kgvsm.js} +1 -1
- package/dist/chunk-mmeck545.js +2 -0
- package/dist/{chunk-s9b6abkb.js → chunk-mwxbdpb1.js} +2 -2
- package/dist/chunk-mz6qjee1.js +2 -0
- package/dist/{chunk-baj6w8ja.js → chunk-n7arptzc.js} +2 -2
- package/dist/{chunk-he8rmsdq.js → chunk-nfxgpjhk.js} +12 -12
- package/dist/{chunk-xka9fdye.js → chunk-npdmeesx.js} +2 -2
- package/dist/chunk-nxfkkmxy.js +2 -0
- package/dist/{chunk-1ae3megp.js → chunk-p1fpferp.js} +6 -6
- package/dist/{chunk-vhzngsmd.js → chunk-p1jzpgej.js} +79 -79
- package/dist/chunk-pmk33n5r.js +2 -0
- package/dist/{chunk-1p3vmy65.js → chunk-pp7ehbxj.js} +4 -4
- package/dist/chunk-prt4ntb0.js +2 -0
- package/dist/{chunk-sxad7x2s.js → chunk-pvj0bpqg.js} +4 -4
- package/dist/chunk-pvrew37s.js +2 -0
- package/dist/chunk-q5bct2ks.js +2 -0
- package/dist/{chunk-rpen41w3.js → chunk-q7zwv88b.js} +2 -2
- package/dist/{chunk-jgj16jmg.js → chunk-qdea9cew.js} +2 -2
- package/dist/{chunk-gtd6qs1r.js → chunk-qj4r08jb.js} +2 -2
- package/dist/{chunk-sh1hbhhb.js → chunk-qz3fdmrc.js} +3 -3
- package/dist/{chunk-m9dyqae7.js → chunk-r29repjv.js} +5 -5
- package/dist/chunk-r2hjn9ds.js +2 -0
- package/dist/{chunk-ngh1aeff.js → chunk-rvdsbthd.js} +4 -4
- package/dist/{chunk-j476jghg.js → chunk-rx59bmnb.js} +1 -1
- package/dist/chunk-s2zsa16d.js +2 -0
- package/dist/chunk-sddp2398.js +2 -0
- package/dist/chunk-sv4emtcj.js +2 -0
- package/dist/{chunk-gahpv8ce.js → chunk-t4ndn1kf.js} +2 -2
- package/dist/chunk-tcyvwy8p.js +2 -0
- package/dist/{chunk-jdddw8en.js → chunk-te2c0qpt.js} +2 -2
- package/dist/chunk-tg18j1yf.js +2 -0
- package/dist/chunk-tj7dh2dz.js +2 -0
- package/dist/{chunk-j8r0am39.js → chunk-tksjakyv.js} +1 -1
- package/dist/chunk-vafxrky2.js +2 -0
- package/dist/chunk-vxxcn14a.js +2 -0
- package/dist/{chunk-6n11z33h.js → chunk-vzbyn4nh.js} +5 -5
- package/dist/chunk-w6nkp7b7.js +2 -0
- package/dist/{chunk-f6nk205v.js → chunk-wceg59n0.js} +1 -1
- package/dist/{chunk-3dg2zg8d.js → chunk-wers7czp.js} +3 -3
- package/dist/{chunk-t2sg2tp2.js → chunk-wf0n9gpj.js} +4 -4
- package/dist/chunk-wpam70s6.js +2 -0
- package/dist/{chunk-c5vzr1va.js → chunk-wpendr22.js} +2 -2
- package/dist/{chunk-427mhgje.js → chunk-wy0gghvh.js} +1 -1
- package/dist/chunk-wysfprwt.js +42 -0
- package/dist/chunk-x30gh7vt.js +2 -0
- package/dist/{chunk-6a0ekt1n.js → chunk-xe1qxxhs.js} +3 -3
- package/dist/{chunk-em2yy1te.js → chunk-xpy9yjyx.js} +6 -6
- package/dist/{chunk-9egd7tx3.js → chunk-y8p85kcj.js} +2 -2
- package/dist/{chunk-7xs45trj.js → chunk-y9bj3566.js} +2 -2
- package/dist/{chunk-0s93s6ep.js → chunk-ygwgegyb.js} +3 -3
- package/dist/chunk-ytrg9ghh.js +2 -0
- package/dist/chunk-z09sgx0d.js +2 -0
- package/dist/{chunk-8dmey36n.js → chunk-z23arg8m.js} +2 -2
- package/dist/{chunk-jw7cakxt.js → chunk-z3s9rvyh.js} +9 -9
- package/dist/{chunk-12sd0ep5.js → chunk-zk88r1yh.js} +15 -15
- package/dist/chunk-zn378280.js +2 -0
- package/dist/chunk-zvwenqn3.js +2 -0
- package/dist/cli.js +19 -19
- package/dist/client/signals-dom-ready-runtime.js +4 -1
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/html-masking.d.ts +10 -0
- package/dist/html-masking.js +50 -0
- package/dist/pwa.js +3 -3
- package/dist/server-bindings.js +28 -30
- package/dist/ssg.js +4 -4
- package/package.json +5 -5
- package/dist/chunk-03mtfndv.js +0 -2
- package/dist/chunk-0633xsmx.js +0 -2
- package/dist/chunk-0wrmcexg.js +0 -2
- package/dist/chunk-18qxd18d.js +0 -2
- package/dist/chunk-1cd0w20k.js +0 -2
- package/dist/chunk-2k3ga51z.js +0 -2
- package/dist/chunk-54kn2jtw.js +0 -2
- package/dist/chunk-54mc7876.js +0 -2
- package/dist/chunk-6e76tz09.js +0 -2
- package/dist/chunk-72w08sh9.js +0 -2
- package/dist/chunk-7p7hdn42.js +0 -2
- package/dist/chunk-88mhhbqj.js +0 -2
- package/dist/chunk-9736003n.js +0 -2
- package/dist/chunk-9b52cnzm.js +0 -2
- package/dist/chunk-9bhvh2dc.js +0 -2
- package/dist/chunk-9y1dm510.js +0 -2
- package/dist/chunk-a4yzet7p.js +0 -2
- package/dist/chunk-abzrvxct.js +0 -2
- package/dist/chunk-avbvedyx.js +0 -2
- package/dist/chunk-cvq4bz8y.js +0 -2
- package/dist/chunk-d7p5jr31.js +0 -2
- package/dist/chunk-dh1f8ga0.js +0 -2
- package/dist/chunk-dzp2a775.js +0 -2
- package/dist/chunk-f86ehf7n.js +0 -2
- package/dist/chunk-fn2cqvb1.js +0 -2
- package/dist/chunk-fzj3e3zk.js +0 -2
- package/dist/chunk-gsc617cx.js +0 -2
- package/dist/chunk-h8kbcz9t.js +0 -2
- package/dist/chunk-hx575xy8.js +0 -2
- package/dist/chunk-j58z3y2g.js +0 -2
- package/dist/chunk-j5t40n2g.js +0 -2
- package/dist/chunk-jcz6rd9n.js +0 -2
- package/dist/chunk-k5nd8zqh.js +0 -2
- package/dist/chunk-kz6qw9fm.js +0 -42
- package/dist/chunk-m5cdkb11.js +0 -2
- package/dist/chunk-mcgqgheq.js +0 -2
- package/dist/chunk-mz1mgfq3.js +0 -3
- package/dist/chunk-n1tbc7da.js +0 -2
- package/dist/chunk-n7dm6prj.js +0 -2
- package/dist/chunk-nknpr8cy.js +0 -2
- package/dist/chunk-nqn4dvqd.js +0 -2
- package/dist/chunk-nt5dh56c.js +0 -2
- package/dist/chunk-p04dabqm.js +0 -2
- package/dist/chunk-pe89ztq6.js +0 -2
- package/dist/chunk-pe9npaby.js +0 -2
- package/dist/chunk-pmq2pdr9.js +0 -2
- package/dist/chunk-r2v042ym.js +0 -2
- package/dist/chunk-r3zmbpv2.js +0 -2
- package/dist/chunk-r57s8jqs.js +0 -2
- package/dist/chunk-rjzp7za8.js +0 -2
- package/dist/chunk-sata7rh2.js +0 -2
- package/dist/chunk-tsb5h4e2.js +0 -2
- package/dist/chunk-v7h8vd9n.js +0 -2
- package/dist/chunk-v8h2kns0.js +0 -2
- package/dist/chunk-vvcfrsjg.js +0 -2
- package/dist/chunk-vyw40ym7.js +0 -2
- package/dist/chunk-whq40bdm.js +0 -2
- package/dist/chunk-xsck49x5.js +0 -2
- package/dist/chunk-z0c35c5c.js +0 -2
- package/dist/chunk-zwp7n01x.js +0 -2
package/dist/chunk-kz6qw9fm.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fl,gl}from"./chunk-1tzqqr0p.js";import{f,A,st,d}from"./chunk-72jt897s.js";import{V,yr,Os,Ns,oi,ii,Ms,wr,Ne,pe,G,xr,oe,J,O,rt,Sr,li,Cr,Fe,s,p,U,wn}from"./chunk-vhzngsmd.js";import{n}from"./chunk-mz1mgfq3.js";import{se}from"./chunk-f6nk205v.js";import{r}from"./chunk-b9d70mgr.js";import{g}from"./chunk-0dve54ne.js";import{createHash as Rt}from"crypto";import Q from"fs";import K from"path";import{decode as on,generateThumbHash as an}from"ts-images";import{createImageDeliveryCatalog as bt}from"ts-images/delivery";import De from"fs";function Ce(e,t,i){let o=Buffer.alloc(i),a=De.readSync(e,o,0,i,t);return o.subarray(0,a)}function je(e){if(e.length<25)return!1;let t=(o,a)=>String.fromCharCode(...e.subarray(o,a));if(t(0,4)!=="RIFF"||t(8,12)!=="WEBP")return!1;let i=t(12,16);if(i==="VP8X")return(e[20]&16)!==0;if(i==="VP8L")return((e[21]|e[22]<<8|e[23]<<16|e[24]<<24)>>>28&1)===1;return!1}function Me(e){let t;try{t=De.openSync(e,"r");let i=Ce(t,0,33);if(i.length>=3&&i[0]===255&&i[1]===216&&i[2]===255)return"none";if(i.length>=26&&i[0]===137&&i.toString("latin1",1,4)==="PNG"){let o=i[25];if(o===4||o===6)return"possible";let a=8;for(let c=0;c<64;c++){let l=Ce(t,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(i.length>=25&&i.toString("latin1",0,4)==="RIFF"&&i.toString("latin1",8,12)==="WEBP"){if(je(i))return"possible";let o=i.toString("latin1",12,16);return o==="VP8 "||o==="VP8X"?"none":"unknown"}return"unknown"}catch{return"unknown"}finally{if(t!==void 0)De.closeSync(t)}}import Yt from"fs";import Re from"os";import{join as gt}from"path";import{fileURLToPath as mt}from"url";import{Worker as pt}from"worker_threads";var ke=Symbol("stx.image-worker.unavailable");function Qt(e=typeof Re.availableParallelism==="function"?Re.availableParallelism():Re.cpus().length){return Math.max(1,Math.min(2,e-1))}var Ae=0,yt=[];async function en(){if(Ae<Qt()){Ae++;return}await new Promise((e)=>yt.push(e)),Ae++}function tn(){Ae--,yt.shift()?.()}var nn="@stacksjs/stx/builtins/image-warmup-worker";function rn(e=process.cwd()){let t=import.meta.url.endsWith(".ts")?"ts":"js";try{let i=new URL(`./image-warmup-worker.${t}`,import.meta.url);if(i.protocol==="file:"&&Yt.existsSync(mt(i)))return mt(i)}catch{}try{let i=typeof Bun<"u"?Bun.resolveSync(nn,e):void 0;return i&&sn(i)?i:void 0}catch{return}}function sn(e,t=process.env){let i=e.replace(/\\/g,"/");if(i.split("/").some((a)=>/@\d[^/]*@@@\d+$/.test(a)))return!1;return![t.BUN_INSTALL_CACHE_DIR,gt(t.BUN_INSTALL||gt(Re.homedir(),".bun"),"install","cache")].filter((a)=>!!a).map((a)=>`${a.replace(/\\/g,"/").replace(/\/$/,"")}/`).some((a)=>i.startsWith(a))}var ht=!1;function he(e){if(!ht)ht=!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 ke}function Le(e){return e instanceof Error?e.message:String(e)}async function ze(e,t){if(typeof pt!=="function")return he("node:worker_threads has no Worker in this runtime");let i=rn();if(!i)return he("no image-warmup-worker entry beside this module or in the installed @stacksjs/stx");await en();try{return await new Promise((o,a)=>{let c;try{c=new pt(i)}catch(y){o(he(`could not start ${i}: ${Le(y)}`));return}let l=!1,m=!1,u=(y)=>{if(m)return;m=!0,y(),c.terminate()};c.on("message",(y)=>{if(y.type==="ready"){l=!0,c.postMessage({task:e,args:t});return}if(y.type==="result"){u(()=>o(y.value));return}let v=Error(y.error?.message??"image worker failed");if(y.error?.name)v.name=y.error.name;if(y.error?.stack)v.stack=y.error.stack;u(()=>a(v))}),c.on("error",(y)=>{u(()=>l?a(y instanceof Error?y:Error(Le(y)||"image worker crashed")):o(he(`the worker failed before it was ready: ${Le(y)}`)))}),c.on("exit",(y)=>{u(()=>l?a(Error("image worker exited before it finished")):o(he(`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`,fn=`stx:${ye}:opaque-1`,dn=["@stacksjs/ts-webp","@stacksjs/ts-avif","ts-images"],Pe;function gn(e,t){let i=K.dirname(Bun.resolveSync(e,t));while(i!==K.dirname(i)){let o=K.join(i,"package.json");if(Q.existsSync(o)){let a=JSON.parse(Q.readFileSync(o,"utf8"));if(a.name===e)return a.version}i=K.dirname(i)}return}function xt(){if(Pe!==void 0)return Pe;let e;try{e=K.dirname(Bun.resolveSync("ts-images",import.meta.dir))}catch{}return Pe=dn.map((t)=>{let i;try{i=e?gn(t,e):void 0}catch{}return`${t.replace("@stacksjs/","")}@${i??"unknown"}`}).join("+"),Pe}var vt=Symbol.for("stx.image-delivery");function be(){let e=globalThis;return e[vt]??={catalog:new Map,transparent:new Set},e[vt]}var wt=new Set;function mn(e){return`/${e.split(K.sep).map(encodeURIComponent).join("/")}`}function pn(e){let t=K.extname(e),i=e.slice(0,-t.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),o=Rt("sha256").update(e).digest("hex").slice(0,8);return`${i||"image"}-${o}`}function $t(e,t=`stx:${ye}`){let i=(o)=>`${ye}/${o.split("/").map(encodeURIComponent).join("/")}`;return{cacheNamespace:t,async stat(o){let a=K.join(e,o);try{let c=await Q.promises.stat(a);return c.size>0?{bytes:c.size,path:a,url:i(o)}:null}catch{return null}},async write(o,a){let c=K.join(e,o);await Q.promises.mkdir(K.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:i(o)}},url:i}}async function At(e,t=e){let i=await Q.promises.readdir(t,{withFileTypes:!0});i.sort((a,c)=>a.name.localeCompare(c.name));let o=[];for(let a of i){let c=K.join(t,a.name);if(a.isDirectory()){o.push(...await At(e,c));continue}if(!a.isFile()||!cn.has(K.extname(a.name).toLowerCase()))continue;o.push({absolutePath:c,relativePath:K.relative(e,c)})}return o}function St(e,t){return e.map((i)=>({key:mn(i.relativePath),input:i.absolutePath,name:pn(i.relativePath),...hn(i.absolutePath)?{options:{storage:t}}:{}}))}function hn(e){return Me(e)==="possible"}function yn(e){for(let t=3;t<e.length;t+=4)if(e[t]!==255)return!0;return!1}async function bn(e){let t=Object.entries(e).filter(([,a])=>a.fallback.format==="png"),i=new Set,o=8;for(let a=0;a<t.length;a+=8)await Promise.all(t.slice(a,a+8).map(async([c,l])=>{let m=l.variants.filter((u)=>u.format==="png").sort((u,y)=>u.width-y.width)[0];try{let u=await on(new Uint8Array(await Q.promises.readFile(m?.path??l.fallback.path)));if(yn(u.data))i.add(c)}catch{i.add(c)}}));return i}function xn(e,t){let i=[];for(let o of t){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"),!je(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,i.push(o),!wt.has(o))wt.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 i}async function vn(e){let t=[],i=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}}));t.push(...c.filter((l)=>l!==null))}return t}function Ue(e){return K.join(e,"undecodable.json")}function $n(e){try{let t=Q.readFileSync(Ue(e),"utf-8"),i=JSON.parse(t);return i&&typeof i==="object"?i:{}}catch{return{}}}function Sn(e,t){try{Q.mkdirSync(K.dirname(Ue(e)),{recursive:!0}),Q.writeFileSync(Ue(e),JSON.stringify(t))}catch{}}function Ct(e){try{let t=Q.statSync(e);return{mtimeMs:t.mtimeMs,size:t.size}}catch{return}}function kt(e){if(!e||e.startsWith("data:")||e.startsWith("blob:")||/^https?:\/\//i.test(e)||e.startsWith("//"))return;let t=e.split(/[?#]/,1)[0];if(!t)return;try{return`/${t.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function Lo(e){let t=kt(e);return t?be().catalog.get(t):void 0}function jo(e){let t=kt(e);return t?be().transparent.has(t):!1}function Bo(e){let t=(o)=>e.variants.filter((a)=>a.format===o).reduce((a,c)=>a+c.bytes,0),i=t(e.fallback.format);return["avif","webp"].map((o)=>({format:o,srcset:e.sources[o]||"",bytes:t(o)})).filter((o)=>o.srcset&&o.bytes>0&&o.bytes<i).sort((o,a)=>o.bytes-a.bytes).map(({format:o,srcset:a})=>({format:o,srcset:a}))}function Ph(e){let t=Lo(e);if(!t)return;return{src:t.fallback.url,srcset:t.sources[t.fallback.format]||"",sources:Bo(t).map(({format:i,srcset:o})=>({type:`image/${i}`,srcset:o})),width:t.source.width,height:t.source.height,placeholder:jo(e)?void 0:t.placeholder?.dataUrl}}function ls(){let e=be();e.catalog=new Map,e.transparent=new Set}function Cn(e){let t=be();t.catalog=new Map(e.entries),t.transparent=new Set(e.transparent)}async function Ih(e,t,i={}){if(!e||!Q.existsSync(e))return ls(),{count:0,fingerprint:""};if(i.offThread){let h=await ze("delivery",{publicDir:e,outputDir:t});if(h!==ke)return Cn(h.state),h.result}let o=await At(e);if(o.length===0)return ls(),{count:0,fingerprint:""};let a=$n(t),c=o.filter((h)=>{let w=a[h.relativePath];if(!w)return!0;let S=Ct(h.absolutePath);return!S||S.mtimeMs!==w.mtimeMs||S.size!==w.size});if(c.length===0)return ls(),{count:0,fingerprint:""};let l=$t(K.join(t,"_stx","images"),`${un}:${xt()}`),m={outDir:K.join(t,"_stx","images"),storage:$t(K.join(t,"_stx","images"),`${fn}:${xt()}`),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,y;try{y=await bt({...m,entries:St(c,l)})}catch(h){if(u=await vn(c),u.length===c.length)throw h;let w=new Set(u.map((R)=>R.relativePath)),S=!1;for(let R of c){if(w.has(R.relativePath))continue;let P=Ct(R.absolutePath);if(!P)continue;a[R.relativePath]=P,S=!0}if(S)Sn(t,a);if(u.length===0)return ls(),{count:0,fingerprint:""};y=await bt({...m,entries:St(u,l)})}let v=await bn(y.entries),b=xn(y.entries,v),C=be();C.catalog=new Map(Object.entries(y.entries)),C.transparent=v;let x=v.size===0&&b.length===0?y.fingerprint:Rt("sha256").update(y.fingerprint).update(JSON.stringify({transparent:[...v].sort(),droppedWebp:b.sort()})).digest("hex");return{count:u.length,fingerprint:x}}class Pt{builtins=new Map;registerBuiltin(e){this.builtins.set(e.name.toLowerCase(),e);for(let t of e.aliases)this.builtins.set(t.toLowerCase(),e)}isBuiltin(e){return this.builtins.has(e.toLowerCase())}getBuiltin(e){return this.builtins.get(e.toLowerCase())??null}async resolveFile(e,t,i,o){let a=oi(e,o);if(a!==void 0)return a;for(let c of ii(e,t,i,o))if(await s(c))return c;return null}}var ue=new Pt;var re="\x00stx-boolean-attribute";function We(e){return e.indexOf("\x00")===-1?e:e.replace(/\0/g,"")}var Rn=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 He(e){let t=e.toLowerCase();return t.startsWith("aria-")||t.startsWith("data-")||Rn.has(t)}function ie(e,t){let i=[];for(let[o,a]of Object.entries(e.static)){if(t.has(o))continue;let c=e.staticNames?.[o]??o;if(typeof a==="boolean"){if(a)i.push(p(c));continue}if(a===re){i.push(p(c));continue}i.push(`${p(c)}="${wn(c,We(String(a)))}"`)}return i}function ae(e,t){let i=[];for(let[o,a]of Object.entries(e.serverDynamic??{})){if(t.has(o))continue;if(a===null||a===void 0||a===!1)continue;let c=e.serverDynamicNames?.[o]??o;if(a===!0){i.push(p(c));continue}if(typeof a==="object")continue;i.push(`${p(c)}="${wn(c,We(String(a)))}"`)}return i}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 qe={name:"StxLink",aliases:["stx-link"],render(e,t,i){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(wr(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 y=typeof e.static.activeMatch==="string"?e.static.activeMatch.trim():"";if(y)u.push(`data-stx-active-match="${n(y)}"`);let v=new Set(["to","class","className","activeClass","exactActiveClass","activeMatch","prefetch"]);return u.push(...ie(e,v)),u.push(...ae(e,v)),`<a ${u.join(" ")}>${t}</a>`}};var kn=new Map;function Xe(e){if(!e)return;let t=e.split("?")[0].split("#")[0];return kn.get(t)}var Pn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Ze=[320,640,768,1024,1280,1536,1920];function Z(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let i=e.static[t];if(typeof i==="string")return i;return}function Ie(e,t,i=!1){let o=e.serverDynamic[t];if(o!==void 0)return o!==!1&&o!=="false";let a=e.static[t];if(a!==void 0)return a!=="false"&&a!==!1;return i}function Ve(e){if(e.includes("(")||e.includes(","))return e;let t=e.trim().split(/\s+/),i=[];for(let o of t)if(o.includes(":")){let[a,c]=o.split(":"),l=Pn[a];if(l)i.push(`(max-width: ${l}px) ${c}`);else{let m=Number.parseInt(a);if(!Number.isNaN(m))i.push(`(max-width: ${m}px) ${c}`)}}else i.push(o);return i.join(", ")}function Ge(e,t,i,o){return t.map((a)=>`${xe(e,a,void 0,i,o)} ${a}w`).join(", ")}function In(e,t,i,o,a){return t.map((c)=>{let l=i?i*c:void 0;return`${xe(e,l,void 0,o,a)} ${c}x`}).join(", ")}function xe(e,t,i,o,a){if(!o||o==="local"||o==="static")return e;if(o==="cloudinary"){let c=[];if(t)c.push(`w_${t}`);if(i)c.push(`h_${i}`);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(t)c.set("w",String(t));if(i)c.set("h",String(i));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(t)c.set("width",String(t));if(i)c.set("height",String(i));if(a)c.set("format",a);let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}return e}function _n(e){return`var s=this.style;${e.map((t)=>`s.${t}=''`).join(";")}`}function En(e,t,i="#e5e7eb"){let o=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}"><rect width="100%" height="100%" fill="${i}"/></svg>`;return`data:image/svg+xml;base64,${btoa(o)}`}var Ke={name:"StxImage",aliases:["Image","stx-image","stx-img"],render(e,t,i){let o=Z(e,"src")||"",a=Lo(o),c=Z(e,"alt")||"",l=Z(e,"width")||(a?String(a.source.width):void 0),m=Z(e,"height")||(a?String(a.source.height):void 0),u=Z(e,"sizes"),y=Z(e,"srcset"),v=Z(e,"densities"),b=Z(e,"format"),C=jo(o)||Xe(o)?.transparent===!0,x=Z(e,"placeholder")||(a&&!C?"thumbhash":void 0),h=Z(e,"placeholderColor")||"#e5e7eb",w=Z(e,"provider"),S=Z(e,"class")||Z(e,"className")||"",R=Z(e,"style")||"",P=Z(e,"objectFit")||Z(e,"fit"),k=Z(e,"objectPosition")||Z(e,"position"),N=Z(e,"quality"),H=Ie(e,"lazy",!0),z=Ie(e,"preload",!1),F=Ie(e,"priority",!1),q=Z(e,"loading"),B=Z(e,"decoding")||"async",E=!!a||Ie(e,"picture",!1)||!!b,T=l?Number.parseInt(l):void 0,j=m?Number.parseInt(m):void 0,W=y||"",X="";if(a)W=a.sources[a.fallback.format]||"",X=u?Ve(u):"100vw";else if(!W&&u&&w&&w!=="local"&&w!=="static")W=Ge(o,Ze,w,b),X=Ve(u);else if(!W&&v){let I=v.split(/\s+/).map((_)=>Number.parseFloat(_.replace("x","")));W=In(o,I,T,w,b)}else if(u)X=Ve(u);let L=[];if(R)L.push(R);if(P)L.push(`object-fit:${P}`);if(k)L.push(`object-position:${k}`);if(T&&j)L.push(`aspect-ratio:${T}/${j}`);let D=[],ce=x==="blur"||x==="color"||x==="thumbhash";if(ce&&!C){let I=a?.placeholder?{dataUrl:a.placeholder.dataUrl,color:h}:Xe(o);if(I&&x==="color")L.push(`background-color:${I.color}`),D.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"),D.push("backgroundColor","backgroundImage");else{let _=En(T||16,j||9,h);L.push(`background-image:url(${_})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),D.push("backgroundImage")}}else if(!ce&&x&&x!=="empty"&&x!=="none")L.push(`background-image:url(${n(x)})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),D.push("backgroundImage");let $e=a?.fallback.url||xe(o,T,j,w,b),Y=[];if(Y.push(`src="${n(wr($e,"fetched"))}"`),Y.push(`alt="${n(c)}"`),l)Y.push(`width="${n(l)}"`);if(m)Y.push(`height="${n(m)}"`);let le=q||(F||z?"eager":H?"lazy":"");if(le)Y.push(`loading="${n(le)}"`);if(F)Y.push('fetchpriority="high"');if(Y.push(`decoding="${n(B)}"`),S)Y.push(`class="${n(S)}"`);if(L.length>0)Y.push(`style="${n(L.join(";"))}"`);if(W)Y.push(`srcset="${n(wr(W,"fetched"))}"`);if(X)Y.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(D.length>0){let I=typeof e.static.onload==="string"?e.static.onload:"",_=_n(D)+(I?`;${I}`:"");Y.push(`onload="${n(_)}"`),te.add("onload")}Y.push(...ie(e,te)),Y.push(...ae(e,te));let Te=`<img ${Y.join(" ")} />`,M="";if(z){let _=b==="webp"?"image/webp":b==="avif"?"image/avif":"";M=`<link rel="preload" as="image" href="${n($e)}"${_?` type="${_}"`:""}${W?` imagesrcset="${n(W)}"`:""}${X?` imagesizes="${n(X)}"`:""} />
|
|
3
|
-
`}if(E){let I=[];if(a)for(let _ of Bo(a))I.push(`<source type="image/${_.format}" srcset="${n(_.srcset)}"${X?` sizes="${n(X)}"`:""} />`);if(!a&&(b==="avif"||b==="auto")){let _=xe(o,T,j,w,"avif"),ee=W?Ge(o,Ze,w,"avif"):`${_}`;I.push(`<source type="image/avif" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}if(!a&&(b==="webp"||b==="auto")){let _=xe(o,T,j,w,"webp"),ee=W?Ge(o,Ze,w,"webp"):`${_}`;I.push(`<source type="image/webp" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}return`${M}<picture>
|
|
4
|
-
${I.join(`
|
|
5
|
-
`)}
|
|
6
|
-
${Te}
|
|
7
|
-
</picture>`}return`${M}${Te}`}};var It="/images/safe-image-default.svg";function fe(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let i=e.static[t];if(typeof i==="string")return i;return}var Nn=`<script>window.__stxSafeImageHandler||(window.__stxSafeImageHandler=function(i){if(i.__stx_fb)return;i.__stx_fb=1;var f=i.getAttribute('data-fallback')||'${It}';var c=i.getAttribute('data-fallback-class');i.src=f;if(c)i.className=c;});</script>`,Je={name:"SafeImage",aliases:["safe-image","safe-img"],render(e,t,i){let o=fe(e,"src")||"",a=fe(e,"alt")||"",c=fe(e,"fallback")||It,l=fe(e,"class")||fe(e,"className")||"",m=fe(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 y=new Set(["src","alt","fallback","class","className","fallbackClassName"]);u.push(...ie(e,y)),u.push(...ae(e,y));let v=`<img ${u.join(" ")} />`,b=i.context;if(!b.__safeImageHandlerEmitted)return b.__safeImageHandlerEmitted=!0,`${Nn}${v}`;return v}};function Ye(e){return e.replace(/[;{}()]/g,"").replace(/url/gi,"")}function ve(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let i=e.static[t];if(typeof i==="string")return i;return}function _e(e,t,i){let o=ve(e,t);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return i}var Qe={name:"StxLoadingIndicator",aliases:["stx-loading-indicator"],render(e,t,i){let o=Ye(ve(e,"color")||"#6366f1"),a=Ye(ve(e,"initialColor")||ve(e,"initial-color")||""),c=Ye(ve(e,"height")||"3px"),l=_e(e,"duration",2000),m=_e(e,"throttle",200),u=_e(e,"zIndex",999999)||_e(e,"z-index",999999),y=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:${y};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 Et(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let i=e.static[t];if(typeof i==="string")return i;return}function On(e,t,i){let o=Et(e,t);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return i}var _t={"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%)"},et={name:"StxToast",aliases:["stx-toast"],render(e,t,i){let o=n(Et(e,"position")||"top-right"),a=On(e,"max",5),c=_t[o]||_t["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 Ee(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let i=e.static[t];if(typeof i==="string")return i;return}var Nt={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)"},tt={name:"StxModal",aliases:["stx-modal"],render(e,t,i){let o=Ee(e,"id");if(!o)return console.warn('[stx] <StxModal> requires an "id" prop'),"<!-- StxModal: missing id prop -->";let a=n(o),c=Ee(e,"size")||"md",l=Ee(e,"closeOnBackdrop")!=="false",m=Ee(e,"closeOnEscape")!=="false",u=Nt[c]||Nt.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">${t}</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 de(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let i=e.static[t];if(typeof i==="string")return i;return}var Ot={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},nt={name:"StxDrawer",aliases:["stx-drawer"],render(e,t,i){let o=de(e,"id");if(!o)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let a=n(o),c=de(e,"side")||"right",l=de(e,"size")||"md",m=de(e,"closeOnBackdrop")!=="false",u=de(e,"closeOnEscape")!=="false",y=de(e,"overlay")!=="false",v=Ot[l]||Ot.md,b=c==="left",C=b?"left:0":"right:0",x=b?"translateX(-100%)":"translateX(100%)",h=b?"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;${y?"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:${v};max-width:100vw;transform:${x};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">${t}</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 Bn,readFileSync as Tn}from"fs";var Oe=new Map,Bt=new Set;function Dn(e){if(Bt.has(e))return;Bt.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 jn(e){let t=process.cwd();for(let i of[`${t}/node_modules/@iconify-json/${e}/icons.json`,`${t}/pantry/@iconify-json/${e}/icons.json`,`${t}/node_modules/@iconify/json/json/${e}.json`,`${t}/pantry/@iconify/json/json/${e}.json`])if(Bn(i))return i;for(let i of[`@iconify-json/${e}/icons.json`,`@iconify/json/json/${e}.json`])try{return g.resolve(i)}catch{}return null}function Mn(e){if(Oe.has(e))return Oe.get(e);let t=jn(e);if(!t)return Dn(e),null;try{let i=JSON.parse(Tn(t,"utf8"));return Oe.set(e,i),i}catch{return null}}function Ln(e,t,i,o){let a=[];if(t.rotate)a.push(`rotate(${t.rotate*90} ${i/2} ${o/2})`);if(t.hFlip)a.push(`translate(${i} 0) scale(-1 1)`);if(t.vFlip)a.push(`translate(0 ${o}) scale(1 -1)`);return a.length?`<g transform="${a.join(" ")}">${e}</g>`:e}function zn(e,t){let i=t,o=e.icons[i],a={hFlip:!1,vFlip:!1,rotate:0};for(let m=0;!o&&m<8;m++){let u=e.aliases?.[i];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;i=u.parent,o=e.icons[i]}if(!o)return null;let c=o.width??e.width??24,l=o.height??e.height??24;return{body:Ln(o.body,a,c,l),width:c,height:l}}function ge(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);if(e.static[t]!==void 0)return String(e.static[t]);if(e.clientReactive[t]!==void 0)return e.clientReactive[t];return}var it={name:"Icon",aliases:["icon","stx-icon"],render(e,t,i){let o=ge(e,"name")??ge(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(ge(e,"size")||"24"),m=n(ge(e,"color")||"currentColor"),u=n(ge(e,"class")||""),y=n(ge(e,"style")||""),v=Oe.get(a)??Mn(a);if(!v)return`<!-- Icon: collection "${a}" not loaded -->`;let b=zn(v,c);if(!b)return`<!-- Icon: "${c}" not found in ${a} -->`;let C=`0 0 ${b.width} ${b.height}`,x=b.body;if(m!=="currentColor")x=x.replace(/currentColor/g,m);let h=u?` class="${u}"`:"",w=y?` style="${y}"`:"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${l}" height="${l}" viewBox="${C}" fill="none"${h}${w}>${x}</svg>`}};function Tt(e,...t){for(let i of t){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let o=e.static[i];if(typeof o==="string")return o}return}function Dt(e,t){let i=new RegExp(`<(template|div|span)[^>]*\\bslot=["']${t}["'][^>]*>([\\s\\S]*?)<\\/\\1>`,"i"),o=e.match(i);if(!o)return{region:null,rest:e};return{region:o[2],rest:e.replace(o[0],"")}}var ot={name:"Suspense",aliases:["suspense"],render(e,t,i){let o=Dt(t,"fallback"),a=o.rest,c=Dt(a,"error"),l=c.rest,m=o.region??Tt(e,"fallback")??'<div class="stx-suspense-loading">Loading\u2026</div>',u=c.region??Tt(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,...t){for(let i of t){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let o=e.static[i];if(typeof o==="string")return o}return}var at={name:"TransitionGroup",aliases:["transition-group"],render(e,t,i){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}>${t}</${a}>`}};function jt(e=ue){e.registerBuiltin(qe),e.registerBuiltin(Ke),e.registerBuiltin(Je),e.registerBuiltin(Qe),e.registerBuiltin(et),e.registerBuiltin(tt),e.registerBuiltin(nt),e.registerBuiltin(it),e.registerBuiltin(ot),e.registerBuiltin(at)}var Mt=new Map;function Un(e){let t=Mt.get(e.source);if(!t)t=new RegExp(`(${e.source})(?![\\w.:-])`,"y"),Mt.set(e.source,t);return t}var Lt=new WeakMap;function zt(e){let t=Lt.get(e);if(!t)t=new Set([...e].map((o)=>o.toLowerCase())),Lt.set(e,t);let i=t;return(o)=>!/[a-z]/.test(o)&&i.has(o.toLowerCase())}function Fn(e,t){let i="";for(let o=t;o<e.length;o++){let a=e[o];if(i){if(a==="\\")o++;else if(a===i)i=""}else if(a==='"'||a==="'")i=a;else if(a===">")return o}return e.length}function Ut(e,t,i){let o=[],a=0,c=typeof i==="function"?i:i?(l)=>i.has(l.toLowerCase()):void 0;while(a<e.length){let l=e.indexOf("<",a);if(l===-1)break;let m=Un(t);m.lastIndex=l+1;let u=m.exec(e);if(!u){a=l+1;continue}let y=u[1];if(c&&c(y)){let S=l+1+y.length;while(S<e.length&&e[S]!==">")S++;a=S+1;continue}let v=l+1+y.length,b=null,C=v,x=-1,h=!1;while(v<e.length){let S=e[v];if(b){if(S==="\\"&&v+1<e.length){v+=2;continue}if(S===b)b=null;v++;continue}if(S==='"'||S==="'"){b=S,v++;continue}if(S==="/"&&v+1<e.length&&e[v+1]===">"){x=v+2,h=!0;break}if(S===">"){x=v+1;break}v++}if(x===-1){a=l+1;continue}let w=e.slice(C,h?x-2:x-1).trim();if(h)o.push({fullMatch:e.slice(l,x),tagName:y,attributes:w,content:"",startIndex:l,endIndex:x,isSelfClosing:!0}),a=x;else{let S=`<${y}`,R=`</${y}>`,P=1,k=x,N=-1;while(P>0&&k<e.length){let F=e.indexOf(S,k),q=e.indexOf(R,k);if(q===-1)break;if(F!==-1&&F<q){let B=e[F+S.length];if(B===" "||B===">"||B==="/"||B===`
|
|
41
|
-
`||B==="\t"){let E=Fn(e,F+S.length);if(e[E-1]!=="/")P++;k=E+1}else k=F+S.length}else{if(P--,P===0){N=q;break}k=q+R.length}}if(N===-1){a=x;continue}let H=e.slice(x,N),z=N+R.length;o.push({fullMatch:e.slice(l,z),tagName:y,attributes:w,content:H,startIndex:l,endIndex:z,isSelfClosing:!1}),a=z}}return o}function ct(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/'/gi,"'").replace(/&/g,"&")}function Ft(e,t){try{let i=Buffer.from(e,"base64").toString("utf8");return JSON.parse(i)}catch{}try{let i=e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");return JSON.parse(i)}catch(i){if(t?.debug)console.error("Error decoding __stx_ prop:",i);return e}}function lt(e,t){let i=0,o="",a=t;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==="{")i++;else if(c==="}"){if(i--,i===0)return e.slice(t,a+1)}a++}return e.slice(t)}function Wt(e){let t=e.trim();if(!t.startsWith("{")||!t.endsWith("}"))return null;if(lt(t,0).length!==t.length)return null;return t.slice(1,-1).trim()}var Wn=new Set(["disabled","checked","readonly","required","autofocus","autoplay","controls","default","defer","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","reversed","selected"]),Hn=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function qn(e){return ut(e).map((t)=>[t.start,t.end])}function ut(e){let t=[],i=/<([a-zA-Z][a-zA-Z0-9-]*)\b((?:[^>"']|"[^"]*"|'[^']*')*)\s*\/?>/g,o;while((o=i.exec(e))!==null){let a=o[2]||"",c=/(?:^|\s)(?::for|x-for|v-for|@for)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+))/.exec(a);if(!c)continue;let l=J(c[1]??c[2]??c[3]??""),m=o.index,u=m+o[0].length,y=o[1].toLowerCase();if(o[0].endsWith("/>")||Hn.has(y)){t.push({start:m,end:u,names:l});continue}let v=y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),b=new RegExp(`<\\/?${v}\\b(?:[^>"']|"[^"]*"|'[^']*')*>`,"gi");b.lastIndex=u;let C=1,x=u,h;while((h=b.exec(e))!==null)if(h[0].startsWith("</")){if(C--,C===0){x=h.index+h[0].length;break}}else if(!h[0].endsWith("/>"))C++;t.push({start:m,end:x,names:l})}return t}function Ht(e){if(typeof e==="string")return e;if(Array.isArray(e))return e.filter(Boolean).map((t)=>Ht(t)).join(" ");if(e&&typeof e==="object")return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ");return e?String(e):""}function ac(e,t){if(!/:[\w-]+=/.test(e))return e;let i=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(...qn(e));let l=new Set([...rt(t),...Array.isArray(t.__stx_client_declared_names)?t.__stx_client_declared_names:[]]);function m(C){return a.some(([x,h])=>C>=x&&C<h)}let u=/<([a-zA-Z][a-zA-Z0-9-]*)\b((?:[^>"']|"[^"]*"|'[^']*')*?)\s*(\/?)>/g,y=[],v=new Map,b=256;while((c=u.exec(i))!==null){if(m(c.index))continue;let C=c[0],x=c[2];if(!x||!x.includes(":"))continue;let h=/(?:^|\s)data-native(?:\s|=|$)/i.test(x.replace(/"[^"]*"|'[^']*'/g,"")),w=/\s:([a-zA-Z_][\w-]*)\s*=\s*"([^"]*)"/g,S,R=x,P=!1;while((S=w.exec(x))!==null){if(xr(x,S.index,!0)?.kind==="attribute")continue;let k=S[1],N=S[2];if(fl(k))continue;if(O(N,l))continue;if(N.includes("()")&&!N.includes(".get(")||N.includes("$store")||N.includes("$ref"))continue;try{let H=Object.keys(t),z=Object.values(t),F=N.match(/^([a-zA-Z_$][\w$]*)/);if(F&&!H.includes(F[1])&&!["true","false","null","undefined","Math","JSON","String","Number","Array","Object","Date","parseInt","parseFloat"].includes(F[1]))continue;let q=JSON.stringify([H,N]),B=v.get(q);if(!B){if(B=Function(...H,`return (${N})`),v.size>=b)v.clear();v.set(q,B)}let E=B(...z);if(k==="class"){let T=U(Ht(E));if(T){let j=R.match(/\sclass="([^"]*)"/);if(j)R=R.replace(j[0],()=>` class="${j[1]} ${T}"`);else R=R.replace(S[0],()=>` class="${T}"`)}else R=R.replace(S[0],"");P=!0;continue}if(Wn.has(k)){if(E)R=R.replace(S[0],` ${k}`);else R=R.replace(S[0],"");P=!0;continue}if(E===null||E===void 0||E===!1)R=R.replace(S[0],"");else{let T=h&&typeof E==="object"?JSON.stringify(E):String(E),j=wn(k,T);R=R.replace(S[0],()=>` ${k}="${j}"`)}P=!0}catch(H){if(H instanceof oe)throw H;continue}}if(P){let k=c[3]?" /":"",H=`<${c[1]}${R}${k}>`;y.push({start:c.index,end:c.index+C.length,replacement:H})}}if(y.length>0){let C=Array(y.length*2+1),x=0;for(let h=0;h<y.length;h++){let{start:w,end:S,replacement:R}=y[h];C[h*2]=i.slice(x,w),C[h*2+1]=R,x=S}C[y.length*2]=i.slice(x),i=C.join("")}return i}import qt from"fs";import Xt from"path";var Zt=!1;function Xn(e,t,i,o=!1,a=new Set){let c={static:{},staticNames:{},serverDynamic:{},serverDynamicNames:{},clientReactive:{},events:{}},l=new Set(Array.isArray(t.__stx_client_signal_names)?t.__stx_client_signal_names:[]),m=(b)=>{if(l.size===0)return!1;let C=r(b),x=C.match(/^\s*[!+~(-]*\s*([a-zA-Z_$][\w$]*)/)?.[1];if(x&&l.has(x))return!0;for(let h of l){let w=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`(?:^|[^\\w$.])${w}\\s*\\(`).test(C))return!0}return!1},u=new Set(gl),y=(b)=>{if(!b.includes("-")||b.startsWith("@")||b.startsWith(":")||b.startsWith("x-")||b.startsWith("__"))return b;if(b.startsWith("aria-")||b.startsWith("data-"))return b;return b.replace(/-([a-z0-9])/g,(C,x)=>x.toUpperCase())},v=(b,C)=>{let x=y(b);if(c.static[x]=C,x!==b)c.staticNames[x]=b};for(let[b,C]of Object.entries(e)){let x=b.startsWith("x-")&&!u.has(b)&&!b.startsWith("x-bind:")&&!b.startsWith("x-on:")?`:${b.slice(2)}`:b;if(x.startsWith("@")){c.events[x]=C;continue}if(x.startsWith("__stx_")){let h=y(x.slice(6));c.serverDynamic[h]=Ft(C,i);continue}if(x.startsWith(":")){let h=y(x.slice(1)),w=C===re?h:C;if(h==="if"||h==="for"||h==="show"){c.clientReactive[h]=w;continue}if(o){c.clientReactive[h]=w;continue}if(O(w,a)){c.clientReactive[h]=w;continue}if(m(w)){c.clientReactive[h]=w;continue}try{if(!f(w)){if(i.debug)console.error(`Unsafe expression in :${h} binding: ${w}`);c.clientReactive[h]=w;continue}let S=Object.keys(t),R=new Set(["true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","if","else"]),P=new Set(Array.isArray(t.__stx_client_declared_names)?t.__stx_client_declared_names:[]);if(st(w).some((z)=>!R.has(z)&&!S.includes(z)&&(!(z in globalThis)||P.has(z)))){c.clientReactive[h]=w;continue}let H=d(w,S)(...Object.values(t));if(c.serverDynamic[h]=H,h!==x.slice(1)&&c.serverDynamicNames)c.serverDynamicNames[h]=x.slice(1)}catch{c.clientReactive[h]=w}continue}if(typeof C==="string"&&C.includes("{{")&&C.includes("}}")){let h=Zn(C,a);if(h!==null){c.clientReactive[y(x)]=h;continue}let w=C.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(w)try{let S=w[1];if(f(S)){let P=d(S,Object.keys(t))(...Object.values(t));v(x,P!=null?String(P):"")}else{if(i.debug)console.error(`Unsafe expression in ${x}: ${S}`);v(x,C)}}catch(S){if(i.debug)console.error(`Error evaluating expression for ${x}:`,S);v(x,C)}else{let S=C,R=/\{\{\s*([\s\S]+?)\s*\}\}/g,P;while((P=R.exec(C))!==null)try{let k=P[1];if(!f(k)){if(i.debug)console.error(`Unsafe expression in ${x}: ${k}`);continue}let H=d(k,Object.keys(t))(...Object.values(t));S=S.replace(P[0],String(H??""))}catch(k){if(i.debug)console.error(`Error evaluating expression in ${x}:`,k)}v(x,S)}continue}v(x,C===re?"true":ct(C))}return c}function Zn(e,t){if(t.size===0)return null;let i=/\{\{\s*([\s\S]+?)\s*\}\}/g,o=[...e.matchAll(i)];if(!o.some((m)=>O(m[1],t)))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 Vn=[[/@if\s*\(/,"@endif"],[/@unless\s*\(/,"@endunless"]];function Gn(e,t,i){if(!e.includes("@"))return e;if(!Vn.some(([a,c])=>a.test(e)&&e.includes(c)))return e;try{return se(e,t,i)}catch{return e}}function me(e){let t={},i=0,o=e.length;while(i<o){while(i<o&&/\s/.test(e[i]))i++;if(i>=o)break;let a="";while(i<o&&!/[\s=]/.test(e[i]))a+=e[i],i++;if(!a)break;while(i<o&&/\s/.test(e[i]))i++;if(i<o&&e[i]==="="){i++;while(i<o&&/\s/.test(e[i]))i++;let c="";if(i<o&&(e[i]==='"'||e[i]==="'")){let l=e[i];i++;while(i<o){let m=e[i];if(m==="\\"&&i+1<o){i++,c+=e[i],i++;continue}if(m===l){i++;break}c+=m,i++}}else if(e[i]==="{"){c=lt(e,i),i+=c.length;let l=Wt(c);if(l!==null){t[`:${a}`]=l;continue}}else while(i<o&&!/\s/.test(e[i]))c+=e[i],i++;t[a]=c}else t[a]=re}return t}function Vt(e){return Object.entries(e).map(([t,i])=>i===re?t:`${t}="${Kn(i)}"`).join(" ")}function Kn(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Jn(e){let t=new Set,i=/<([A-Z][A-Za-z0-9]*|stx-[a-z0-9-]+)\b[^>]*>/g,o;while((o=i.exec(e))!==null){let a=o[1];if(ue.isBuiltin(a))t.add(a)}return[...t].sort()}async function Of(e,t,i,o,a){if(!/import\s/.test(e))return e;if(!t.__importedComponents)t.__importedComponents=new Map;let c=t.__importedComponents,l=Xt.dirname(i),m=[],u=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;for(let b of e.matchAll(u)){let[C,x,h]=b,w=/import\s+(?:(\{[^}]*\})|([A-Za-z_$][\w$]*))\s+from\s+['"]([^'"]+)['"]\s*;?\s*\n?/g,S=h,R,P=[];while((R=w.exec(h))!==null){let[k,N,H,z]=R,F=null,q=null;if(z.startsWith(".")||z.startsWith("/")){let T=Xt.resolve(l,z);if(T.endsWith(".stx"))q=T;else{let j=`${T}.stx`;try{if(qt.statSync(j).isFile())q=j}catch{try{if(qt.statSync(T).isDirectory())F=T}catch{}}}}else F=Os(z,l);if(!F&&!q)continue;let B=!1,E=(T,j)=>{c.set(T,j),c.set(T.toLowerCase(),j);let W=T.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();c.set(W,j),a.add(j)};if(H&&q)E(H,q),B=!0;else if(N){let T=N.slice(1,-1).split(",").map((W)=>W.trim()).filter(Boolean).map((W)=>{let X=W.match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(X)return{source:X[1],local:X[2]};return{source:W,local:W}}),j=F?yr(F):null;for(let{source:W,local:X}of T){let L=null;if(q)L=q;else if(j)L=j.get(W)??j.get(W.toLowerCase())??j.get(W.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())??null;if(L)E(X,L),B=!0}}if(B)P.push({start:R.index,end:R.index+k.length})}if(P.length===0)continue;for(let k=P.length-1;k>=0;k--)S=S.slice(0,P[k].start)+S.slice(P[k].end);m.push({start:b.index,end:b.index+C.length,value:`<script${x}>${S}</script>`})}if(m.length===0)return e;let y=[],v=0;for(let b of m)y.push(e.slice(v,b.start),b.value),v=b.end;return y.push(e.slice(v)),y.join("")}async function Yn(e,t,i,o,a){let c=e;if(!t.__importedComponents)t.__importedComponents=new Map;let l=t.__importedComponents,m=/@import\s*\(\s*([^)]+)\s*\)/g,u;while((u=m.exec(c))!==null){let[y,v]=u,b=v.split(",").map((C)=>C.trim().replace(/^['"]|['"]$/g,"")).filter((C)=>C.length>0);for(let C of b){let x=C.split("/"),w=x[x.length-1].replace(/\.stx$/,""),S=w.includes("-")?w.split("-").map((k)=>k.charAt(0).toUpperCase()+k.slice(1)).join(""):w.charAt(0).toUpperCase()+w.slice(1),R=null,P=Ns(C,i,o);for(let k of P)try{if(await Bun.file(k).exists()){R=k;break}}catch{}if(R){l.set(S,R),l.set(w,R),l.set(w.toLowerCase(),R);let k=S.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();if(l.set(k,R),a.add(R),o.debug)console.log(`Imported component: ${S} -> ${R}`)}else if(o.debug)console.warn(`Could not resolve imported component: ${C}`)}c=c.replace(y,""),m.lastIndex=0}return c}async function Qn(e,t,i,o,a){let c=e,l=o.componentsDir||"components";if(!t.__processedComponents)t.__processedComponents=new Set;let m=t.__processedComponents,u=/@component\s*\(/g,y;while((y=u.exec(c))!==null){let v=y.index,b=v+y[0].length-1,C=1,x=b+1;while(x<c.length&&C>0){if(c[x]==="(")C++;else if(c[x]===")"){if(C--,C===0)break}x++}if(C!==0)break;let h=c.substring(b+1,x),w=x+1,S=h.match(/^\s*['"]([^'"]+)['"]/);if(!S){u.lastIndex=0;continue}let R=S[1],P,k=h.slice(S[0].length),N=k.match(/^\s*,\s*/);if(N)P=k.slice(N[0].length).trim();let H={};if(P)try{H=A(P,t)}catch(T){let j=T instanceof Error?T.message:String(T);c=c.replace(c.substring(v,w),`[Error parsing component props: ${j}]`);continue}let z="",F=w,B=c.substring(w).match(/^([\s\S]*?)@endcomponent/);if(B)z=B[1].trim(),F=w+B[0].length;let E=await Fe(R,H,z,l,t,i,o,m,a);c=c.substring(0,v)+E+c.substring(F),u.lastIndex=0}return c}async function er(e,t,i,o,a){if(!e)return e;let c=e,l=o.componentsDir||"components";if(!t.__processedComponents)t.__processedComponents=new Set;let m=t.__processedComponents,u=rr(c);if(u.size>0){let w=Array.isArray(t.__stx_client_declared_names)?t.__stx_client_declared_names:[];t.__stx_client_declared_names=[...new Set([...w,...u])]}let y=G(c);c=y.output;let v=rt(t);return c=await h(c,/[a-z][a-z0-9]*-[a-z0-9-]*/,!1),c=await h(c,/[A-Z][a-zA-Z0-9]*/,!0,zt(Sr)),c=await h(c,/[a-z][a-z0-9]*/,!1,Sr),c=y.restore(c),c;async function h(w,S,R,P){if(!w)return w;let k=w,N=Ut(k,S,P),H=ut(k),z=new Map;for(let B=N.length-1;B>=0;B--){let E=N[B],T=R?V(E.tagName):E.tagName,j=me(Gn(E.attributes,t,i)),W=H.filter(({start:I,end:_})=>E.startIndex>=I&&E.startIndex<_),X=W.length>0,L=new Set(v);for(let I of W)for(let _ of I.names)L.add(_);let D=Xn(j,t,o,X,L);if(typeof D.clientReactive.for==="string")for(let I of J(D.clientReactive.for))L.add(I);let ce=ue.getBuiltin(E.tagName),$e=ce?await Cr(E.tagName,l,t,i,o):!1,Y=E.tagName==="Image"&&Ms([...Object.keys(D.static),...Object.keys(D.serverDynamic),...Object.keys(D.clientReactive)],Object.keys(D.events),{...D.static,...D.serverDynamic})&&(o._pluginComponentDirs??[]).some((I)=>yr(I).has("Image"));if(ce&&!$e&&!Y){let I={context:t,filePath:i,options:o,dependencies:a},_=ce.render(D,E.content,I);if(Object.keys(D.events).length>0){let ee=Vt(D.events);_=_.replace(/^(\s*<[a-zA-Z][a-zA-Z0-9-]*)/,`$1 ${ee}`)}if(Object.keys(D.clientReactive).length>0)_=Gt(_,D.clientReactive);z.set(B,_);continue}if(!R&&E.tagName.includes("-")&&!await Cr(T,l,t,i,o))continue;let le={};for(let[I,_]of Object.entries(D.static))le[I]=_;for(let[I,_]of Object.entries(D.serverDynamic))le[I]=_;let te={declaredProps:new Set,consumedProps:new Set,reactiveProps:Object.keys(D.clientReactive),events:Object.keys(D.events)},M=await Fe(T,le,y.restore(E.content),l,t,i,o,m,a,[...L],te,E.tagName);if(M=tr(M,D,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(V),_=ft(M,!0);if(I.length&&_){if(!Object.hasOwn(me(M.slice(_.insertPos,_.tagEnd)),"data-stx-native-host-root"))M=M.slice(0,_.insertPos)+' data-stx-native-host-root="true"'+M.slice(_.insertPos);let ne=we(M);M=M.slice(0,ne.insertPos)+` data-stx-native-forward="${I.join(" ")}"`+M.slice(ne.insertPos)}let ee=ft(M,!0);if(ee){let ne=me(M.slice(ee.insertPos,ee.tagEnd)),Se=we(M),Jt=me(M.slice(Se.insertPos,Se.tagEnd));if(Object.hasOwn(ne,"data-stx-native-host-root")&&!Object.hasOwn(Jt,"data-stx-native-host-owner"))M=M.slice(0,Se.insertPos)+" data-stx-native-host-owner"+M.slice(Se.insertPos)}}if(Object.keys(D.events).length>0){let I=we(M);if(I){let _=Vt(D.events),ee=Object.keys(D.events).map((ne)=>ne.replace(/^@/,"").split(".")[0]).join(" ");M=M.substring(0,I.insertPos)+` data-stx-parent-events="${ee}" ${_}`+M.substring(I.insertPos)}}if(Object.keys(D.clientReactive).length>0)M=Gt(M,D.clientReactive);z.set(B,M)}if(z.size===0)return k;let F="",q=0;for(let B=0;B<N.length;B++){let E=z.get(B);if(E===void 0)continue;F+=k.slice(q,N[B].startIndex),F+=E,q=N[B].endIndex}return F+=k.slice(q),F}}function Gt(e,t){let i=new Set(["if","for"]),o=new Set(["show"]),a=Object.entries(t).filter(([v])=>!i.has(v)),c=a.filter(([v])=>!o.has(v)).map(([v])=>V(v)).join(" "),l=e,m=a.length>0?we(l):null;if(m){let v=a.map(([C,x])=>`:${V(C)}="${x.replace(/"/g,""")}"`).join(" "),b=c?` data-stx-parent-bindings="${c}"`:"";l=l.substring(0,m.insertPos)+`${b} ${v}`+l.substring(m.insertPos)}let u=t.if;if(u)l=`<template :if="${u.replace(/"/g,""")}">${l}</template>`;let y=t.for;if(y){let v=t.key,b=v?` :key="${v.replace(/"/g,""")}"`:"";l=`<template :for="${y.replace(/"/g,""")}"${b}>${l}</template>`}return l}function tr(e,t,i=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=t.serverDynamic.class??t.static.class;if(a&&typeof m==="string"&&m&&!o.has("class")){let h=/(^|\s)class\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i,w=h.test(l)?l.replace(h,(S,R,P,k,N)=>`${R}class="${n(`${ct(P??k??N)} ${m}`)}"`):` class="${n(m)}"${l}`;e=e.slice(0,c.insertPos)+w+e.slice(c.tagEnd),c.tagEnd+=w.length-l.length,l=w}let u=a||/\bdata-native(?:\s|=)/i.test(l),y=u?o:i,v=new Set(Object.keys(me(l))),b=new Set(["class","className"]);for(let h of Object.keys(t.static)){let w=t.staticNames[h]??h;if(v.has(w)||y.has(h)||!u&&!He(w))b.add(h)}for(let h of Object.keys(t.serverDynamic)){let w=t.serverDynamicNames?.[h]??h;if(v.has(w)||y.has(h)||!u&&!He(w))b.add(h)}let C=[];if(u){for(let[h,w]of Object.entries(t.static)){if(b.has(h)||w!==!0&&w!==re)continue;b.add(h),C.push(`${n(t.staticNames?.[h]??h)}="true"`)}for(let[h,w]of Object.entries(t.serverDynamic)){if(b.has(h)||w!==!0)continue;b.add(h),C.push(`${n(t.serverDynamicNames?.[h]??h)}="true"`)}}let x=[...ie(t,b),...ae(t,b),...C];if(u){for(let[h,w]of Object.entries(t.serverDynamic)){if(b.has(h)||w!==!1)continue;let S=t.serverDynamicNames?.[h]??h;x.push(`${n(S)}="false"`)}for(let[h,w]of Object.entries(t.serverDynamic)){if(b.has(h)||w===null||typeof w!=="object")continue;let S=JSON.stringify(w);if(S!==void 0){let R=t.serverDynamicNames?.[h]??h;x.push(`${n(R)}="${n(S)}"`)}}}if(x.length===0)return e;return`${e.slice(0,c.insertPos)} ${x.join(" ")}${e.slice(c.insertPos)}`}function we(e){let t=Kt(e,0);if(t)return t;let i=/<([a-zA-Z][a-zA-Z0-9-]*)\b[^>]*\bdata-stx-scope(?:\s|=|>)/i.exec(e);if(i)return{insertPos:i.index+1+i[1].length,tagEnd:dt(e,i.index+1+i[1].length)};return null}function ft(e,t=!1){let i=we(e);if(!i)return null;let o=e.slice(i.insertPos,i.tagEnd),a=/\bdata-stx-component-wrapper(?:\s|=|>|$)/i.test(o)?Kt(e,i.tagEnd+1):i;return a&&t?nr(e,a)??a:a}function nr(e,t){if(!e.includes("data-stx-native-host-root"))return null;let i=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),o=e.lastIndexOf("<",t.insertPos),a=0,c;while(o>=0&&o<e.length){if(e.startsWith("<!--",o)){let v=e.indexOf("-->",o+4);if(v<0)return null;o=e.indexOf("<",v+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,y=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 v=new RegExp(`</${m}\\s*>`,"gi");if(v.lastIndex=y+1,!v.exec(e))return null;o=e.indexOf("<",v.lastIndex);continue}else{let v=me(e.slice(u,y)),b=a>0&&(Object.hasOwn(v,"data-stx-component-wrapper")||Object.hasOwn(v,"data-stx-native-host-owner"));if(c===void 0&&!b&&Object.hasOwn(v,"data-stx-native-host-root"))return{insertPos:u,tagEnd:y};if(!i.has(m)&&e[y-1]!=="/"){if(a++,c===void 0&&b)c=a}else if(a===0)return null}o=e.indexOf("<",y+1)}return null}function Kt(e,t){let i=t;while(i<e.length){let o=e.slice(i),a=o.match(/^\s+/);if(a){i+=a[0].length;continue}if(o.startsWith("<!--")){let m=e.indexOf("-->",i+4);if(m===-1)return null;i=m+3;continue}let c=o.match(/^<(script|style)\b[^>]*>/i);if(c){let m=`</${c[1].toLowerCase()}>`,u=e.toLowerCase().indexOf(m,i+c[0].length);if(u===-1)return null;i=u+m.length;continue}let l=o.match(/^<([a-zA-Z][a-zA-Z0-9-]*)(?:\s|>|\/)/);if(!l)return null;return{insertPos:i+1+l[1].length,tagEnd:dt(e,i+1+l[1].length)}}return null}function dt(e,t){let i="";for(let o=t;o<e.length;o++){let a=e[o];if(i){if(a==="\\")o++;else if(a===i)i=""}else if(a==='"'||a==="'")i=a;else if(a===">")return o}return e.length}function rr(e){let t=new Set;for(let i of e.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi)){let o=i[1];if(!/\bclient\b/.test(o)||/\bserver\b/.test(o))continue;for(let a of li(i[2]))t.add(a);for(let a of i[2].matchAll(/^\s*import\s+(?:type\s+)?(?:([\w$]+)\s*,?\s*)?(?:\{([^}]*)\}|\*\s+as\s+([\w$]+))?\s*from\s/gm)){if(a[1])t.add(a[1]);if(a[3])t.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))t.add(l)}}}return t}async function us(e,t,i,o,a){if(!Zt)jt(ue),Zt=!0;let c=await Of(e,t,i,o,a);c=await Yn(c,t,i,o,a),c=await Qn(c,t,i,o,a);let l=[];for(let m=0;m<3;m++){let u=l.length,y=pe(c,Ne,(b,C)=>`\x00STX_COMPONENT_COMMENT_${u+C}\x00`,`STX_COMPONENT_COMMENT:${u}`);l.push(...y.tokens);let v=c;if(c=await er(y.output,t,i,o,a),c===v)break}if(l.length>0)c=c.replace(/\x00STX_COMPONENT_COMMENT_(\d+)\x00/g,(m,u)=>l[Number(u)]??"");if(o.debug){let m=Jn(c);if(m.length>0)console.warn(`[stx] ${i}: 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{Lo,jo,Bo,Ph,ls,Ih,ac,Of,us};
|
package/dist/chunk-m5cdkb11.js
DELETED
package/dist/chunk-mcgqgheq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wo,lh,uh}from"./chunk-6a0ekt1n.js";import"./chunk-sjd6rt97.js";import"./chunk-x46hqa74.js";import"./chunk-7sh9fa3q.js";import"./chunk-e4d0jgcw.js";import"./chunk-rccv14mn.js";import"./chunk-fmawgk87.js";import"./chunk-jw7cakxt.js";import"./chunk-3dg2zg8d.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{uh as clearComposableCache,lh as getComposableScript,wo as listComposableModules};
|
package/dist/chunk-mz1mgfq3.js
DELETED
package/dist/chunk-n1tbc7da.js
DELETED
package/dist/chunk-n7dm6prj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Di,Li,ji,Dg,Bi,Fi,Lg,zi,Hi,_l,jg}from"./chunk-sh1hbhhb.js";export{Di as VideoProcessorCache,_l as analyzeVideo,Dg as clearVideoCache,Hi as generateDASHManifest,zi as generateHLSManifest,Bi as generatePoster,Lg as generateSpriteSheet,Fi as generateThumbnails,Li as getCachedVideoResult,jg as processVideo,ji as setCachedVideoResult};
|
package/dist/chunk-nknpr8cy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gu,_o,Kn,mu,hu,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,Jt,Ra,id,ad,cd,Aa,ld,ud,dd,pd,fd,gd,Pa,md,hd,yd,bd,wd,vd,xd,Sd,kd,Xn,_d,Cd,Ed,Td,$d,Rd,Ad,Pd,Id,Od,Nd,Md,Co,Dd,Ld,jd,Bd,Fd,Qr,es,zd,Hd,Vd,Ud,Wd,Ia,qd,Kd,Xd,Oa,Eo,Gd,Jd,Na,Ma,ts,Da,Yd,Yt,Zd,La,ja,To,Qd,$o,ep,tp,np,rp,sp,op,ip,Ba,ap,cp,Fa,lp,up,dp,pp,fp,gp,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Pp,Ip,za,Op,Np,Mp,Dp,Lp,jp,Bp,Fp,zp,Hp,Vp,Gn,Ha,Va,Up,Jn,Wp,qp,Kp,Ua,Wa,ns,rs,Xp,Ro,Gp,Jp,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,gf,mf,qa,hf,yf,Ka,Xa,bf,wf}from"./chunk-gcje06er.js";export{sd as AVAILABLE_COMPONENTS,Ia as AutoUpdater,od as COMPONENT_STYLES,ns as DEFAULT_WATCH_INTERVAL_MS,Wa as MAX_WATCH_INTERVAL_MS,Ua as MIN_WATCH_INTERVAL_MS,gd as MODAL_STYLES,ku as TOAST_STYLES,xd as TRAY_MENU_STYLES,Na as UPDATE_MANIFEST_ASSET,ud as alert,Rp as appInfo,ef as appleScript,wf as applicationDataDirectory,Qp as audio,yf as backgroundDelay,Cp as battery,Zp as biometric,Hp as bluetooth,of as bonjour,Yt as bundlePathForExecutable,Qd as caffeinate,qd as canReplaceBundle,Kd as clearQuarantine,hp as clipboard,fd as closeAllModals,Md as closeAllWindows,ld as confirm,Ip as contextMenu,pf as continuityCamera,df as coreml,Ud as craftBinaryNotFoundMessage,Co as craftWindowArguments,Gn as crashReporter,qu as createAccordion,Bu as createAutocomplete,Au as createAvatar,Ru as createBadge,_u as createButton,Pu as createCard,Qu as createChart,Eu as createCheckbox,Hu as createChip,ed as createCodeEditor,Du as createColorPicker,Zu as createDataGrid,Lu as createDatePicker,es as createDiskImage,Ou as createDropdown,nd as createFileExplorer,Yd as createGitHubUpdateManifest,Da as createGitHubUpdater,zu as createImageView,pp as createInterval,Fu as createLabel,Gu as createListView,td as createMediaPlayer,md as createMenubar,Xu as createModalComponent,bf as createNativeUpdateApi,Xa as createPantrySelfUpdater,sp as createPreferences,$u as createProgressBar,Mu as createRadioButton,Nu as createRating,Uu as createScrollView,To as createSelfUpdater,Tu as createSlider,Wu as createSplitView,Ku as createStepper,Pa as createSystemTray,Ju as createTable,Iu as createTabs,Cu as createTextInput,ju as createTimePicker,dp as createTimer,Vu as createTooltip,Yu as createTreeView,rd as createWebView,Dd as createWindow,jd as createWindowWithHTML,$o as decaffeinate,_p as deepLinks,fp as delay,vu as dismissAlertById,xu as dismissAllAlerts,Sp as dragOut,Xd as extractBundle,tf as fileAssociations,Ro as focus,Jp as focusShortcutsReady,mp as formatCompact,rp as formatDuration,np as formatRemainingTime,ap as formatShortcut,gp as formatTime,bp as fs,Oa as generateUpdateManifest,Su as getActiveAlertCount,pd as getActiveModalCount,hd as getActiveTrayInstances,Od as getActiveWindowIds,tp as getCaffeinateStatus,mf as getCapabilities,qa as getCapability,Pd as getDesktopConfig,Rd as getDialogBridgeScript,up as getRegisteredHotkeys,wd as getSimulatedTrayHTML,vd as getTrayBridgeScript,yd as getTrayInstance,Nd as getWindow,Fd as getWindowBridgeScript,Ma as githubLatestAssetUrl,ts as githubReleaseAssetUrl,vp as globalShortcuts,Jn as handoff,Gp as hasFocusShortcuts,Up as iap,ip as isAutoLaunchEnabled,hf as isAvailable,ep as isCaffeinated,kp as isDragOutAvailable,Bd as isWebviewAvailable,Mp as keychain,Wp as liveActivities,Yp as localServer,qp as location,sf as log,zd as macOSRuntimeExecutablePath,Pp as menu,uf as midi,jp as nativeAutoLaunch,Bp as nativeTray,Fp as nativeWindow,Ep as network,yp as notifications,wu as notify,Ld as openDevWindow,Hd as pack,Vd as packageApp,Ka as parsePantryUpdateManifest,Ba as parseShortcut,rf as pdf,Dp as permissions,Lp as printing,dd as prompt,La as quitLauncher,Eo as readBundleIdentity,Ha as redactPII,cp as registerHotkey,ja as relaunchBundle,gu as requestNotificationPermission,Id as resetDesktopConfig,Wd as resolveCraftBinary,Qr as resolveCraftExecutablePath,Zd as runningBundleTeamId,Np as screen,Kp as screenCapture,rs as screenSharing,gf as serial,ff as serviceMenu,op as setAutoLaunch,Ad as setDesktopConfig,wp as shell,_o as showAlert,Cd as showAlertDialog,_d as showColorPicker,Ed as showConfirmDialog,Td as showErrorDialog,ad as showErrorModal,bu as showErrorToast,Ra as showInfoModal,mu as showInfoToast,Xn as showMessageBox,Jt as showModal,Sd as showOpenDialog,Aa as showQuestionModal,kd as showSaveDialog,cd as showSuccessModal,hu as showSuccessToast,Kn as showToast,$d as showWarningDialog,id as showWarningModal,yu as showWarningToast,za as sidebar,Va as signPayload,Vp as speech,cf as speechRecognition,af as spotlight,Ap as standardMenus,Gd as swapBundle,Op as system,nf as tags,xp as theme,zp as touchbar,bd as triggerTrayAction,lp as unregisterAllHotkeys,Fa as unregisterHotkey,Tp as updater,Jd as verifyBundleTrust,lf as vision,Xp as watchScreenSharing,$p as windowEvents};
|
package/dist/chunk-nqn4dvqd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lf,Nh,Mh,Dh,Lh,jf,Bf,jh,Bh,Xo,Fh,lr,ur,ws}from"./chunk-xka9fdye.js";import{nt}from"./chunk-5emrarpf.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Lh as __setSignalsGeneratorsForTest,nt as cacheEngineFingerprint,ur as cacheTemplate,lr as checkCache,Fh as clearDevCaches,Bf as getCachedRouterScript,jf as getCachedSignalsRuntime,jh as getServeClientAsset,Xo as getServeModuleBundle,ws as hashFilePath,Mh as invalidateFileCache,Dh as invalidateFileCacheByDir,Nh as readFileCached,Bh as registerServeModuleBundle,Lf as templateCache};
|
package/dist/chunk-nt5dh56c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xe,mi,hi,og,Nt,Kc,ig,Xc,Xh,De,yn,Le}from"./chunk-vhzngsmd.js";import{tl,r}from"./chunk-b9d70mgr.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{xe as BROWSER_CORE_IMPORTS,og as STX_AUTO_IMPORTS,mi as extractAndStripCssImports,De as extractBridgeData,tl as findInterpolationEnd,Xc as generateAutoImportDestructuring,Xh as generateBrowserAutoImportDestructuring,yn as generateServerDataBridge,Nt as injectBrowserCoreAutoImports,Le as processClientScript,ig as referencesName,hi as renderVendorStyleTags,r as stripCommentsAndLiterals,Kc as transformAutoImports};
|
package/dist/chunk-p04dabqm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tf,sc,Eh,oc,$f,Rf,cn,sr,Th,Af,Pf,$h,y}from"./chunk-e758jz81.js";import"./chunk-xka9fdye.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{cn as buildCss,Af as extractClassNames,Rf as fingerprintConfig,Pf as generateCss,Th as getCachedCSS,Tf as getCssServeAsset,y as injectCss,sc as loadCssEngine,oc as loadCssEngineConfig,sr as rebuildCss,Eh as resetCssCache,$f as resolveUserCssConfig,$h as withLinkedModuleBundles};
|
package/dist/chunk-pe89ztq6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nm,ba,uu,Mm,Dm,Lm,jm,Bm,du,pu,Fm,zm,Hm,Vm}from"./chunk-p3dc6rg2.js";import"./chunk-12sd0ep5.js";import"./chunk-e758jz81.js";import"./chunk-4gg9594a.js";import"./chunk-c84pxd2k.js";import"./chunk-kz6qw9fm.js";import"./chunk-mz1mgfq3.js";import"./chunk-4jaet63w.js";import"./chunk-f6nk205v.js";import"./chunk-e4d0jgcw.js";import"./chunk-rccv14mn.js";import"./chunk-fmawgk87.js";import"./chunk-xka9fdye.js";import"./chunk-jw7cakxt.js";import"./chunk-3dg2zg8d.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{uu as SUSPENSE_RESOLVER_RUNTIME,ba as buildSuspenseResolveScript,Bm as createStreamRenderer,Lm as extractStreamBoundaries,Vm as generateHydrationRuntime,pu as islandDirective,zm as processSectionDirectives,Dm as processStreamDirectives,Fm as registerStreamingDirectives,Mm as renderStreamingPage,Nm as streamTemplate,jm as streamTemplateSimple,Hm as streamToResponse,du as streamingSuspenseDirective};
|
package/dist/chunk-pe9npaby.js
DELETED
package/dist/chunk-pmq2pdr9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rh,If,Je,ic,Ah,is,as,cs}from"./chunk-4gg9594a.js";import"./chunk-kz6qw9fm.js";import"./chunk-mz1mgfq3.js";import"./chunk-f6nk205v.js";import"./chunk-fmawgk87.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Ah as clearOnceStore,ic as onceStore,Je as partialsCache,is as processIncludes,as as processStackPushDirectives,cs as processStackReplacements,Rh as resetUnscopedSignalWarnings,If as topLevelElements};
|
package/dist/chunk-r2v042ym.js
DELETED
package/dist/chunk-r3zmbpv2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nm}from"./chunk-jdddw8en.js";import"./chunk-m9dyqae7.js";import"./chunk-s6mte5vy.js";import"./chunk-j476jghg.js";import"./chunk-x46hqa74.js";import"./chunk-12sd0ep5.js";import"./chunk-e758jz81.js";import"./chunk-4gg9594a.js";import"./chunk-c84pxd2k.js";import"./chunk-kz6qw9fm.js";import"./chunk-mz1mgfq3.js";import"./chunk-4jaet63w.js";import"./chunk-f6nk205v.js";import"./chunk-e4d0jgcw.js";import"./chunk-rccv14mn.js";import"./chunk-fmawgk87.js";import"./chunk-xka9fdye.js";import"./chunk-jw7cakxt.js";import"./chunk-3dg2zg8d.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{nm as buildForProduction};
|
package/dist/chunk-r57s8jqs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hn,Zf,Qf,eg,tg,ng,m,rg,gi,sg,Wc,qc}from"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{hn as STX_ENGINE_BINDING_NAMES,gi as convertToCommonJS,Wc as extractScriptFromTemplate,m as extractVariables,qc as hasVariables,rg as isCompleteImport,ng as isMissingBindingFailure,eg as isModuleResolutionFailure,tg as isSyntaxFailure,sg as splitDeclaration,Zf as stripTypeScript,Qf as withoutStxReferrer};
|
package/dist/chunk-rjzp7za8.js
DELETED
package/dist/chunk-sata7rh2.js
DELETED
package/dist/chunk-tsb5h4e2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ti,ty,ny,ll,Ve,vg,Ys,ry,sy,oy,iy,ay,cy,ly,uy,dy}from"./chunk-72jt897s.js";export{cy as applyHead,ry as definePageMeta,Ti as getHead,ty as getPageMeta,Ve as mergeHeadConfigs,ly as processHeadDirective,dy as processMetaDirective,uy as processTitleDirective,ay as renderBodyAttrs,oy as renderHead,iy as renderHtmlAttrs,ny as resetHead,Ys as seoMetaToHeadConfig,ll as useHead,sy as usePageTitle,vg as useSeoMeta,sy as useTitle};
|
package/dist/chunk-v7h8vd9n.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{qg}from"./chunk-0s93s6ep.js";import"./chunk-12sd0ep5.js";import"./chunk-e758jz81.js";import"./chunk-4gg9594a.js";import"./chunk-c84pxd2k.js";import"./chunk-kz6qw9fm.js";import"./chunk-mz1mgfq3.js";import"./chunk-4jaet63w.js";import"./chunk-f6nk205v.js";import"./chunk-e4d0jgcw.js";import"./chunk-rccv14mn.js";import"./chunk-fmawgk87.js";import"./chunk-xka9fdye.js";import"./chunk-jw7cakxt.js";import"./chunk-3dg2zg8d.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{qg as startInteractive};
|
package/dist/chunk-v8h2kns0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zo,Qo,ei,ti,_s,Cs,Vh,Uh,Wh,qh,Es,Kh}from"./chunk-em2yy1te.js";import"./chunk-72jt897s.js";export{Kh as generateDefaultRobotsTxt,Es as generateRobotsTxt,Uh as generateSitemap,Wh as generateSitemapIndex,ti as injectSeoTags,_s as metaDirective,Zo as processMetaDirectives,ei as processSeoDirective,Qo as processStructuredData,Vh as registerSeoDirectives,qh as scanForSitemapEntries,Cs as structuredDataDirective};
|
package/dist/chunk-vvcfrsjg.js
DELETED
package/dist/chunk-vyw40ym7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rm,sm,om,im,Bl,am,cm,lm,um,dm,pm,fm}from"./chunk-8dmey36n.js";export{pm as Broadcast,fm as BroadcastServer,Bl as broadcast,um as broadcastPresence,lm as broadcastPrivate,dm as channel,rm as getBroadcastServer,im as loadChannels,sm as startBroadcasting,om as stopBroadcasting,am as toUser,cm as toUsers};
|
package/dist/chunk-whq40bdm.js
DELETED
package/dist/chunk-xsck49x5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ve,Us,mg,Jh,hg,Yh,Mt,p,U,Z,wn,Se,yg,wi,bg,Zh,_,wg,Qh,R,ey}from"./chunk-vhzngsmd.js";import"./chunk-bnewgd23.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{wg as applyFilters,Yh as clearCustomFilters,yg as clientLoopScopes,Us as defaultFilters,wn as escapeAttributeValue,p as escapeHtml,U as escapeHtmlValue,Z as escapeInterpolatedHtmlValue,R as evaluateExpression,ve as findMustacheEnd,hg as getAllFilters,bg as interpolateScriptAttributes,wi as interpolateScriptExpressions,Zh as interpolateScriptsInTemplate,_ as processExpressions,mg as registerFilter,Jh as registerFilters,Mt as replaceInterpolations,Qh as resetRejectedExpressionWarnings,ey as unescapeHtml,Se as usesSignalsInScript};
|
package/dist/chunk-z0c35c5c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{on,Ao,Po,Io,Ch,Oo}from"./chunk-x46hqa74.js";import"./chunk-t2sg2tp2.js";import"./chunk-gtd6qs1r.js";import"./chunk-m7hfcxt3.js";export{Po as buildServerApi,Ch as createServerApi,on as discoverServerApi,Ao as generateApiTypes,Oo as isServerApiSource,Io as productionApiDispatcher};
|
package/dist/chunk-zwp7n01x.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lo,ea,Vr,uo,po,Rn,Kt,ta,Ur,Wr,fo,go,Gg,Jg,pt}from"./chunk-035m9ada.js";export{pt as DeployError,ea as calculateSha1,Vr as collectDeployFiles,Wr as createDefaultNetlifyConfig,uo as createFileManifest,lo as createNetlifyClient,Gg as deploy,Ur as detectProjectConfig,po as filterRequiredFiles,Rn as formatSize,ta as generateNetlifyToml,Kt as getTotalSize,go as hasNetlifyConfig,Jg as initNetlify,fo as writeNetlifyConfig};
|