@stacksjs/stx 0.2.327 → 0.2.329
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-0drkynk0.js +2 -0
- package/dist/{chunk-ja7q1r6p.js → chunk-0w8t922h.js} +1 -1
- package/dist/{chunk-5mnje5wt.js → chunk-14eqdtex.js} +1 -1
- package/dist/chunk-1c0576kb.js +2 -0
- package/dist/{chunk-0n90mnpc.js → chunk-1czvb2wx.js} +1 -1
- package/dist/chunk-20e4pcq1.js +2 -0
- package/dist/{chunk-ye7e8134.js → chunk-289vztwy.js} +1 -1
- package/dist/{chunk-sxbp4m27.js → chunk-2jfneptq.js} +1 -1
- package/dist/{chunk-srnrsany.js → chunk-2t8jekek.js} +1 -1
- package/dist/chunk-2zwfbhdn.js +2 -0
- package/dist/{chunk-68e7xdsh.js → chunk-33az7v0k.js} +1 -1
- package/dist/{chunk-a7a27x3z.js → chunk-33rznhw1.js} +1 -1
- package/dist/chunk-35qe6zs9.js +2 -0
- package/dist/{chunk-z1gqmhmp.js → chunk-3cba0xw5.js} +1 -1
- package/dist/{chunk-832fs45r.js → chunk-3n9rvrk1.js} +1 -1
- package/dist/{chunk-0dtcw5ca.js → chunk-3wvdm033.js} +1 -1
- package/dist/{chunk-y8f0v4rq.js → chunk-45jak73k.js} +1 -1
- package/dist/chunk-4partaqt.js +2 -0
- package/dist/chunk-50g4yz3x.js +2 -0
- package/dist/{chunk-nt9y4feq.js → chunk-557n2zx7.js} +1 -1
- package/dist/{chunk-nn4xr784.js → chunk-5ep11kvc.js} +1 -1
- package/dist/chunk-5evat5qv.js +2 -0
- package/dist/{chunk-y330ysve.js → chunk-66jvd29c.js} +2 -2
- package/dist/{chunk-eab4mmq0.js → chunk-6n0raqhh.js} +1 -1
- package/dist/{chunk-zam1mxnz.js → chunk-7080py5f.js} +1 -1
- package/dist/{chunk-9r4bsg9f.js → chunk-70nkn5te.js} +1 -1
- package/dist/{chunk-krjzxnsd.js → chunk-77sa9wz4.js} +1 -1
- package/dist/{chunk-ap3eff26.js → chunk-7ds14xsn.js} +1 -1
- package/dist/chunk-7f16ymjn.js +2 -0
- package/dist/{chunk-27fanfef.js → chunk-7gswcqtf.js} +3 -3
- package/dist/{chunk-yqy9fp4a.js → chunk-7kfp7jde.js} +1 -1
- package/dist/{chunk-ytgcvgf8.js → chunk-8zrv5a84.js} +2 -2
- package/dist/{chunk-h9h6hna7.js → chunk-97yd8erh.js} +1 -1
- package/dist/{chunk-1cjghpw3.js → chunk-a0attwe1.js} +2 -2
- package/dist/{chunk-my5t5tmx.js → chunk-a1cev1s1.js} +1 -1
- package/dist/{chunk-53xjmjva.js → chunk-afsy9158.js} +1 -1
- package/dist/{chunk-pk2nmy11.js → chunk-afwmnd3n.js} +2 -2
- package/dist/{chunk-2z9q9weh.js → chunk-am42axf7.js} +1 -1
- package/dist/{chunk-8sb1nv90.js → chunk-bmhyf2ch.js} +10 -10
- package/dist/{chunk-raznshc9.js → chunk-bsa8pxtc.js} +1 -1
- package/dist/{chunk-8fved33k.js → chunk-bsm13y1j.js} +1 -1
- package/dist/{chunk-61y14d8d.js → chunk-c2mvx2m8.js} +1 -1
- package/dist/chunk-c3xeaz9z.js +2 -0
- package/dist/{chunk-vhfngds8.js → chunk-c8zqb80j.js} +152 -152
- package/dist/{chunk-yk9xw83j.js → chunk-cb8w02r3.js} +1 -1
- package/dist/{chunk-wrc7fmfa.js → chunk-cmcgk4v3.js} +1 -1
- package/dist/chunk-cn74d92v.js +2 -0
- package/dist/{chunk-p26cry7t.js → chunk-cqp01pgs.js} +2 -2
- package/dist/chunk-d9gk60kk.js +2 -0
- package/dist/{chunk-yge0y55d.js → chunk-dfymexrx.js} +1 -1
- package/dist/{chunk-d28gqewj.js → chunk-dwjcmxez.js} +1 -1
- package/dist/{chunk-k5gxz3fv.js → chunk-efhjfdcf.js} +2 -2
- package/dist/{chunk-wm3ym3vp.js → chunk-erpeggpf.js} +1 -1
- package/dist/{chunk-2k16wj3k.js → chunk-fc1g65e0.js} +1 -1
- package/dist/{chunk-pgw0psw1.js → chunk-g3cyygvf.js} +1 -1
- package/dist/{chunk-kkxzsv3w.js → chunk-gcjr4mwg.js} +1 -1
- package/dist/chunk-gj9143v5.js +2 -0
- package/dist/{chunk-881468eg.js → chunk-gm0qg9jp.js} +1 -1
- package/dist/chunk-gm8k4z3y.js +2 -0
- package/dist/{chunk-e59fq6n5.js → chunk-gne68nyp.js} +1 -1
- package/dist/{chunk-mb2m7f5q.js → chunk-gwrrs1qh.js} +1 -1
- package/dist/chunk-h3w1y4q7.js +2 -0
- package/dist/{chunk-b3rykphz.js → chunk-hz6ydjjb.js} +1 -1
- package/dist/{chunk-t7w8a52q.js → chunk-jbgvge8d.js} +1 -1
- package/dist/{chunk-4aby62mm.js → chunk-jd9vb4f4.js} +1 -1
- package/dist/chunk-jhhp2d7n.js +2 -0
- package/dist/{chunk-f2xr3mfr.js → chunk-jwkmc175.js} +1 -1
- package/dist/{chunk-4cdex6q9.js → chunk-jzvw6a68.js} +1 -1
- package/dist/chunk-k14sz6cz.js +2 -0
- package/dist/chunk-k436y48r.js +2 -0
- package/dist/chunk-kcjm2ssn.js +2 -0
- package/dist/{chunk-habj6qnb.js → chunk-kcn1ay55.js} +1 -1
- package/dist/{chunk-c57dc9p8.js → chunk-m1kfk15w.js} +1 -1
- package/dist/{chunk-dews384p.js → chunk-meqcxfpr.js} +1 -1
- package/dist/chunk-mhra78zk.js +2 -0
- package/dist/{chunk-0yvz1800.js → chunk-mmw2qwsv.js} +1 -1
- package/dist/{chunk-vyk3bzxz.js → chunk-mnsaf11z.js} +1 -1
- package/dist/{chunk-g4yyd077.js → chunk-ms2kjpdt.js} +1 -1
- package/dist/chunk-mxg7s5dw.js +2 -0
- package/dist/{chunk-mykp2dwz.js → chunk-mywrt0dp.js} +1 -1
- package/dist/chunk-n8wt24c7.js +2 -0
- package/dist/chunk-nrg91hjc.js +2 -0
- package/dist/{chunk-26w2sdre.js → chunk-nxbje85a.js} +1 -1
- package/dist/chunk-pa2p2sqt.js +2 -0
- package/dist/{chunk-e0c8k4n1.js → chunk-peqad61h.js} +1 -1
- package/dist/chunk-pyn48ppw.js +2 -0
- package/dist/chunk-pztp3mtx.js +2 -0
- package/dist/{chunk-y38dwb99.js → chunk-qcf4506g.js} +1 -1
- package/dist/{chunk-c28ws2ep.js → chunk-qnx0eb8x.js} +1 -1
- package/dist/{chunk-0gmn8fwp.js → chunk-rgy2dsm8.js} +1 -1
- package/dist/{chunk-7bsr7h63.js → chunk-rkna71t2.js} +1 -1
- package/dist/chunk-t3n1prew.js +2 -0
- package/dist/{chunk-cq386y8q.js → chunk-tjhzxbxa.js} +1 -1
- package/dist/{chunk-mk6j4hhx.js → chunk-tp6wkx7g.js} +1 -1
- package/dist/chunk-tysvywa0.js +2 -0
- package/dist/{chunk-bkjzhve2.js → chunk-vqtffqs7.js} +1 -1
- package/dist/{chunk-h3by8gsp.js → chunk-wkn6st34.js} +1 -1
- package/dist/{chunk-zvapw5hj.js → chunk-ws11x247.js} +1 -1
- package/dist/{chunk-z6mphydy.js → chunk-wv9v9mj9.js} +1 -1
- package/dist/{chunk-2gr3wwxa.js → chunk-wx3kf6tm.js} +1 -1
- package/dist/{chunk-ft8cjgk8.js → chunk-x7h3br3t.js} +2 -2
- package/dist/chunk-x7q7bak8.js +2 -0
- package/dist/{chunk-z1ax712x.js → chunk-x8q2qek2.js} +7 -4
- package/dist/{chunk-9tg2x4eb.js → chunk-xgj1jw4p.js} +1 -1
- package/dist/chunk-xncr2s7j.js +2 -0
- package/dist/{chunk-g2vevtny.js → chunk-xt7bsyj7.js} +1 -1
- package/dist/{chunk-xptrceyd.js → chunk-xzkc36wt.js} +1 -1
- package/dist/{chunk-mhahh2e7.js → chunk-yjkaqxtc.js} +1 -1
- package/dist/{chunk-wcc30cjt.js → chunk-ys8sm556.js} +1 -1
- package/dist/{chunk-ex75w96f.js → chunk-z6xtb8fj.js} +1 -1
- package/dist/{chunk-5vccw7bd.js → chunk-zyb5gfr0.js} +1 -1
- package/dist/chunk-zzdng0t8.js +2 -0
- package/dist/cli.js +14 -14
- package/dist/client-script.d.ts +12 -0
- package/dist/client-script.js +22 -2
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/pwa.js +2 -2
- package/dist/ssg.js +2 -2
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-09g87hxr.js +0 -2
- package/dist/chunk-0tpfj8yx.js +0 -2
- package/dist/chunk-2mvr9dh8.js +0 -2
- package/dist/chunk-63zwsqfd.js +0 -2
- package/dist/chunk-6g5svgmn.js +0 -2
- package/dist/chunk-6pwwxxxk.js +0 -2
- package/dist/chunk-brhwe7w2.js +0 -2
- package/dist/chunk-dy3kfdyy.js +0 -2
- package/dist/chunk-ef47e7qf.js +0 -2
- package/dist/chunk-ek2m6bq8.js +0 -2
- package/dist/chunk-fczvfhac.js +0 -2
- package/dist/chunk-h4grn4hr.js +0 -2
- package/dist/chunk-hy5fyeea.js +0 -2
- package/dist/chunk-jh59wy0w.js +0 -2
- package/dist/chunk-kczw9gx1.js +0 -2
- package/dist/chunk-kswt770b.js +0 -2
- package/dist/chunk-kvjc8767.js +0 -2
- package/dist/chunk-m24sv872.js +0 -2
- package/dist/chunk-n80vvrf4.js +0 -2
- package/dist/chunk-ngggy0k6.js +0 -2
- package/dist/chunk-qde4nq96.js +0 -2
- package/dist/chunk-r90xbmaz.js +0 -2
- package/dist/chunk-sfdqbeva.js +0 -2
- package/dist/chunk-vq31pymd.js +0 -2
- package/dist/chunk-vv8yr1a0.js +0 -2
- package/dist/chunk-wdjyn3br.js +0 -2
- package/dist/chunk-wf9cmyj7.js +0 -2
- package/dist/chunk-xq95p9y3.js +0 -2
- package/dist/chunk-y4prkjq0.js +0 -2
- package/dist/chunk-ya97r0kh.js +0 -2
- package/dist/chunk-zq912qca.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ye as a}from"./chunk-wkn6st34.js";import"./chunk-x7h3br3t.js";import"./chunk-dvvx1wny.js";import"./chunk-66jvd29c.js";import"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{a as startProductionServer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ok as a,Pk as b,Qk as c,Rk as d,Sk as e}from"./chunk-m3a20mmb.js";import"./chunk-
|
|
2
|
+
import{Ok as a,Pk as b,Qk as c,Rk as d,Sk as e}from"./chunk-m3a20mmb.js";import"./chunk-5ep11kvc.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Te as a}from"./chunk-jzvw6a68.js";import"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{a as startInteractive};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Af as a,Bf as b,Cf as c,Df as d,Ef as e,Ff as f,Gf as g,Hf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-
|
|
2
|
+
import{Af as a,Bf as b,Cf as c,Df as d,Ef as e,Ff as f,Gf as g,Hf as h,If as i,Jf as j,Kf as k,Lf as l,Mf as m,Nf as n,Of as o,Pf as p,Qf as q}from"./chunk-zyb5gfr0.js";import"./chunk-5ep11kvc.js";export{h as resizeAndConvert,f as processImage,d as isSharpAvailable,m as isImageFile,e as isImageBackendAvailable,l as groupVariantsByFormat,o as getTotalSize,n as getMimeType,g as getImageMetadata,k as getFallbackVariant,i as generateSrcSet,j as generateSizes,p as formatSize,q as ImageProcessingError,a as DEFAULT_WIDTHS,c as DEFAULT_QUALITY,b as DEFAULT_FORMATS};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Pi as a,Qi as b}from"./chunk-6n0raqhh.js";import"./chunk-xwxdwqn9.js";import"./chunk-jd9vb4f4.js";import"./chunk-66jvd29c.js";import"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{a as getStoreScript,b as clearStoreCache};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ao as c,Bo as d,Co as e,Do as f,Eo as g,Fo as h,Go as i,Ho as j,Io as k,Jo as l,Ko as m,yo as a,zo as b}from"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{m as stripStxRuntimeImports,b as scanScriptTags,l as rewriteStxImportSpecifiers,j as processSignals,h as processScriptSetup,f as preEvalLiteralReactiveIfs,c as parseLoopExpression,d as hasSignalsSyntax,k as findMarkupIndexOutsideScripts,i as extractExports,g as convertSignalLoopsToAttributes,e as convertSignalDirectivesToAttributes,a as clearScriptScanCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-
|
|
2
|
+
import{l as a,m as b,n as c}from"./chunk-q9n5swx7.js";import"./chunk-5ep11kvc.js";export{c as updateContextTree,b as updateContextStoryFiles,a as createContext};
|
|
@@ -299,4 +299,4 @@ catch (error) {
|
|
|
299
299
|
}
|
|
300
300
|
})();
|
|
301
301
|
</script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
|
|
302
|
-
export{N as
|
|
302
|
+
export{N as iw,Q as jw,T as kw,V as lw,X as mw,Z as nw};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$v as
|
|
2
|
+
import{$v as F,Av as e,Bv as f,Cv as g,Dv as h,Ev as i,Fv as j,Gv as k,Hv as l,Iv as m,Jv as n,Kv as o,Lv as p,Mv as q,Nv as r,Ov as s,Pv as t,Qv as u,Rv as v,Sv as w,Tv as x,Uv as y,Vv as z,Wv as A,Xv as B,Yv as C,Zv as D,_v as E,aw as G,bw as H,cw as I,dw as J,fw as K,hw as L,wv as a,xv as b,yv as c,zv as d}from"./chunk-x8q2qek2.js";import"./chunk-5ep11kvc.js";L();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{fu as a,ju as b,ku as c,lu as d,mu as e,nu as f,ou as g,pu as h,qu as i}from"./chunk-c2mvx2m8.js";import"./chunk-5ep11kvc.js";export{a as webpHeaderHasAlpha,g as snapshotImageDelivery,b as setImageEncoderIdentity,i as prepareImageDelivery,e as isTransparentImage,h as installImageDelivery,c as imageEncoderIdentity,d as getImageDelivery,f as clearImageDeliveryCatalog};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$j as h,Uj as a,Vj as b,Wj as c,Xj as d,Yj as e,Zj as f,_j as g,ak as i,bk as j,ck as k,dk as l}from"./chunk-14eqdtex.js";import"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,l as hashFilePath,h as getServeClientAsset,f as getCachedSignalsRuntime,g as getCachedRouterScript,i as clearDevCaches,j as checkCache,k as cacheTemplate,e as __setSignalsGeneratorsForTest};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import y from"fs";import V from"path";var B=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useModel)\s*(?:<[^<>()]*>)?\s*\(/,X=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,D=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],g=3;function H(j,q){let J=V.resolve(V.dirname(q),j);for(let Q of D){let z=J+Q;try{if(y.statSync(z).isFile())return z}catch{}}return null}function K(j,q,J=0,Q=new Set){if(!q||J>=g)return!1;for(let z of j.matchAll(X)){let Z=H(z[1],q);if(!Z||Q.has(Z))continue;Q.add(Z);let $;try{$=y.readFileSync(Z,"utf8")}catch{continue}if(B.test($))return!0;if(K($,Z,J+1,Q))return!0}return!1}var Y=["batch","clearServerData","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refresh","registerStoresClient","setRouteParams","state","untrack","useAsync","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebouncedValue","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useModel","useMutation","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useTimeout","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"],R=["onMount","onDestroy"];function A(j="const",q=[],J){let Q=q.length?Y.filter((z)=>!q.includes(z)):Y;if(J!==void 0)Q=Q.filter((z)=>{let Z=z.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${Z}(?![\\w$])`).test(J)});return`${j} { ${Q.join(", ")} } = window.stx;`}var k=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"],E={useServerData:{category:"server-only",reason:"loads and serializes request-scoped data from <script server>; clients consume it through a keyed useFetch/useAsyncData."},redirect:{category:"server-only",reason:"returns an HTTP Response for <script server>/edge/build; use navigate() on the client."},useAsyncData:{category:"browser-composable",reason:"inlined on demand from src/composables when a script references it; reachable, not a bare global."},Teleport:{category:"compile-time-directive",reason:"template tag resolved by processTeleportDirectives; not a script callable."},StxModalBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; drive open/close from the modal store."},StxToastBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; push toasts via the toast store."},useForm:{category:"browser-composable",reason:"reactive form primitive; lives in src/composables/use-form.ts and is inlined on demand when a <script client> references it (#1846)."},defineForm:{category:"browser-composable",reason:"deprecated alias of useForm, kept for a minor (#1843). Same delivery path \u2014 inlined on demand from src/composables/use-form.ts."},validateFields:{category:"isomorphic-import",reason:"pure validation helper; import it directly, not auto-delivered to <script client> (per client-api-delivery.test.ts)."},validateField:{category:"isomorphic-import",reason:"singular pure validation helper; same explicit-import boundary as validateFields."}},x=Y.filter((j)=>!k.includes(j));function O(j){if(!j)return!1;return x.some((q)=>new RegExp(`\\b${q}\\s*(?:<[^>]*>)?\\s*\\(`).test(j))}var M=[/@if\s*=/,/@for\s*=/,/@show\s*=/,/@model\s*=/,/@bind:/,/@class\s*=/,/@style\s*=/,/\bx-data\s*=/,/\bstate\s*(?:<[^>]*>)?\s*\(/,/\bderived\s*(?:<[^>]*>)?\s*\(/,/\beffect\s*(?:<[^>]*>)?\s*\(/,/\bref\s*(?:<[^>]*>)?\s*\(/,/\bcomputed\s*(?:<[^>]*>)?\s*\(/,/\breactive\s*(?:<[^>]*>)?\s*\(/,/\bwatch\s*(?:<[^>]*>)?\s*\(/,/\bwatchEffect\s*(?:<[^>]*>)?\s*\(/,/\s:[a-z][\w-]*\s*=\s*["']/i,/\s:(?:if|else-if|else|for|show|text|html|model)\s*=/,/data-stx(?:-auto)?(?![-\w])/,/data-stx-scoped/],C=/\s@[a-z][\w.:-]*\s*=/i;function T(j,q){if(!j)return!1;let J=U(j);return F(J,q)}function F(j,q){if(M.some((J)=>J.test(j)))return!0;if(O(j))return!0;return P(j,q)}function P(j,q){if(!q)return!1;for(let J of j.matchAll(/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script\s*>/gi))if(K(J[1],q))return!0;return!1}function d(j,q){if(!j)return!1;let J=U(j);return C.test(J)||F(J,q)}var u=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function _(j){return u.includes(j.toLowerCase())}var G=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],b=["x-init","x-transition","x-effect","x-on"],p=[...G,...b];function c(){return`{${G.map((j)=>`'${j}':1`).join(",")}}`}var v=65536,S=4,w=new Map;function r(){w.clear()}function U(j){if(!j)return j;if(!j.includes("<!--")&&!/<(?:pre|code)\b/i.test(j))return j;let q=j.length>=v;if(q){let z=w.get(j);if(z!==void 0)return z}let J=(z)=>z.replace(/(<[^>]*>)|([^<]+)/g,(Z,$,W)=>$??" ".repeat(W.length)),Q=j.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/<!--[\s\S]*?-->/g,(z)=>" ".repeat(z.length));if(q){while(w.size>=S){let z=w.keys().next();if(z.done)break;w.delete(z.value)}w.set(j,Q)}return Q}
|
|
3
|
-
export{K as
|
|
3
|
+
export{K as ev,Y as fv,R as gv,A as hv,k as iv,E as jv,x as kv,O as lv,T as mv,d as nv,u as ov,_ as pv,G as qv,b as rv,p as sv,c as tv,r as uv,U as vv};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
function A(h){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;h=h.replace(q,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
|
|
3
3
|
`});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return h=h.replace(v,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__composables
|
|
4
4
|
`}),h}function B(h){return h.replace(/^import\s+[^'"]*?from\s*['"][^'"]+['"]\s*;?[ \t]*$/gm,"").replace(/^import\s+['"][^'"]+['"]\s*;?[ \t]*$/gm,"")}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as av,B as bv};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ue as a}from"./chunk-gm0qg9jp.js";import"./chunk-dvvx1wny.js";import"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{a as buildApp};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fm as e,
|
|
2
|
+
import{fm as e,go as f,ho as h,io as u,jo as l,ro as m}from"./chunk-c8zqb80j.js";import{nt as D}from"./chunk-fc1g65e0.js";import{fv as g}from"./chunk-tjhzxbxa.js";import JJ from"path";import C from"fs";import S from"path";function k(K,Z,$,J){let Q=0;for(let j=Z;j<K.length;j++)if(K[j]===$)Q++;else if(K[j]===J&&!(J===">"&&K[j-1]==="=")){if(--Q===0)return j}return-1}function WJ(K){let Z=D(K),$=0,J=0,Q=[];for(let j=0;j<Z.length;j++)if("([{".includes(Z[j]))$++;else if(")]}".includes(Z[j]))$--;else if(Z[j]===","&&$===0)Q.push(K.slice(J,j).trim()),J=j+1;return Q.push(K.slice(J).trim()),Q}function R(K,Z){let $=D(K),J=new RegExp(`\\b(?:${Z.map((Q)=>Q.replace(/[$]/g,"\\$&")).join("|")})\\s*(?=[<(])`,"g");for(let Q of $.matchAll(J)){let j=Q.index+Q[0].length,G="";if($[j]==="<"){let U=k($,j,"<",">");if(U<0)continue;G=K.slice(j+1,U),j=U+1;while(/\s/.test($[j]||"")&&j<$.length)j++}if($[j]!=="(")continue;let W=k($,j,"(",")");if(W>=0)return{type:G,args:WJ(K.slice(j+1,W))}}return null}var x=`
|
|
3
3
|
type __StxCtor<T> = T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends BooleanConstructor ? boolean : T extends ArrayConstructor ? unknown[] : T extends ObjectConstructor ? object : T extends readonly unknown[] ? __StxCtor<T[number]> : T extends abstract new (...args: any[]) => infer V ? V : unknown;
|
|
4
4
|
type __StxWiden<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T;
|
|
5
5
|
type __StxOption<T> = T extends { type: infer C } ? __StxCtor<C> : T extends { default: infer D } ? D extends (...args: any[]) => infer V ? V : __StxWiden<D> : __StxCtor<T>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bg as WJ,Dg as YJ,Fg as jJ,lg as ZJ,ng as g,pg as A,vg as n,yg as GJ}from"./chunk-
|
|
2
|
+
import{Bg as WJ,Dg as YJ,Fg as jJ,lg as ZJ,ng as g,pg as A,vg as n,yg as GJ}from"./chunk-x7h3br3t.js";import{Ig as $J}from"./chunk-dvvx1wny.js";import{zl as XJ}from"./chunk-66jvd29c.js";import{wo as h}from"./chunk-c8zqb80j.js";import{yt as e}from"./chunk-7gswcqtf.js";import{Fu as QJ,Ju as i,Lu as p}from"./chunk-7080py5f.js";import{Cv as KJ,dw as l,hw as VJ}from"./chunk-x8q2qek2.js";import{rw as DJ}from"./chunk-5ep11kvc.js";import JJ from"fs";import k from"path";var{serve:wJ}=globalThis.Bun;VJ();import y from"zlib";import{promisify as a}from"util";var IJ=a(y.brotliCompress),OJ=a(y.gzip),UJ=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],BJ=["text/event-stream","multipart/x-mixed-replace"],_J=1024;function zJ(K){if(!K)return!1;let J=K.toLowerCase();if(BJ.some((G)=>J.startsWith(G)))return!1;return UJ.some((G)=>J.startsWith(G))}function FJ(K){let J=new Map;for(let G of K.split(",")){let[Z,...W]=G.trim().split(";"),O=Z.trim().toLowerCase();if(!O)continue;let U=1;for(let B of W){let w=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(B);if(!w)continue;let F=Number.parseFloat(w[1]);if(Number.isFinite(F))U=F}J.set(O,U)}return J}function LJ(K){if(!K)return null;let J=FJ(K),G=J.get("*"),Z=(W)=>J.get(W)??G??0;if(Z("br")>0)return"br";if(Z("gzip")>0)return"gzip";return null}async function t(K,J,G={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!zJ(J.headers.get("content-type")))return J;let Z=LJ(K.headers.get("accept-encoding"));if(!Z)return J;let W;try{W=new Uint8Array(await J.arrayBuffer())}catch{return J}let O=()=>new Response(W,{status:J.status,statusText:J.statusText,headers:s(J.headers)});if(W.length<(G.threshold??_J))return O();try{let U=Z==="br"?await IJ(W,{params:{[y.constants.BROTLI_PARAM_QUALITY]:G.quality??5,[y.constants.BROTLI_PARAM_SIZE_HINT]:W.length}}):await OJ(W);if(U.length>=W.length)return O();let B=s(J.headers);return B.set("Content-Encoding",Z),B.set("Content-Length",String(U.length)),new Response(U,{status:J.status,statusText:J.statusText,headers:B})}catch{return O()}}function s(K){let J=new Headers(K),G=J.get("Vary");if(!G)return J.set("Vary","Accept-Encoding"),J;if(!G.split(",").some((W)=>W.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${G}, Accept-Encoding`);return J}class d{now;entries=new e(1000,{maxBytes:33554432,sizeOf:(K)=>K.body.byteLength+JSON.stringify(K.headers).length*2});pending=new Map;generation=0;constructor(K=Date.now){this.now=K}invalidate(K){this.generation++,this.pending.clear();for(let J of Array.from(this.entries.keys()))if(K===void 0||this.entries.get(J)?.path===K)this.entries.delete(J)}async respond(K,J,G){let Z,W=async()=>{let X=Z??await G();return X.headers.set("Cache-Control","private, no-store"),X.headers.set("Vary",A(X.headers.get("Vary")).Vary),X};if(!J||K.method!=="GET"||K.headers.has("Cookie")||K.headers.has("Authorization")||K.headers.has("Range"))return W();let O=new URL(K.url),U=`${O.origin}${O.pathname}${O.search}|${g(K)?"fragment":"document"}`,B=this.entries.get(U),w=(X)=>{let T=new Headers(X.headers);return T.set("Cache-Control","private, no-store"),T.set("Age",String(Math.max(0,Math.floor((this.now()-X.created)/1000)))),new Response(X.body.slice(0),{headers:T})},F=B?(this.now()-B.created)/1000:1/0;if(B&&F<J.maxAge)return w(B);let S=this.generation,q=async()=>{let X=await G();Z=X;let T=(X.headers.get("Vary")??"").toLowerCase().split(",").map((L)=>L.trim()).filter(Boolean);if(X.status!==200||X.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(X.headers.get("Cache-Control")??"")||T.some((L)=>L!=="x-stx-router"&&L!=="accept-encoding"))return null;let M=await X.clone().arrayBuffer();if(M.byteLength>1048576)return null;X.headers.set("Vary",A(X.headers.get("Vary")).Vary);let Q={body:M,headers:Array.from(X.headers.entries()),created:this.now(),path:O.pathname};if(this.generation===S)this.entries.set(U,Q);return Q},H=this.pending.get(U);if(!H){if(this.pending.size>=1000)return W();H=q().finally(()=>{if(this.pending.get(U)===H)this.pending.delete(U)}),this.pending.set(U,H)}if(B&&F<J.maxAge+(J.swr??0))return H.catch(()=>{}),w(B);let x=await H;return x?w(x):W()}}var HJ={".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 uJ(K={}){let J=k.resolve(K.outputDir||".output"),G=K.port??3000,Z=GJ(J);if(!Z)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Z.routes.length} routes...`);let W=$J(Z.routeRules),O=new d,U=XJ(J,Z.apiRoutes??[]),B=Bun.file(k.join(J,"server/runtime-config.json")),w=K.runtimeConfig??(await B.exists()?await B.json():void 0),F=w?i(w):void 0,S=new Map,q=new Map,H=new Map,x=new Map;for(let Q of Z.routes)try{let L=k.join(J,Q.compiledPath),Y=JSON.parse(await Bun.file(L).text());if(F)Y.html=p(Y.html,F);S.set(Q.pattern,Y),H.set(Q.pattern,l(Y.html)),x.set(Q.pattern,h(Y.html));let C=k.join(J,Q.fragmentPath);if(await Bun.file(C).exists()){let P=await Bun.file(C).text();q.set(Q.pattern,F?p(P,F):P)}}catch(L){console.warn(`[stx] Failed to load route ${Q.pattern}:`,L)}let X=new Map,T=[];for(let Q of Z.routes)if(Q.hasParams){let{regex:L,params:Y}=KJ(Q.pattern);T.push({regex:L,route:Q,paramNames:Y})}else X.set(Q.pattern,Q);let M=wJ({port:G,async fetch(Q){return t(Q,await QJ(F??i(),async()=>{let Y=new URL(Q.url).pathname;if(K.onRequest){let j=await K.onRequest(Q);if(j)return j}if(K.apiRouter){let j=await K.apiRouter.handleRequest(Q);if(j.status!==404)return j}if(K.apiRoutes?.[Y])return K.apiRoutes[Y](Q);let C=await U(Q);if(C)return C;if((Q.method==="GET"||Q.method==="HEAD")&&Y!=="/"){let j=k.resolve(J,"public"),_;try{_=decodeURIComponent(Y)}catch{_=Y}if(!_.includes("\x00")){let I=k.resolve(j,`.${_}`);if(I===j||I.startsWith(`${j}${k.sep}`))try{if(JJ.existsSync(I)&&JJ.statSync(I).isFile()){let z=k.extname(I).toLowerCase(),E=HJ[z]||"application/octet-stream",v=Y.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(Y);return new Response(Bun.file(I),{headers:{"Content-Type":E,"Cache-Control":v?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let P=g(Q),D=null,o={};if(D=X.get(Y)||null,!D)for(let{regex:j,route:_,paramNames:I}of T){let $=Y.match(j);if($){D=_,I.forEach((z,E)=>{o[z]=$[E+1]});break}}if(!D){let j=X.get("/404")||null;if(j){let _=S.get(j.pattern);if(_)return new Response(_.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}let R=W(Y),r=Object.keys(R).length>0;return O.respond(Q,R.cache,async()=>{let j=S.get(D.pattern);if(P&&Q.method==="GET"&&j&&!j.hasServerScripts&&Object.keys(j.placeholders).length===0){let $=q.get(D.pattern);if($){let z=H.get(D.pattern);return new Response($,{status:j.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...x.has(D.pattern)?{"X-STX-Runtime":x.get(D.pattern)?"true":"false"}:{},...z?{"X-STX-Layout":z.layout,"X-STX-Layout-Group":z.group}:{},...A(),...R.cache?{}:{"Cache-Control":ZJ}}})}}let _=WJ(Q.method),I=S.get(D.pattern);if(!I){let $=X.get("/500")||null;if($){let z=S.get($.pattern);if(z)return new Response(z.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(D.prerendered&&_)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!_&&!I.hasServerScripts&&Object.keys(I.placeholders).length===0)return new Response(I.html,{status:I.status??200,headers:{"Content-Type":"text/html",...A(),"Cache-Control":"public, max-age=60"}});try{let{html:$,boundaries:z,redirect:E,cookies:v,status:m,headers:c}=await jJ(I,{params:o,request:Q,method:Q.method,__stx_strict_hydration:r,__stx_runtime_config:F});if(E)return YJ(E,v,c);if(z&&z.length>0){let{renderStreamingPage:N,streamToResponse:u}=await import("./chunk-gm8k4z3y.js"),b=new Headers({...A(),...c,"Cache-Control":"private, no-store"});for(let f of v??[])b.append("Set-Cookie",f);if(P&&!_){let f=l($);b.set("X-STX-Fragment","true"),b.set("X-STX-Runtime",h($)?"true":"false"),b.set("X-STX-Layout",f.layout),b.set("X-STX-Layout-Group",f.group)}return u(N(P&&!_?n($,Z.routerContainer||"main"):$,z,{timeoutMs:30000}),{status:m??I.status??200,headers:b})}let V=new Headers({"Content-Type":"text/html",...A(),...R.cache?{}:{"Cache-Control":"private, no-store"}});for(let N of v??[])V.append("Set-Cookie",N);for(let[N,u]of Object.entries(c??{}))V.set(N,u);if(V.set("Vary",A(V.get("Vary")).Vary),P&&!_){let N=l($);return V.set("X-STX-Fragment","true"),V.set("X-STX-Runtime",h($)?"true":"false"),V.set("X-STX-Layout",N.layout),V.set("X-STX-Layout-Group",N.group),new Response(n($,Z.routerContainer||"main"),{status:m??I.status??200,headers:V})}return new Response($,{status:m??I.status??200,headers:V})}catch($){if(console.error(`[stx] Hydration error for ${Y}:`,$),r)return new Response("Internal Server Error",{status:500});return new Response(I.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${M.port}`),console.log(`[stx] Serving ${Z.routes.length} routes (${S.size} pre-loaded)`),{port:M.port,stop:()=>{O.invalidate(),M.stop()},invalidate:(Q)=>O.invalidate(Q)}}
|
|
3
3
|
export{zJ as Ve,LJ as We,t as Xe,uJ as Ye};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Al as f,Bl as g,vl as a,wl as b,xl as c,yl as d,zl as e}from"./chunk-
|
|
2
|
+
import{Al as f,Bl as g,vl as a,wl as b,xl as c,yl as d,zl as e}from"./chunk-66jvd29c.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-7080py5f.js";import"./chunk-x8q2qek2.js";import"./chunk-5ep11kvc.js";export{e as productionApiDispatcher,g as isServerApiSource,b as generateApiTypes,a as discoverServerApi,f as createServerApi,d as createApiDispatcher,c as buildServerApi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Re as a,Se as b}from"./chunk-2ver2s2y.js";import"./chunk-
|
|
2
|
+
import{Re as a,Se as b}from"./chunk-2ver2s2y.js";import"./chunk-5ep11kvc.js";export{b as captureScreenshots,a as captureScreenshot};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-
|
|
2
|
+
import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-5ep11kvc.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fm as R,Nm as k,No as l,So as T,Yp as m,bn as d,cn as c,xm as P,ym as D}from"./chunk-c8zqb80j.js";import{Gt as S,It as v}from"./chunk-7gswcqtf.js";import{ew as XJ,gw as YJ,hw as ZJ}from"./chunk-x8q2qek2.js";import{ow as QJ,rw as q}from"./chunk-5ep11kvc.js";var n=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function r(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(n.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var s=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function y(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=v(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=s.exec(j);if(F){let K=r(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function a(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function C(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function t(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function e(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=t(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=a(J),Z;while((Z=X.exec(J))!==null){if(C(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||o.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!e(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(C(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var wJ="X-STX-Router",NJ="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function JJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:JJ(J,"X-STX-Router")}}import E from"path";XJ();var $J="stx-page-head:",UJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,O=null;function WJ(){if(O!==null)return O;try{let{getRouterScript:J}=(ZJ(),QJ(YJ));O=`<script>${J()}</script>`}catch{O=""}return O}async function MJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function bJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=y(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:I}=await import("./chunk-x7q7bak8.js"),_=await I(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let A=await B(K,z,J,{...N,..._,...Y},new Set),H=A.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:A.substring(0,H),afterSlot:A.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function PJ(J,Y,Q){let X,$="",Z=Y.match(UJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=WJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -26,5 +26,5 @@ ${W}
|
|
|
26
26
|
`));if($.length>0)N.push($.join(`
|
|
27
27
|
`));if(G.length>0)N.push(G.join(`
|
|
28
28
|
`));return N.push(K),N.join(`
|
|
29
|
-
`)}import M from"fs";import h from"path";function CJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function xJ(J,Y){let Q=h.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function fJ(J){let Y=h.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function FJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function p(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!FJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await KJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=GJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function GJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function hJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function sJ(J,Y={}){return(await i(J,Y)).html}async function oJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await i(J,Y),U=d(X),W=c(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-
|
|
29
|
+
`)}import M from"fs";import h from"path";function CJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function xJ(J,Y){let Q=h.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function fJ(J){let Y=h.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function FJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function p(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!FJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await KJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=GJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function GJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function hJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function sJ(J,Y={}){return(await i(J,Y)).html}async function oJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await i(J,Y),U=d(X),W=c(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-gm8k4z3y.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-n8wt24c7.js"),{defaultConfig:B}=await import("./chunk-4partaqt.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},I=Object.keys(K).map((z)=>({id:z,render:async()=>{let A=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:A},J.sourceFile,N,new Set)}})),_=new Set(I.map((z)=>z.id));F=[...(F||[]).filter((z)=>!_.has(z.id)),...I]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function i(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!D(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await p(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=l(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!D(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?R(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(P(J.html,Z)),context:Q,cookies:X.cookies}}async function aJ(J,Y={}){if(!J.hasServerScripts&&!D(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!D(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?R(String(U)):"")}catch{X.set($,"")}return P(J.fragment,X)}
|
|
30
30
|
export{r as gg,y as hg,t as ig,x as jg,wJ as kg,NJ as lg,AJ as mg,g as ng,JJ as og,IJ as pg,MJ as qg,bJ as rg,PJ as sg,jJ as tg,RJ as ug,kJ as vg,CJ as wg,xJ as xg,fJ as yg,b as zg,KJ as Ag,FJ as Bg,p as Cg,hJ as Dg,sJ as Eg,oJ as Fg,aJ as Gg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as Wl,$a as _n,$b as jp,$c as jq,$d as jr,A as Gk,Aa as kn,Ab as Eo,Ac as Kp,Ad as Kq,Ae as Qr,B as Hk,Ba as ln,Bb as Fo,Bc as Lp,Bd as Lq,Be as Rr,C as Ik,Ca as yn,Cb as Go,Cc as Mp,Cd as Mq,Ce as Sr,D as Jk,Da as zn,Db as Ho,Dc as Np,Dd as Nq,De as Tr,E as zl,Ea as An,Eb as Io,Ec as Op,Ed as Oq,Ee as Ur,F as Al,Fa as Bn,Fb as Jo,Fc as Pp,Fd as Pq,Fe as Vr,G as Bl,Ga as Cn,Gb as Ko,Gc as Qp,Gd as Qq,Ge as Wr,H as Cl,Ha as Dn,Hb as Lo,Hc as Rp,Hd as Rq,He as Xr,I as Dl,Ia as Hn,Ib as Mo,Ic as Sp,Id as Sq,Ie as Yr,J as El,Ja as In,Jb as No,Jc as Tp,Jd as Tq,Je as Zr,K as Fl,Ka as Jn,Kb as Oo,Kc as Up,Kd as Uq,Ke as _r,L as Gl,La as Kn,Lb as Po,Lc as Vp,Ld as Vq,M as Hl,Ma as Ln,Mb as Qo,Mc as Wp,Md as Wq,N as Il,Na as Mn,Nb as Xo,Nc as Xp,Nd as Xq,O as Jl,Oa as Nn,Ob as Yo,Oc as Yp,Od as Yq,P as Kl,Pa as On,Pb as Zo,Pc as Zp,Pd as Zq,Q as Ll,Qa as Pn,Qb as _o,Qc as _p,Qd as _q,R as Ml,Ra as Qn,Rb as $o,Rc as $p,Rd as $q,S as Nl,Sa as Rn,Sb as ap,Sc as aq,Sd as ar,T as Ol,Ta as Sn,Tb as bp,Tc as bq,Td as br,U as Pl,Ua as Tn,Ub as cp,Uc as cq,Ud as cr,V as Ql,Va as Un,Vb as dp,Vc as dq,Vd as dr,W as Rl,Wa as Vn,Wb as ep,Wc as eq,Wd as er,X as Sl,Xa as Wn,Xb as fp,Xc as fq,Xd as fr,Y as Tl,Ya as Xn,Yb as gp,Yc as gq,Yd as gr,Z as Ul,Za as Yn,Zb as hp,Zc as hq,Zd as hr,_ as Vl,_a as Zn,_b as ip,_c as iq,_d as ir,aa as Xl,ab as $n,ac as kp,ad as kq,ae as kr,ba as Yl,bb as ao,bc as lp,bd as lq,be as rr,ca as Zl,cb as bo,cc as mp,cd as mq,ce as sr,da as _l,db as co,dc as np,dd as nq,de as tr,ea as $l,eb as eo,ec as op,ed as oq,ee as ur,fa as am,fb as fo,fc as pp,fd as pq,fe as vr,ga as bm,gb as go,gc as qp,gd as qq,ge as wr,ha as cm,hb as ho,hc as rp,hd as rq,he as xr,ia as dm,ib as io,ic as sp,id as sq,ie as yr,ja as em,jb as jo,jc as tp,jd as tq,je as zr,ka as fm,kb as ko,kc as up,kd as uq,ke as Ar,la as gm,lb as lo,lc as vp,ld as vq,le as Br,ma as hm,mb as mo,mc as wp,md as wq,me as Cr,na as im,nb as po,nc as xp,nd as xq,ne as Dr,o as a,oa as jm,ob as qo,oc as yp,od as yq,oe as Er,p as rk,pa as _m,pb as ro,pc as zp,pd as zq,pe as Fr,q as sk,qa as $m,qb as so,qc as Ap,qd as Aq,qe as Gr,r as tk,ra as an,rb as uo,rc as Bp,rd as Bq,re as Hr,s as uk,sa as bn,sb as vo,sc as Cp,sd as Cq,se as Ir,t as vk,ta as cn,tb as wo,tc as Dp,td as Dq,te as Jr,u as wk,ua as dn,ub as xo,uc as Ep,ud as Eq,ue as Kr,v as xk,va as en,vb as zo,vc as Fp,vd as Fq,ve as Lr,w as yk,wa as fn,wb as Ao,wc as Gp,wd as Gq,we as Mr,x as zk,xa as gn,xb as Bo,xc as Hp,xd as Hq,xe as Nr,y as Ek,ya as hn,yb as Co,yc as Ip,yd as Iq,ye as Or,z as Fk,za as jn,zb as Do,zc as Jp,zd as Jq,ze as Pr}from"./chunk-bmhyf2ch.js";import{Le as Ro,Me as So,Ne as To,Oe as Uo,Pe as Vo,Qe as Wo}from"./chunk-jbgvge8d.js";import{Re as no,Se as oo}from"./chunk-2ver2s2y.js";import{Te as to}from"./chunk-jzvw6a68.js";import{Ue as Zm}from"./chunk-gm0qg9jp.js";import{Ve as En,We as Fn,Xe as Gn,Ye as yo}from"./chunk-wkn6st34.js";import{$e as Mk,Ze as Kk,_e as Lk,af as Nk,bf as Ok,cf as Pk,df as Qk,ef as Rk,ff as Sk,gf as Tk,hf as Uk,if as Vk,jf as Wk,kf as Xk,lf as Yk}from"./chunk-ym3r8ktq.js";import{mf as nl,nf as ol,of as pl,pf as ql,qf as rl,rf as sl,sf as tl,tf as ul,uf as vl,vf as wl,wf as xl,xf as yl}from"./chunk-7kfp7jde.js";import{yf as ll,zf as ml}from"./chunk-xt7bsyj7.js";import{Af as Zk,Bf as _k,Cf as $k,Df as al,Ef as bl,Ff as cl,Gf as dl,If as el,Jf as fl,Kf as gl,Lf as hl,Mf as il,Nf as jl,Qf as kl}from"./chunk-zyb5gfr0.js";import{Rf as Gm,Sf as Hm,Tf as Im,Uf as Jm,Vf as Mm,Wf as Ym}from"./chunk-45jak73k.js";import{Xf as Km,_f as Lm}from"./chunk-vqtffqs7.js";import{Ag as Rm,Bg as Sm,Cg as Tm,Dg as Um,Eg as Vm,Fg as Wm,Gg as Xm,gg as km,hg as lm,ig as mm,jg as nm,kg as om,lg as pm,mg as qm,ng as rm,og as sm,pg as tm,qg as um,rg as vm,sg as wm,tg as xm,ug as ym,vg as zm,wg as Nm,xg as Om,yg as Pm,zg as Qm}from"./chunk-x7h3br3t.js";import{Hg as Am,Ig as Bm}from"./chunk-dvvx1wny.js";import{Jg as mn,Kg as nn,Lg as on,Mg as pn,Ng as qn,Og as rn,Pg as sn,Qg as tn,Rg as un,Sg as vn,Tg as wn,Ug as xn}from"./chunk-xz3evxqp.js";import{Vg as bi,Wg as ci,Xg as di,Yg as ei,Zg as fi,_g as gi}from"./chunk-hz6ydjjb.js";import{$g as vj,ah as wj,bh as xj,fh as yj,gh as zj,hh as Aj}from"./chunk-3cba0xw5.js";import{ih as Gj,jh as Hj,kh as Ij,lh as Jj,mh as Kj,nh as Lj,oh as Mj,ph as Nj,qh as Oj,rh as Pj,sh as Qj}from"./chunk-jwkmc175.js";import{Ah as rj,Bh as sj,Ch as tj,Dh as uj,th as lj,uh as mj,vh as nj,wh as oj,xh as pj,zh as qj}from"./chunk-vd5xvsnv.js";import{Eh as gk,Gh as hk}from"./chunk-64djh88a.js";import{Mh as Eh,Nh as Fh,Oh as Gh,Ph as Hh,Qh as Ih,Rh as Jh,Sh as Kh,Th as Lh,Uh as Mh,Vh as Nh,Wh as Oh,Xh as Ph,Yh as Qh,Zh as Rh}from"./chunk-9368t9jm.js";import{$h as Sh,ai as Th,bi as Uh,ci as Vh}from"./chunk-5tefa8qb.js";import{hi as Wh}from"./chunk-mwh3ymwc.js";import{ii as _g}from"./chunk-fqq5k9ve.js";import{ji as $g,ki as ah}from"./chunk-ya5m5vbn.js";import{li as bh,mi as ch,ni as dh,oi as eh,pi as fh,qi as gh}from"./chunk-y4nzmkea.js";import{ri as hh,si as ih,ti as jh,ui as kh,vi as lh}from"./chunk-7kw3grq5.js";import{Ai as qh,wi as mh,xi as nh,yi as oh,zi as ph}from"./chunk-c79nfdyj.js";import{Bi as rh,Ci as sh,Di as th,Ei as uh,Fi as vh,Gi as wh,Hi as xh}from"./chunk-ej8mv2k6.js";import{Ii as yh,Ji as zh,Ki as Ah,Li as Bh,Mi as Ch,Ni as Dh}from"./chunk-cr8v8k53.js";import{Pi as Xg,Qi as Yg}from"./chunk-6n0raqhh.js";import{Ti as Zg}from"./chunk-cmcgk4v3.js";import"./chunk-xwxdwqn9.js";import{$i as Ie,Xi as Ee,Yi as Fe,Zi as Ge,_i as He,aj as Je,bj as Ke,cj as Le,dj as Me,ej as Ne,fj as Oe,gj as Pe,hj as Qe,ij as Re}from"./chunk-m1kfk15w.js";import{jj as gf,kj as hf,lj as jf,mj as kf,nj as lf,oj as mf,pj as nf,qj as of,rj as pf,sj as qf,tj as rf,uj as sf,vj as tf,wj as uf,xj as vf,yj as wf,zj as xf}from"./chunk-289vztwy.js";import{Gj as Ue,Hj as Ve,Ij as We,Jj as Xe,Kj as Ye,Lj as Ze,Mj as _e,Nj as $e,Oj as af,Pj as bf,Qj as cf,Rj as df,Sj as ef,Tj as ff}from"./chunk-t41aaehf.js";import{$j as Ff,Uj as yf,Vj as zf,Wj as Af,Xj as Bf,Yj as Cf,Zj as Df,_j as Ef,ak as Gf,bk as Hf,ck as If,dk as Jf}from"./chunk-14eqdtex.js";import{Ak as or,Bk as pr,Ck as qr,xk as lr,yk as mr,zk as nr}from"./chunk-efhjfdcf.js";import{Dk as Ak,Ek as Bk,Fk as Ck,Gk as Dk,Hk as Cm,Ik as Dm,Jk as Em,Kk as Fm}from"./chunk-mmw2qwsv.js";import"./chunk-09zjty4k.js";import"./chunk-jd9vb4f4.js";import{Al as _b,vl as Yb,wl as Zb}from"./chunk-66jvd29c.js";import{$m as _c,$n as oe,$o as Tf,$p as Tg,$q as gj,Am as rc,An as zd,Ap as sg,Aq as Hi,Ar as ik,Bm as sc,Bn as Ad,Bp as tg,Bq as Ii,Br as jk,Cl as xa,Cm as tc,Cn as Bd,Cp as ug,Cq as Ji,Cr as kk,Dl as ya,Dm as uc,Dn as Cd,Dp as vg,Dq as Ki,Dr as lk,El as za,Em as vc,En as Dd,Ep as wg,Eq as Li,Er as mk,Fl as Aa,Fm as wc,Fn as Ed,Fp as xg,Fq as Mi,Fr as nk,Gl as Ba,Gm as xc,Gn as Fd,Gp as yg,Gq as Ni,Gr as ok,Hl as Ca,Hm as yc,Hn as Gd,Hp as zg,Hq as Oi,Hr as pk,Il as Da,Im as zc,In as Hd,Ip as Ag,Iq as Pi,Ir as qk,Jl as Ea,Jm as Ac,Jn as Id,Jp as Bg,Jq as Qi,Kl as Fa,Km as Bc,Kn as Jd,Kp as Cg,Kq as Ri,Ll as Ga,Lm as Cc,Ln as Kd,Lp as Dg,Lq as Si,Ml as Ha,Mm as Dc,Mn as Ld,Mo as Lf,Mp as Eg,Mq as Ti,Nl as Ia,Nm as Ec,Nn as Md,Np as Fg,Nq as Ui,Ol as Ja,Om as Fc,On as Nd,Op as Gg,Oq as Vi,Pl as Ka,Pm as Pc,Pn as Od,Pp as Hg,Pq as Wi,Ql as La,Qm as Qc,Qn as Pd,Qp as Ig,Qq as Xi,Rl as Ma,Rm as Rc,Rn as Qd,Rp as Jg,Rq as Yi,Sl as Na,Sm as Sc,Sn as Rd,So as Mf,Sp as Kg,Sq as Zi,Tl as Oa,Tm as Tc,Tn as ge,Tp as Lg,Tq as _i,Ul as ib,Um as Uc,Un as he,Uo as Nf,Up as Mg,Uq as $i,Vl as jb,Vm as Vc,Vn as ie,Vp as Ng,Vq as aj,Wl as kb,Wn as je,Wo as Of,Wp as Og,Wq as bj,Xl as lb,Xm as Wc,Xn as ke,Xo as Pf,Xp as Pg,Xq as cj,Yl as mb,Ym as Xc,Yn as le,Yo as Qf,Yp as Qg,Yq as dj,Zl as nb,Zm as Yc,Zn as me,Zo as Rf,Zp as Rg,Zq as ej,_m as Zc,_n as ne,_o as Sf,_p as Sg,_q as fj,am as Fb,an as $c,ao as pe,ap as Uf,aq as Ug,ar as hj,bm as Gb,bn as ad,bo as qe,bp as Vf,bq as Vg,br as ij,cm as Hb,cn as bd,co as re,cp as Wf,cq as Wg,cr as jj,dm as Ib,dn as cd,do as se,dp as Xf,dq as Xh,dr as kj,em as Jb,en as dd,eo as te,ep as Yf,eq as Yh,er as Bj,fm as Nb,fn as ed,fp as Zf,fq as Zh,fr as Cj,gm as Ob,gn as fd,gp as _f,gq as _h,gr as Dj,hm as Pb,hn as gd,hp as $f,hq as $h,hr as Ej,im as $b,in as hd,ip as ag,iq as ai,ir as Fj,jm as ac,jn as id,jp as bg,jq as hi,jr as Rj,km as bc,kn as jd,ko as xe,kp as cg,kq as ii,kr as Sj,lm as cc,ln as kd,lo as ye,lp as dg,lq as ji,lr as Tj,mm as dc,mn as ld,mo as ze,mp as eg,mq as ki,mr as Uj,nm as ec,nn as md,no as Ae,np as fg,nq as li,nr as Vj,om as fc,on as nd,oo as Be,op as gg,oq as mi,or as Wj,pm as gc,pn as od,po as Ce,pp as hg,pq as ni,pr as Xj,qm as hc,qn as pd,qo as De,qp as ig,qq as oi,qr as Yj,rm as ic,rn as qd,rp as jg,rq as pi,rr as Zj,sm as jc,sn as rd,sp as kg,sq as qi,sr as _j,tm as kc,tn as sd,tp as lg,tq as ri,tr as $j,um as lc,un as td,uo as Se,up as mg,uq as si,ur as ak,vm as mc,vn as ud,vo as Te,vp as ng,vq as ti,vr as bk,wm as nc,wn as vd,wp as og,wq as ui,wr as ck,xm as oc,xn as wd,xo as Kf,xp as pg,xq as vi,xr as dk,ym as pc,yn as xd,yp as qg,yq as wi,yr as ek,zm as qc,zn as yd,zp as rg,zq as xi,zr as fk}from"./chunk-c8zqb80j.js";import{$r as t,$s as ma,Bs as M,Cs as N,Ds as O,Es as P,Fs as Q,Gs as R,Hs as S,Is as T,Jr as b,Js as U,Kr as c,Ks as V,Lr as d,Ls as W,Mr as e,Ms as X,Nr as f,Ns as Y,Or as g,Os as Z,Pr as h,Ps as _,Qr as i,Qs as $,Rr as j,Rs as aa,Sr as k,Ss as ba,Tr as l,Ts as ca,Ur as m,Us as da,Vr as n,Vs as ea,Wr as o,Ws as fa,Xr as p,Xs as ia,Yr as q,Ys as ja,Zr as r,Zs as ka,_r as s,_s as la,as as u,at as na,bs as v,bt as oa,cs as w,ct as pa,ds as x,dt as qa,es as y,et as ra,fs as z,ft as sa,gs as A,gt as ta,hs as B,ht as ua,is as C,it as va,js as D,jt as wa,ks as E,ls as F,ms as G,ns as H,os as I,ps as J,qs as K,rs as L}from"./chunk-cqp01pgs.js";import{kt as ga,lt as ha}from"./chunk-1czvb2wx.js";import{mt as Kb,nt as Lb,ot as Mb}from"./chunk-fc1g65e0.js";import{pt as yi,qt as zi,rt as Ai,st as Bi,tt as Ci,ut as Di,vt as Ei,wt as Fi,xt as Gi}from"./chunk-3wvdm033.js";import{Pt as Gc,Qt as Hc,Rt as Ic,St as Jc,Tt as Kc,Vt as Lc,cu as Mc,du as Nc,eu as Oc}from"./chunk-7gswcqtf.js";import{lu as ue,nu as ve,qu as we}from"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import{Au as Tb,Bu as Ub,Cu as Vb,xu as Qb,yu as Rb,zu as Sb}from"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import{Hu as Wb,Iu as Xb}from"./chunk-7080py5f.js";import{$u as fe,Mu as Sd,Nu as Td,Ou as Ud,Pu as Vd,Qu as Wd,Ru as Xd,Su as Yd,Tu as Zd,Uu as _d,Vu as $d,Wu as ae,Xu as be,Yu as ce,Zu as de,_u as ee}from"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import{fv as ob,gv as pb,hv as qb,iv as rb,jv as sb,kv as tb,lv as ub,mv as vb,nv as wb,ov as xb,pv as yb,qv as zb,rv as Ab,sv as Bb,tv as Cb,uv as Db,vv as Eb}from"./chunk-tjhzxbxa.js";import{$v as eb,Av as Qa,Dv as Ra,Iv as Sa,Jv as Ta,Pv as Ua,Qv as Va,Rv as Wa,Sv as Xa,Tv as Ya,Uv as Za,Vv as _a,Wv as $a,Xv as ab,Yv as bb,Zv as cb,_v as db,aw as fb,bw as gb,dw as hb,zv as Pa}from"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{Uk as writeNetlifyConfig,Om as writeManifest,xl as writeImageManifest,ep as wrapComponentForHMR,Nr as withDefaults,fk as webComponentDirectiveHandler,Vp as watermark,Xq as watchViews,Hl as watchMultiple,Il as watchEffect,Gl as watch,Be as warmImagePlaceholders,Vl as waitForStore,X as waitForLocale,So as virtualPathFor,Uj as videoDirective,G as validators,Rr as validated,re as validateValueEnhanced,Yh as validateTemplate,Am as validateRouteRules,_p as validateParams,se as validateFormEnhanced,Mq as validateFile,ne as validateFields,me as validateField,_h as validateDirective,Md as validateCspDirectives,nk as validateConfig,$m as validateComponentScripts,yn as validateComponentProps,Wg as validateClientScript,Vh as v,xc as usesSignalsInScript,ub as usesReactiveRuntime,li as userComponentFileExists,Bh as useVirtualList,_d as useTitle,Ul as useStoreOrThrow,wp as useStore,Ek as useStorage,pf as useSlots,Gk as useSessionStorage,Wb as useServerRuntimeConfig,Lf as useServerData,Xd as useSeoMeta,Xb as useRuntimeConfig,Wl as useRouteParams,Yl as useRouteParamOrThrow,Xl as useRouteParam,_d as usePageTitle,ff as useOptimistic,uf as useModel,_l as useMiddlewareValue,Zl as useMiddlewareState,Fk as useLocalStorage,Zo as useLoadingIndicator,Vd as useHead,Sh as useForm,rf as useAttrs,Oq as uploadFiles,Nq as uploadFile,Rl as updateInstance,df as untrack,Bi as unregisterDirective,Sl as unmountInstance,Fc as unescapeHtml,Vo as typecheckStxFiles,ki as transpileTypeScript,Ar as translate,Ba as transitionDirective,dc as transformAutoImports,sn as toUsers,rn as toUser,Ep as thumbnail,Fq as thumbHashToRGBA,Gq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,yf as templateCache,cd as syncRecordedResponse,bp as stxClientHelpers,gg as structuredDataDirective,Dr as stripLocalePrefix,xm as stripDocumentWrapper,Lb as stripCommentsAndLiterals,co as stringToStream,Ad as strictCspPreset,Me as streamingSuspenseDirective,Qe as streamToResponse,Ke as streamTemplateSimple,Ee as streamTemplate,zk as stopHmrServer,on as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ue as state,Qg as startsDocument,yo as startProductionServer,to as startInteractive,nn as startBroadcasting,Fr as stampLocaleLayoutGroup,Ia as staggerDirective,Yp as srcsetUrls,Ja as springDirective,jd as splitByPipe,tm as spaNavVaryHeaders,To as sourcePathFor,dq as smartBatchSign,ni as slotContentHasExpressions,bq as signUrl,ii as shouldTranspileTypeScript,wk as shouldReloadOnChange,gq as shouldRefreshSignature,xk as shouldIgnoreFile,th as shouldCacheComponent,Ip as sharpen,Ur as shape,Sb as setStateDir,cm as setRouteParams,dm as setMiddlewareState,Ae as setImagePlaceholder,jf as setGlobalProvide,b as setErrorLocale,zl as setCurrentInstance,Ij as setCachedVideoResult,xj as setCachedImageResult,rj as setCached,Xr as serveStxFile,Zr as serveMultipleStxFiles,rk as serveMarkdownFile,Jo as serveFile,_r as serveApp,Io as serve,hp as serializeState,Qm as serializeSetCookie,Kp as sepia,Yd as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Yj as scopeHTML,Xj as scopeCSS,jg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Op as saturation,$p as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,$f as runPreProcessingMiddleware,ag as runPostProcessingMiddleware,Tm as runPageAction,_e as runMountCallbacks,gb as runMiddleware,Pl as runHooks,tr as runDoctor,$e as runDestroyCallbacks,og as runComposers,Pp as rotate,Wh as rewriteImagesWithSiblings,dd as responseBindings,ri as resolveTemplatePath,ha as resolveStxTargets,jk as resolveStxDirectories,zr as resolveI18n,Cp as resize,Tf as resetUnscopedSignalWarnings,Dc as resetRejectedExpressionWarnings,kc as resetPlaceholders,Ud as resetHead,gp as resetHMRHandler,o as resetErrorConfig,Pr as required,Rf as reportDeferredLoopWarnings,oc as replacePlaceholders,Vq as renderView,Rj as renderVideoComponent,ac as renderVendorStyleTags,cr as renderToString,dr as renderToStream,er as renderToDOM,Eq as renderThumbhashToCanvas,qr as renderTemplateString,or as renderTemplate,pr as renderString,He as renderStreamingPage,di as renderSlot,jh as renderSSRSuspense,oq as renderProtectedVideo,nq as renderProtectedImg,aq as renderMediaUpload,nr as renderMarkdownView,Em as renderLayoutTypes,Bj as renderImgComponent,nl as renderImageComponent,ae as renderHtmlAttrs,$d as renderHead,Yq as renderEmail,pi as renderComponentWithSlot,be as renderBodyAttrs,rp as render,Cd as relaxedCspPreset,le as registerValidationRule,Oe as registerStreamingDirectives,yp as registerStoresClient,am as registerStore,hg as registerSeoDirectives,_a as registerMiddleware,sc as registerFilters,rc as registerFilter,d as registerErrorMessages,qe as registerEnhancedValidationRule,yi as registerDirective,Ld as registerCspDirectives,Bn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,ec as referencesName,Dl as ref,lo as redirect,_c as recordResponseStatus,$c as recordResponseHeader,Vb as rebaseOntoStateDir,ad as readResponseStatus,bd as readResponseHeaders,pk as readMarkdownFile,zf as readFileCached,El as reactive,Tp as quality,lq as pruneSignatureCache,uj as pruneCache,gf as provide,mr as protectCodeBlocks,Or as prop,rg as processVueTemplate,zh as processVirtualListDirectives,Dh as processVirtualGridDirectives,Qj as processVideo,oe as processValidateDirective,ea as processTranslateDirective,dh as processTransitionDirectives,gh as processTransitionAttributes,ee as processTitleDirective,Sc as processTemplateBindings,$g as processTeleportDirectives,hh as processSuspenseDirectives,cg as processStructuredData,Ie as processStreamDirectives,ed as processStatusDirective,Qh as processStaticDirectives,Zf as processStackReplacements,Yf as processStackPushDirectives,ei as processSlots,vm as processShell,De as processServerBindings,dg as processSeoDirective,Pe as processSectionDirectives,Kc as processScopedStyles,Qc as processReactiveBindings,pq as processProtectedMedia,Jh as processPartialHydrationDirectives,Vg as processOnceDirective,_f as processMiddleware,bg as processMetaDirectives,fe as processMetaDirective,qk as processMarkdownFileDirectives,wi as processMarkdownDirectives,Sf as processLoops,rh as processKeepAliveDirectives,Ug as processJsonDirective,Ch as processInfiniteListDirectives,Xf as processIncludes,Dj as processImgComponents,pl as processImageComponents,cl as processImage,de as processHeadDirective,he as processForms,je as processFormInputDirectives,Bc as processExpressions,Ib as processEventDirectives,ke as processErrorDirective,sg as processDynamicComponents,Xh as processDirectives,Gi as processDirectiveAttributes,_g as processDeferDirectives,Qd as processCustomDirectives,Id as processCspDirectives,Vr as processComponentProps,jc as processClientScript,ie as processBasicFormDirectives,mh as processAsyncDirectives,Rd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,we as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,Yo as preloadIslandHandlers,Ce as preloadIconCollection,jn as poolStrings,hk as pluginManager,ye as placeholdersWarmed,ch as performLeave,bh as performEnter,af as pendingLifecycleCounts,ef as peek,Uf as partialsCache,Sj as parseVideoDirectiveOptions,Ap as parseUrl,Hq as parseThumbhashString,pd as parseSwitchBlock,bi as parseSlots,ci as parseSlotElement,ud as parseScriptDeclarations,dk as parseSFCComponent,qq as parseProtectedArgs,Qf as parseLoopBinding,Cj as parseImgComponent,Ui as parseImageUrl,ol as parseImageComponent,Rm as parseFormBody,rd as parseExpressionWithFilters,Cn as parseDefaults,io as parseCookies,mm as parseContainerSelector,md as parseConditionalBlock,sd as parseArguments,Ma as parseAnimationShorthand,Qr as optional,kn as optimizeTemplate,ul as optimizeImage,vl as optimizeDirectory,Sr as oneOf,Vf as onceStore,Ml as onUpdated,Pc as onUpdate,Ol as onUnmounted,hm as onServer,Kl as onMounted,Ye as onMount,Ph as onHydrated,nf as onErrorCaptured,Ze as onDestroy,xh as onDeactivated,gm as onClient,Ll as onBeforeUpdate,Nl as onBeforeUnmount,Jl as onBeforeMount,wh as onActivated,Aq as observeElement,mo as notFound,xg as normalizeCriticalHeadOrder,mf as nextTick,Fn as negotiateEncoding,Ua as navigateTo,Ql as mountInstance,Ea as motionDirective,Bd as moderateCspPreset,hn as minifyHtml,fg as metaDirective,Ig as metaDedupKey,Bp as mergeParams,Kg as mergeHtmlAttrs,Wd as mergeHeadConfigs,Hc as mergeCssConfig,Fd as mergeCspDirectives,Ra as matchRoute,xi as markdownDirectiveHandler,ok as markdownCache,ga as looksLikeGlob,Cr as localizePath,U as loadTranslationLazy,_ as loadTranslation,kk as loadStxConfig,db as loadMiddlewareFromDirectory,Pm as loadManifest,wq as loadElement,pn as loadChannels,Jr as lintStxStrict,yq as lazyLoadAll,xq as lazyLoad,Ha as keyframeDirective,ar as jsxs,br as jsxDEV,$q as jsx,ko as jsonResponse,Ne as islandDirective,l as isTest,ym as isSpaNavigation,rm as isSpaNavRequest,eq as isSignatureValid,bf as isSignal,al as isSharpAvailable,Xn as isServerEnvironment,em as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,tq as isNativeLazySupported,lr as isMarkdownPath,Q as isLoading,R as isLoaded,hi as isJavaScriptScript,uq as isIntersectionObserverSupported,il as isImageFile,bl as isImageBackendAvailable,aa as isICUFormat,Oh as isHydrated,mi as isHydrateTrigger,Yc as isHttpStatus,Wn as isEdgeEnvironment,Kr as isDirectiveKind,k as isDevelopment,cf as isDerived,vk as isCssOnlyChange,En as isCompressible,fm as isClient,oh as isAsyncComponent,Sm as isActionableMethod,Lp as invert,Bf as invalidateFileCacheByDir,Af as invalidateFileCache,Ac as interpolateScriptsInTemplate,yc as interpolateScriptExpressions,zc as interpolateScriptAttributes,x as inlineError,yr as injectThemeBootstrap,eg as injectSeoTags,vr as injectSeo,Kf as injectRouterScript,uk as injectHotReload,kb as injectHeatmap,Oc as injectCss,Gd as injectCspMetaTag,Sg as injectConfigHeadTags,wg as injectColorModeBootScript,Mg as injectCloakStyle,Dg as injectBuildId,cc as injectBrowserCoreAutoImports,Uc as injectAnalytics,hf as inject,$l as initStoreRegistry,Xk as initNetlify,_o as initLoadingIndicator,vq as initLazyLoading,so as initFile,Dq as initBlurUp,Jq as initAllBlurUp,Fj as imgDirective,sl as imageDirective,Wm as hydrateTemplateStream,Vm as hydrateTemplate,Xo as hydrateIslands,Lh as hydrateIsland,Xm as hydrateFragment,Mh as hydrateByStrategy,Nh as hydrateAll,op as hydrate,Ho as htmlResponse,Og as hoistLeadingHeadTags,yg as hoistColorModeBootScript,lb as heatmapDirective,nj as hashString,Jf as hashFilePath,lj as hashFile,mj as hashBuffer,qg as hasVueTemplateSyntax,Pf as hasVariables,tp as hasStore,pc as hasPlaceholders,Vk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,Rg as hasDocumentShell,$h as hasDirectives,ma as hasDOMSupport,ll as handleImageRequest,of as handleError,ir as h,hl as groupVariantsByFormat,Jp as grayscale,Ao as gitHash,bn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Qk as getTotalSize,fq as getTimeUntilExpiry,Xg as getStoreScript,up as getStoreNames,sp as getStore,Jk as getStorageSize,Ik as getStorageKeys,si as getSourceLineInfo,ji as getSharedTranspiler,Ff as getServeClientAsset,la as getScreenReaderOnlyStyle,Zj as getScopeAttribute,Te as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,Zh as getPositionInfo,mc as getPlaceholderRegistry,kj as getPlaceholderCacheStats,Td as getPageMeta,wd as getNonce,jl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,xe as getImagePlaceholder,dl as getImageMetadata,ue as getImageDelivery,np as getHydrationRuntime,bm as getHydratedStoreState,yk as getHmrServer,Sd as getHead,fp as getHMRHandler,Yi as getFormatExtension,pj as getFileMtime,gl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ai as getDirectives,zi as getDirective,Al as getCurrentInstance,Lc as getCssServeAsset,Ed as getCspPreset,Nd as getCspHeaderName,vi as getComponentCacheStats,Hj as getCachedVideoResult,jq as getCachedSignature,Df as getCachedSignalsRuntime,Ef as getCachedRouterScript,ij as getCachedPlaceholder,wj as getCachedImageResult,qj as getCached,tj as getCacheStats,Bg as getBuildId,mn as getBroadcastServer,Xi as getBestVariant,tc as getAllFilters,Li as generateWidthSrcset,Ah as generateVirtualListCSS,Qq as generateVideoPreview,te as generateValidationScript,Rq as generateUploadRuntime,cn as generateTreeShakenBundle,fh as generateTransitionRuntime,eh as generateTransitionCSS,Lj as generateThumbnails,bj as generateThumbhashPlaceholder,On as generateTemplatesDocs,lh as generateSuspenseRuntime,kh as generateSuspenseCSS,ip as generateStateScript,Vi as generateSrcsetData,Aj as generateSrcset,el as generateSrcSet,Mj as generateSpriteSheet,Zq as generateSpaShell,Wi as generateSourceTags,Ri as generateSizesFromBreakpoints,Qi as generateSizesAttribute,fl as generateSizes,ig as generateSitemapIndex,wr as generateSitemap,sq as generateSimpleMediaPicker,mq as generateSignatureRuntime,xf as generateSignalsRuntimeDev,wf as generateSignalsRuntime,ic as generateServerDataBridge,Wj as generateScopeId,ek as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,kg as generateRobotsTxt,xr as generateRobots,zj as generateResponsiveVariants,ak as generateReactiveWebComponentTS,$j as generateReactiveWebComponent,ck as generateReactiveRuntime,bk as generateReactiveMixin,Kj as generatePoster,hj as generatePlaceholderStyle,gj as generatePlaceholderCSS,aj as generatePlaceholder,Kh as generatePartialHydrationCSS,vd as generateNonce,Rk as generateNetlifyToml,Tq as generateMinifiedMediaRuntime,Sq as generateMediaRuntime,rq as generateMediaManagerEmbed,Nm as generateManifest,ap as generateLoadingIndicatorHtml,Cq as generateLazyLoadRuntime,Fm as generateLayoutTypes,dj as generateLQIP,vh as generateKeepAliveRuntime,uh as generateKeepAliveCSS,Rh as generateIslandManifest,Pq as generateImagePreview,wl as generateImageManifest,mp as generateHydrationScript,Re as generateHydrationRuntime,pp as generateHydrationCSS,Eh as generateHydrationBootstrap,tk as generateHotReloadScript,jb as generateHeatmapScript,dp as generateHMRClientScript,Nj as generateHLSManifest,jp as generateEventBindings,Pi as generateDprSrcsetWithVariableQuality,Oi as generateDprSrcset,Pg as generateDocumentShell,Tn as generateDocs,Pn as generateDirectivesDocs,Fi as generateDirectiveRuntime,lg as generateDefaultRobotsTxt,Oj as generateDASHManifest,Nc as generateCss,zd as generateCspMetaTag,yd as generateCspHeader,tf as generateCompositionRuntime,Nn as generateComponentsDocs,Fh as generateComponentManifest,Ln as generateComponentDoc,fj as generateColorPlaceholder,vg as generateColorModeBootScript,Tl as generateClientRuntime,oj as generateCacheKey,gc as generateBrowserAutoImportDestructuring,Kq as generateBlurUpRuntime,Lq as generateBlurUpCSS,Rc as generateBindingsRuntime,Mi as generateAutoWidthSrcset,fc as generateAutoImportDestructuring,qh as generateAsyncComponentRuntime,ph as generateAsyncComponentCSS,Zb as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Tc as generateAnalyticsScript,Wo as formatTypecheckDiagnostics,Qo as formatTypeErrors,po as formatStxContent,Pk as formatSize,Ta as formatRoutes,qo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,ur as formatDoctorReport,Qn as formatDocsAsMarkdown,Sn as formatDocsAsJson,Rn as formatDocsAsHtml,Sp as format,gn as foldConstants,Rp as flipVertical,Qp as flipHorizontal,Gm as fingerprint,Uo as findRuntimeTypeDeclarations,sr as findPantryPackage,ld as findMatchingEndTag,hd as findMatchingDelimiter,Kb as findInterpolationEnd,nd as findIfBlocks,qd as findExpressions,Sa as findErrorPage,Ic as findDuplicateScopedStyleRanges,od as findDirectiveBlocks,dn as findDeadCode,dn as findDeadBranches,nm as findContainerRegion,Mn as findComponentFiles,Yr as findCommonDir,Ok as filterRequiredFiles,qi as fileExists,Mf as extractVariables,Lm as extractTemplateExpressions,Je as extractStreamBoundaries,kp as extractState,fi as extractSlotContent,Of as extractScriptFromTemplate,Km as extractScriptBlocks,nc as extractPlaceholders,kd as extractParenthesizedExpression,Zc as extractPageResponseStatus,hb as extractLayoutMetadata,ej as extractDominantColor,td as extractDirectiveParams,ai as extractDirectiveNames,zm as extractContainerContent,Jn as extractComponentProps,Gh as extractComponentName,Kn as extractComponentDescription,Mc as extractClassNames,hc as extractBridgeData,Hh as extractBoundProps,id as extractBalancedExpression,$b as extractAndStripCssImports,_j as extractAndScopeStyles,Hb as extractAndProcessEvents,Ck as externalizeSharedAssets,Dk as externalizeRepeatedAssets,Bk as externalizeHtml,Ec as evaluateExpression,fn as evaluateConstant,fd as evaluateAuthExpression,wc as escapeHtmlValue,vc as escapeHtml,C as errorRecovery,E as errorLogger,ah as ensureTeleportTargets,Tg as ensureDocumentShell,pe as enhancedValidationRules,Hn as enableDevTools,en as eliminateDeadCode,We as effect,Zp as dprUrls,Un as docsCommand,Yb as discoverServerApi,Dm as discoverLayoutNames,Bq as disconnectObserver,In as disableDevTools,F as devHelpers,um as detectShell,Vn as detectRuntime,Sk as detectProjectConfig,Zi as detectFormat,_m as detectBuildMode,Ve as derived,Wk as deploy,mk as defineStxConfig,xp as defineStore,qf as defineSlots,Ir as defineSiteConfig,Mr as definePropsWithValidation,Lr as defineProps,gk as definePlugin,Zd as definePageMeta,Wa as defineMiddleware,Th as defineForm,lf as defineExpose,kf as defineEmits,Ci as defineDirective,kr as defineCustomElement,xo as defineConfig,Di as defineClientDirective,nh as defineAsyncComponent,zo as defineApiHandler,Uq as defaultMediaConfig,yl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,ge as defaultFormClasses,qc as defaultFilters,Pd as defaultCspConfig,ik as defaultConfig,Wr as default,Gc as deepMergeThemes,Jc as dedupeScopedStyles,qm as decodeTitleEntities,cj as decodeThumbhash,Kd as cspNonceDirective,Jd as cspDirective,Iq as crossfadeTransition,Dp as crop,yh as createVirtualList,Tj as createVideoDirective,go as createVercelHandler,No as createTypeChecker,fa as createTranslateFilter,bo as createTextEncoderStream,jr as createStxApp,ao as createStreamingResponse,Le as createStreamRenderer,vp as createStore,Za as createStorageManager,Xa as createServerCookieManager,_b as createServerApi,Cl as createScope,ih as createSSRSuspense,Se as createRouter,Bm as createRouteRuleResolver,eb as createRouteLocation,Lo as createRoute,Dl as createRef,El as createReactive,sf as createProvideContext,Co as createProject,wo as createProductionBuild,lc as createPlaceholder,ln as createOptimizedBuild,ho as createNetlifyHandler,Kk as createNetlifyClient,fb as createMiddlewareContext,Ko as createMiddleware,zq as createLazyObserver,sh as createKeepAliveCache,Zn as createKVNamespace,Ih as createIslandRegistry,Ej as createImgDirective,tl as createImagePlugin,ml as createImageHandler,rl as createImageDirective,nb as createHeatmapAggregator,Nk as createFileManifest,Yn as createEnvAccessor,z as createEnhancedError,$n as createEdgeHandler,_n as createEdgeCache,ti as createDetailedErrorMessage,fo as createDenoHandler,Tk as createDefaultNetlifyConfig,Od as createCspHeaders,jo as createCookie,Fl as createComputed,Bl as createComponentInstance,eo as createCloudflareHandler,Ya as createClientCookieManager,Ei as createBuiltinDirectives,jr as createApp,Ka as createAnimationTimeline,Gp as cover,Nf as convertToCommonJS,Np as contrast,Fp as contain,y as consoleError,m as configureErrorHandling,lk as config,Fl as computed,Gn as compressResponse,ng as composerPattern,mg as composer,wm as composeShellWithPage,An as componentDirective,oi as componentClientSignalNames,Mm as compileTemplate,a as collectRepeatedFlag,Mk as collectDeployFiles,Ng as cloakStyleFragment,Jj as clearVideoCache,N as clearTranslationCache,Yg as clearStoreCache,Hk as clearStorage,kq as clearSignatureCache,vf as clearServerData,jj as clearPlaceholderCache,Wf as clearOnceStore,xd as clearNonce,bb as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,ql as clearImageCache,e as clearErrorMessages,Gf as clearDevCaches,uc as clearCustomFilters,pg as clearComposers,Zg as clearComposableCache,ui as clearComponentCache,sj as clearCache,Db as clearBlankCache,$o as cleanupLoadingIndicator,km as classifyScript,lm as classifyAllScripts,Oo as checkTemplateFile,Po as checkTemplate,Hf as checkCache,hq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,vn as channel,oo as captureScreenshots,no as captureScreenshot,Z as cancelPendingLoads,Lk as calculateSha1,Ni as calculateOptimalWidths,If as cacheTemplate,Vj as buildWebComponents,Ro as buildVirtualSource,Wq as buildViews,zp as buildUrl,Fe as buildSuspenseResolveScript,Hr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Hm as buildRuntimeAsset,Im as buildRouterAsset,Gr as buildLangPickerScript,Ti as buildImageUrl,Eg as buildIdFragment,Jg as buildHtmlAttrs,Ym as buildForProduction,Dn as buildComponentLibrary,iq as buildAuthParams,Zm as buildApp,Er as buildAlternateLinks,vo as build,tn as broadcastPrivate,un as broadcastPresence,qn as broadcast,Mp as brightness,Mb as bracketDepths,Hp as blur,Eb as blankInertHtmlRegions,cq as batchSignUrls,Xe as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,Up as auto,ja as attributeValue,Jm as assetTags,Fb as asInvocableStatement,Tr as arrayOf,Br as applyTranslations,yj as applyTransformations,gi as applySlots,zn as applyPropDefaults,Xp as applyPreset,Lg as applyHtmlAttrs,ce as applyHead,Cc as applyFilters,sm as appendVary,Dd as apiCspPreset,Da as animationGroupDirective,Pj as analyzeVideo,an as analyzeUsage,im as analyzeTemplate,jm as analyzeProject,an as analyzeDirectiveUsage,Vc as analyticsDirective,Fo as addStore,Eo as addPage,Hd as addNonceToInlineContent,Go as addLayout,Do as addComponent,Um as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Cf as __setSignalsGeneratorsForTest,Cg as __setBuildIdForTest,Gj as VideoProcessorCache,Uh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,gd as Tokenizer,Mo as TemplateTypeChecker,ro as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,fr as Show,Ge as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,bc as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,om as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Wc as RESPONSE_STATUS_KEY,Xc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,uo as ProductionBuild,hr as Portal,Bo as PROJECT_TEMPLATES,Wp as PRESETS,sb as NON_CLIENT_PRIMITIVES,qp as MemorySessionStore,Ki as MIME_TYPES,Hi as MEDIA_DEFAULT_WIDTHS,Ji as MEDIA_DEFAULT_FORMATS,Cm as LAYOUT_TYPES_FILE,vj as ImageProcessorCache,kl as ImageProcessingError,lp as HydrationRuntime,sk as HotReloadServer,mb as HeatmapAggregator,Hg as HTML_CLASS_MARKER,Gg as HTML_ATTRS_MARKER,_q as Fragment,gr as For,pm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Ak as EXTERNALIZED_ASSET_DIR,Yk as DeployError,Zk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,$k as DEFAULT_QUALITY,_i as DEFAULT_PLACEHOLDER_OPTIONS,_k as DEFAULT_FORMATS,Ii as DEFAULT_DPR_VALUES,cp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,Si as COMMON_SIZES,tg as COLOR_MODE_BOOT_MARKER,ug as COLOR_MODE_BOOT_GLOBAL,Fg as CLOAK_STYLE,xn as BroadcastServer,wn as Broadcast,zg as BUILD_ID_META,Ag as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,$i as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,rr as $path};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pw as Ee,qw as d}from"./chunk-5ep11kvc.js";function N(t){return t.split(/[\\/]/).filter(Boolean).slice(0,-1).some((a)=>v.includes(a))}function w(t){return N(t.replace(/^\//,""))}var v;var k=d(()=>{v=["components","layouts","partials","emails"]});import f from"fs";import b from"path";function A(t,e){let a=t.filter((s)=>!w(s.pattern)),r=["// Auto-generated by STX - do not edit"];if(a.length===0)r.push("// No page routes found \u2014 route paths stay typed as string.","export {}","");else{r.push("declare module '@stacksjs/stx' {"," interface KnownRoutes {");for(let s of a){let l=[];for(let c of s.params){let u=s.pattern.includes(`:${c}?`)?"?":"";l.push(`${c}${u}: string`)}let i=l.join("; ");r.push(` '${s.pattern}': { ${i} }`)}r.push(" }","}","","export {}","")}let n=r.join(`
|
|
3
3
|
`),o=b.join(e,"route-types.d.ts");try{if(f.existsSync(o)&&f.readFileSync(o,"utf8")===n)return;f.mkdirSync(e,{recursive:!0}),f.writeFileSync(o,n)}catch{}}function C(t,e,a){let r=process.cwd(),n=b.relative(r,a),o=t.filter((l)=>!w(l.pattern)),s=["// Auto-generated by stx \u2014 do not edit",`// Source: ${n||"pages"}/`,"","export const routes = ["];for(let l of o){let i=b.relative(r,l.filePath).replace(/\\/g,"/"),c=JSON.stringify(l.params),u=l.layout?`, layout: '${b.relative(r,l.layout).replace(/\\/g,"/")}'`:"";s.push(` { pattern: '${l.pattern}', filePath: '${i}', isDynamic: ${l.isDynamic}, params: ${c}${u} },`)}s.push("] as const",""),s.push("export type RouteName = typeof routes[number]['pattern']",""),f.mkdirSync(e,{recursive:!0}),f.writeFileSync(b.join(e,"routes.ts"),s.join(`
|
|
4
4
|
`))}var P=d(()=>{k()});import K from"path";function T(t,e){let r=K.relative(e,t).replace(/\.(stx|md)$/,"");if(r=r.split(K.sep).join("/"),r==="index")return"/";if(r.endsWith("/index"))r=r.slice(0,-6);return r=r.replace(/\[\[([^\]]+)\]\]/g,":$1?"),r=r.replace(/\[([^\]]+)\]/g,":$1"),r=r.replace(/:\.\.\.([^/]+)/g,":$1*"),`/${r}`}function x(t){let e=[],a="",r=0;while(r<t.length){let n=t.slice(r),o=/^\/:([^/?*]+)\?/.exec(n);if(o){e.push(o[1]),a+="(?:/([^/]+))?",r+=o[0].length;continue}let s=/^:([^/?*]+)\*/.exec(n);if(s){e.push(s[1]),a+="(.+)",r+=s[0].length;continue}let l=/^:([^/?*]+)/.exec(n);if(l){e.push(l[1]),a+="([^/]+)",r+=l[0].length;continue}a+=t[r].replace(/[.+^${}()|[\]\\*?]/g,"\\$&"),r+=1}return{regex:new RegExp(`^${a}$`),params:e}}function $(t,e){let a=t===""?"/":t;for(let r of e){let n=a.match(r.regex);if(n){let o={};return r.params.forEach((s,l)=>{o[s]=n[l+1]}),{route:r,params:o}}}return null}function z(t){let e=t.replace(/\[\[([^\]]+)\]\]/g,":$1?").replace(/\[([^\]]+)\]/g,":$1").replace(/:\.\.\.([^/]+)/g,":$1*");return x(e)}var B=()=>{};import Ce from"fs";import G from"path";function R(t,e){let a=[],r=G.dirname(t);while(r.startsWith(e)||r===e){let n=G.join(r,"_layout.stx");if(Ce.existsSync(n))a.unshift(n);if(r===e)break;r=G.dirname(r)}return a}var U=()=>{};import E from"fs";import p from"path";function Y(t,e){let a=[];if(!E.existsSync(t))return a;let r=E.readdirSync(t,{withFileTypes:!0});for(let n of r){let o=p.join(t,n.name);if(n.isDirectory()){if(n.name.startsWith("."))continue;if(v.includes(n.name))continue;a.push(...Y(o,e))}else if(n.isFile()){let s=p.extname(n.name);if(e.includes(s)){if(n.name.startsWith("_")&&n.name!=="_layout.stx")continue;if(n.name==="_layout.stx")continue;a.push(o)}}}return a}class L{routes;pagesDir;pagesDirs;config;constructor(t,e={}){this.config=e;let a=e.pagesDirs&&e.pagesDirs.length>0?e.pagesDirs:[e.pagesDir||"pages"];this.pagesDirs=a.map((i)=>p.resolve(t,i)),this.pagesDir=this.pagesDirs[0];let r=e.extensions||[".stx"],n=(i)=>{let c=p.resolve(t,i);try{return E.realpathSync(c)}catch{return c}},o=(e.exclude??[]).filter((i)=>typeof i==="string"&&i.trim()!=="").map(n),s=(i)=>{if(o.length===0)return!1;let c=n(i);return o.some((u)=>c===u||c.startsWith(`${u}${p.sep}`))},l=new Set;this.routes=[];for(let i of this.pagesDirs){let c=Y(i,r).filter((h)=>!s(h)),u=new Map;for(let h of c){let m=T(h,i),y=e.pagesDirs?m.replace(/:[\w]+/g,":param"):m;if(e.pagesDirs&&u.has(y))throw Error(`Conflicting layer pages for ${m}: ${u.get(y)} and ${h}`);if(u.set(y,h),l.has(y))continue;l.add(y);let{regex:Ae,params:W}=x(m),I=e.layouts!==!1?R(h,i):[];this.routes.push({pattern:m,regex:Ae,params:W,filePath:h,isDynamic:W.length>0,layout:I.length>0?I[I.length-1]:void 0})}}if(this.routes.sort((i,c)=>{if(!i.isDynamic&&c.isDynamic)return-1;if(i.isDynamic&&!c.isDynamic)return 1;let u=i.pattern.split("/").length,h=c.pattern.split("/").length;if(u!==h)return h-u;return i.pattern.localeCompare(c.pattern)}),e.emit!==!1){let i=p.resolve(t,e.stateDir||process.env.STX_DIR?.trim()||".stx");A(this.routes,i),C(this.routes,i,this.pagesDir)}}match(t){let e=t===""?"/":t;for(let a of this.routes){let r=e.match(a.regex);if(r){let n={};return a.params.forEach((o,s)=>{n[o]=r[s+1]}),{route:a,params:n}}}return null}resolve(t,e){let a=this.routes.find((n)=>n.pattern===t||n.filePath.includes(t));if(!a)return"#not-found";let r=a.pattern;if(e)for(let[n,o]of Object.entries(e))r=r.replace(`:${n}`,encodeURIComponent(o));return r}addRoute(t){this.routes.push(t),this.routes.sort((e,a)=>{if(!e.isDynamic&&a.isDynamic)return-1;if(e.isDynamic&&!a.isDynamic)return 1;return e.pattern.localeCompare(a.pattern)})}getLayout(t){return t.layout??null}}function J(t,e){return new L(t,e)}function Z(t,e){let a=[`${e}.stx`,"error.stx"];for(let r of a){let n=p.join(t,r);if(E.existsSync(n))return n}return null}function Q(t,e){return t.map((a)=>{let r=p.relative(e,a.filePath),n=a.isDynamic?" (dynamic)":"";return`${a.pattern} \u2192 ${r}${n}`})}var ee=d(()=>{P();B();U();k()});function te(t){_=t.replace(/\/$/,"")}function re(t,e,a={}){g[t]={path:e,name:t,params:a}}function ae(t){for(let[e,a]of Object.entries(t))if(typeof a==="string")g[e]={path:a,name:e};else g[e]={...a,name:e}}function ne(t,e={},a=!1){let r=g[t];if(!r)return console.warn(`Route [${t}] not defined.`),"#undefined-route";let n={...r.params,...e},o=r.path;o=o.replace(/:(\w+)/g,(l,i)=>{let c=n[i];if(c===void 0)return console.warn(`Missing parameter [${i}] for route [${t}].`),`:${i}`;return delete n[i],encodeURIComponent(String(c))});let s=Object.entries(n);if(s.length>0){let l=s.map(([i,c])=>`${encodeURIComponent(i)}=${encodeURIComponent(String(c))}`).join("&");o+=(o.includes("?")?"&":"?")+l}return a&&_?`${_}${o}`:o}function se(){for(let t of Object.keys(g))delete g[t];_=""}var g,_="";var oe=d(()=>{g={}});import ie from"fs";import le from"path";function ce(t,e={}){return{type:"redirect",path:t,options:{replace:e.replace??!1,external:e.external??!1,redirectCode:e.redirectCode??302}}}function ue(t){return{type:"abort",error:typeof t==="string"?{statusCode:500,message:t}:t}}function he(t,e={}){return{handler:t,mode:e.mode??"universal"}}function X(t){let e={};if(!t)return e;let a=t.split(";");for(let r of a){let[n,...o]=r.split("=");if(n){let s=n.trim(),l=o.join("=").trim();if(s)e[s]=decodeURIComponent(l)}}return e}function O(t,e,a={}){let r=`${encodeURIComponent(t)}=${encodeURIComponent(e)}`;if(a.expires){let n=typeof a.expires==="number"?new Date(Date.now()+a.expires*1000):a.expires;r+=`; Expires=${n.toUTCString()}`}if(a.path)r+=`; Path=${a.path}`;if(a.domain)r+=`; Domain=${a.domain}`;if(a.secure)r+="; Secure";if(a.httpOnly)r+="; HttpOnly";if(a.sameSite)r+=`; SameSite=${a.sameSite}`;return r}function j(t,e){let a=t.headers.get("cookie")||"",r=X(a);return{get(n){return r[n]},set(n,o,s={}){r[n]=o,e.append("Set-Cookie",O(n,o,s))},delete(n){delete r[n],e.append("Set-Cookie",O(n,"",{expires:new Date(0),path:"/"}))},getAll(){return{...r}}}}function q(){return{get(t){if(typeof document>"u")return;return X(document.cookie)[t]},set(t,e,a={}){if(typeof document>"u")return;document.cookie=O(t,e,a)},delete(t){if(typeof document>"u")return;document.cookie=O(t,"",{expires:new Date(0),path:"/"})},getAll(){if(typeof document>"u")return{};return X(document.cookie)}}}function H(){let t=typeof window<"u"&&typeof window.localStorage<"u";return{get(e){if(!t)return null;try{return window.localStorage.getItem(e)}catch{return null}},set(e,a){if(!t)return;try{window.localStorage.setItem(e,a)}catch{}},remove(e){if(!t)return;try{window.localStorage.removeItem(e)}catch{}},isAvailable(){return t}}}function M(t,e){S.set(t,e)}function V(t){return S.get(t)}function de(t){return S.has(t)}function pe(){S.clear()}function fe(){return Array.from(S.keys())}async function ge(t,e="middleware"){let a=le.resolve(t,e);if(!ie.existsSync(a))return;let r=ie.readdirSync(a);for(let n of r){if(!n.endsWith(".ts")&&!n.endsWith(".js"))continue;if(n.includes(".test.")||n.includes(".spec."))continue;let o=n.replace(/\.(ts|js)$/,""),s=le.join(a,n);try{let i=(await import(s)).default;if(i&&typeof i.handler==="function")M(o,i);else if(typeof i==="function")M(o,{handler:i,mode:"universal"})}catch(l){console.warn(`Failed to load middleware '${o}' from ${s}:`,l)}}}function Te(t){let e={};if(!t)return e;let a=new URLSearchParams(t);for(let[r,n]of a)e[r]=n;return e}function me(t,e,a,r=""){return{path:t,params:e,query:Te(r),fullPath:r?`${t}?${r}`:t,meta:a}}function ye(t,e,a,r){let n=r?.isServer??typeof window>"u",o=!n,s=new Headers;return{to:t,from:e,isClient:o,isServer:n,cookies:n&&a?j(a,s):q(),storage:H(),state:{},request:a,responseHeaders:s}}async function ve(t,e){let a=Array.isArray(t)?t:[t],r=e.isServer;for(let n of a){let o=V(n);if(!o)return console.error(`Route middleware '${n}' is not registered \u2014 failing the guard closed.`),{passed:!1,abort:{type:"abort",error:{statusCode:500,message:`Route middleware '${n}' is not registered`}},state:e.state,responseHeaders:e.responseHeaders};if(o.mode==="server"&&!r)continue;try{let s=await o.handler(e);if(s){if(s.type==="redirect")return{passed:!1,redirect:s,state:e.state,responseHeaders:e.responseHeaders};if(s.type==="abort")return{passed:!1,abort:s,state:e.state,responseHeaders:e.responseHeaders}}}catch(s){return console.error(`Error in middleware '${n}':`,s),{passed:!1,abort:{type:"abort",error:{statusCode:500,message:s instanceof Error?s.message:"Middleware error"}},state:e.state,responseHeaders:e.responseHeaders}}}return{passed:!0,state:e.state,responseHeaders:e.responseHeaders}}var S;var we=d(()=>{S=new Map});function D(t){let a=t.replace(/\\/g,"/").split("/").filter(Boolean),r=a.lastIndexOf("layouts"),n=r>=0?a[r+1]:a.at(-1);if(!n)return"app";return n.replace(/\.stx$/i,"")||"app"}function be(t){let e=t.match(/<meta\b[^>]*name=["']stx-layout["'][^>]*content=["']([^"']+)["'][^>]*>/i),a=t.match(/<meta\b[^>]*name=["']stx-layout-group["'][^>]*content=["']([^"']+)["'][^>]*>/i),r=t.match(/<!--\s*stx-layout:\s*([^ ]+)\s*-->/i),n=e?.[1]||r?.[1]||"";return{layout:n,group:a?.[1]||D(n)}}var xe=()=>{};function Re(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}function Se(){if(F)return F;return F=Re(`
|
|
5
5
|
;(function(){
|
|
@@ -802,7 +802,7 @@ else {
|
|
|
802
802
|
if(!target||!target.focus)return;
|
|
803
803
|
// The container is not naturally focusable. tabindex="-1" makes it
|
|
804
804
|
// programmatically focusable without inserting it into the tab order.
|
|
805
|
-
if(!target.hasAttribute('tabindex'))target.setAttribute('tabindex','-1');
|
|
805
|
+
if(!target.hasAttribute('tabindex')){target.setAttribute('tabindex','-1');target.setAttribute('data-stx-route-focus','')}
|
|
806
806
|
// preventScroll because scroll position is already decided just above \u2014
|
|
807
807
|
// focusing would otherwise fight scrollToTop and the hash scrollIntoView.
|
|
808
808
|
try{target.focus({preventScroll:true})}catch(e){try{target.focus()}catch(e2){}}
|
|
@@ -1995,7 +1995,10 @@ else {
|
|
|
1995
1995
|
var sanitize=function(v){return String(v).replace(/[;{}()"'\\\\<>\\n\\r\\t]/g,'')};
|
|
1996
1996
|
var pc=sanitize(o.progressColor);
|
|
1997
1997
|
var ph=sanitize(o.progressHeight);
|
|
1998
|
-
|
|
1998
|
+
// The container the router focuses after a navigation is not a
|
|
1999
|
+
// control, so it draws no focus ring: Safari drew one around the whole
|
|
2000
|
+
// page, a blue line along its bottom edge on every screen.
|
|
2001
|
+
var css='[data-stx-route-focus]:focus{outline:none}.stx-navigating{cursor:wait}.stx-navigating a,.stx-navigating button{pointer-events:none}#stx-router-progress{position:fixed;top:0;left:0;right:0;height:'+ph+';background:'+pc+';box-shadow:0 0 8px '+pc+',0 0 4px '+pc+';transform:scaleX(0);transform-origin:left;transition:transform .18s ease-out,opacity .26s ease;opacity:0;pointer-events:none;z-index:999999}';
|
|
1999
2002
|
if(o.viewTransitions&&'startViewTransition' in document){
|
|
2000
2003
|
var dur=(o.viewTransitionDuration||220)+'ms';
|
|
2001
2004
|
var ease=o.viewTransitionEasing||'cubic-bezier(0.16, 1, 0.3, 1)';
|
|
@@ -2084,4 +2087,4 @@ else {
|
|
|
2084
2087
|
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init);else init();
|
|
2085
2088
|
})();
|
|
2086
2089
|
`),F}var F;var ke=()=>{};var Le={};Ee(Le,{setAppUrl:()=>te,runMiddleware:()=>ve,route:()=>ne,resolveLayoutChain:()=>R,resetRoutes:()=>se,registerMiddleware:()=>M,patternToRegex:()=>x,navigateTo:()=>ce,matchRoute:()=>$,loadMiddlewareFromDirectory:()=>ge,isNonPageRoutePattern:()=>w,isNonPageRoutePath:()=>N,hasMiddleware:()=>de,getRouterScript:()=>Se,getMiddlewareNames:()=>fe,getMiddleware:()=>V,generateRouteTypes:()=>A,generateRouteManifest:()=>C,formatRoutes:()=>Q,findErrorPage:()=>Z,filePathToPattern:()=>T,extractLayoutMetadata:()=>be,deriveLayoutGroup:()=>D,defineRoutes:()=>ae,defineRoute:()=>re,defineMiddleware:()=>he,createStorageManager:()=>H,createServerCookieManager:()=>j,createRouter:()=>J,createRouteLocation:()=>me,createMiddlewareContext:()=>ye,createClientCookieManager:()=>q,clearMiddleware:()=>pe,bracketPathToRegex:()=>z,abortNavigation:()=>ue,Router:()=>L,NON_PAGE_DIRS:()=>v});var _e=d(()=>{ee();B();oe();we();U();xe();P();k();ke()});
|
|
2087
|
-
export{v as
|
|
2090
|
+
export{v as wv,N as xv,w as yv,A as zv,C as Av,T as Bv,x as Cv,$ as Dv,z as Ev,R as Fv,L as Gv,J as Hv,Z as Iv,Q as Jv,te as Kv,re as Lv,ae as Mv,ne as Nv,se as Ov,ce as Pv,ue as Qv,he as Rv,j as Sv,q as Tv,H as Uv,M as Vv,V as Wv,de as Xv,pe as Yv,fe as Zv,ge as _v,me as $v,ye as aw,ve as bw,D as cw,be as dw,xe as ew,Se as fw,Le as gw,_e as hw};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-5ep11kvc.js";var N=0;function P(){return`eb-${++N}-${Date.now().toString(36)}`}function W(q,z={},A){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(D,F,J,K)=>{let L=P(),M=Q(F||"");return T(L,J.trim(),K.trim(),M)})}function Q(q){let z={},A=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=A.exec(q))!==null){let D=j[1],F=j[2]||j[3]||j[4];switch(D){case"id":z.id=F;break;case"logErrors":z.logErrors=F==="true";break}}return z}function T(q,z,A,j){let D=j.logErrors!==!1;return`
|
|
3
3
|
<div class="stx-error-boundary" data-boundary-id="${q}" data-has-error="false">
|
|
4
4
|
<div class="stx-error-boundary-content" data-boundary-content="${q}">
|
|
5
5
|
${z}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{tk as a,uk as b,vk as c,wk as d}from"./chunk-erpeggpf.js";import"./chunk-efhjfdcf.js";import"./chunk-c8zqb80j.js";import"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Nf as T}from"./chunk-
|
|
2
|
+
import{Nf as T}from"./chunk-zyb5gfr0.js";import{rw as I}from"./chunk-5ep11kvc.js";import E from"fs";import X from"path";import U from"crypto";var _=new Set(["webp","avif","jpeg","png"]),F=new Set(["cover","contain","fill","inside","outside"]),A=new Set([".jpg",".jpeg",".png",".webp",".avif",".gif"]),S=4096,y=80,D="cover";async function g(k,G){let J=G.routePath??"/_stx/img",B=new URL(k.url);if(B.pathname!==J)return null;let $=q(B,G);if(!$.ok)return new Response($.error,{status:$.status,headers:{"Content-Type":"text/plain"}});let{srcFsPath:j,srcUrl:K,width:H,height:v,format:Z,quality:Y,fit:z}=$,C;try{C=E.statSync(j)}catch{return new Response(`Source image not found: ${K}`,{status:404,headers:{"Content-Type":"text/plain"}})}if(!C.isFile())return new Response("Not a file",{status:404,headers:{"Content-Type":"text/plain"}});let N=G.cacheDir??".stx/cache/img";await E.promises.mkdir(N,{recursive:!0});let V=`${j}:${C.mtimeMs}:${C.size}`,O=`${H}x${v}:${Z}:${Y}:${z}`,b=U.createHash("sha256").update(`${V}|${O}`).digest("hex").slice(0,16),Q=X.join(N,`${b}.${Z}`),W={"Content-Type":T(Z),"Cache-Control":"public, max-age=31536000, immutable",ETag:`"${b}"`,"X-Stx-Image-Cache":"HIT"};if(k.headers.get("if-none-match")===`"${b}"`)return new Response(null,{status:304,headers:W});let L=Bun.file(Q);if(await L.exists())return new Response(L,{headers:W});try{let R=Buffer.from(await Bun.file(j).arrayBuffer()),{resizeAndConvert:M}=await P(),w=await M(R,{width:H,height:v,format:Z,quality:Y,fit:z});return await Bun.write(Q,w),W["X-Stx-Image-Cache"]="MISS",new Response(new Uint8Array(w),{headers:W})}catch(R){let M=R.message;return new Response(`Image processing failed: ${M}`,{status:500,headers:{"Content-Type":"text/plain"}})}}function l(k){return async(G)=>{return await g(G,k)??new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain"}})}}function q(k,G){let J=k.searchParams.get("src");if(!J)return{ok:!1,error:"Missing required param: src",status:400};if(!J.startsWith("/"))return{ok:!1,error:"src must be an absolute URL path (start with /)",status:400};if(J.startsWith("//"))return{ok:!1,error:"src must be a local path",status:400};let B=X.extname(J).toLowerCase();if(!A.has(B))return{ok:!1,error:`Unsupported source extension: ${B}`,status:400};let $=X.resolve(G.publicDir),j=X.resolve($,J.slice(1));if(!j.startsWith(`${$}${X.sep}`)&&j!==$)return{ok:!1,error:"src is outside publicDir",status:400};let K=G.maxWidth??S,H=G.maxHeight??S,v=k.searchParams.get("w"),Z=k.searchParams.get("h"),Y=v?Number.parseInt(v,10):0,z=Z?Number.parseInt(Z,10):0;if(v&&(!Number.isFinite(Y)||Y<=0))return{ok:!1,error:"Invalid w (must be positive integer)",status:400};if(Z&&(!Number.isFinite(z)||z<=0))return{ok:!1,error:"Invalid h (must be positive integer)",status:400};if(!v&&!Z)return{ok:!1,error:"At least one of w or h is required",status:400};let C=Math.min(Y||K,K),N=Math.min(z||H,H),V=k.searchParams.get("f")||"webp";if(!_.has(V))return{ok:!1,error:`Invalid f (must be one of: ${[..._].join(", ")})`,status:400};let O=V,b=k.searchParams.get("q"),Q=b?Number.parseInt(b,10):G.defaultQuality??y;if(!Number.isFinite(Q)||Q<1||Q>100)return{ok:!1,error:"Invalid q (must be 1-100)",status:400};let x=k.searchParams.get("fit")||G.defaultFit||D;if(!F.has(x))return{ok:!1,error:`Invalid fit (must be one of: ${[...F].join(", ")})`,status:400};return{ok:!0,srcFsPath:j,srcUrl:J,width:C,height:N,format:O,quality:Q,fit:x}}async function P(){return await import("./chunk-peqad61h.js")}
|
|
3
3
|
export{g as yf,l as zf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$g as a,ah as b,bh as c,ch as d,dh as e,eh as f,fh as g,gh as h,hh as i}from"./chunk-
|
|
2
|
+
import{$g as a,ah as b,bh as c,ch as d,dh as e,eh as f,fh as g,gh as h,hh as i}from"./chunk-3cba0xw5.js";import"./chunk-vd5xvsnv.js";import"./chunk-5ep11kvc.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var N={},Z=[],Q={};function h(){return N}function D(){return Q}function I(){N={},Z.length=0,Q={}}function W(j){N=R(N,j)}function R(j,z){return{title:z.title??j.title,titleTemplate:z.titleTemplate??j.titleTemplate,base:z.base??j.base,meta:[...j.meta||[],...z.meta||[]],link:[...j.link||[],...z.link||[]],script:[...j.script||[],...z.script||[]],style:[...j.style||[],...z.style||[]],htmlAttrs:{...j.htmlAttrs,...z.htmlAttrs},bodyAttrs:{...j.bodyAttrs,...z.bodyAttrs}}}function _(j){W($(j))}function $(j){let z=[];if(j.description)z.push({name:"description",content:j.description});if(j.keywords){let L=Array.isArray(j.keywords)?j.keywords.join(", "):j.keywords;z.push({name:"keywords",content:L})}if(j.author)z.push({name:"author",content:j.author});if(j.robots)z.push({name:"robots",content:j.robots});let B=j.ogTitle??j.title,E=j.ogDescription??j.description;if(B)z.push({property:"og:title",content:B});if(E)z.push({property:"og:description",content:E});if(j.ogImage){if(z.push({property:"og:image",content:j.ogImage}),j.ogImageType)z.push({property:"og:image:type",content:j.ogImageType});if(j.ogImageWidth)z.push({property:"og:image:width",content:String(j.ogImageWidth)});if(j.ogImageHeight)z.push({property:"og:image:height",content:String(j.ogImageHeight)});if(j.ogImageAlt)z.push({property:"og:image:alt",content:j.ogImageAlt})}if(j.ogUrl)z.push({property:"og:url",content:j.ogUrl});if(j.ogType)z.push({property:"og:type",content:j.ogType});if(j.ogSiteName)z.push({property:"og:site_name",content:j.ogSiteName});if(j.ogLocale)z.push({property:"og:locale",content:j.ogLocale});if(j.profileFirstName)z.push({property:"profile:first_name",content:j.profileFirstName});if(j.profileLastName)z.push({property:"profile:last_name",content:j.profileLastName});if(j.profileUsername)z.push({property:"profile:username",content:j.profileUsername});let F=j.twitterTitle??j.title,G=j.twitterDescription??j.description,K=j.twitterImage??j.ogImage;if(j.twitterCard)z.push({name:"twitter:card",content:j.twitterCard});if(F)z.push({name:"twitter:title",content:F});if(G)z.push({name:"twitter:description",content:G});if(K){z.push({name:"twitter:image",content:K});let L=j.twitterImageAlt??(j.twitterImage?void 0:j.ogImageAlt);if(L)z.push({name:"twitter:image:alt",content:L})}if(j.twitterSite)z.push({name:"twitter:site",content:j.twitterSite});if(j.twitterCreator)z.push({name:"twitter:creator",content:j.twitterCreator});if(j.articleAuthor)z.push({property:"article:author",content:j.articleAuthor});if(j.articlePublishedTime)z.push({property:"article:published_time",content:j.articlePublishedTime});if(j.articleModifiedTime)z.push({property:"article:modified_time",content:j.articleModifiedTime});if(j.articleSection)z.push({property:"article:section",content:j.articleSection});if(j.articleTags)for(let L of j.articleTags)z.push({property:"article:tag",content:L});let J=[];if(j.canonical)J.push({rel:"canonical",href:j.canonical});return{title:j.title,titleTemplate:j.titleTemplate,meta:z,link:J}}function S(j){if(Q={...Q,...j},j.title||j.description)_({title:j.title,description:j.description})}function P(j){let z=typeof j==="function"?j():j;W({title:z})}function C(j=N){let z=[];if(j.title){let B=j.title;if(j.titleTemplate)B=typeof j.titleTemplate==="function"?j.titleTemplate(B):j.titleTemplate.replace("%s",B);z.push(`<title>${O(B)}</title>`)}if(j.base){let B=Object.entries(j.base).map(([E,F])=>`${E}="${O(F)}"`).join(" ");z.push(`<base ${B}>`)}for(let B of j.meta||[]){let E=Object.entries(B).filter(([F,G])=>G!==void 0).map(([F,G])=>{return`${F==="httpEquiv"?"http-equiv":F}="${O(String(G))}"`}).join(" ");z.push(`<meta ${E}>`)}for(let B of j.link||[]){let E=Object.entries(B).filter(([F,G])=>G!==void 0).map(([F,G])=>`${F}="${O(String(G))}"`).join(" ");z.push(`<link ${E}>`)}for(let B of j.script||[]){let{content:E,...F}=B,G=Object.entries(F).filter(([K,J])=>J!==void 0).map(([K,J])=>{if(typeof J==="boolean")return J?K:"";return`${K}="${O(String(J))}"`}).filter(Boolean).join(" ");if(E)z.push(`<script ${G}>${E}</script>`);else z.push(`<script ${G}></script>`)}for(let B of j.style||[]){let E=B.type?` type="${B.type}"`:"";z.push(`<style${E}>${B.content}</style>`)}return z.join(`
|
|
3
3
|
`)}function M(j=N){if(!j.htmlAttrs)return"";return Object.entries(j.htmlAttrs).map(([z,B])=>`${z}="${O(B)}"`).join(" ")}function V(j=N){if(!j.bodyAttrs)return"";return Object.entries(j.bodyAttrs).map(([z,B])=>`${z}="${O(B)}"`).join(" ")}function O(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function w(j=N){if(typeof document>"u")return;if(j.title){let z=j.title;if(j.titleTemplate)z=typeof j.titleTemplate==="function"?j.titleTemplate(z):j.titleTemplate.replace("%s",z);document.title=z}for(let z of j.meta||[]){let B=z.name?`meta[name="${z.name}"]`:z.property?`meta[property="${z.property}"]`:null;if(B){let E=document.querySelector(B);if(!E){if(E=document.createElement("meta"),z.name)E.setAttribute("name",z.name);if(z.property)E.setAttribute("property",z.property);document.head.appendChild(E)}E.setAttribute("content",z.content)}}for(let z of j.link||[]){let B=`link[rel="${z.rel}"]${z.href?`[href="${z.href}"]`:""}`,E=document.querySelector(B);if(!E)E=document.createElement("link"),document.head.appendChild(E);for(let[F,G]of Object.entries(z))if(G!==void 0)E.setAttribute(F,String(G))}if(j.htmlAttrs)for(let[z,B]of Object.entries(j.htmlAttrs))if(z==="class")for(let E of String(B).split(/\s+/).filter(Boolean))document.documentElement.classList.add(E);else document.documentElement.setAttribute(z,B);if(j.bodyAttrs)for(let[z,B]of Object.entries(j.bodyAttrs))document.body.setAttribute(z,B)}function y(j){let z="";return{content:j.replace(/@head\s*([\s\S]*?)@endhead/g,(E,F)=>{return z+=F.trim()+`
|
|
4
|
-
`,""}),headContent:z.trim()}}function x(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(B,E,F,G)=>{let K=E?F:z[(G||"").trim()]??G,J=z.__stx_runtime_head??{};return z.__stx_runtime_head=R(J,{title:K}),""})}function T(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(B,E,F,G,K,J)=>{let L=G?K:J,U=G?L:z[(L||"").trim()]??L,X=F.includes(":")?{property:F,content:U}:{name:F,content:U},Y=z.__stx_runtime_head??{};return z.__stx_runtime_head=R(Y,{meta:[X]}),""})}export{h as
|
|
4
|
+
`,""}),headContent:z.trim()}}function x(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(B,E,F,G)=>{let K=E?F:z[(G||"").trim()]??G,J=z.__stx_runtime_head??{};return z.__stx_runtime_head=R(J,{title:K}),""})}function T(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(B,E,F,G,K,J)=>{let L=G?K:J,U=G?L:z[(L||"").trim()]??L,X=F.includes(":")?{property:F,content:U}:{name:F,content:U},Y=z.__stx_runtime_head??{};return z.__stx_runtime_head=R(Y,{meta:[X]}),""})}export{h as Mu,D as Nu,I as Ou,W as Pu,R as Qu,_ as Ru,$ as Su,S as Tu,P as Uu,C as Vu,M as Wu,V as Xu,w as Yu,y as Zu,x as _u,T as $u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ji as a,ki as b}from"./chunk-ya5m5vbn.js";import"./chunk-
|
|
2
|
+
import{ji as a,ki as b}from"./chunk-ya5m5vbn.js";import"./chunk-5ep11kvc.js";export{a as processTeleportDirectives,b as ensureTeleportTargets};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ih as a,jh as b,kh as c,lh as d,mh as e,nh as f,oh as g,ph as h,qh as i,rh as j,sh as k}from"./chunk-
|
|
2
|
+
import{ih as a,jh as b,kh as c,lh as d,mh as e,nh as f,oh as g,ph as h,qh as i,rh as j,sh as k}from"./chunk-jwkmc175.js";import"./chunk-vd5xvsnv.js";import"./chunk-5ep11kvc.js";export{c as setCachedVideoResult,k as processVideo,b as getCachedVideoResult,f as generateThumbnails,g as generateSpriteSheet,e as generatePoster,h as generateHLSManifest,i as generateDASHManifest,d as clearVideoCache,j as analyzeVideo,a as VideoProcessorCache};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rw as l}from"./chunk-5ep11kvc.js";import U from"fs";import G from"path";import I from"os";import H from"crypto";import{generatePlaceholder as m,processImage as g}from"ts-images";var d=[320,640,768,1024,1280,1536,1920],h=["webp","jpeg"],b=80,u=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],P={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},N=null,W=!1;async function Y(){if(W)return N;W=!0;try{let J=await import("sharp");return N=J.default||J,N}catch{return null}}async function e(){return await Y()!==null}async function t(){return!0}async function JJ(J,K={}){let{widths:Z=d,formats:$=h,quality:q=b,fit:C="cover",placeholder:X="none",outputDir:Q=".stx/images",baseUrl:_="/images"}=K,j,x;if(typeof J==="string"){if(x=J,!await Bun.file(J).exists())throw new L(`Image not found: ${J}`,"NOT_FOUND");j=await Bun.file(J).arrayBuffer().then((V)=>Buffer.from(V))}else x="buffer-input",j=J;let w=H.createHash("sha256").update(j).digest("hex").slice(0,12),y=await O(j),{width:B,height:D}=y,A=B/D;await U.promises.mkdir(Q,{recursive:!0});let T=[],v=G.basename(x,G.extname(x)),z=Z.filter((V)=>V<=B);if(!z.includes(B)&&B<=Math.max(...Z))z.push(B);z.sort((V,R)=>V-R);for(let V of z){let R=Math.round(V/A);for(let F of $){let S=`${v}-${V}w-${w}.${F}`,k=G.join(Q,S),c=`${_}/${S}`,E=await n(j,{width:V,height:R,format:F,quality:q,fit:C});await Bun.write(k,E),T.push({path:k,url:c,width:V,height:R,format:F,size:E.length})}}let M;if(X!=="none")M=await o(j,X);return{src:x,variants:T,placeholder:M,width:B,height:D,aspectRatio:A,hash:w}}async function O(J){let K=typeof J==="string"?Buffer.from(await Bun.file(J).arrayBuffer()):J,Z=await Y();if(Z){let q=await Z(K).metadata();return{width:q.width||0,height:q.height||0,format:q.format||"unknown",hasAlpha:q.hasAlpha}}return p(K)}function p(J){if(J[0]===137&&J[1]===80&&J[2]===78&&J[3]===71){let K=J.readUInt32BE(16),Z=J.readUInt32BE(20);return{width:K,height:Z,format:"png",hasAlpha:!0}}if(J[0]===255&&J[1]===216){let K=2;while(K<J.length){if(J[K]!==255)break;let Z=J[K+1];if(Z>=192&&Z<=207&&Z!==196&&Z!==200&&Z!==204){let q=J.readUInt16BE(K+5);return{width:J.readUInt16BE(K+7),height:q,format:"jpeg",hasAlpha:!1}}let $=J.readUInt16BE(K+2);K+=2+$}}if(J.toString("utf8",0,4)==="RIFF"&&J.toString("utf8",8,12)==="WEBP"){let K=J.toString("utf8",12,16);if(K==="VP8 "){let Z=J.readUInt16LE(26)&16383,$=J.readUInt16LE(28)&16383;return{width:Z,height:$,format:"webp",hasAlpha:!1}}if(K==="VP8L"){let Z=J.readUInt32LE(21),$=(Z&16383)+1,q=(Z>>14&16383)+1;return{width:$,height:q,format:"webp",hasAlpha:!0}}}if(J.toString("utf8",0,3)==="GIF"){let K=J.readUInt16LE(6),Z=J.readUInt16LE(8);return{width:K,height:Z,format:"gif",hasAlpha:!0}}throw new L("Unable to parse image dimensions","PARSE_ERROR")}async function n(J,K){let Z=await Y();if(Z){let q=Z(J).resize(K.width,K.height,{fit:K.fit});switch(K.format){case"webp":q=q.webp({quality:K.quality});break;case"avif":q=q.avif({quality:K.quality});break;case"jpeg":q=q.jpeg({quality:K.quality});break;case"png":q=q.png({quality:K.quality});break}return q.toBuffer()}let $=G.join(I.tmpdir(),`stx-img-${H.randomBytes(8).toString("hex")}.${K.format}`);try{return await g({input:J,output:$,format:K.format,quality:K.quality,resize:{width:K.width,height:K.height,fit:K.fit}}),Buffer.from(await Bun.file($).arrayBuffer())}finally{await U.promises.unlink($).catch(()=>{})}}async function o(J,K){let Z=await Y();if(K==="blur"&&Z){let X=(await Z(J).resize(20).blur(10).toBuffer()).toString("base64"),Q=await O(J);return`data:${P[Q.format]||"image/jpeg"};base64,${X}`}if(K==="dominant-color"&&Z){let{dominant:C}=await Z(J).resize(1,1).toBuffer().then(async(X)=>{let Q=await Z(X).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${C.r}, ${C.g}, ${C.b})`}let $=await O(J),q=G.join(I.tmpdir(),`stx-ph-${H.randomBytes(8).toString("hex")}.${$.format==="unknown"?"bin":$.format}`);try{await Bun.write(q,J);let C=K==="blur"?"blur":K==="thumbhash"?"thumbhash":"dominant-color",Q=await m(q,{strategy:C,width:C==="thumbhash"?void 0:32});if(K==="dominant-color"&&Q.dominantColor)return Q.dominantColor;if(Q.dataURL)return Q.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{await U.promises.unlink(q).catch(()=>{})}}function KJ(J,K){return(K?J.filter(($)=>$.format===K):J).sort(($,q)=>$.width-q.width).map(($)=>`${$.url} ${$.width}w`).join(", ")}function ZJ(J){if(!J||Object.keys(J).length===0)return"100vw";return Object.entries(J).sort((Z,$)=>{let q=Number.parseInt(Z[0].replace(/\D/g,""))||0;return(Number.parseInt($[0].replace(/\D/g,""))||0)-q}).map(([Z,$])=>`(max-width: ${Z}) ${$}`).join(", ")+", 100vw"}function $J(J){let K=J.filter(($)=>$.format==="jpeg");if(K.length===0)return J[Math.floor(J.length/2)];let Z=K.sort(($,q)=>$.width-q.width);return Z[Math.floor(Z.length/2)]}function qJ(J){let K=new Map;for(let Z of J){let $=K.get(Z.format)||[];$.push(Z),K.set(Z.format,$)}return K}function CJ(J){let K=G.extname(J).toLowerCase();return u.includes(K)}function QJ(J){return P[J]||"application/octet-stream"}function VJ(J){return J.reduce((K,Z)=>K+Z.size,0)}function XJ(J){if(J<1024)return`${J} B`;if(J<1048576)return`${(J/1024).toFixed(1)} KB`;return`${(J/1048576).toFixed(2)} MB`}class L extends Error{code;constructor(J,K){super(J);this.name="ImageProcessingError",this.code=K}}
|
|
3
3
|
export{d as Af,h as Bf,b as Cf,e as Df,t as Ef,JJ as Ff,O as Gf,n as Hf,KJ as If,ZJ as Jf,$J as Kf,qJ as Lf,CJ as Mf,QJ as Nf,VJ as Of,XJ as Pf,L as Qf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ro as b,so as c,to as d}from"./chunk-c8zqb80j.js";import{xs as a}from"./chunk-cqp01pgs.js";import"./chunk-1czvb2wx.js";import"./chunk-fc1g65e0.js";import"./chunk-3wvdm033.js";import"./chunk-7gswcqtf.js";import"./chunk-c2mvx2m8.js";import"./chunk-bsm13y1j.js";import"./chunk-gne68nyp.js";import"./chunk-a0attwe1.js";import"./chunk-7080py5f.js";import"./chunk-yjkaqxtc.js";import"./chunk-tp6wkx7g.js";import"./chunk-557n2zx7.js";import"./chunk-tjhzxbxa.js";import"./chunk-x8q2qek2.js";import"./chunk-qnx0eb8x.js";import"./chunk-5ep11kvc.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
|