@stacksjs/stx 0.2.93 → 0.2.94
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/a11y.js +1 -1
- package/dist/analytics.js +1 -1
- package/dist/analyzer.js +1 -1
- package/dist/animation.js +1 -1
- package/dist/app-shell.js +1 -1
- package/dist/app.js +1 -1
- package/dist/assets.js +1 -1
- package/dist/ast.js +1 -1
- package/dist/async-components.js +1 -1
- package/dist/auth.js +1 -1
- package/dist/broadcasting.js +1 -1
- package/dist/browser-composables.js +1 -1
- package/dist/build-assets.js +1 -1
- package/dist/build-mode-detector.js +1 -1
- package/dist/build-optimizer.js +1 -1
- package/dist/build-views.js +1 -1
- package/dist/build.js +1 -1
- package/dist/builtins/drawer.js +1 -1
- package/dist/builtins/escape.js +1 -1
- package/dist/builtins/icon.js +1 -1
- package/dist/builtins/index.js +1 -1
- package/dist/builtins/modal.js +1 -1
- package/dist/builtins/safe-image.js +1 -1
- package/dist/builtins/stx-image.js +1 -1
- package/dist/builtins/stx-link.js +1 -1
- package/dist/builtins/stx-loading-indicator.js +1 -1
- package/dist/builtins/suspense.js +1 -1
- package/dist/builtins/toast.js +1 -1
- package/dist/builtins/tooltip.js +1 -1
- package/dist/builtins/transition-group.js +1 -1
- package/dist/bundle-analyzer/collector.js +1 -1
- package/dist/bundle-analyzer/index.js +1 -1
- package/dist/bundle-analyzer/report.js +1 -1
- package/dist/bundle-analyzer/treemap.js +1 -1
- package/dist/caching.js +1 -1
- package/dist/{chunk-7074g241.js → chunk-03c26pjz.js} +1 -1
- package/dist/{chunk-n9dhs1dw.js → chunk-04mvcmcr.js} +1 -1
- package/dist/{chunk-hc2mf5h6.js → chunk-05hgyyqc.js} +1 -1
- package/dist/{chunk-kx6eb6ma.js → chunk-0g4gece6.js} +1 -1
- package/dist/{chunk-1v49fwr5.js → chunk-0jkwrcwj.js} +1 -1
- package/dist/{chunk-47kpewks.js → chunk-0m9tdm7t.js} +1 -1
- package/dist/{chunk-4deg33rw.js → chunk-0tatqxj2.js} +2 -2
- package/dist/{chunk-akf1r75r.js → chunk-0wdar532.js} +1 -1
- package/dist/{chunk-9cf97f9p.js → chunk-13yz561y.js} +2 -2
- package/dist/{chunk-rpx5fa65.js → chunk-174z0cd0.js} +2 -2
- package/dist/{chunk-wkz2vwkr.js → chunk-1mmykse5.js} +1 -1
- package/dist/{chunk-3te20hqw.js → chunk-1z2yq9em.js} +2 -2
- package/dist/{chunk-rw26rpek.js → chunk-25s7bckb.js} +2 -2
- package/dist/{chunk-xgkv66q5.js → chunk-268adc7r.js} +1 -1
- package/dist/{chunk-a87qqft6.js → chunk-26r6zh3t.js} +2 -2
- package/dist/{chunk-t0c9wvpr.js → chunk-2w3302dh.js} +1 -1
- package/dist/{chunk-vjbefncc.js → chunk-2xen423s.js} +1 -1
- package/dist/{chunk-jjdq01dv.js → chunk-3bjtemm6.js} +1 -1
- package/dist/{chunk-xv34zbp4.js → chunk-3jm3snz8.js} +1 -1
- package/dist/{chunk-e98v1bc6.js → chunk-3ngm57nt.js} +2 -2
- package/dist/{chunk-gz5fmp3q.js → chunk-3rh7va1z.js} +1 -1
- package/dist/{chunk-kypas8vy.js → chunk-3yg9hbmb.js} +1 -1
- package/dist/{chunk-qygvvygy.js → chunk-46mkpbkk.js} +2 -2
- package/dist/chunk-48cw2nde.js +2 -0
- package/dist/chunk-48r3qe0k.js +3 -0
- package/dist/{chunk-azkegjd8.js → chunk-4bt81cg3.js} +1 -1
- package/dist/{chunk-07y6m5xx.js → chunk-4j188175.js} +1 -1
- package/dist/{chunk-h7aq56qj.js → chunk-4qq8ffke.js} +1 -1
- package/dist/{chunk-hrnnh4tq.js → chunk-50vqeesm.js} +2 -2
- package/dist/{chunk-7n8g0nfn.js → chunk-52agge4n.js} +1 -1
- package/dist/{chunk-9t14se2t.js → chunk-57p201gb.js} +1 -1
- package/dist/{chunk-jpndqst5.js → chunk-5ggw1dyv.js} +1 -1
- package/dist/{chunk-ah88wzbg.js → chunk-5kt3ay7x.js} +1 -1
- package/dist/{chunk-x24s4heg.js → chunk-5p568px4.js} +1 -1
- package/dist/{chunk-q6zhd9yf.js → chunk-5ppkfyn2.js} +1 -1
- package/dist/{chunk-khdn7jwe.js → chunk-5q87fgkk.js} +2 -2
- package/dist/{chunk-0p1h3p3w.js → chunk-5qb761h2.js} +1 -1
- package/dist/{chunk-rtr974rc.js → chunk-5xvbq2gs.js} +2 -2
- package/dist/{chunk-p3e0cqtt.js → chunk-647849kf.js} +2 -2
- package/dist/{chunk-gkzq8zw4.js → chunk-6cr3eeh4.js} +1 -1
- package/dist/{chunk-mhgk632d.js → chunk-6djgb0hr.js} +1 -1
- package/dist/{chunk-tffh3b1e.js → chunk-6dqzky7x.js} +1 -1
- package/dist/{chunk-drjq2zwg.js → chunk-6w03t7h6.js} +2 -2
- package/dist/{chunk-ek2w6zvy.js → chunk-6wn85hn6.js} +1 -1
- package/dist/{chunk-jz73j3qs.js → chunk-6y4gqs1q.js} +1 -1
- package/dist/{chunk-nd9rmddh.js → chunk-75rndzbd.js} +1 -1
- package/dist/{chunk-7dkz6z2s.js → chunk-77tga15w.js} +2 -2
- package/dist/{chunk-wvf31nzs.js → chunk-7a51hkpf.js} +1 -1
- package/dist/{chunk-a2g2qb2y.js → chunk-7b0xdy5h.js} +1 -1
- package/dist/{chunk-ewa88139.js → chunk-7dy588as.js} +1 -1
- package/dist/{chunk-8ahwt6a4.js → chunk-7rvh2wwv.js} +1 -1
- package/dist/{chunk-jt0ezawy.js → chunk-7sm05m0j.js} +1 -1
- package/dist/{chunk-m167kjhv.js → chunk-7xcfy2fn.js} +1 -1
- package/dist/{chunk-keawsbpn.js → chunk-82t27pvd.js} +1 -1
- package/dist/{chunk-psc3wfcf.js → chunk-87kx8byz.js} +1 -1
- package/dist/{chunk-31dr4bys.js → chunk-8fgwhhb8.js} +2 -2
- package/dist/{chunk-rz2ec6g7.js → chunk-8qbax8xn.js} +1 -1
- package/dist/{chunk-e2q9c5vq.js → chunk-91s2hres.js} +1 -1
- package/dist/{chunk-yb1t2h8h.js → chunk-94g3cahw.js} +2 -2
- package/dist/{chunk-n98x35xd.js → chunk-957amb71.js} +1 -1
- package/dist/{chunk-v8j49spx.js → chunk-95w08s8v.js} +1 -1
- package/dist/{chunk-zy3rp1ab.js → chunk-9agvhp1x.js} +1 -1
- package/dist/{chunk-vgv7jvyz.js → chunk-9tmbrwwx.js} +1 -1
- package/dist/{chunk-3a4qsygv.js → chunk-9yz5d003.js} +2 -2
- package/dist/{chunk-4qcy5tx6.js → chunk-a69tvya5.js} +2 -2
- package/dist/{chunk-p52yzjq6.js → chunk-adjcg6wa.js} +2 -2
- package/dist/{chunk-w3b6m427.js → chunk-adqh2m9z.js} +1 -1
- package/dist/{chunk-h0hjy0kn.js → chunk-asarebzq.js} +1 -1
- package/dist/{chunk-43t7faps.js → chunk-aw3rp9ac.js} +1 -1
- package/dist/{chunk-7gd339hd.js → chunk-b0cyc09a.js} +1 -1
- package/dist/{chunk-09k66d8a.js → chunk-b3kkjcdh.js} +1 -1
- package/dist/{chunk-jnmgm2xw.js → chunk-b3prs7y0.js} +1 -1
- package/dist/{chunk-xw36p73h.js → chunk-b5zc9y0y.js} +2 -2
- package/dist/{chunk-krqn0ddk.js → chunk-baa7h4yz.js} +2 -2
- package/dist/{chunk-15nesxgt.js → chunk-bgec9r1v.js} +2 -2
- package/dist/{chunk-kdfe4t91.js → chunk-bjnjpsgn.js} +2 -2
- package/dist/{chunk-0a61y94n.js → chunk-bk8ew8ze.js} +2 -2
- package/dist/{chunk-pcntd9h4.js → chunk-bn08k7yy.js} +2 -2
- package/dist/{chunk-8va64c9n.js → chunk-bwxda6n1.js} +2 -2
- package/dist/{chunk-pa9zb7ty.js → chunk-bykjk6vj.js} +1 -1
- package/dist/{chunk-p3fpb79v.js → chunk-c53hyw5c.js} +1 -1
- package/dist/{chunk-km25cwz6.js → chunk-ca6qd1dx.js} +1 -1
- package/dist/{chunk-x3r64r0c.js → chunk-cdbwprfv.js} +2 -2
- package/dist/{chunk-tg2f1mzq.js → chunk-ceg2c2q2.js} +2 -2
- package/dist/{chunk-80g54ncj.js → chunk-cn409b69.js} +1 -1
- package/dist/{chunk-8xj7c3mf.js → chunk-cp3kwv17.js} +1 -1
- package/dist/{chunk-nm15ccsg.js → chunk-cpcc11vp.js} +2 -2
- package/dist/{chunk-y6xsqe9a.js → chunk-cr3wbrcr.js} +2 -2
- package/dist/{chunk-4d2y57k7.js → chunk-cygfdk1n.js} +2 -2
- package/dist/{chunk-xys2sxh6.js → chunk-cyp4m0vh.js} +1 -1
- package/dist/{chunk-27zsyhrd.js → chunk-cz25azze.js} +1 -1
- package/dist/{chunk-4x7kae4j.js → chunk-d77yxcds.js} +2 -2
- package/dist/{chunk-x05nxhyv.js → chunk-dyjnn5k8.js} +2 -2
- package/dist/{chunk-9jtj77jx.js → chunk-dzw95th7.js} +2 -2
- package/dist/{chunk-7b6s3g65.js → chunk-e0zytzdh.js} +1 -1
- package/dist/{chunk-b77wjyn7.js → chunk-e53h9qhd.js} +1 -1
- package/dist/{chunk-wazkqv7n.js → chunk-eds0f8f1.js} +2 -2
- package/dist/{chunk-04n64bnt.js → chunk-eh8hact1.js} +1 -1
- package/dist/{chunk-scpkdrdb.js → chunk-epj957jf.js} +1 -1
- package/dist/{chunk-trfswy66.js → chunk-eqeyaq6g.js} +1 -1
- package/dist/{chunk-x5g9w4hh.js → chunk-fbxt2mrx.js} +2 -2
- package/dist/{chunk-5shey2e4.js → chunk-fch9tk1k.js} +1 -1
- package/dist/{chunk-988dw6q3.js → chunk-fe7r1mq1.js} +2 -2
- package/dist/{chunk-8b3z0zd5.js → chunk-fhawx87n.js} +1 -1
- package/dist/{chunk-ynhngsdh.js → chunk-fk51yyrw.js} +1 -1
- package/dist/{chunk-dqn9gyhb.js → chunk-fms20x0n.js} +1 -1
- package/dist/{chunk-bk3j0n82.js → chunk-fs0qezn5.js} +1 -1
- package/dist/{chunk-2j21d3ka.js → chunk-g2hekckm.js} +1 -1
- package/dist/{chunk-55nwdnsd.js → chunk-g8b81pzc.js} +1 -1
- package/dist/{chunk-avx8aydt.js → chunk-ganag9dm.js} +2 -2
- package/dist/{chunk-hbgxbgam.js → chunk-gc84b1d2.js} +2 -2
- package/dist/{chunk-djddhmcc.js → chunk-gcf5v18y.js} +1 -1
- package/dist/{chunk-v7f8jj15.js → chunk-ghrx0hn1.js} +1 -1
- package/dist/{chunk-ckxjqqn9.js → chunk-gqpkp459.js} +2 -2
- package/dist/chunk-h45py5w5.js +2 -0
- package/dist/{chunk-aywxfqev.js → chunk-haecq01c.js} +1 -1
- package/dist/{chunk-hbehnm18.js → chunk-hepg894w.js} +2 -2
- package/dist/{chunk-29y0hk5z.js → chunk-hjdc99kb.js} +2 -2
- package/dist/{chunk-8n9nnqr6.js → chunk-hje9v2zh.js} +1 -1
- package/dist/{chunk-bdk6g1vj.js → chunk-hke99a0v.js} +2 -2
- package/dist/{chunk-qvrbjpdc.js → chunk-hpqr9e3x.js} +2 -2
- package/dist/{chunk-ht43ds42.js → chunk-hq5cem49.js} +1 -1
- package/dist/{chunk-8vtm0m84.js → chunk-hrampcrj.js} +1 -1
- package/dist/{chunk-fjk3x41y.js → chunk-ht4j68cs.js} +2 -2
- package/dist/{chunk-xyg1r5w0.js → chunk-j4s5qwd7.js} +2 -2
- package/dist/{chunk-9eq3ht5f.js → chunk-jbejwejg.js} +1 -1
- package/dist/{chunk-baf1hfwh.js → chunk-jfm69keq.js} +2 -2
- package/dist/chunk-jfrn43vh.js +2 -0
- package/dist/{chunk-zen6ax1y.js → chunk-jjvp4t5w.js} +2 -2
- package/dist/{chunk-vmxjghsm.js → chunk-jt44av4j.js} +1 -1
- package/dist/{chunk-k21df0pg.js → chunk-jt98jhpt.js} +1 -1
- package/dist/{chunk-0p0nyq50.js → chunk-k8440jxh.js} +2 -2
- package/dist/{chunk-y1k17c8b.js → chunk-kdxa9epn.js} +2 -2
- package/dist/{chunk-p1h8065h.js → chunk-kfd2hf6f.js} +2 -2
- package/dist/{chunk-x0770gt9.js → chunk-kh6rfz2v.js} +1 -1
- package/dist/{chunk-bhqgmyqw.js → chunk-kkp6rs2n.js} +1 -1
- package/dist/{chunk-jjb05d21.js → chunk-m59y310j.js} +2 -2
- package/dist/{chunk-ay9qf4zj.js → chunk-mgmyr1b9.js} +1 -1
- package/dist/{chunk-vw7vqd76.js → chunk-mqwbpamc.js} +1 -1
- package/dist/{chunk-bs3gmfxz.js → chunk-mrehzhxv.js} +1 -1
- package/dist/{chunk-1sr54zp8.js → chunk-mv03qb75.js} +1 -1
- package/dist/chunk-mwbng54r.js +2 -0
- package/dist/{chunk-rwrv9wbf.js → chunk-n46a5g1g.js} +1 -1
- package/dist/{chunk-zf2pek72.js → chunk-n944baxp.js} +1 -1
- package/dist/{chunk-6djzdes9.js → chunk-nanw7yhz.js} +1 -1
- package/dist/{chunk-g1vt329s.js → chunk-nap11ntr.js} +2 -2
- package/dist/{chunk-d0zjtdw4.js → chunk-ncnfa8ae.js} +2 -2
- package/dist/{chunk-knm8a8yx.js → chunk-pc31m5x5.js} +1 -1
- package/dist/{chunk-7ed3tean.js → chunk-q60knhjf.js} +1 -1
- package/dist/{chunk-shv88d2d.js → chunk-q6h6yvzb.js} +2 -2
- package/dist/{chunk-9wmq2272.js → chunk-qd5461tt.js} +1 -1
- package/dist/{chunk-0dx4q6yq.js → chunk-qdc3aav1.js} +1 -1
- package/dist/{chunk-d1qh1x2g.js → chunk-qfwzdffx.js} +2 -2
- package/dist/{chunk-p73meypx.js → chunk-qgxwmagw.js} +1 -1
- package/dist/{chunk-rw7937v4.js → chunk-qhdtssn1.js} +2 -2
- package/dist/{chunk-pcm1vd8w.js → chunk-qk584whs.js} +1 -1
- package/dist/{chunk-9zbk5zx5.js → chunk-qm4yppj5.js} +2 -2
- package/dist/chunk-qwyd9a1d.js +2 -0
- package/dist/{chunk-xs03kc1h.js → chunk-qxs6et76.js} +1 -1
- package/dist/{chunk-8qc1bsym.js → chunk-rb1e4cnb.js} +1 -1
- package/dist/{chunk-9ecv8aqj.js → chunk-rv002yn0.js} +1 -1
- package/dist/chunk-sjagg9qz.js +66 -0
- package/dist/{chunk-bndmdahk.js → chunk-sn07azv3.js} +2 -2
- package/dist/{chunk-5f43yz6z.js → chunk-svahbw0w.js} +2 -2
- package/dist/{chunk-pznnww6k.js → chunk-svhtdb0s.js} +1 -1
- package/dist/{chunk-tzwtg722.js → chunk-t37dp99j.js} +1 -1
- package/dist/{chunk-mgj88zeq.js → chunk-tj6zfxeb.js} +2 -2
- package/dist/{chunk-rqxf5hns.js → chunk-tmgz5t2g.js} +1 -1
- package/dist/{chunk-hjm2xab3.js → chunk-tr0z0e1g.js} +1 -1
- package/dist/{chunk-2cdvw21b.js → chunk-tx6br9r4.js} +1 -1
- package/dist/{chunk-hy8820vc.js → chunk-vdfwv0fp.js} +1 -1
- package/dist/{chunk-yrsb6j3z.js → chunk-vp2395eb.js} +2 -2
- package/dist/{chunk-j447q024.js → chunk-vpe6napb.js} +2 -2
- package/dist/{chunk-wg9k6h8w.js → chunk-vv9wfz1c.js} +2 -2
- package/dist/{chunk-yj4x5ehw.js → chunk-vw6ejgmy.js} +1 -1
- package/dist/{chunk-1xz0w746.js → chunk-w01y57f5.js} +2 -2
- package/dist/{chunk-8a5bxece.js → chunk-w21mwxdd.js} +1 -1
- package/dist/{chunk-20swzkx3.js → chunk-w4n8fqp7.js} +1 -1
- package/dist/{chunk-m491r0rj.js → chunk-w959hm8j.js} +1 -1
- package/dist/{chunk-9b6cec0v.js → chunk-wk07pwtd.js} +1 -1
- package/dist/{chunk-amaa1bev.js → chunk-wxvyj65q.js} +1 -1
- package/dist/{chunk-m8448qby.js → chunk-x1hjv24z.js} +1 -1
- package/dist/{chunk-frg705zq.js → chunk-x39sfpvm.js} +1 -1
- package/dist/{chunk-j58vh0w6.js → chunk-x4fze3q2.js} +1 -1
- package/dist/{chunk-35faj94w.js → chunk-x64kb787.js} +1 -1
- package/dist/{chunk-vg5kt6az.js → chunk-xcb0pbr6.js} +1 -1
- package/dist/{chunk-p077sw22.js → chunk-xhkjhxsp.js} +1 -1
- package/dist/{chunk-zcxzdrn7.js → chunk-xhnpsngj.js} +2 -2
- package/dist/{chunk-7j5e8sdj.js → chunk-xsqbk4yk.js} +2 -2
- package/dist/{chunk-r0jcmpv6.js → chunk-xygc53vr.js} +1 -1
- package/dist/{chunk-nhv099jv.js → chunk-y25pr13j.js} +1 -1
- package/dist/{chunk-rvptcndz.js → chunk-y4c744dk.js} +2 -2
- package/dist/{chunk-wfg2gm11.js → chunk-y4md9hp0.js} +1 -1
- package/dist/{chunk-n5kg7fpx.js → chunk-y5wazw6j.js} +1 -1
- package/dist/{chunk-8dhdpa5h.js → chunk-y86m1wr4.js} +2 -2
- package/dist/{chunk-veeerpwa.js → chunk-yaan98dd.js} +1 -1
- package/dist/{chunk-bxc7kjsk.js → chunk-yach037f.js} +1 -1
- package/dist/{chunk-06w68hyg.js → chunk-yexjrg9d.js} +2 -2
- package/dist/{chunk-6eqbxcrd.js → chunk-yj560gp8.js} +1 -1
- package/dist/{chunk-ejh8fyak.js → chunk-yr1gdceh.js} +1 -1
- package/dist/{chunk-r5m9xtm7.js → chunk-yw2fzq86.js} +2 -2
- package/dist/{chunk-h5jxydqq.js → chunk-ywkrxp2h.js} +1 -1
- package/dist/{chunk-j8tn8enq.js → chunk-z37xq5rx.js} +2 -2
- package/dist/{chunk-npfmdb6y.js → chunk-z4djtgt0.js} +1 -1
- package/dist/{chunk-zk3d0jjf.js → chunk-z8cjr9n9.js} +1 -1
- package/dist/{chunk-10debkj5.js → chunk-znxp3zha.js} +1 -1
- package/dist/{chunk-k848dzsa.js → chunk-zt2yag10.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/directive.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-helpers.js +1 -1
- package/dist/client-script-bundler.js +1 -1
- package/dist/client-script.js +1 -1
- package/dist/component-hmr.js +1 -1
- package/dist/component-processing.js +1 -1
- package/dist/component-registry.js +1 -1
- package/dist/component-renderer.js +1 -1
- package/dist/components.js +1 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-battery.js +1 -1
- package/dist/composables/use-broadcast-channel.js +1 -1
- package/dist/composables/use-channel.js +1 -1
- package/dist/composables/use-clipboard.js +1 -1
- package/dist/composables/use-color-mode.js +1 -1
- package/dist/composables/use-cookie.js +1 -1
- package/dist/composables/use-device-orientation.js +1 -1
- package/dist/composables/use-event-listener.js +1 -1
- package/dist/composables/use-event-source.js +1 -1
- package/dist/composables/use-eye-dropper.js +1 -1
- package/dist/composables/use-fetch.js +1 -1
- package/dist/composables/use-fullscreen.js +1 -1
- package/dist/composables/use-geolocation.js +1 -1
- package/dist/composables/use-idle.js +1 -1
- package/dist/composables/use-intersection-observer.js +1 -1
- package/dist/composables/use-keyboard.js +1 -1
- package/dist/composables/use-media-query.js +1 -1
- package/dist/composables/use-meta.js +1 -1
- package/dist/composables/use-mouse.js +1 -1
- package/dist/composables/use-mutation-observer.js +1 -1
- package/dist/composables/use-network.js +1 -1
- package/dist/composables/use-notification.js +1 -1
- package/dist/composables/use-permissions.js +1 -1
- package/dist/composables/use-resize-observer.js +1 -1
- package/dist/composables/use-router.js +1 -1
- package/dist/composables/use-share.js +1 -1
- package/dist/composables/use-speech.js +1 -1
- package/dist/composables/use-storage.js +1 -1
- package/dist/composables/use-text-selection.js +1 -1
- package/dist/composables/use-timer.js +1 -1
- package/dist/composables/use-utilities.js +1 -1
- package/dist/composables/use-wake-lock.js +1 -1
- package/dist/composables/use-websocket.js +1 -1
- package/dist/composables/use-window.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/composition-api.js +1 -1
- package/dist/computed.js +1 -1
- package/dist/conditionals.js +1 -1
- package/dist/config.js +1 -1
- package/dist/craft-bridge.js +1 -1
- package/dist/craft-compiler.js +1 -1
- package/dist/craft-components.js +1 -1
- package/dist/craft-entry.js +1 -1
- package/dist/craft-ssr.js +1 -1
- package/dist/csp.js +1 -1
- package/dist/csrf.js +1 -1
- package/dist/custom-directives.js +1 -1
- package/dist/defer.js +1 -1
- package/dist/deploy/config-generators.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/netlify.js +1 -1
- package/dist/dev-server/crosswind.js +1 -1
- package/dist/dev-server/index.js +1 -1
- package/dist/dev-server/keyboard-shortcuts.js +1 -1
- package/dist/dev-server/native-window.js +1 -1
- package/dist/dev-server/port-utils.js +1 -1
- package/dist/dev-server/serve-app.js +6 -1
- package/dist/dev-server/serve-file.js +6 -1
- package/dist/dev-server/serve-markdown.js +1 -1
- package/dist/dev-server/serve-multi.js +171 -1
- package/dist/dev-server/terminal-colors.js +1 -1
- package/dist/dev-server/theme-selector.js +1 -1
- package/dist/dev-server/types.js +1 -1
- package/dist/dev-server.js +1 -1
- package/dist/devtools.js +1 -1
- package/dist/directive-api.js +1 -1
- package/dist/docs.js +1 -1
- package/dist/doctor.js +1 -1
- package/dist/document-shell.js +1 -1
- package/dist/dynamic-components.js +1 -1
- package/dist/edge-runtime.js +1 -1
- package/dist/env.js +1 -1
- package/dist/error-boundaries.js +1 -1
- package/dist/error-handling.js +1 -1
- package/dist/errors/codes.js +1 -1
- package/dist/errors/formatter.js +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/logger.js +1 -1
- package/dist/errors/sanitizer.js +1 -1
- package/dist/errors/types.js +1 -1
- package/dist/events.js +1 -1
- package/dist/expressions.js +1 -1
- package/dist/formatter.js +1 -1
- package/dist/forms-validation.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/head.js +1 -1
- package/dist/heatmap.js +1 -1
- package/dist/hot-reload.js +1 -1
- package/dist/html-masking.js +1 -1
- package/dist/hydration-runtime.js +1 -1
- package/dist/hydration.js +1 -1
- package/dist/i18n.js +1 -1
- package/dist/image-optimization/auto-sibling.js +1 -1
- package/dist/image-optimization/build-plugin.js +1 -1
- package/dist/image-optimization/component.js +1 -1
- package/dist/image-optimization/directive.js +1 -1
- package/dist/image-optimization/index.js +1 -1
- package/dist/image-optimization/processor.js +1 -1
- package/dist/image-optimization/serve.js +1 -1
- package/dist/includes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/inline-assets.js +1 -1
- package/dist/interactive.js +1 -1
- package/dist/internal-markdown.js +1 -1
- package/dist/island-chunking.js +1 -1
- package/dist/js-ts.js +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/keep-alive.js +1 -1
- package/dist/lazy-loader.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/loops.js +1 -1
- package/dist/manifest.js +1 -1
- package/dist/markdown.js +1 -1
- package/dist/media/client/blur-up.js +1 -1
- package/dist/media/client/index.js +1 -1
- package/dist/media/client/lazy-load.js +1 -1
- package/dist/media/client/upload-handler.js +1 -1
- package/dist/media/image/component.js +1 -1
- package/dist/media/image/directive.js +1 -1
- package/dist/media/image/editing.js +1 -1
- package/dist/media/image/index.js +1 -1
- package/dist/media/image/placeholder.js +1 -1
- package/dist/media/image/processor/cache.js +1 -1
- package/dist/media/image/processor/index.js +1 -1
- package/dist/media/image/processor/optimizer.js +1 -1
- package/dist/media/image/processor/responsive.js +1 -1
- package/dist/media/image/srcset.js +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/manager/embed.js +1 -1
- package/dist/media/protected/component.js +1 -1
- package/dist/media/protected/index.js +1 -1
- package/dist/media/protected/signature.js +1 -1
- package/dist/media/shared/cache.js +1 -1
- package/dist/media/shared/hash.js +1 -1
- package/dist/media/shared/index.js +1 -1
- package/dist/media/upload/component.js +1 -1
- package/dist/media/upload/index.js +1 -1
- package/dist/media/video/directive.js +1 -1
- package/dist/media/video/index.js +1 -1
- package/dist/media/video/processor/cache.js +1 -1
- package/dist/media/video/processor/index.js +1 -1
- package/dist/media/video/processor/streaming.js +1 -1
- package/dist/media/video/processor/thumbnail.js +1 -1
- package/dist/media/video/processor/transcoder.js +1 -1
- package/dist/method-spoofing.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/misc-directives.js +1 -1
- package/dist/native-build.js +1 -1
- package/dist/parser/directive-parser.js +1 -1
- package/dist/parser/expression-parser.js +1 -1
- package/dist/parser/index.js +1 -1
- package/dist/parser/tokenizer.js +1 -1
- package/dist/partial-hydration.js +1 -1
- package/dist/performance-utils.js +1 -1
- package/dist/placeholder.js +1 -1
- package/dist/plugin-system.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/precompiler.js +1 -1
- package/dist/process.js +1 -1
- package/dist/production-build.js +1 -1
- package/dist/production-builder.js +1 -1
- package/dist/production-server.js +1 -1
- package/dist/props.js +1 -1
- package/dist/public-env.js +1 -1
- package/dist/pwa/audit.js +1 -1
- package/dist/pwa/directives.js +1 -1
- package/dist/pwa/icons.js +1 -1
- package/dist/pwa/index.js +1 -1
- package/dist/pwa/inject.js +1 -1
- package/dist/pwa/manifest.js +1 -1
- package/dist/pwa/offline.js +1 -1
- package/dist/pwa/precache.js +1 -1
- package/dist/pwa/service-worker.js +1 -1
- package/dist/pwa/workbox-strategies.js +1 -1
- package/dist/pwa/workbox.js +1 -1
- package/dist/reactive-bindings.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/reactivity.js +1 -1
- package/dist/release.js +1 -1
- package/dist/render.js +1 -1
- package/dist/route-middleware.js +1 -1
- package/dist/router.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/runtime-injection.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/safe-evaluator.js +1 -1
- package/dist/scaffolding.js +1 -1
- package/dist/screenshot.js +1 -1
- package/dist/script-classifier.js +1 -1
- package/dist/script-validation.js +1 -1
- package/dist/seo.js +1 -1
- package/dist/serve.js +1 -1
- package/dist/server-bindings.js +1 -1
- package/dist/server-components.js +1 -1
- package/dist/signal-processing.js +1 -1
- package/dist/signals-api.js +1 -1
- package/dist/signals.js +1 -1
- package/dist/site-builder/build.js +1 -1
- package/dist/site-builder/i18n.js +1 -1
- package/dist/site-builder/index.js +1 -1
- package/dist/site-builder/robots.js +1 -1
- package/dist/site-builder/router.js +1 -1
- package/dist/site-builder/seo.js +1 -1
- package/dist/site-builder/sitemap.js +1 -1
- package/dist/site-builder/theme.js +1 -1
- package/dist/slots.js +1 -1
- package/dist/source-maps.js +1 -1
- package/dist/spa-shell.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/state-management.js +1 -1
- package/dist/store-imports.js +1 -1
- package/dist/store-loader.js +1 -1
- package/dist/stores-client.js +1 -1
- package/dist/story/addons.js +1 -1
- package/dist/story/analytics.js +1 -1
- package/dist/story/auto-stories.js +1 -1
- package/dist/story/bookmarks.js +1 -1
- package/dist/story/bun-test.js +1 -1
- package/dist/story/cli.js +1 -1
- package/dist/story/collect/analyzer.js +1 -1
- package/dist/story/collect/index.js +1 -1
- package/dist/story/collect/parser.js +1 -1
- package/dist/story/collect/scanner.js +1 -1
- package/dist/story/collect/tree.js +1 -1
- package/dist/story/commands/build.js +1 -1
- package/dist/story/commands/dev.js +1 -1
- package/dist/story/commands/index.js +1 -1
- package/dist/story/commands/preview.js +1 -1
- package/dist/story/compiled-output.js +1 -1
- package/dist/story/composition.js +1 -1
- package/dist/story/config-watcher.js +1 -1
- package/dist/story/config.js +1 -1
- package/dist/story/context.js +1 -1
- package/dist/story/controls/index.js +1 -1
- package/dist/story/crosswind.js +1 -1
- package/dist/story/desktop-preview.js +1 -1
- package/dist/story/docs-generator.js +1 -1
- package/dist/story/errors.js +1 -1
- package/dist/story/figma-export.js +1 -1
- package/dist/story/generator.js +1 -1
- package/dist/story/hmr.js +1 -1
- package/dist/story/hot-swap.js +1 -1
- package/dist/story/index.js +1 -1
- package/dist/story/interactions.js +1 -1
- package/dist/story/keyboard-shortcuts.js +1 -1
- package/dist/story/output.js +1 -1
- package/dist/story/performance.js +1 -1
- package/dist/story/presets.js +1 -1
- package/dist/story/props-validation.js +1 -1
- package/dist/story/renderer.js +1 -1
- package/dist/story/search-index.js +1 -1
- package/dist/story/search.js +1 -1
- package/dist/story/server.js +1 -1
- package/dist/story/setup.js +1 -1
- package/dist/story/snapshots.js +1 -1
- package/dist/story/testing.js +1 -1
- package/dist/story/theme.js +1 -1
- package/dist/story/ui/code-panel.js +1 -1
- package/dist/story/ui/controls-panel.js +1 -1
- package/dist/story/ui/index.js +1 -1
- package/dist/story/ui/navigation.js +1 -1
- package/dist/story/ui/preview.js +1 -1
- package/dist/story/visual-testing.js +1 -1
- package/dist/streaming.js +1 -1
- package/dist/strict-lint.js +1 -1
- package/dist/style-scoping.js +1 -1
- package/dist/suspense.js +1 -1
- package/dist/teleport.js +1 -1
- package/dist/template-compiler.js +1 -1
- package/dist/template-hydrator.js +1 -1
- package/dist/template-tag-balance.js +1 -1
- package/dist/testing.js +1 -1
- package/dist/transitions.js +1 -1
- package/dist/type-checker.js +1 -1
- package/dist/types/directive-types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types.js +1 -1
- package/dist/typescript-templates.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/validator.js +1 -1
- package/dist/variable-extractor.js +1 -1
- package/dist/view-composers.js +1 -1
- package/dist/virtual-scrolling.js +1 -1
- package/dist/visual-editor.js +1 -1
- package/dist/vue-template.js +1 -1
- package/dist/web-components/css-scoping.js +1 -1
- package/dist/web-components/index.js +1 -1
- package/dist/web-components/reactive-generator.js +1 -1
- package/dist/web-components.js +1 -1
- package/dist/x-element.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-2jxbwnkz.js +0 -2
- package/dist/chunk-ejayeex8.js +0 -2
- package/dist/chunk-qa59zejf.js +0 -246
- package/dist/chunk-xqq1vxb6.js +0 -1
- package/dist/chunk-yywfvfph.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{WebView:A}=globalThis.Bun;import{existsSync as K,mkdirSync as U,readdirSync as E,statSync as V}from"fs";import R from"path";var Z=16384;function O(j){if(/^https?:\/\//.test(j)||j.startsWith("file://"))return j;return`file://${R.resolve(j)}`}function C(j,B,z){return new Promise((L)=>{let P=!1,J=()=>{if(!P)P=!0,L()};j.onNavigated=()=>setTimeout(J,B),setTimeout(J,z)})}async function H(j,B,z){let L=`!!document.querySelector(${JSON.stringify(B)})`,P=Date.now()+z;while(Date.now()<P){try{if(await j.evaluate(L))return}catch{}await new Promise((J)=>setTimeout(J,100))}}async function W(j){try{let B=await j.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof B==="number"&&Number.isFinite(B)&&B>0?Math.min(B,Z):0}catch{return 0}}async function X(j,B,z={}){let L=Math.min(z.width??1440,Z),P=Math.min(z.height??2200,Z),J=z.waitMs??800,G=z.timeoutMs??15000,T=z.format??"png",k=O(j),$=(Y)=>new A({url:k,width:L,height:Y,headless:!0,...z.backend?{backend:z.backend}:{}}),Q=$(P);try{if(await C(Q,J,G),z.waitSelector)await H(Q,z.waitSelector,G);if(z.fullPage){let q=await W(Q);if(q>P){if(Q.close(),Q=$(q),await C(Q,J,G),z.waitSelector)await H(Q,z.waitSelector,G)}}let Y=await Q.screenshot({encoding:"buffer",format:T});U(R.dirname(R.resolve(B)),{recursive:!0}),await Bun.write(B,Y)}finally{Q.close()}if(!K(B))throw Error(`Screenshot was not produced for ${j}`);return{input:j,output:B,bytes:V(B).size}}async function F(j,B,z={}){U(B,{recursive:!0});let L;if(!/^https?:\/\//.test(j)&&K(j)&&V(j).isDirectory())L=E(j).filter((G)=>G.endsWith(".html")).map((G)=>R.join(j,G));else L=[j];let P=z.format??"png",J=[];for(let G of L){let T=/^https?:\/\//.test(G)?new URL(G).pathname.replace(/\W+/g,"-").replace(/^-|-$/g,"")||"index":R.basename(G).replace(/\.html?$/,"");J.push(await X(G,R.join(B,`${T}.${P}`),z))}return J}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as Zh,F as _h};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Tj as _,Uj as M,Yj as R}from"./chunk-eqeyaq6g.js";async function y(q){let{src:w,alt:j="",signatureEndpoint:z="/api/sign",signatureConfig:F={},auth:J,fallback:K,oneTimeUse:G=!0}=q,W=q.class,X=q.style;if(J){if(!await _(J)){if(K)return{html:`<img src="${B(K)}" alt="${B(j)}"${W?` class="${B(W)}"`:""}${X?` style="${B(X)}"`:""} />`};return{html:"<!-- Protected content: access denied -->"}}}let $={endpoint:z,oneTimeUse:G,...F,params:J?M(J):F.params},Y=`stx-protected-${Math.random().toString(36).slice(2,8)}`,O=[`id="${Y}"`,`data-protected-src="${B(w)}"`,`data-signature-endpoint="${B(z)}"`,`alt="${B(j)}"`];if(K)O.push(`data-fallback="${B(K)}"`),O.push(`src="${B(K)}"`);else O.push('src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"');if(W)O.push(`class="${B(W)}"`);if(X)O.push(`style="${B(X)}"`);let Z=`
|
|
3
3
|
(function() {
|
|
4
4
|
var el = document.getElementById('${Y}');
|
|
5
5
|
if (!el) return;
|
|
@@ -54,4 +54,4 @@ else if (el.dataset.fallback) {
|
|
|
54
54
|
});
|
|
55
55
|
})();
|
|
56
56
|
`.trim(),{html:q,script:J}}function E(q,w,j){if(w.src)return{src:String(w.src),alt:String(w.alt||""),signatureEndpoint:String(w.signatureEndpoint||"/api/sign"),auth:w.auth,fallback:w.fallback?String(w.fallback):void 0,oneTimeUse:w.oneTimeUse!==!1};let z=q.trim();if(z.startsWith("@protected(")||z.startsWith("("))z=z.replace(/^@protected\(/,"").replace(/^\(/,"").replace(/\)$/,"");let F=D(z);return{src:L(F[0],j)||"",alt:L(F[1],j)||"",...typeof F[2]==="object"?F[2]:{}}}function D(q){let w=[],j="",z=!1,F="",J=0;for(let K=0;K<q.length;K++){let G=q[K],W=K>0?q[K-1]:"";if((G==='"'||G==="'")&&W!=="\\"){if(!z)z=!0,F=G;else if(G===F)z=!1;else j+=G;continue}if(!z){if(G==="{")J++;if(G==="}")J--;if(G===","&&J===0){w.push(j.trim()),j="";continue}}j+=G}if(j.trim())w.push(j.trim());return w}function L(q,w){if(typeof q!=="string")return q;let j=q.trim();if(j.startsWith('"')&&j.endsWith('"')||j.startsWith("'")&&j.endsWith("'"))return j.slice(1,-1);if(w[j]!==void 0)return w[j];if(j.startsWith("{"))try{return JSON.parse(j)}catch{}return j}function B(q){return q.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}
|
|
57
|
-
export{y as
|
|
57
|
+
export{y as Jj,C as Kj,x as Lj,E as Mj};
|
|
@@ -193,4 +193,4 @@ else {
|
|
|
193
193
|
})();
|
|
194
194
|
</script>
|
|
195
195
|
`}function Q(j,k,B={}){let z=L(k,B),u=j.lastIndexOf("</body>");if(u!==-1)return j.slice(0,u)+z+j.slice(u);if(j.includes("</html>"))return j.replace("</html>",`${z}</html>`);return j+z}function T(j){let k=j.toLowerCase();return k.endsWith(".css")||k.endsWith(".scss")||k.endsWith(".sass")||k.endsWith(".less")}function U(j){let k=j.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((z)=>k.endsWith(z))}function V(j){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((B)=>B.test(j))}var E=null;function W(j){if(!E)E=new G(j);return E}function X(){if(E)E.stop(),E=null}
|
|
196
|
-
export{G as
|
|
196
|
+
export{G as em,L as fm,Q as gm,T as hm,U as im,V as jm,W as km,X as lm};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var M=/<script\b[^>]*>/iy,Q=/<\/script\s*>/ig,U=/<style\b[^>]*>/iy,V=/<\/style\s*>/ig;function J(f,j,w,B){w.lastIndex=j;let z=w.exec(f);if(!z||z.index!==j)return-1;B.lastIndex=w.lastIndex;let v=B.exec(f);if(!v)return-1;return v.index+v[0].length}function W(f,j){return J(f,j,M,Q)}function Z(f,j){return J(f,j,U,V)}function $(f,j){if(!f.startsWith("<!--",j))return-1;let w=f.indexOf("-->",j+4);if(w===-1)return-1;return w+3}function X(f,j,w){let B=[],z="",v=0,K=f.length,H=!1,F=null;while(v<K){let D=f[v];if(H){if(z+=D,F){if(D===F)F=null}else if(D==='"'||D==="'")F=D;else if(D===">")H=!1;v++;continue}if(D==="<"){let G=j(f,v);if(G>v){z+=w(f.slice(v,G),B.length),B.push(f.slice(v,G)),v=G;continue}if(/^<\/?[a-zA-Z]/.test(f.slice(v,v+2)))H=!0;z+=D,v++;continue}z+=D,v++}return{output:z,tokens:B}}function b(f){let{output:j,tokens:w}=X(f,W,(B,z)=>`\x00STX_SCRIPT_${z}\x00`);return{output:j,scripts:w}}function y(f,j){if(j.length===0)return f;return f.replace(/\x00STX_SCRIPT_(\d+)\x00/g,(w,B)=>j[+B]??"")}
|
|
3
|
-
export{W as
|
|
3
|
+
export{W as lv,Z as mv,$ as nv,X as ov,b as pv,y as qv};
|
|
@@ -11,4 +11,4 @@ catch (e) {
|
|
|
11
11
|
throw e;
|
|
12
12
|
}
|
|
13
13
|
`),N.set(Z,$)}return $(...T)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:O,context:F.slice()});return O}clear(){this.pool.length=0,this.fnCache.clear()}}var S=new L;class W{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(j){this.enabled=j}isEnabled(){return this.enabled}setBudget(j,F){this.budgets.set(j,{warnThreshold:0.8,action:"warn",...F})}setBudgets(j){for(let[F,D]of Object.entries(j))this.setBudget(F,D)}removeBudget(j){this.budgets.delete(j)}getBudgets(){let j={};for(let[F,D]of this.budgets.entries())j[F]=D;return j}onViolation(j){this.violationHandlers.push(j)}offViolation(j){let F=this.violationHandlers.indexOf(j);if(F!==-1)this.violationHandlers.splice(F,1)}time(j,F){if(!this.enabled)return F();let D=performance.now(),J=F(),N=performance.now()-D;return this.recordTime(j,N),this.checkBudget(j,N),J}async timeAsync(j,F){if(!this.enabled)return F();let D=performance.now(),J=await F(),N=performance.now()-D;return this.recordTime(j,N),this.checkBudget(j,N),J}checkBudget(j,F){let D=this.budgets.get(j);if(!D)return;let J=F/D.maxTime*100,N=D.warnThreshold!==void 0?F>=D.maxTime*D.warnThreshold&&F<D.maxTime:!1,Q=F>=D.maxTime;if(!N&&!Q)return;let O={label:j,actualTime:F,budgetTime:D.maxTime,exceedancePercent:J,timestamp:new Date,isWarning:N};this.violations.push(O);while(this.violations.length>this.maxViolations)this.violations.shift();for(let Y of this.violationHandlers)try{Y(O)}catch{}let T=N?`[Performance Warning] "${j}" took ${F.toFixed(2)}ms (${J.toFixed(1)}% of ${D.maxTime}ms budget)`:`[Performance Budget Exceeded] "${j}" took ${F.toFixed(2)}ms (exceeded ${D.maxTime}ms budget by ${(J-100).toFixed(1)}%)`;switch(D.action){case"log":console.log(T);break;case"warn":console.warn(T);break;case"error":console.error(T);break;case"throw":if(Q)throw Error(T);else console.warn(T);break}}recordTime(j,F){let D=this.metrics.get(j);if(D)D.count++,D.totalTime+=F,D.maxTime=Math.max(D.maxTime,F),D.minTime=Math.min(D.minTime,F);else this.metrics.set(j,{count:1,totalTime:F,maxTime:F,minTime:F})}getStats(j){if(j){let D=this.metrics.get(j);if(!D)return{};let J=this.budgets.get(j);return{count:D.count,avgTime:D.totalTime/D.count,totalTime:D.totalTime,maxTime:D.maxTime,minTime:D.minTime,budget:J?.maxTime,budgetUtilization:J?D.totalTime/D.count/J.maxTime*100:void 0}}let F={};for(let[D,J]of this.metrics.entries()){let N=this.budgets.get(D);F[D]={count:J.count,avgTime:J.totalTime/J.count,totalTime:J.totalTime,maxTime:J.maxTime,minTime:J.minTime,budget:N?.maxTime,budgetUtilization:N?J.totalTime/J.count/N.maxTime*100:void 0}}return F}getViolations(j){if(j)return this.violations.filter((F)=>F.label===j);return[...this.violations]}getViolationStats(){let j={},F=0,D=0;for(let J of this.violations)if(j[J.label]=(j[J.label]||0)+1,J.isWarning)F++;else D++;return{total:this.violations.length,byLabel:j,warnings:F,errors:D}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var H={processDirectives:{maxTime:500,warnThreshold:0.8,action:"warn"},processTemplate:{maxTime:200,warnThreshold:0.8,action:"warn"},processIncludes:{maxTime:100,warnThreshold:0.8,action:"warn"},processLoops:{maxTime:50,warnThreshold:0.8,action:"warn"},processConditionals:{maxTime:50,warnThreshold:0.8,action:"warn"},processExpressions:{maxTime:100,warnThreshold:0.8,action:"warn"},renderComponent:{maxTime:150,warnThreshold:0.8,action:"warn"},buildWebComponents:{maxTime:1000,warnThreshold:0.8,action:"warn"}},B=null;function w(){if(!B)B=new W;return B}var _=new Proxy({},{get(j,F){return w()[F]}});function v(j=w()){j.setBudgets(H)}function K(){B=null}
|
|
14
|
-
export{I as
|
|
14
|
+
export{I as Bx,z as Cx,A as Dx,G as Ex,X as Fx,M as Gx,P as Hx,R as Ix,S as Jx,W as Kx,H as Lx,w as Mx,_ as Nx,v as Ox,K as Px};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{sp as S,tp as g}from"./chunk-m59y310j.js";import{Er as M,Ls as E,Sr as T,ur as Q}from"./chunk-w01y57f5.js";import{et as H}from"./chunk-nap11ntr.js";import{St as b}from"./chunk-kdxa9epn.js";import{Nx as W}from"./chunk-rv002yn0.js";import{vy as O}from"./chunk-jjvp4t5w.js";import{yy as k,zy as v}from"./chunk-94g3cahw.js";import{Gy as A,Iy as F}from"./chunk-ht4j68cs.js";import{Ly as y}from"./chunk-fch9tk1k.js";import{rB as d}from"./chunk-3jm3snz8.js";import Z from"path";var f={name:"bun-plugin-stx",async setup(_){let z={...await T(),..._.config?.stx},w=new Set,x=z.webComponents?.enabled?`./${Z.relative(Z.dirname(_.config?.outdir||"dist"),z.webComponents.outputDir||"dist/web-components")}`:"/web-components",R=[];if(z.webComponents?.enabled)try{let q=await M(z,w);if(R.push(...q),z.debug&&q.length>0)console.log(`Successfully built ${q.length} web components`)}catch(q){console.error("Failed to build web components:",q)}_.onLoad({filter:/\.stx$/},async({path:q})=>{try{let K=new Set;if(z.cache&&z.cachePath){let B=await S(q,z);if(B){if(z.debug)console.log(`Using cached version of ${q}`);return{contents:B,loader:"html"}}}let G=await O(()=>Bun.file(q).text(),"",(B)=>{throw new F(`Failed to read stx file: ${q}`,q,void 0,void 0,`File read error: ${B.message}`)});if(!G)throw new F(`stx file is empty: ${q}`,q);let{scriptContent:U,templateContent:$,allScripts:X}=W.time("script-extraction",()=>{let B=G,N=G.match(/<template\b(?![^>]*(?:\b(?:id|x-for|x-if|@for|@if|:for|:if)\s*=|\s#[\w-]|\bv-slot|\bslot\s*=))[^>]*>([\s\S]*?)<\/template>/i);if(N)B=N[1].trim();let Y=G.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],D="",I=[];for(let V of Y){let u=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",L=V.match(/<script\b([^>]*)>/i),P=L?L[1]:"";if(/\bserver\b/i.test(P))D=u;else I.push(V)}let m=B.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:D,templateContent:m,allScripts:I}}),j={__filename:q,__dirname:Z.dirname(q),__stx:{webComponentsPath:x,builtComponents:R}};await O(()=>H(U,j,q),void 0,(B)=>{let N=new A(`Script execution failed in ${q}: ${B.message}`,q,void 0,void 0,U.substring(0,100));if(k.log(N,{filePath:q,scriptContent:U}),z.debug)throw N});let J=await W.timeAsync("directive-processing",async()=>{return await E($,j,q,z,K)});if(X.length>0){let{interpolateScriptsInTemplate:B}=await import("././expressions.js"),N=B(X.join(`
|
|
3
|
+
`),j),Y=J.search(/<\/body>/i);if(Y!==-1)J=J.slice(0,Y)+N+`
|
|
4
|
+
`+J.slice(Y);else J+=`
|
|
5
|
+
${N}`}if(J=await b(J),K.forEach((B)=>w.add(B)),z.cache&&z.cachePath){if(await g(q,J,K,z),z.debug)console.log(`Cached template ${q} with ${K.size} dependencies`)}return{contents:J,loader:"html"}}catch(K){let G=K instanceof Error?K:new A(`Plugin processing failed: ${String(K)}`,q);if(k.log(G,{filePath:q,buildConfig:_.config}),v.logDetailedError(G,{filePath:q,plugin:"bun-plugin-stx"}),z.debug)console.error("stx Plugin Error:",G);let U=G,$=U.line||null,X=U.context||null;return{contents:z.debug||y()?`<!DOCTYPE html>
|
|
6
|
+
<html lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<meta charset="UTF-8">
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10
|
+
<title>stx Rendering Error</title>
|
|
11
|
+
<style>
|
|
12
|
+
body { font-family: system-ui, -apple-system, sans-serif; max-width: 800px; margin: 40px auto; padding: 20px; line-height: 1.6; }
|
|
13
|
+
.error-header { color: #dc3545; border-left: 4px solid #dc3545; padding-left: 16px; margin-bottom: 24px; }
|
|
14
|
+
.error-details { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 16px; margin: 16px 0; }
|
|
15
|
+
.error-code { background: #2d3748; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-family: 'Monaco', 'Menlo', monospace; font-size: 14px; }
|
|
16
|
+
.help-section { background: #e3f2fd; border-left: 4px solid #2196f3; padding: 16px; margin-top: 24px; }
|
|
17
|
+
.file-path { font-family: monospace; background: #f1f3f4; padding: 2px 6px; border-radius: 4px; }
|
|
18
|
+
</style>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<div class="error-header">
|
|
22
|
+
<h1>stx Template Error</h1>
|
|
23
|
+
<p>An error occurred while processing your stx template.</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="error-details">
|
|
27
|
+
<h3>Error Details</h3>
|
|
28
|
+
<p><strong>File:</strong> <span class="file-path">${Q(q)}</span></p>
|
|
29
|
+
<p><strong>Error:</strong> ${Q(G.message)}</p>
|
|
30
|
+
${$?`<p><strong>Line:</strong> ${Q(String($))}</p>`:""}
|
|
31
|
+
${X?`<p><strong>Context:</strong> ${Q(String(X))}</p>`:""}
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
${G.stack?`
|
|
35
|
+
<div class="error-details">
|
|
36
|
+
<h3>Stack Trace</h3>
|
|
37
|
+
<pre class="error-code">${Q(G.stack)}</pre>
|
|
38
|
+
</div>`:""}
|
|
39
|
+
|
|
40
|
+
<div class="help-section">
|
|
41
|
+
<h3>Troubleshooting Tips</h3>
|
|
42
|
+
<ul>
|
|
43
|
+
<li>Check the syntax of your stx directives (e.g., @if, @foreach)</li>
|
|
44
|
+
<li>Verify that all variables used in the template are properly defined</li>
|
|
45
|
+
<li>Ensure script tags have valid JavaScript/TypeScript syntax</li>
|
|
46
|
+
<li>Run <code>stx debug ${Q(Z.basename(q))}</code> for detailed analysis</li>
|
|
47
|
+
<li>Enable debug mode in your stx config for more detailed error messages</li>
|
|
48
|
+
</ul>
|
|
49
|
+
</div>
|
|
50
|
+
</body>
|
|
51
|
+
</html>`:`<!DOCTYPE html>
|
|
52
|
+
<html lang="en">
|
|
53
|
+
<head>
|
|
54
|
+
<meta charset="UTF-8">
|
|
55
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
56
|
+
<title>Error</title>
|
|
57
|
+
<style>
|
|
58
|
+
body { font-family: system-ui, -apple-system, sans-serif; max-width: 600px; margin: 80px auto; padding: 20px; text-align: center; color: #333; }
|
|
59
|
+
</style>
|
|
60
|
+
</head>
|
|
61
|
+
<body>
|
|
62
|
+
<h1>Something went wrong</h1>
|
|
63
|
+
<p>An internal error occurred. Please try again later.</p>
|
|
64
|
+
</body>
|
|
65
|
+
</html>`,loader:"html"}}})}},t=f;
|
|
66
|
+
export{f as qf,t as rf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{f as
|
|
2
|
+
import{Ek as x,Fk as C}from"./chunk-5q87fgkk.js";import{Sk as U,Xk as k}from"./chunk-5ggw1dyv.js";import{rB as q}from"./chunk-3jm3snz8.js";import{resolve as B,basename as F,extname as T,join as z}from"path";import{mkdir as R}from"fs/promises";async function X(){try{return await import("ts-images")}catch{return null}}function A(K){switch(K){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function P(K,L){let N=L?A(L):A("web"),G=K.formatQuality||{};return{jpeg:{...N.jpeg,...G.jpeg},png:{...N.png,...G.png},webp:{...N.webp,...G.webp},avif:{...N.avif,...G.avif}}}async function f(K,L,N){let G=await X();if(!G)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:K,processed:!1};let w=await x(K,L,N);if(w)return w;try{let O=B(K);if(!await k(O))return{src:K,processed:!1,errors:[`Source file not found: ${K}`]};let J=P(N,L.preset),Y=N.outputDir||"dist/images",E=N.baseUrl||"/images";await R(Y,{recursive:!0});let Z=await U(O),H=F(K,T(K)),S=L.outputFormat?[L.outputFormat]:N.defaultFormats||["avif","webp","jpeg"],M={src:K,processed:!0,variants:[],hash:Z},_=null;if(L.transformations&&L.transformations.length>0)_=await d(O,L.transformations,G);for(let V of S){let $=J[V]||{},j=`${H}-${Z}.${V}`,v=z(Y,j);try{let W=await G.optimizeImage({input:_||O,output:v,format:V,quality:$.quality,progressive:$.progressive});if(W){if(M.variants.push({path:v,url:`${E}/${j}`,width:W.width||0,height:W.height||0,format:V,size:W.outputSize||0}),!M.originalWidth&&W.width)M.originalWidth=W.width,M.originalHeight=W.height}}catch(W){M.errors=M.errors||[],M.errors.push(`Failed to optimize ${V}: ${W}`)}}if(L.embedThumbhash||L.placeholder==="thumbhash")try{let V=await G.generateThumbHash(O);M.placeholder=V.dataUrl}catch(V){M.errors=M.errors||[],M.errors.push(`Failed to generate thumbhash: ${V}`)}if(L.useDominantColor)try{let V=await G.generatePlaceholder(O,{strategy:"dominant-color"});M.dominantColor=V.dominantColor}catch(V){M.errors=M.errors||[],M.errors.push(`Failed to extract dominant color: ${V}`)}return await C(K,L,M,N),M}catch(O){return{src:K,processed:!1,errors:[`Processing failed: ${O}`]}}}async function n(K,L,N,G){let w=await X();if(!w)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await w.optimizeImage({input:K,output:G,format:L,quality:N}))?.outputSize}}catch(O){return{success:!1,error:String(O)}}}async function d(K,L,N){let G=N||await X();if(!G)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let w=await G.decode(K);for(let O of L){let J=O.options||{};switch(O.type){case"resize":if(J.width||J.height)w=await G.resize(w,{width:J.width,height:J.height,fit:J.fit});break;case"blur":if(J.sigma!==void 0)w=await G.blur(w,J.sigma);break;case"sharpen":if(J.amount!==void 0)w=await G.sharpen(w,J.amount);break;case"grayscale":w=await G.grayscale(w);break;case"rotate":if(J.angle!==void 0)w=await G.rotate(w,J.angle);break;case"flip":w=await G.flip(w);break;case"flop":w=await G.flop(w);break;case"brightness":if(J.value!==void 0)w=await G.brightness(w,J.value);break;case"contrast":if(J.value!==void 0)w=await G.contrast(w,J.value);break;case"saturation":if(J.value!==void 0)w=await G.saturation(w,J.value);break}}return await G.encode(w,"png")}catch(w){return console.error(`[stx-media] Transformation failed: ${w}`),null}}
|
|
3
|
+
export{f as Ak,n as Bk,d as Ck};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jm as O,Km as U,Lm as V,Nm as k,Om as x,Rm as F,Wm as w}from"./chunk-cygfdk1n.js";import{yw as C}from"./chunk-ywkrxp2h.js";var R=new Map;function l(){R.clear()}async function D(X,P){let q=`${X}:${JSON.stringify(P)}`;if(R.has(q))return R.get(q);try{let G=await x(X,P);return R.set(q,G),G}catch{return null}}function I(){return C({name:"image",hasEndTag:!1,description:"Render an optimized image with responsive variants",transform:async(X,P,q)=>{let{src:G,alt:Z,options:J}=f(X,P,q);if(!G)return console.warn("@image directive: missing src argument"),"<!-- @image: missing src -->";let $={widths:J.widths||(J.width?[J.width]:O),formats:J.formats||U,quality:J.quality||V,placeholder:(J.placeholder==="color"?"dominant-color":J.placeholder)||"none"};if(!await k())return M(G,Z||"",J);let N=await D(G,$);if(!N)return M(G,Z||"",J);return b(N,Z||"",J)}})}function f(X,P,q){if(P.src)return{src:String(P.src),alt:String(P.alt||""),options:P.options||{}};let Z=X.trim();if(Z.startsWith("@image(")||Z.startsWith("("))Z=Z.replace(/^@image\(/,"").replace(/^\(/,"").replace(/\)$/,"");let J=y(Z),$=J[0]||"",B=J[1]||"",N={};if($&&!$.startsWith("/")&&!$.startsWith(".")&&!$.startsWith("http")){let j=q[$];if(typeof j==="string")$=j}if(J[2])try{if(typeof J[2]==="string")N=JSON.parse(J[2]);else N=J[2]}catch{}return{src:$,alt:B,options:N}}function y(X){let P=[],q="",G=!1,Z="",J=0,$=0;for(let B=0;B<X.length;B++){let N=X[B],j=B>0?X[B-1]:"";if((N==='"'||N==="'")&&j!=="\\"){if(!G)G=!0,Z=N;else if(N===Z)G=!1,Z="";else q+=N;continue}if(!G){if(N==="{")J++;if(N==="}")J--;if(N==="[")$++;if(N==="]")$--;if(N===","&&J===0&&$===0){P.push(q.trim()),q="";continue}}q+=N}if(q.trim())P.push(q.trim());return P}function M(X,P,q){let G=[`src="${Y(X)}"`];if(P)G.push(`alt="${Y(P)}"`);if(q.width)G.push(`width="${q.width}"`);if(q.height)G.push(`height="${q.height}"`);if(q.class)G.push(`class="${Y(q.class)}"`);if(q.style)G.push(`style="${Y(q.style)}"`);if(q.lazy!==!1)G.push('loading="lazy"');return G.push('decoding="async"'),`<img ${G.join(" ")} />`}function b(X,P,q){let{variants:G,placeholder:Z,width:J,height:$,aspectRatio:B}=X,N=new Map;for(let H of G){let W=N.get(H.format)||[];W.push(H),N.set(H.format,W)}let j=["avif","webp","jpeg","png"],L=[];for(let H of j){let W=N.get(H);if(W&&W.length>0){let T=F(W),u=w(H),v=q.sizes||"100vw";L.push(` <source type="${u}" srcset="${Y(T)}" sizes="${Y(v)}" />`)}}let _=N.get("jpeg")||[],E=_.length>0?_[Math.floor(_.length/2)]:G[Math.floor(G.length/2)],z=[`src="${E?.url||X.src}"`,`alt="${Y(P)}"`];if(q.width||J)z.push(`width="${q.width||J}"`);if(q.height||$)z.push(`height="${q.height||$}"`);if(q.class)z.push(`class="${Y(q.class)}"`);let K=[];if(B)K.push(`aspect-ratio: ${B.toFixed(4)}`);if(q.style)K.push(q.style);if(K.length>0)z.push(`style="${K.join("; ")}"`);if(q.lazy!==!1&&!q.priority)z.push('loading="lazy"');if(z.push('decoding="async"'),q.priority)z.push('fetchpriority="high"');let Q=`<picture>
|
|
3
3
|
`;if(Q+=L.join(`
|
|
4
4
|
`)+`
|
|
5
5
|
`,Q+=` <img ${z.join(" ")} />
|
|
@@ -9,4 +9,4 @@ ${Q}
|
|
|
9
9
|
${Q}
|
|
10
10
|
</div>`}}if(q.priority&&E){let H=w(E.format);Q=`<link rel="preload" as="image" href="${Y(E.url)}" type="${H}" />
|
|
11
11
|
`+Q}return Q}function Y(X){return X.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}var h=I();
|
|
12
|
-
export{l as
|
|
12
|
+
export{l as Zl,I as _l,h as $l};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{_x as Y}from"./chunk-wxvyj65q.js";import $ from"fs";import z from"path";async function v(w){let k=await $.promises.readFile(w,"utf-8"),G=z.basename(w,".stx");return B(k,G,w)}function B(w,k,G){let E=J(w),q=A(w),H=L(w),I=T(w),F=S(w),K=V(w);return{name:k,path:G,description:H,props:E,slots:q,dependencies:I,cssClasses:F,directives:K}}function J(w){let k=[],G=w.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(!G)return k;let E=G[1];try{let q=Y(E);for(let H of q){if(H.name.startsWith("_"))continue;if(H.type==="function")continue;let I=O(E,H.start),F={name:H.name,type:Z(H.value||"",void 0,I),required:!1,default:H.value?_(H.value):void 0};if(I){let K=I.match(/@type\s+\{([^}]+)\}/i);if(K){if(F.type=K[1].trim(),F.type.includes("|"))F.options=F.type.split("|").map((Q)=>Q.trim().replace(/['"]/g,"")).filter((Q)=>Q!=="")}if(I.match(/@required/i))F.required=!0;let X=I.split(`
|
|
3
3
|
`).map((Q)=>Q.trim().replace(/^\*\s*/,"")).filter((Q)=>!Q.startsWith("@")&&Q.length>0);if(X.length>0)F.description=X.join(" ").trim()}k.push(F)}}catch{return b(E)}return k}function O(w,k){let E=w.slice(0,k).match(/\/\*\*\s*([\s\S]*?)\s*\*\/\s*$/);return E?E[1]:void 0}function b(w){let k=[],G=/(?:\/\*\*\s*([\s\S]*?)\s*\*\/\s*)?(?:export\s+)?(?:const|let|var)\s+(\w+)\s*(?::\s*([^=]+))?\s*=\s*([^;\n]+)/g,E=G.exec(w);while(E!==null){let[,q,H,I,F]=E;if(H.startsWith("_"))continue;let K={name:H,type:Z(F,I,q),required:!1,default:_(F)};if(q){let W=q.match(/@type\s+\{([^}]+)\}/i);if(W){if(K.type=W[1].trim(),K.type.includes("|"))K.options=K.type.split("|").map((U)=>U.trim().replace(/['"]/g,"")).filter((U)=>U!=="")}if(q.match(/@required/i))K.required=!0;let Q=q.split(`
|
|
4
4
|
`).map((U)=>U.trim().replace(/^\*\s*/,"")).filter((U)=>!U.startsWith("@")&&U.length>0);if(Q.length>0)K.description=Q.join(" ").trim()}k.push(K),E=G.exec(w)}return k}function Z(w,k,G){if(G){let q=G.match(/@type\s+\{([^}]+)\}/i);if(q)return q[1].trim()}if(k)return k.trim();let E=w.trim();if(E==="true"||E==="false")return"boolean";if(/^['"`]/.test(E))return"string";if(/^-?\d+(?:\.\d+)?$/.test(E))return"number";if(E.startsWith("["))return"array";if(E.startsWith("{"))return"object";if(E==="null")return"null";if(E==="undefined")return"undefined";return"any"}function _(w){let k=w.trim();try{if(k==="true")return!0;if(k==="false")return!1;if(k==="null")return null;if(k==="undefined")return;if(/^-?\d+(?:\.\d+)?$/.test(k))return Number(k);if(/^['"`].*['"`]$/.test(k))return k.slice(1,-1);if(k.startsWith("[")||k.startsWith("{")){let E=k.replace(/'/g,'"');try{return JSON.parse(E)}catch{return k}}return k}catch{return k}}function A(w){let k=[],G=new Set;if(/\{\{\s*slot\s*\}\}/.test(w))k.push({name:"default"}),G.add("default");let E=/<slot\s*(?:name\s*=\s*["']([^"']+)["'])?\s*\/?>/gi,q=E.exec(w);while(q!==null){let H=q[1]||"default";if(!G.has(H))k.push({name:H}),G.add(H);q=E.exec(w)}return k}function L(w){let k=w.match(/^\s*<!--\s*([\s\S]*?)\s*-->/);if(k)return k[1].trim();let G=w.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(G){let E=G[1].match(/^\s*\/\*\*\s*([\s\S]*?)\s*\*\//);if(E){let q=E[1].split(`
|
|
5
5
|
`).map((H)=>H.trim().replace(/^\*\s*/,"")).filter((H)=>!H.startsWith("@")&&H.length>0);if(q.length>0)return q.join(" ").trim()}}return}function T(w){let k=[],G=new Set,E=/import\s+(\w+)\s+from\s+['"][^'"]+\.stx['"]/g,q=E.exec(w);while(q!==null){let F=q[1];if(!G.has(F))k.push(F),G.add(F);q=E.exec(w)}let H=/<([A-Z][a-zA-Z0-9]*)\b/g;q=H.exec(w);while(q!==null){let F=q[1];if(!G.has(F))k.push(F),G.add(F);q=H.exec(w)}let I=/@component\s*\(\s*['"]([^'"]+)['"]/g;q=I.exec(w);while(q!==null){let F=q[1];if(!G.has(F))k.push(F),G.add(F);q=I.exec(w)}return k}function S(w){let k=[],G=new Set,E=/class\s*=\s*["']([^"']+)["']/gi,q=E.exec(w);while(q!==null){let H=q[1];for(let I of H.split(/\s+/)){let F=I.trim();if(F&&!F.includes("{{")&&!G.has(F))k.push(F),G.add(F)}q=E.exec(w)}return k}function V(w){let k=new Map,G=["@if","@else","@elseif","@endif","@unless","@endunless","@foreach","@endforeach","@for","@endfor","@while","@endwhile","@switch","@case","@default","@endswitch","@component","@endcomponent","@slot","@endslot","@include","@layout","@extends","@section","@endsection","@yield","@push","@endpush","@stack","@once","@endonce","@auth","@endauth","@guest","@endguest","@can","@endcan","@cannot","@endcannot","@env","@endenv","@production","@endproduction","@js","@endjs","@ts","@endts","@css","@endcss","@json","@class","@style","@checked","@selected","@disabled","@readonly","@required"];for(let q of G){let H=new RegExp(q.replace("@","@"),"gi"),I=w.match(H);if(I&&I.length>0){let F=q.slice(1);if(!F.startsWith("end"))k.set(F,(k.get(F)||0)+I.length)}}let E=[];for(let[q,H]of k)E.push({name:q,count:H});return E.sort((q,H)=>H.count-q.count),E}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function q(g){return g.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function L(g){if(g.clientReactive.to)return{value:g.clientReactive.to,reactive:!0};if(g.serverDynamic.to!==void 0)return{value:String(g.serverDynamic.to),reactive:!1};if(typeof g.static.to==="string")return{value:g.static.to,reactive:!1};return{value:"#",reactive:!1}}var O={name:"StxLink",aliases:["stx-link"],render(g,G,M){let z=L(g),E=(typeof g.static.class==="string"?g.static.class:"")||(typeof g.static.className==="string"?g.static.className:""),H=typeof g.static.activeClass==="string"?g.static.activeClass:"active",I=typeof g.static.exactActiveClass==="string"?g.static.exactActiveClass:"exact-active",J=g.static.prefetch===!0||g.static.prefetch==="true"||g.serverDynamic.prefetch===!0,j=[];if(z.reactive)j.push(`:href="${q(z.value)}"`);else j.push(`href="${q(z.value)}"`);if(E)j.push(`class="${q(E)}"`);if(j.push("data-stx-link"),j.push(`data-stx-active-class="${q(H)}"`),j.push(`data-stx-exact-active-class="${q(I)}"`),J)j.push("data-stx-prefetch");let K=new Set(["to","class","className","activeClass","exactActiveClass","prefetch"]);for(let[B,D]of Object.entries(g.static)){if(K.has(B))continue;if(typeof D==="boolean"){if(D)j.push(q(B))}else j.push(`${q(B)}="${q(D)}"`)}return`<a ${j.join(" ")}>${G}</a>`}};
|
|
3
|
-
export{O as
|
|
3
|
+
export{O as _y};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Au as n,Du as l,Gu as XJ,Iu as i,Lu as c,Su as a,yu as d}from"./chunk-7xcfy2fn.js";import{Wu as p,bv as ZJ,dv as $J}from"./chunk-9yz5d003.js";import{rB as VJ}from"./chunk-3jm3snz8.js";async function WJ(){try{return await import("./media/image/processor/index.js")}catch(J){if(!JJ)console.warn("[stx-media] Image processor not available, some features disabled:",J),JJ=!0;return null}}var JJ=!1,o=80,h="async",y="lazy",KJ=!1;async function m(J,K={}){let $=K,X=J;if(X.process&&!X.skipOptimization){if($.tsImagesConfig?.enabled&&!$.isDev)return RJ(X,$)}if($.processedResult?.processed)return s(J,$.processedResult,K);if($.responsiveVariants)return HJ(J,$.responsiveVariants,K);let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,dpr:k,formats:Z=n,quality:Y=o,params:N={},placeholder:G="none",placeholderOptions:j={},lazy:R=!0,priority:_=!1,loading:L=_?"eager":y,decoding:E=h,fetchpriority:D,objectFit:f,objectPosition:I,crossorigin:H,referrerpolicy:S}=J,F=J.class,O=J.style,z=J.id,x=J.data||{},{isDev:C=!1,baseUrl:v=""}=K;if(C&&!K.optimize)return kJ(J);let P,q,T=z||`stx-img-${Math.random().toString(36).slice(2,8)}`;if(G!=="none"&&!_)try{P=await $J(B,{strategy:G,...j}),q=ZJ(T,P,j)}catch{}let u=k!==void 0&&M!==void 0,b;if(u)b=GJ(J,T,P,K);else b=await wJ(J,T,P,K);let A;if(_){let t=Z.includes("webp")?"webp":Z[0],QJ=l(B,w,{...N,q:Y},t),MJ=typeof W==="object"?i(W):W||"100vw";A=`<link rel="preload" as="image" imagesrcset="${QJ}" imagesizes="${MJ}" />`}let g=[];if(!KJ&&G!=="none")g.push(p),KJ=!0;if(q)g.push(q);let qJ=R?YJ(T):void 0;return{html:b,preloadLink:A,css:g.length>0?g.join(`
|
|
3
3
|
`):void 0,script:qJ}}async function wJ(J,K,$,X){let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,formats:k=n,quality:Z=o,params:Y={},lazy:N=!0,priority:G=!1,loading:j=G?"eager":y,decoding:R=h,fetchpriority:_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f}=J,I=J.class,H=J.style,S=J.data||{},F=typeof W==="object"?i(W):W||"100vw",O=[];for(let C of k){let v=l(B,w,{...Y,q:Z},C),P=a(C);if(N&&!G)O.push(` <source type="${P}" data-srcset="${v}" data-sizes="${F}" />`);else O.push(` <source type="${P}" srcset="${v}" sizes="${F}" />`)}let z=r({src:c(B,{...Y,q:Z}),alt:Q,width:M,height:V,loading:G?void 0:j,decoding:R,fetchpriority:G?"high":_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f,className:BJ(I,$),style:e(H,L,E,$),lazy:N&&!G,data:S}),x;if($){let C=`background-image: url('${$.dataURL}'); background-size: cover; background-position: center;`;x=`<div id="${K}" class="stx-img-placeholder" style="${C}">
|
|
4
4
|
<picture>
|
|
5
5
|
${O.join(`
|
|
@@ -61,4 +61,4 @@ ${f.join(`
|
|
|
61
61
|
<img ${H.join(" ")} />
|
|
62
62
|
</picture>`;let C=[];if(K.placeholder)C.push(p);let v=M?YJ(G):void 0,P;if(V&&E)P=`<link rel="preload" as="image" imagesrcset="${E}" />`;return{html:x,preloadLink:P,css:C.length>0?C.join(`
|
|
63
63
|
`):void 0,script:v}}async function HJ(J,K,$){let X={src:K.src,processed:!0,variants:[],placeholder:K.placeholder?.dataURL,originalWidth:K.placeholder?.width,originalHeight:K.placeholder?.height};for(let[B,Q]of Object.entries(K.byFormat))if(Q)X.variants.push(...Q);return s(J,X,$)}
|
|
64
|
-
export{m as
|
|
64
|
+
export{m as vu,OJ as wu,NJ as xu};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function C(j,A={}){let B=[];for(let[D,G]of Object.entries(A)){if(G===void 0||G===null)continue;if(Array.isArray(G))B.push(`${D}=${encodeURIComponent(G.join(","))}`);else if(typeof G==="boolean"){if(G)B.push(`${D}=true`)}else B.push(`${D}=${encodeURIComponent(String(G))}`)}if(B.length===0)return j;let F=j.includes("?")?"&":"?";return`${j}${F}${B.join("&")}`}function O(j){let A=j.indexOf("?");if(A===-1)return{src:j,params:{}};let B=j.slice(0,A),F=j.slice(A+1),D={};for(let G of F.split("&")){let[K,L]=G.split("="),J=L?decodeURIComponent(L):"";if(J==="true")D[K]=!0;else if(J==="false")D[K]=!1;else if(/^-?\d+$/.test(J))D[K]=Number.parseInt(J,10);else if(/^-?\d+\.\d+$/.test(J))D[K]=Number.parseFloat(J);else if(J.includes(","))D[K]=J.split(",");else D[K]=J}return{src:B,params:D}}function M(...j){let A={};for(let B of j)if(B)Object.assign(A,B);return A}function Q(j,A,B,F){let D={w:A};if(B)D.h=B;if(F)D.fit=F;return C(j,D)}function X(j,A,B,F="center"){return C(j,{w:A,h:B,fit:"crop",crop:F})}function Y(j,A,B="center"){return C(j,{w:A,h:A,fit:"crop",crop:B})}function Z(j,A,B){return C(j,{w:A,h:B,fit:"max"})}function _(j,A,B){return C(j,{w:A,h:B,fit:"crop"})}function $(j,A){return C(j,{blur:Math.min(2000,Math.max(0,A))})}function R(j,A){return C(j,{sharp:Math.min(100,Math.max(0,A))})}function T(j){return C(j,{sat:-100})}function E(j,A=100){return C(j,{sepia:Math.min(100,Math.max(0,A))})}function H(j){return C(j,{invert:!0})}function W(j,A){return C(j,{bri:Math.min(100,Math.max(-100,A))})}function V(j,A){return C(j,{con:Math.min(100,Math.max(-100,A))})}function f(j,A){return C(j,{sat:Math.min(100,Math.max(-100,A))})}function S(j,A){return C(j,{rot:(A%360+360)%360})}function x(j){return C(j,{flip:"h"})}function k(j){return C(j,{flip:"v"})}function P(j,A,B){let F={fm:A};if(B!==void 0)F.q=B;return C(j,F)}function w(j,A){return C(j,{q:Math.min(100,Math.max(1,A))})}function q(j,A=["format","compress"]){return C(j,{auto:A})}function v(j,A,B={}){return C(j,{mark:A,markx:B.x,marky:B.y,markalpha:B.alpha,markscale:B.scale,markalign:B.align})}var N={web:{fm:"webp",q:80,auto:["format","compress"]},highQuality:{q:95},thumb:{w:150,h:150,fit:"crop",crop:"center"},avatar:{w:200,h:200,fit:"crop",crop:"faces"},social:{w:1200,h:630,fit:"crop"},preview:{w:400,q:70},placeholder:{w:20,blur:200,q:20}};function y(j,A,B){return C(j,M(N[A],B))}function b(j,A,B){return A.map((F)=>C(j,{...B,w:F}))}function z(j,A,B=[1,2,3],F){return B.map((D)=>C(j,{...F,w:Math.round(A*D),dpr:D}))}function U(j){let A=[];if(j.w!==void 0&&(j.w<1||j.w>16383))A.push("Width must be between 1 and 16383");if(j.h!==void 0&&(j.h<1||j.h>16383))A.push("Height must be between 1 and 16383");if(j.q!==void 0&&(j.q<1||j.q>100))A.push("Quality must be between 1 and 100");if(j.blur!==void 0&&(j.blur<0||j.blur>2000))A.push("Blur must be between 0 and 2000");if(j.rot!==void 0&&(j.rot<0||j.rot>359))A.push("Rotation must be between 0 and 359");if(j.dpr!==void 0&&(j.dpr<1||j.dpr>5))A.push("DPR must be between 1 and 5");return{valid:A.length===0,errors:A}}function I(j){let A={...j};if(A.w!==void 0)A.w=Math.min(16383,Math.max(1,A.w));if(A.h!==void 0)A.h=Math.min(16383,Math.max(1,A.h));if(A.q!==void 0)A.q=Math.min(100,Math.max(1,A.q));if(A.blur!==void 0)A.blur=Math.min(2000,Math.max(0,A.blur));if(A.rot!==void 0)A.rot=(A.rot%360+360)%360;if(A.dpr!==void 0)A.dpr=Math.min(5,Math.max(1,A.dpr));return A}
|
|
3
|
-
export{C as
|
|
3
|
+
export{C as Zj,O as _j,M as $j,Q as ak,X as bk,Y as ck,Z as dk,_ as ek,$ as fk,R as gk,T as hk,E as ik,H as jk,W as kk,V as lk,f as mk,S as nk,x as ok,k as pk,P as qk,w as rk,q as sk,v as tk,N as uk,y as vk,b as wk,z as xk,U as yk,I as zk};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var B=0,A=new Map;function F(){B=0,A.clear()}function G(b,q){let j=B++,w=`<!--__STX_${b.toUpperCase()}_${j}__-->`;return A.set(w,{type:b,expression:q}),w}function I(){let b={};for(let[q,j]of A)b[q]={type:j.type,expression:j.expression};return b}function J(b){let q={},j=/<!--__STX_(EXPR|COND|RAW)_(\d+)__-->/g,w;while((w=j.exec(b))!==null){let z=w[0],D=w[1].toLowerCase(),E=A.get(z);q[z]={type:D,expression:E?.expression||""}}return q}function K(b,q){let j=b;for(let[w,z]of q)j=j.split(w).join(z);return j}function N(b){return b.includes("<!--__STX_")}
|
|
3
|
-
export{F as
|
|
3
|
+
export{F as au,G as bu,I as cu,J as du,K as eu,N as fu};
|
|
@@ -271,4 +271,4 @@ else {
|
|
|
271
271
|
})();
|
|
272
272
|
</script>
|
|
273
273
|
`}var J=null;function X(k){if(!J)J=new K(k);return J}function Y(){if(J)J.getRegistry().clear(),J=null}var Z={ComponentHMRHandler:K,getHMRHandler:X,resetHMRHandler:Y,generateHMRClientScript:U,wrapComponentForHMR:W};
|
|
274
|
-
export{K as
|
|
274
|
+
export{K as ap,U as bp,W as cp,X as dp,Y as ep,Z as fp};
|
|
@@ -3,4 +3,4 @@ async function E(G){try{let k=await Bun.file(G).text(),q=M(k),H=N(k,G),K=W(k,q),
|
|
|
3
3
|
`),q=G.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i),K=(q?q[1]:"").split(`
|
|
4
4
|
`).length,J={conditionals:(G.match(/@(if|unless|elseif|else|endif|endunless)\b/g)||[]).length,loops:(G.match(/@(foreach|for|endforeach|endfor|while|endwhile)\b/g)||[]).length,includes:(G.match(/@(include|component|extends|section|yield)\b/g)||[]).length,custom:0,total:0};J.total=J.conditionals+J.loops+J.includes+J.custom;let X=(G.match(/\{\{[\s\S]*?\}\}/g)||[]).length,Z=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length,Y=(G.match(/@(?:if|unless|elseif|foreach|for|while)\s*\([^)]+\)/g)||[]).length,V=X+Z+Y,Q=(G.match(/<[A-Z][^>]*>/g)||[]).length,$=(G.match(/@(?:layout|extends)\(/g)||[]).length,j=0,z=0;for(let _ of k)if(/@(?:if|unless|foreach|for|while|section)\b/.test(_)&&!/@end/.test(_)&&!/@else/.test(_))z++,j=Math.max(j,z);else if(/@end(?:if|unless|foreach|for|while|section)\b/.test(_))z--;let O=j>=4?3:0,U=Math.min(10,Math.ceil(J.total*0.5+V*0.1+Q*0.3+(K>10?K*0.05:0)+O));return{lines:k.length,characters:G.length,directives:J,expressions:V,components:Q,layouts:$,scriptLines:K,complexity:U}}function N(G,k){let q=[],H=A(G,"if","endif");if(H>0)q.push({type:"error",category:"syntax",message:`Found ${H} unmatched @if directive(s)`,suggestion:"Ensure every @if has a corresponding @endif"});let K=A(G,"foreach","endforeach");if(K>0)q.push({type:"error",category:"syntax",message:`Found ${K} unmatched @foreach directive(s)`,suggestion:"Ensure every @foreach has a corresponding @endforeach"});let J=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(J&&J.length>0)q.push({type:"warning",category:"performance",message:"Nested loops detected which may impact performance",suggestion:"Consider preprocessing data or using more efficient data structures"});let X=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length;if(X>0)q.push({type:"warning",category:"security",message:`Found ${X} raw output expression(s) {!! !!}`,suggestion:"Ensure raw outputs are properly sanitized to prevent XSS"});let Z=G.match(/<img[^>]*>/g);if(Z){let Q=Z.filter(($)=>!$.includes("alt="));if(Q.length>0)q.push({type:"warning",category:"accessibility",message:`Found ${Q.length} image(s) without alt attributes`,suggestion:"Add alt attributes to all images for screen reader accessibility"})}let Y=G.split(`
|
|
5
5
|
`).filter((Q)=>Q.length>120);if(Y.length>0)q.push({type:"info",category:"maintainability",message:`Found ${Y.length} line(s) longer than 120 characters`,suggestion:"Consider breaking long lines for better readability"});let V=(G.match(/style\s*=\s*["'][^"']*["']/g)||[]).length;if(V>3)q.push({type:"info",category:"maintainability",message:`Found ${V} inline style attributes`,suggestion:"Consider moving styles to CSS classes for better maintainability"});return q}function W(G,k){let q=[];if(k.complexity>7)q.push({type:"refactor",message:"Template complexity is high. Consider breaking into smaller components.",impact:"high",effort:"medium"});else if(k.complexity>5&&k.directives.total>8)q.push({type:"optimization",message:"Template has moderate complexity. Consider component extraction for reusability.",impact:"medium",effort:"low"});if(k.lines>100&&k.components===0)q.push({type:"refactor",message:"Large template with no components. Consider extracting reusable parts into components.",impact:"medium",effort:"medium"});if(k.expressions>20)q.push({type:"optimization",message:"Many template expressions detected. Consider preprocessing some data in the script section.",impact:"medium",effort:"low"});let H=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(H&&H.length>0)q.push({type:"optimization",message:"Nested loops detected. Consider preprocessing data or optimizing data structures.",impact:"high",effort:"medium"});if(k.directives.total===0&&k.expressions<5)q.push({type:"optimization",message:"Template appears static. Consider enabling aggressive caching.",impact:"high",effort:"low"});if(k.scriptLines>50)q.push({type:"refactor",message:"Large script section. Consider moving complex logic to external modules.",impact:"medium",effort:"medium"});return q}function w(G,k){let q=1;if(q+=k.directives.conditionals*0.1,q+=k.directives.loops*0.5,q+=k.directives.includes*2,q+=k.expressions*0.05,q+=k.components*1,k.scriptLines>10)q+=k.scriptLines*0.1;let H;if(k.expressions===0&&k.directives.total===0)H="high";else if(k.expressions<5&&k.directives.total<3)H="medium";else H="low";let K=[];if(q>10)K.push("Consider optimizing template complexity");if(H==="low"&&k.directives.total>5)K.push("Reduce dynamic content for better caching");if(k.components===0&&k.lines>40)K.push("Extract components to improve reusability and performance");return{estimatedRenderTime:Math.round(q*100)/100,complexityScore:k.complexity,cacheability:H,recommendations:K}}function A(G,k,q){let H=G.replace(/<!--[\s\S]*?-->/g,""),K=(H.match(new RegExp(`@${k}\\b`,"g"))||[]).length,J=(H.match(new RegExp(`@${q}\\b`,"g"))||[]).length;return Math.abs(K-J)}async function I(G=["**/*.stx"],k){let q=[],H=[];for(let J of G){let X=await Array.fromAsync(new Bun.Glob(J).scan({cwd:k||process.cwd(),onlyFiles:!0,absolute:!0}));H.push(...X.filter((Z)=>Z.endsWith(".stx")))}for(let J of H)try{let X=await E(J);q.push(X)}catch(X){console.warn(`Failed to analyze ${J}:`,X)}let K=B(q);return{results:q,summary:K}}function B(G){let k=G.length,q=G.reduce((V,Q)=>V+Q.metrics.lines,0),H=k>0?G.reduce((V,Q)=>V+Q.metrics.complexity,0)/k:0,K=G.reduce((V,Q)=>V+Q.issues.length,0),J={};G.forEach((V)=>{V.issues.forEach((Q)=>{J[Q.category]=(J[Q.category]||0)+1})});let X=k>0?G.reduce((V,Q)=>V+Q.performance.estimatedRenderTime,0)/k:0,Z=Math.max(1,Math.min(10,Math.round(10-X/2-H/2))),Y=[];if(H>6)Y.push("Project has high average complexity. Consider refactoring complex templates.");if(K>k*2)Y.push("High number of issues detected. Run detailed analysis on individual files.");if(J.security>0)Y.push("Security issues found. Review raw output usage and input sanitization.");return{totalFiles:k,totalLines:q,avgComplexity:Math.round(H*100)/100,totalIssues:K,issuesByCategory:J,performanceScore:Z,recommendations:Y}}
|
|
6
|
-
export{E as
|
|
6
|
+
export{E as Hq,I as Iq};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{g as
|
|
2
|
+
import{Wm as T}from"./chunk-cygfdk1n.js";import{rB as I}from"./chunk-3jm3snz8.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("./image-optimization/processor.js")}
|
|
3
|
+
export{g as am,l as bm};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Nn as I,On as T,Pn as P,Qn as q}from"./chunk-eh8hact1.js";import{Sn as w,Un as M,Vn as N,Wn as R,Xn as Y,Yn as W}from"./chunk-xhkjhxsp.js";import j from"fs";import k from"path";async function c(b={}){let B=Date.now(),H=[],L=b.cwd||process.cwd(),x=(A)=>{H.push(A)},G=(A)=>{if(b.onProgress)b.onProgress(A)},J=k.resolve(L,b.directory||"dist"),h=b.token||process.env.NETLIFY_AUTH_TOKEN,V=b.siteId||process.env.NETLIFY_SITE_ID;if(!h)throw new Q(`No Netlify auth token found.
|
|
3
3
|
|
|
4
4
|
To deploy to Netlify:
|
|
5
5
|
1. Create account at https://app.netlify.com
|
|
@@ -25,4 +25,4 @@ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FO
|
|
|
25
25
|
`))x+=`
|
|
26
26
|
`}x+=`NETLIFY_SITE_ID=${b.siteId}
|
|
27
27
|
`,await Bun.write(L,x)}return{configPath:H,siteId:b.siteId}}class Q extends Error{code;constructor(b,B){super(b);this.name="DeployError",this.code=B}}function F(b){let B=process.platform,H=B==="darwin"?"open":B==="win32"?"start":"xdg-open";Bun.spawn([H,b],{stdio:["ignore","ignore","ignore"]})}
|
|
28
|
-
export{c as
|
|
28
|
+
export{c as Jn,s as Kn,Q as Ln};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{iz as i}from"./chunk-3rh7va1z.js";function r(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let a=e.static[t];if(typeof a==="string")return a;return}var o={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},v={name:"StxDrawer",aliases:["stx-drawer"],render(e,t,a){let n=r(e,"id");if(!n)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let d=i(n),l=r(e,"side")||"right",c=r(e,"size")||"md",p=r(e,"closeOnBackdrop")!=="false",w=r(e,"closeOnEscape")!=="false",f=r(e,"overlay")!=="false",x=o[c]||o.md,s=l==="left",m=s?"left:0":"right:0",g=s?"translateX(-100%)":"translateX(100%)",u=s?"stx-drawer-slide-left":"stx-drawer-slide-right";return`<div id="stx-drawer-${d}" class="stx-drawer-backdrop" data-stx-drawer="${d}" data-close-backdrop="${p}" data-close-escape="${w}" style="display:none;position:fixed;inset:0;z-index:99999;${f?"background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)":"background:transparent;pointer-events:none"};opacity:0;transition:opacity 0.2s ease" role="dialog" aria-modal="true">
|
|
3
3
|
<div class="stx-drawer-panel" style="position:fixed;top:0;bottom:0;${m};width:${x};max-width:100vw;transform:${g};transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);background:var(--stx-drawer-bg,#fff);color:var(--stx-drawer-text,#1f2937);box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow-y:auto;pointer-events:auto">
|
|
4
4
|
<div style="padding:1.5rem">${t}</div>
|
|
5
5
|
</div>
|
|
@@ -9,4 +9,4 @@ import{gz as i}from"./chunk-gz5fmp3q.js";function r(e,t){if(e.serverDynamic[t]!=
|
|
|
9
9
|
.stx-drawer-backdrop[data-stx-drawer-open]{display:block!important;opacity:1}
|
|
10
10
|
.stx-drawer-backdrop[data-stx-drawer-open] .stx-drawer-panel{transform:translateX(0)}
|
|
11
11
|
</style>`}};
|
|
12
|
-
export{v as
|
|
12
|
+
export{v as ez};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qB as U}from"./chunk-3jm3snz8.js";function K(j){let q={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return q[j]||q["network-first"]}function V(j){return K(j).className}function X(j){return{className:"ExpirationPlugin",importFrom:"workbox-expiration",options:{...j.maxEntries&&{maxEntries:j.maxEntries},...j.maxAgeSeconds&&{maxAgeSeconds:j.maxAgeSeconds},...j.purgeOnQuotaError!==void 0&&{purgeOnQuotaError:j.purgeOnQuotaError}}}}function Y(j){return{className:"CacheableResponsePlugin",importFrom:"workbox-cacheable-response",options:{...j.statuses&&{statuses:j.statuses},...j.headers&&{headers:j.headers}}}}function d(j){return{className:"BackgroundSyncPlugin",importFrom:"workbox-background-sync",options:{name:j.name,...j.maxRetentionTime&&{maxRetentionTime:j.maxRetentionTime},...j.forceSyncFallback!==void 0&&{forceSyncFallback:j.forceSyncFallback}}}}function Z(j){let q=K(j.strategy),B=[];if(j.maxAgeSeconds||j.maxEntries)B.push(X({maxAgeSeconds:j.maxAgeSeconds,maxEntries:j.maxEntries,purgeOnQuotaError:!0}));if(j.strategy==="network-first"||j.strategy==="stale-while-revalidate")B.push(Y({statuses:[0,200]}));return{urlPattern:j.pattern,handler:q.className,options:{cacheName:j.cacheName,...B.length>0&&{plugins:B}}}}function A(j){return j.map((q)=>Z(q))}function N(j){let q=j.pwa;if(!q?.enabled)return"";let B=q.routes||[],G=q.cacheStorage,I=[];for(let z of B){let L=V(z.strategy),H=[];if(z.maxAgeSeconds||z.maxEntries||G?.maxEntries){let Q=z.maxEntries||G?.maxEntries||100,J=z.maxAgeSeconds||(G?.maxAge?G.maxAge*24*60*60:void 0);H.push(`new ExpirationPlugin({
|
|
3
3
|
maxEntries: ${Q},
|
|
4
4
|
${J?`maxAgeSeconds: ${J},`:""}
|
|
5
5
|
purgeOnQuotaError: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ys as e4}from"./chunk-m8448qby.js";import{jt as a4}from"./chunk-7074g241.js";import{lt as W1}from"./chunk-9cf97f9p.js";import{st as s4}from"./chunk-v7f8jj15.js";import{tt as L0}from"./chunk-keawsbpn.js";import{vt as o1}from"./chunk-8b3z0zd5.js";import{At as k3,Bt as N3,wt as D4,xt as E4,yt as M4,zt as y4}from"./chunk-hbgxbgam.js";import{It as o4}from"./chunk-ejh8fyak.js";import{Jt as r4}from"./chunk-krqn0ddk.js";import{Pt as Y4,Qt as Z4}from"./chunk-y1k17c8b.js";import{Ut as C4}from"./chunk-2j21d3ka.js";import{Zt as I3}from"./chunk-frg705zq.js";import{au as i0}from"./chunk-hjm2xab3.js";import{gu as n4}from"./chunk-07y6m5xx.js";import{iu as n1,ju as r1,ku as Q5,lu as a1,mu as J5,nu as z5}from"./chunk-wazkqv7n.js";import{ru as T3}from"./chunk-x05nxhyv.js";import{tu as R3}from"./chunk-31dr4bys.js";import{fv as M3,gv as P0}from"./chunk-dqn9gyhb.js";import{jv as X5}from"./chunk-988dw6q3.js";import{kv as O1,lv as Q3,mv as F4,nv as p0,ov as K1,pv as q1}from"./chunk-8qc1bsym.js";import{Iv as p4}from"./chunk-xyg1r5w0.js";import{Lv as v4}from"./chunk-7gd339hd.js";import{Pv as l4,Qv as c4,Rv as i4}from"./chunk-4deg33rw.js";import{$v as u4}from"./chunk-pa9zb7ty.js";import{pw as T4,qw as F3}from"./chunk-a2g2qb2y.js";import{Dw as t4,Fw as Y5,Gw as Z5,Hw as $5}from"./chunk-nhv099jv.js";import{Rw as b4}from"./chunk-shv88d2d.js";import{ix as x4,kx as h4}from"./chunk-ek2w6zvy.js";import{xx as d4}from"./chunk-9wmq2272.js";import{zx as m4}from"./chunk-7dkz6z2s.js";import{Ax as t0,Bx as v3,Mx as R4}from"./chunk-9ecv8aqj.js";import{Qx as T0,Rx as P4,Sx as f4,Tx as g4}from"./chunk-bdk6g1vj.js";import{by as t3,cy as M1}from"./chunk-r5m9xtm7.js";import{fy as E1}from"./chunk-bs3gmfxz.js";import{py as H0,ty as g0}from"./chunk-zen6ax1y.js";import{uy as k4,wy as w0,xy as N4}from"./chunk-yb1t2h8h.js";import{Ey as f0,Hy as I4}from"./chunk-fjk3x41y.js";import{Iy as Y1,Ky as Z1}from"./chunk-5shey2e4.js";import{Ry as q0}from"./chunk-27zsyhrd.js";import{Ty as U5}from"./chunk-7ed3tean.js";import{Xy as w3}from"./chunk-8vtm0m84.js";import{Yy as v1}from"./chunk-tzwtg722.js";import{Zy as g1}from"./chunk-ah88wzbg.js";import{_y as u1}from"./chunk-v8j49spx.js";import{$y as x1}from"./chunk-tg2f1mzq.js";import{bz as l1}from"./chunk-rwrv9wbf.js";import{cz as d1}from"./chunk-wg9k6h8w.js";import{dz as m1}from"./chunk-9jtj77jx.js";import{fz as h1}from"./chunk-qygvvygy.js";import{hz as f1}from"./chunk-vjbefncc.js";import{iz as P1}from"./chunk-8xj7c3mf.js";import{nz as m3,pz as Y0,qz as t,uz as B0,vz as e,xz as $1}from"./chunk-w3b6m427.js";import{Qz as S4}from"./chunk-rz2ec6g7.js";import{$z as V4,hA as W3,iA as L3}from"./chunk-35faj94w.js";import{lA as A4}from"./chunk-djddhmcc.js";import{rA as B3,sA as O3,tA as V3,uA as A3,vA as w4}from"./chunk-knm8a8yx.js";import{pB as g}from"./chunk-xv34zbp4.js";import D0 from"path";import h0 from"fs";import i6 from"fs";import C from"path";var C0={},$3=new Map;function _5(Y){let Q=$3.get(Y);if(!Q){let $=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Q=new RegExp(`:${$}(?!\\w)`,"g"),$3.set(Y,Q)}return Q.lastIndex=0,Q}var s0={uppercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toUpperCase():""},lowercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toLowerCase():""},capitalize:(Y,Q)=>{if(Y===void 0||Y===null)return"";let $=String(Y);return $.charAt(0).toUpperCase()+$.slice(1)},number:(Y,Q,$=0)=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);return Number.isNaN(X)?"":X.toFixed(Number.parseInt(String($),10))}catch{return""}},fmt:(Y,Q,$="en-US")=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);if(Number.isNaN(X))return String(Y);return X.toLocaleString($)}catch{return String(Y)}},join:(Y,Q,$=",")=>{if(!Array.isArray(Y))return"";return Y.join(String($))},escape:(Y,Q)=>{if(Y===void 0||Y===null)return"";return n0(String(Y))},translate:(Y,Q,$={})=>{if(!Q||!Q.__translations)return Y;let X=Q.__translations,J=Q.__i18nConfig?.fallbackToKey??!0,Z=String(Y).split("."),z=X;for(let U of Z){if(z===void 0||z===null)break;z=z[U]}if(z===void 0||z===null)return J?Y:"";let G=String(z);return Object.entries($).forEach(([U,_])=>{G=G.replace(_5(U),String(_))}),G},t:(Y,Q,$={})=>{return s0.translate(Y,Q,$)},truncate:(Y,Q,$=50,X="...")=>{if(Y===void 0||Y===null)return"";let J=String(Y);if(J.length<=$)return J;if($<=X.length)return X.substring(0,$);return J.substring(0,$-X.length)+X},date:(Y,Q,$="short",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Y instanceof Date?Y:new Date(Y);if(Number.isNaN(J.getTime()))return String(Y);let Z={short:{dateStyle:"short"},medium:{dateStyle:"medium"},long:{dateStyle:"long"},full:{dateStyle:"full"},time:{timeStyle:"short"},datetime:{dateStyle:"short",timeStyle:"short"},iso:{}};if($==="iso")return J.toISOString();return new Intl.DateTimeFormat(X,Z[$]||Z.short).format(J)}catch{return String(Y)}},currency:(Y,Q,$="USD",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Number(Y);if(Number.isNaN(J))return String(Y);return new Intl.NumberFormat(X,{style:"currency",currency:$}).format(J)}catch{return String(Y)}},pluralize:(Y,Q,$,X)=>{let J=Number(Y);if(Number.isNaN(J))return $;let Z=X||`${$}s`;return J===1?$:Z},first:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[0];return String(Y).charAt(0)},last:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[Y.length-1];let $=String(Y);return $.charAt($.length-1)},length:(Y,Q)=>{if(Y===void 0||Y===null)return 0;if(Array.isArray(Y)||typeof Y==="string")return Y.length;if(Y instanceof Map||Y instanceof Set)return Y.size;if(typeof Y==="object")return Object.keys(Y).length;return 0},json:(Y,Q,$=!1)=>{if(Y===void 0)return"undefined";if(Y===null)return"null";try{return $?JSON.stringify(Y,null,2):JSON.stringify(Y)}catch{return String(Y)}},default:(Y,Q,$="")=>{return Y===void 0||Y===null||Y===""?$:Y},reverse:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return[...Y].reverse();return String(Y).split("").reverse().join("")},slice:(Y,Q,$=0,X)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y)||typeof Y==="string")return Y.slice($,X);return Y},replace:(Y,Q,$,X="")=>{if(Y===void 0||Y===null)return"";let J=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return String(Y).replace(new RegExp(J,"g"),()=>X)},stripTags:(Y,Q)=>{if(Y===void 0||Y===null)return"";return String(Y).replace(/<[^>]*>/g,"")},urlencode:(Y,Q)=>{if(Y===void 0||Y===null)return"";return encodeURIComponent(String(Y))},abs:(Y,Q)=>{let $=Number(Y);return Number.isNaN($)?0:Math.abs($)},round:(Y,Q,$=0)=>{let X=Number(Y);if(Number.isNaN(X))return 0;let J=10**$;return Math.round(X*J)/J}};function W5(Y,Q){if(Y in s0)console.warn(`Filter "${Y}" already exists as a built-in filter. Custom filter will take precedence.`);C0[Y]=Q}function I7(Y){for(let[Q,$]of Object.entries(Y))W5(Q,$)}function L5(){return{...s0,...C0}}function k7(){for(let Y of Object.keys(C0))delete C0[Y]}function n0(Y){return Y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function v0(Y){let Q=/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi,$;while(($=Q.exec(Y))!==null){let X=$[1];if(/\b(state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/.test(X))return!0}if(/@(if|for|show)\s*=\s*["'][^"']*\(\s*\)/.test(Y))return!0;if(/@for\s*=\s*["'][^"']*\s+(?:in|of)\s+[^"']*\(\s*\)/.test(Y))return!0;if(/(?:^|[\s"'])(?::|x-)(?:for|if|else-if|else|show|text|html|model|bind)\b/.test(Y))return!0;return!1}function X3(Y,Q){let $=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined","NaN","Infinity","isNaN","isFinite","window","document","console"],X=Y.replace(/'[^']*'/g,"").replace(/"[^"]*"/g,""),J="",Z=!1,z=0;for(let _=0;_<X.length;_++){let K=X[_];if(!Z&&K==="`"){Z=!0,z=0;continue}if(Z){if(K==="`"&&z===0){Z=!1;continue}if(K==="$"&&X[_+1]==="{"){z++,_++;continue}if(K==="}"&&z>0){z--;continue}continue}J+=K}X=J;let G=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\b/g,U;while((U=G.exec(X))!==null){let _=U[1];if(!X.substring(0,U.index).trimEnd().endsWith(".")){if(!$.includes(_)&&!(_ in Q))return!1}}return!0}function B5(Y,Q){let $=Y;return $=$.replace(/\{!!([\s\S]*?)!!\}/g,(X,J)=>{try{let Z=K0(J,Q);if(Z===void 0)return X;return Z===null?"":String(Z)}catch{return X}}),$=$.replace(/\{\{([\s\S]*?)\}\}/g,(X,J)=>{let Z=J.trim();if(/^__[A-Z_]+__$/.test(Z))return X;try{let z=K0(J,Q);if(z===void 0)return X;return JSON.stringify(z)}catch{return X}}),$}function N7(Y,Q,$={}){return Y.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(X,J,Z)=>{if(/\bsrc\s*=/.test(J))return X;if(/\bdata-raw\b/.test(J))return X;if(/\btype\s*=\s*["']application\/json["']/.test(J))return X;if($.skipServer&&/\bserver\b/.test(J))return X;let z=B5(Z,Q);return`<script${J}>${z}</script>`})}function W0(Y,Q,$,X){let J=Y,Z=(K,j)=>{let W=Q3(K,j);if(W===-1)return-1;return/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/.test(K.slice(j,W))?-1:W},z=(K,j,W,q)=>{let H=W.length,{output:L,tokens:O}=p0(K,j,(V,B)=>q(H+B));return W.push(...O),L},G=[];J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`);let U=[];J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`);let _=X?.forceSignals===!0||v0(Y);J=J.replace(/\{\{\{([\s\S]*?)\}\}\}/g,(K,j,W)=>{try{let q=K0(j,Q);return q!==void 0&&q!==null?String(q):""}catch(q){let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {{{ ${j.trim()}}}}: ${H}`,$,Y,W,K)}}),J=J.replace(/\{!!([\s\S]*?)!!\}/g,(K,j,W)=>{try{let q=K0(j,Q);if(q===void 0&&Q.__stx_buildMode==="compile")return i0("raw",j.trim());return q!==void 0&&q!==null?String(q):""}catch(q){if(Q.__stx_buildMode==="compile")return i0("raw",j.trim());let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {!! ${j.trim()} !!}: ${H}`,$,Y,W,K)}}),J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`),J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`),J=J.replace(/\{\{([\s\S]*?)\}\}/g,(K,j,W)=>{let q=j.trim(),H=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined"],L=/^([a-zA-Z_$][a-zA-Z0-9_$]*)/,V=q.match(L)?.[1],B=V&&((V in Q)||H.includes(V)),A=/^([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/,w=q.match(A),F=w&&!H.includes(w[1])&&!(w[1]in Q);if(/^__[A-Z_]+__$/.test(q))return"";try{let N=K0(j,Q);if(N===void 0&&_&&!X3(q,Q))return K;if(N===void 0&&Q.__stx_buildMode==="compile"&&!_)return i0("expr",q);return N!==void 0&&N!==null?n0(String(N)):""}catch(N){if(_&&!X3(q,Q))return K;if(F)return K;let I=N instanceof Error?N.message:String(N);return p("Expression",`Error evaluating: {{ ${q} }}: ${I}`,$,Y,W,K)}});for(let K=0;K<U.length;K++)J=J.replace(`<!--__STX_SCRIPT_EXPR_${K}__-->`,()=>U[K]);for(let K=0;K<G.length;K++)J=J.replace(`<!--__STX_STYLE_${K}__-->`,()=>G[K]);return J}function O5(Y,Q,$){if(!Q.trim())return Y;let X=Y,J=Q.trim();while(J.length>0){let Z=J.match(/^(\w+)/);if(!Z)break;let z=Z[1];J=J.substring(z.length).trim();let G=C0[z]||s0[z];if(!G)throw Error(`Filter not found: ${z}. Available filters: ${Object.keys(L5()).join(", ")}`);let U=[];if(J.startsWith(":")){let _=J.match(/^:([^|\s]+)/);if(_){let K=_[1].trim();try{let j=Number(K);U=[Number.isNaN(j)?K:j]}catch{U=[K]}J=J.substring(_[0].length).trim()}}else if(J.startsWith("(")){let _=1,K=1;while(_>0&&K<J.length){if(J[K]==="(")_++;if(J[K]===")")_--;K++}if(_===0){let j=J.substring(1,K-1).trim();if(j)try{if(j.startsWith("{")&&j.endsWith("}"))U=[K0(`(${j})`,$,!0)];else{let W=[],q="",H=null,L=0,O=0,V=0,B=!1;for(let A=0;A<j.length;A++){let w=j[A];if(B){q+=w,B=!1;continue}if(w==="\\"){q+=w,B=!0;continue}if(H){if(q+=w,w===H)H=null;continue}if(w==='"'||w==="'"||w==="`"){H=w,q+=w;continue}if(w==="(")L++;else if(w===")")L--;else if(w==="[")O++;else if(w==="]")O--;else if(w==="{")V++;else if(w==="}")V--;if(w===","&&L===0&&O===0&&V===0){W.push(q),q="";continue}q+=w}if(q)W.push(q);U=W.map((A)=>{let w=A.trim();return K0(w,$,!0)})}}catch{U=[j]}J=J.substring(K).trim()}}try{X=G(X,$,...U)}catch(_){let K=_ instanceof Error?_.message:String(_);throw Error(`Error applying filter '${z}': ${K}`)}if(J.startsWith("|"))J=J.substring(1).trim();else break}return X}function V5(Y){let Q=!1,$="",X=0,J=0,Z=0,z=!1;for(let G=0;G<Y.length;G++){let U=Y[G],_=Y[G+1];if(Q&&z){z=!1;continue}if(Q&&U==="\\"){z=!0;continue}if(z=!1,(U==='"'||U==="'"||U==="`")&&!z){if(!Q)Q=!0,$=U;else if(U===$)Q=!1,$="";continue}if(Q&&$==="`"&&U==="$"&&_==="{"){let K=1;G+=2;while(G<Y.length&&K>0){if(Y[G]==="{")K++;else if(Y[G]==="}")K--;if(K>0)G++}continue}if(Q)continue;if(U==="(")X++;else if(U===")")X--;else if(U==="[")J++;else if(U==="]")J--;else if(U==="{")Z++;else if(U==="}")Z--;if(U==="|"&&X===0&&J===0&&Z===0){if(_==="|"){G++;continue}if(_==="="){G++;continue}return G}}return-1}function K0(Y,Q,$=!1){try{let X=Y.trim(),J=V5(X);if(J>0){let Z=X.substring(0,J).trim(),z=X.substring(J+1).trim(),G=K0(Z,Q,!0);return O5(G,z,Q)}if(!t(X)){if(!$)console.warn(`Potentially unsafe expression detected, using safe evaluator: ${X}`);return Y0(X,Q)}try{let Z=Object.keys(Q),z=Object.values(Q);return e(X,Z)(...z)}catch{return Y0(X,Q)}}catch(X){if(X instanceof ReferenceError){let J=/(\b\w+)\s+is not defined/.exec(X.message);if(J){let Z=J[1],z=A5(Z,Object.keys(Q));if(z&&z!==Z)X.message=`${X.message} \u2014 did you mean '${z}'?`}}if(!$)console.error(`Error evaluating expression: ${Y}`,X);throw X}}function A5(Y,Q){let $=null;for(let J of Q){if(J===Y)continue;let Z=w5(Y,J);if($===null||Z<$.dist)$={key:J,dist:Z}}if(!$)return null;let X=Math.max(Y.length,$.key.length);if($.dist<=2||$.dist/X<=0.35)return $.key;return null}function w5(Y,Q){if(Y===Q)return 0;if(Y.length===0)return Q.length;if(Q.length===0)return Y.length;let[$,X]=Y.length<Q.length?[Y,Q]:[Q,Y],J=Array($.length+1),Z=Array($.length+1);for(let z=0;z<=$.length;z++)J[z]=z;for(let z=1;z<=X.length;z++){Z[0]=z;for(let G=1;G<=$.length;G++){let U=$[G-1]===X[z-1]?0:1;Z[G]=Math.min(Z[G-1]+1,J[G]+1,J[G-1]+U)}for(let G=0;G<=$.length;G++)J[G]=Z[G]}return J[$.length]}function J3(Y){if(!Y)return"";return Y.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/&/g,"&")}import X0 from"path";var U3=0,F5=0;function r0(Y){return Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z3(Y,Q){let $=Y.match(new RegExp(`${Q}\\s*=\\s*"([^"]*)"`,"i"));if($)return $[1];let X=Y.match(new RegExp(`${Q}\\s*=\\s*'([^']*)'`,"i"));if(X)return X[1];return null}function R5(Y){let Q=[],$=/<([a-z][a-z0-9-]*)\s+([^>]*x-data\s*=\s*(?:"[^"]*"|'[^']*')[^>]*)>/gi,X;while((X=$.exec(Y))!==null){let[J,Z,z]=X,G=X.index,U=z3(z,"x-data");if(!U)continue;let _=`__stx_scope_${U3++}`,K=z3(z,"x-init"),j=T5(Y,Z,G+J.length),W=Y.slice(G,j.endIndex),q=I5(W);Q.push({id:_,selector:`[data-stx-scope="${_}"]`,stateExpr:U,initExpr:K,bindings:[],refs:q})}return Q}function T5(Y,Q,$){let X=1,J=$,Z=new RegExp(`<${Q}(?:\\s|>)`,"gi"),z=new RegExp(`</${Q}>`,"gi"),G=new RegExp(`<${Q}[^>]*/\\s*>`,"gi");while(X>0&&J<Y.length){Z.lastIndex=J,z.lastIndex=J,G.lastIndex=J;let U=Z.exec(Y),_=z.exec(Y),K=G.exec(Y);if(K&&K.index<(U?.index??1/0)){J=K.index+K[0].length;continue}if(!_)return{endIndex:Y.length};if(U&&U.index<_.index)X++,J=U.index+U[0].length;else{if(X--,X===0)return{endIndex:_.index+_[0].length};J=_.index+_[0].length}}return{endIndex:Y.length}}function I5(Y){let Q=new Map,$=Y.replace(/x-data\s*=\s*"[^"]*"/gi,'x-data="__stripped__"').replace(/x-data\s*=\s*'[^']*'/gi,"x-data='__stripped__'"),X=/<[a-z][a-z0-9-]*\s+([^>]*x-ref\s*=\s*["']([^"']*)["'][^>]*)>/gi,J;while((J=X.exec($))!==null){let[,Z,z]=J,G=k5(Z);Q.set(z,G)}return Q}function k5(Y){let Q=Y.match(/\bid\s*=\s*["']([^"']*)["']/);if(Q)return Q[1];return`__stx_el_${F5++}`}function N5(){return`
|
|
2
|
+
import{Zs as e4}from"./chunk-x1hjv24z.js";import{kt as a4}from"./chunk-03c26pjz.js";import{mt as W1}from"./chunk-13yz561y.js";import{tt as s4}from"./chunk-ghrx0hn1.js";import{ut as L0}from"./chunk-82t27pvd.js";import{wt as o1}from"./chunk-fhawx87n.js";import{At as y4,Bt as k3,Ct as N3,xt as D4,yt as E4,zt as M4}from"./chunk-gc84b1d2.js";import{Jt as o4}from"./chunk-yr1gdceh.js";import{Kt as r4}from"./chunk-baa7h4yz.js";import{Qt as Y4,Rt as Z4}from"./chunk-kdxa9epn.js";import{Vt as C4}from"./chunk-g2hekckm.js";import{_t as I3}from"./chunk-x39sfpvm.js";import{bu as i0}from"./chunk-tr0z0e1g.js";import{hu as n4}from"./chunk-4j188175.js";import{ju as n1,ku as r1,lu as Q5,mu as a1,nu as J5,ou as z5}from"./chunk-eds0f8f1.js";import{su as T3}from"./chunk-dyjnn5k8.js";import{uu as R3}from"./chunk-8fgwhhb8.js";import{gv as M3,hv as P0}from"./chunk-fms20x0n.js";import{kv as X5}from"./chunk-fe7r1mq1.js";import{lv as O1,mv as Q3,nv as F4,ov as p0,pv as K1,qv as q1}from"./chunk-rb1e4cnb.js";import{Jv as p4}from"./chunk-j4s5qwd7.js";import{Mv as v4}from"./chunk-b0cyc09a.js";import{Qv as l4,Rv as c4,Sv as i4}from"./chunk-0tatqxj2.js";import{aw as u4}from"./chunk-bykjk6vj.js";import{qw as T4,rw as F3}from"./chunk-7b0xdy5h.js";import{Ew as t4,Gw as Y5,Hw as Z5,Iw as $5}from"./chunk-y25pr13j.js";import{Sw as b4}from"./chunk-q6h6yvzb.js";import{jx as x4,lx as h4}from"./chunk-6wn85hn6.js";import{yx as d4}from"./chunk-qd5461tt.js";import{Ax as m4}from"./chunk-77tga15w.js";import{Bx as t0,Cx as v3,Nx as R4}from"./chunk-rv002yn0.js";import{Rx as T0,Sx as P4,Tx as f4,Ux as g4}from"./chunk-hke99a0v.js";import{dy as t3,ey as M1}from"./chunk-yw2fzq86.js";import{hy as E1}from"./chunk-mrehzhxv.js";import{ry as H0,vy as g0}from"./chunk-jjvp4t5w.js";import{wy as k4,yy as w0,zy as N4}from"./chunk-94g3cahw.js";import{Gy as f0,Jy as I4}from"./chunk-ht4j68cs.js";import{Ky as Y1,My as Z1}from"./chunk-fch9tk1k.js";import{Ty as q0}from"./chunk-cz25azze.js";import{Vy as U5}from"./chunk-q60knhjf.js";import{Zy as w3}from"./chunk-hrampcrj.js";import{_y as v1}from"./chunk-t37dp99j.js";import{$y as g1}from"./chunk-5kt3ay7x.js";import{az as u1}from"./chunk-95w08s8v.js";import{bz as x1}from"./chunk-ceg2c2q2.js";import{dz as l1}from"./chunk-n46a5g1g.js";import{ez as d1}from"./chunk-vv9wfz1c.js";import{fz as m1}from"./chunk-dzw95th7.js";import{hz as h1}from"./chunk-46mkpbkk.js";import{jz as f1}from"./chunk-2xen423s.js";import{kz as P1}from"./chunk-cp3kwv17.js";import{pz as m3,rz as Y0,sz as t,wz as B0,xz as e,zz as $1}from"./chunk-adqh2m9z.js";import{Sz as S4}from"./chunk-8qbax8xn.js";import{bA as V4,jA as W3,kA as L3}from"./chunk-x64kb787.js";import{nA as A4}from"./chunk-gcf5v18y.js";import{tA as B3,uA as O3,vA as V3,wA as A3,xA as w4}from"./chunk-pc31m5x5.js";import{rB as g}from"./chunk-3jm3snz8.js";import D0 from"path";import h0 from"fs";import i6 from"fs";import C from"path";var C0={},$3=new Map;function _5(Y){let Q=$3.get(Y);if(!Q){let $=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Q=new RegExp(`:${$}(?!\\w)`,"g"),$3.set(Y,Q)}return Q.lastIndex=0,Q}var s0={uppercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toUpperCase():""},lowercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toLowerCase():""},capitalize:(Y,Q)=>{if(Y===void 0||Y===null)return"";let $=String(Y);return $.charAt(0).toUpperCase()+$.slice(1)},number:(Y,Q,$=0)=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);return Number.isNaN(X)?"":X.toFixed(Number.parseInt(String($),10))}catch{return""}},fmt:(Y,Q,$="en-US")=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);if(Number.isNaN(X))return String(Y);return X.toLocaleString($)}catch{return String(Y)}},join:(Y,Q,$=",")=>{if(!Array.isArray(Y))return"";return Y.join(String($))},escape:(Y,Q)=>{if(Y===void 0||Y===null)return"";return n0(String(Y))},translate:(Y,Q,$={})=>{if(!Q||!Q.__translations)return Y;let X=Q.__translations,J=Q.__i18nConfig?.fallbackToKey??!0,Z=String(Y).split("."),z=X;for(let U of Z){if(z===void 0||z===null)break;z=z[U]}if(z===void 0||z===null)return J?Y:"";let G=String(z);return Object.entries($).forEach(([U,_])=>{G=G.replace(_5(U),String(_))}),G},t:(Y,Q,$={})=>{return s0.translate(Y,Q,$)},truncate:(Y,Q,$=50,X="...")=>{if(Y===void 0||Y===null)return"";let J=String(Y);if(J.length<=$)return J;if($<=X.length)return X.substring(0,$);return J.substring(0,$-X.length)+X},date:(Y,Q,$="short",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Y instanceof Date?Y:new Date(Y);if(Number.isNaN(J.getTime()))return String(Y);let Z={short:{dateStyle:"short"},medium:{dateStyle:"medium"},long:{dateStyle:"long"},full:{dateStyle:"full"},time:{timeStyle:"short"},datetime:{dateStyle:"short",timeStyle:"short"},iso:{}};if($==="iso")return J.toISOString();return new Intl.DateTimeFormat(X,Z[$]||Z.short).format(J)}catch{return String(Y)}},currency:(Y,Q,$="USD",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Number(Y);if(Number.isNaN(J))return String(Y);return new Intl.NumberFormat(X,{style:"currency",currency:$}).format(J)}catch{return String(Y)}},pluralize:(Y,Q,$,X)=>{let J=Number(Y);if(Number.isNaN(J))return $;let Z=X||`${$}s`;return J===1?$:Z},first:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[0];return String(Y).charAt(0)},last:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[Y.length-1];let $=String(Y);return $.charAt($.length-1)},length:(Y,Q)=>{if(Y===void 0||Y===null)return 0;if(Array.isArray(Y)||typeof Y==="string")return Y.length;if(Y instanceof Map||Y instanceof Set)return Y.size;if(typeof Y==="object")return Object.keys(Y).length;return 0},json:(Y,Q,$=!1)=>{if(Y===void 0)return"undefined";if(Y===null)return"null";try{return $?JSON.stringify(Y,null,2):JSON.stringify(Y)}catch{return String(Y)}},default:(Y,Q,$="")=>{return Y===void 0||Y===null||Y===""?$:Y},reverse:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return[...Y].reverse();return String(Y).split("").reverse().join("")},slice:(Y,Q,$=0,X)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y)||typeof Y==="string")return Y.slice($,X);return Y},replace:(Y,Q,$,X="")=>{if(Y===void 0||Y===null)return"";let J=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return String(Y).replace(new RegExp(J,"g"),()=>X)},stripTags:(Y,Q)=>{if(Y===void 0||Y===null)return"";return String(Y).replace(/<[^>]*>/g,"")},urlencode:(Y,Q)=>{if(Y===void 0||Y===null)return"";return encodeURIComponent(String(Y))},abs:(Y,Q)=>{let $=Number(Y);return Number.isNaN($)?0:Math.abs($)},round:(Y,Q,$=0)=>{let X=Number(Y);if(Number.isNaN(X))return 0;let J=10**$;return Math.round(X*J)/J}};function W5(Y,Q){if(Y in s0)console.warn(`Filter "${Y}" already exists as a built-in filter. Custom filter will take precedence.`);C0[Y]=Q}function I7(Y){for(let[Q,$]of Object.entries(Y))W5(Q,$)}function L5(){return{...s0,...C0}}function k7(){for(let Y of Object.keys(C0))delete C0[Y]}function n0(Y){return Y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function v0(Y){let Q=/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi,$;while(($=Q.exec(Y))!==null){let X=$[1];if(/\b(state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/.test(X))return!0}if(/@(if|for|show)\s*=\s*["'][^"']*\(\s*\)/.test(Y))return!0;if(/@for\s*=\s*["'][^"']*\s+(?:in|of)\s+[^"']*\(\s*\)/.test(Y))return!0;if(/(?:^|[\s"'])(?::|x-)(?:for|if|else-if|else|show|text|html|model|bind)\b/.test(Y))return!0;return!1}function X3(Y,Q){let $=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined","NaN","Infinity","isNaN","isFinite","window","document","console"],X=Y.replace(/'[^']*'/g,"").replace(/"[^"]*"/g,""),J="",Z=!1,z=0;for(let _=0;_<X.length;_++){let K=X[_];if(!Z&&K==="`"){Z=!0,z=0;continue}if(Z){if(K==="`"&&z===0){Z=!1;continue}if(K==="$"&&X[_+1]==="{"){z++,_++;continue}if(K==="}"&&z>0){z--;continue}continue}J+=K}X=J;let G=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\b/g,U;while((U=G.exec(X))!==null){let _=U[1];if(!X.substring(0,U.index).trimEnd().endsWith(".")){if(!$.includes(_)&&!(_ in Q))return!1}}return!0}function B5(Y,Q){let $=Y;return $=$.replace(/\{!!([\s\S]*?)!!\}/g,(X,J)=>{try{let Z=K0(J,Q);if(Z===void 0)return X;return Z===null?"":String(Z)}catch{return X}}),$=$.replace(/\{\{([\s\S]*?)\}\}/g,(X,J)=>{let Z=J.trim();if(/^__[A-Z_]+__$/.test(Z))return X;try{let z=K0(J,Q);if(z===void 0)return X;return JSON.stringify(z)}catch{return X}}),$}function N7(Y,Q,$={}){return Y.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(X,J,Z)=>{if(/\bsrc\s*=/.test(J))return X;if(/\bdata-raw\b/.test(J))return X;if(/\btype\s*=\s*["']application\/json["']/.test(J))return X;if($.skipServer&&/\bserver\b/.test(J))return X;let z=B5(Z,Q);return`<script${J}>${z}</script>`})}function W0(Y,Q,$,X){let J=Y,Z=(K,j)=>{let W=Q3(K,j);if(W===-1)return-1;return/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/.test(K.slice(j,W))?-1:W},z=(K,j,W,q)=>{let H=W.length,{output:L,tokens:O}=p0(K,j,(V,B)=>q(H+B));return W.push(...O),L},G=[];J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`);let U=[];J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`);let _=X?.forceSignals===!0||v0(Y);J=J.replace(/\{\{\{([\s\S]*?)\}\}\}/g,(K,j,W)=>{try{let q=K0(j,Q);return q!==void 0&&q!==null?String(q):""}catch(q){let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {{{ ${j.trim()}}}}: ${H}`,$,Y,W,K)}}),J=J.replace(/\{!!([\s\S]*?)!!\}/g,(K,j,W)=>{try{let q=K0(j,Q);if(q===void 0&&Q.__stx_buildMode==="compile")return i0("raw",j.trim());return q!==void 0&&q!==null?String(q):""}catch(q){if(Q.__stx_buildMode==="compile")return i0("raw",j.trim());let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {!! ${j.trim()} !!}: ${H}`,$,Y,W,K)}}),J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`),J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`),J=J.replace(/\{\{([\s\S]*?)\}\}/g,(K,j,W)=>{let q=j.trim(),H=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined"],L=/^([a-zA-Z_$][a-zA-Z0-9_$]*)/,V=q.match(L)?.[1],B=V&&((V in Q)||H.includes(V)),A=/^([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/,w=q.match(A),F=w&&!H.includes(w[1])&&!(w[1]in Q);if(/^__[A-Z_]+__$/.test(q))return"";try{let N=K0(j,Q);if(N===void 0&&_&&!X3(q,Q))return K;if(N===void 0&&Q.__stx_buildMode==="compile"&&!_)return i0("expr",q);return N!==void 0&&N!==null?n0(String(N)):""}catch(N){if(_&&!X3(q,Q))return K;if(F)return K;let I=N instanceof Error?N.message:String(N);return p("Expression",`Error evaluating: {{ ${q} }}: ${I}`,$,Y,W,K)}});for(let K=0;K<U.length;K++)J=J.replace(`<!--__STX_SCRIPT_EXPR_${K}__-->`,()=>U[K]);for(let K=0;K<G.length;K++)J=J.replace(`<!--__STX_STYLE_${K}__-->`,()=>G[K]);return J}function O5(Y,Q,$){if(!Q.trim())return Y;let X=Y,J=Q.trim();while(J.length>0){let Z=J.match(/^(\w+)/);if(!Z)break;let z=Z[1];J=J.substring(z.length).trim();let G=C0[z]||s0[z];if(!G)throw Error(`Filter not found: ${z}. Available filters: ${Object.keys(L5()).join(", ")}`);let U=[];if(J.startsWith(":")){let _=J.match(/^:([^|\s]+)/);if(_){let K=_[1].trim();try{let j=Number(K);U=[Number.isNaN(j)?K:j]}catch{U=[K]}J=J.substring(_[0].length).trim()}}else if(J.startsWith("(")){let _=1,K=1;while(_>0&&K<J.length){if(J[K]==="(")_++;if(J[K]===")")_--;K++}if(_===0){let j=J.substring(1,K-1).trim();if(j)try{if(j.startsWith("{")&&j.endsWith("}"))U=[K0(`(${j})`,$,!0)];else{let W=[],q="",H=null,L=0,O=0,V=0,B=!1;for(let A=0;A<j.length;A++){let w=j[A];if(B){q+=w,B=!1;continue}if(w==="\\"){q+=w,B=!0;continue}if(H){if(q+=w,w===H)H=null;continue}if(w==='"'||w==="'"||w==="`"){H=w,q+=w;continue}if(w==="(")L++;else if(w===")")L--;else if(w==="[")O++;else if(w==="]")O--;else if(w==="{")V++;else if(w==="}")V--;if(w===","&&L===0&&O===0&&V===0){W.push(q),q="";continue}q+=w}if(q)W.push(q);U=W.map((A)=>{let w=A.trim();return K0(w,$,!0)})}}catch{U=[j]}J=J.substring(K).trim()}}try{X=G(X,$,...U)}catch(_){let K=_ instanceof Error?_.message:String(_);throw Error(`Error applying filter '${z}': ${K}`)}if(J.startsWith("|"))J=J.substring(1).trim();else break}return X}function V5(Y){let Q=!1,$="",X=0,J=0,Z=0,z=!1;for(let G=0;G<Y.length;G++){let U=Y[G],_=Y[G+1];if(Q&&z){z=!1;continue}if(Q&&U==="\\"){z=!0;continue}if(z=!1,(U==='"'||U==="'"||U==="`")&&!z){if(!Q)Q=!0,$=U;else if(U===$)Q=!1,$="";continue}if(Q&&$==="`"&&U==="$"&&_==="{"){let K=1;G+=2;while(G<Y.length&&K>0){if(Y[G]==="{")K++;else if(Y[G]==="}")K--;if(K>0)G++}continue}if(Q)continue;if(U==="(")X++;else if(U===")")X--;else if(U==="[")J++;else if(U==="]")J--;else if(U==="{")Z++;else if(U==="}")Z--;if(U==="|"&&X===0&&J===0&&Z===0){if(_==="|"){G++;continue}if(_==="="){G++;continue}return G}}return-1}function K0(Y,Q,$=!1){try{let X=Y.trim(),J=V5(X);if(J>0){let Z=X.substring(0,J).trim(),z=X.substring(J+1).trim(),G=K0(Z,Q,!0);return O5(G,z,Q)}if(!t(X)){if(!$)console.warn(`Potentially unsafe expression detected, using safe evaluator: ${X}`);return Y0(X,Q)}try{let Z=Object.keys(Q),z=Object.values(Q);return e(X,Z)(...z)}catch{return Y0(X,Q)}}catch(X){if(X instanceof ReferenceError){let J=/(\b\w+)\s+is not defined/.exec(X.message);if(J){let Z=J[1],z=A5(Z,Object.keys(Q));if(z&&z!==Z)X.message=`${X.message} \u2014 did you mean '${z}'?`}}if(!$)console.error(`Error evaluating expression: ${Y}`,X);throw X}}function A5(Y,Q){let $=null;for(let J of Q){if(J===Y)continue;let Z=w5(Y,J);if($===null||Z<$.dist)$={key:J,dist:Z}}if(!$)return null;let X=Math.max(Y.length,$.key.length);if($.dist<=2||$.dist/X<=0.35)return $.key;return null}function w5(Y,Q){if(Y===Q)return 0;if(Y.length===0)return Q.length;if(Q.length===0)return Y.length;let[$,X]=Y.length<Q.length?[Y,Q]:[Q,Y],J=Array($.length+1),Z=Array($.length+1);for(let z=0;z<=$.length;z++)J[z]=z;for(let z=1;z<=X.length;z++){Z[0]=z;for(let G=1;G<=$.length;G++){let U=$[G-1]===X[z-1]?0:1;Z[G]=Math.min(Z[G-1]+1,J[G]+1,J[G-1]+U)}for(let G=0;G<=$.length;G++)J[G]=Z[G]}return J[$.length]}function J3(Y){if(!Y)return"";return Y.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/&/g,"&")}import X0 from"path";var U3=0,F5=0;function r0(Y){return Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z3(Y,Q){let $=Y.match(new RegExp(`${Q}\\s*=\\s*"([^"]*)"`,"i"));if($)return $[1];let X=Y.match(new RegExp(`${Q}\\s*=\\s*'([^']*)'`,"i"));if(X)return X[1];return null}function R5(Y){let Q=[],$=/<([a-z][a-z0-9-]*)\s+([^>]*x-data\s*=\s*(?:"[^"]*"|'[^']*')[^>]*)>/gi,X;while((X=$.exec(Y))!==null){let[J,Z,z]=X,G=X.index,U=z3(z,"x-data");if(!U)continue;let _=`__stx_scope_${U3++}`,K=z3(z,"x-init"),j=T5(Y,Z,G+J.length),W=Y.slice(G,j.endIndex),q=I5(W);Q.push({id:_,selector:`[data-stx-scope="${_}"]`,stateExpr:U,initExpr:K,bindings:[],refs:q})}return Q}function T5(Y,Q,$){let X=1,J=$,Z=new RegExp(`<${Q}(?:\\s|>)`,"gi"),z=new RegExp(`</${Q}>`,"gi"),G=new RegExp(`<${Q}[^>]*/\\s*>`,"gi");while(X>0&&J<Y.length){Z.lastIndex=J,z.lastIndex=J,G.lastIndex=J;let U=Z.exec(Y),_=z.exec(Y),K=G.exec(Y);if(K&&K.index<(U?.index??1/0)){J=K.index+K[0].length;continue}if(!_)return{endIndex:Y.length};if(U&&U.index<_.index)X++,J=U.index+U[0].length;else{if(X--,X===0)return{endIndex:_.index+_[0].length};J=_.index+_[0].length}}return{endIndex:Y.length}}function I5(Y){let Q=new Map,$=Y.replace(/x-data\s*=\s*"[^"]*"/gi,'x-data="__stripped__"').replace(/x-data\s*=\s*'[^']*'/gi,"x-data='__stripped__'"),X=/<[a-z][a-z0-9-]*\s+([^>]*x-ref\s*=\s*["']([^"']*)["'][^>]*)>/gi,J;while((J=X.exec($))!==null){let[,Z,z]=J,G=k5(Z);Q.set(z,G)}return Q}function k5(Y){let Q=Y.match(/\bid\s*=\s*["']([^"']*)["']/);if(Q)return Q[1];return`__stx_el_${F5++}`}function N5(){return`
|
|
3
3
|
// STX Reactive Runtime - x-cloak and transition CSS
|
|
4
4
|
(function() {
|
|
5
5
|
var style = document.createElement('style');
|
|
@@ -1536,4 +1536,4 @@ ${_}${V}
|
|
|
1536
1536
|
${X}${$}
|
|
1537
1537
|
${_}
|
|
1538
1538
|
})()</script>`}
|
|
1539
|
-
export{J7 as
|
|
1539
|
+
export{J7 as kr,G7 as lr,j1 as mr,b1 as nr,_1 as or,s0 as pr,W5 as qr,I7 as rr,L5 as sr,k7 as tr,n0 as ur,v0 as vr,B5 as wr,N7 as xr,W0 as yr,O5 as zr,K0 as Ar,J3 as Br,q3 as Cr,H3 as Dr,g7 as Er,A1 as Fr,v5 as Gr,x5 as Hr,x7 as Ir,h7 as Jr,d7 as Kr,m7 as Lr,u7 as Mr,l7 as Nr,h5 as Or,d5 as Pr,j3 as Qr,D3 as Rr,l5 as Sr,E3 as Tr,Q9 as Ur,J9 as Vr,K3 as Wr,M5 as Xr,R1 as Yr,p5 as Zr,y3 as _r,G4 as $r,U4 as as,K4 as bs,$0 as cs,q4 as ds,c1 as es,i1 as fs,p1 as gs,N6 as hs,DY as is,EY as js,MY as ks,yY as ls,bY as ms,C6 as ns,s1 as os,l3 as ps,T9 as qs,C3 as rs,I9 as ss,I1 as ts,k1 as us,N1 as vs,P3 as ws,f3 as xs,p3 as ys,s3 as zs,n3 as As,r3 as Bs,_6 as Cs,W6 as Ds,S1 as Es,X4 as Fs,Q4 as Gs,J4 as Hs,I6 as Is,k6 as Js,z4 as Ks,e1 as Ls,s6 as Ms,I0 as Ns,k0 as Os,L4 as Ps,e6 as Qs,O0 as Rs,x as Ss,a0 as Ts,K5 as Us,p as Vs,QZ as Ws,JZ as Xs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rB as v}from"./chunk-3jm3snz8.js";import Z from"fs";import Q from"path";var F=[72,96,128,144,152,192,384,512],L=[120,152,167,180],T=[16,32];async function A(R,w){let j={success:!0,generatedFiles:[],errors:[],warnings:[]},J=R.pwa?.icons;if(!J?.src)return j.errors.push("No source icon specified in pwa.icons.src"),j.success=!1,j;let G=Q.isAbsolute(J.src)?J.src:Q.resolve(process.cwd(),J.src);if(!await Bun.file(G).exists())return j.errors.push(`Source icon not found: ${G}`),j.success=!1,j;let q=Q.resolve(w,J.outputDir||"pwa-icons");try{Z.mkdirSync(q,{recursive:!0})}catch{return j.errors.push(`Failed to create output directory: ${q}`),j.success=!1,j}let y=J.sizes||F,U=J.generateWebP??!0,N=J.generateAppleIcons??!0;try{let B;try{B=await import("sharp")}catch{return j.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
3
|
Icon generation requires the sharp package for image processing.`),j.success=!1,j}let $=await B.default(G).metadata();if($.width&&$.width<512)j.warnings.push(`Source icon is ${$.width}x${$.height}. Recommend using at least 512x512 for best quality.`);for(let x of y){let K=Q.join(q,`icon-${x}x${x}.png`);if(await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(K),j.generatedFiles.push(K),U){let Y=Q.join(q,`icon-${x}x${x}.webp`);await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(Y),j.generatedFiles.push(Y)}}if(N){for(let K of L){let Y=Q.join(q,`apple-touch-icon-${K}x${K}.png`);await B.default(G).resize(K,K,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(Y),j.generatedFiles.push(Y)}let x=Q.join(q,"apple-touch-icon.png");await B.default(G).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),j.generatedFiles.push(x)}for(let x of T){let K=Q.join(q,`favicon-${x}x${x}.png`);await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(K),j.generatedFiles.push(K)}let M=512,V=Q.join(q,`icon-maskable-${M}x${M}.png`),X=Math.floor(M*0.1),W=M-X*2;await B.default(G).resize(W,W,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:X,bottom:X,left:X,right:X,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(V),j.generatedFiles.push(V)}catch(B){let H=B instanceof Error?B.message:String(B);j.errors.push(`Icon generation failed: ${H}`),j.success=!1}return j}function E(R){let w=R.sizes||F,j=R.outputDir?`/${R.outputDir}`:"/pwa-icons",J=R.generateWebP??!0,G=R.generateAppleIcons??!0,q=[];for(let y of w)if(q.push(`${j}/icon-${y}x${y}.png`),J)q.push(`${j}/icon-${y}x${y}.webp`);if(G){q.push(`${j}/apple-touch-icon.png`);for(let y of L)q.push(`${j}/apple-touch-icon-${y}x${y}.png`)}for(let y of T)q.push(`${j}/favicon-${y}x${y}.png`);return q.push(`${j}/icon-maskable-512x512.png`),q}async function b(){try{return await import("sharp"),!0}catch{return!1}}
|
|
4
4
|
export{F as Be,L as Ce,T as De,A as Ee,E as Fe,b as Ge};
|
|
@@ -213,4 +213,4 @@ function w(Z,M){let{itemHeight:K,containerHeight:P,overscan:F=3,keyProperty:$="i
|
|
|
213
213
|
})();
|
|
214
214
|
</script>
|
|
215
215
|
`})}var v={createVirtualList:w,processVirtualListDirectives:C,processInfiniteListDirectives:E,processVirtualGridDirectives:f,generateVirtualListCSS:b,useVirtualList:L};
|
|
216
|
-
export{w as
|
|
216
|
+
export{w as tf,C as uf,b as vf,L as wf,E as xf,f as yf,v as zf};
|
|
@@ -318,4 +318,4 @@ else {
|
|
|
318
318
|
console.log('[stx] Transition runtime initialized');
|
|
319
319
|
})();
|
|
320
320
|
`}function $(b){let j=/@transition\.([a-z-]+)(?:\.(\d+))?="([^"]+)"/gi;return b.replace(j,(B,q,A,z)=>{let F=A||"300",G=`stx-t-${Math.random().toString(36).slice(2,7)}`;return`data-stx-transition="${q}" data-stx-transition-duration="${F}" data-stx-transition-condition="${z}" data-stx-transition-id="${G}"`})}
|
|
321
|
-
export{W as
|
|
321
|
+
export{W as Nf,X as Of,Y as Pf,Z as Qf,_ as Rf,$ as Sf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gy as A,hy as _,jy as B}from"./chunk-mrehzhxv.js";function w(K){let Q=[],L=0;while(L<K.length){let G=K.indexOf("{{",L),j=K.indexOf("{!!",L),O=!1,J;if(G===-1&&j===-1)break;else if(G===-1)J=j,O=!0;else if(j===-1)J=G,O=!1;else if(j<G)J=j,O=!0;else J=G,O=!1;if(!O&&K.slice(J,J+3)==="{{{")O=!0;let H=O?K.slice(J,J+3)==="{{{"?"{{{":"{!!":"{{",Y=O?H==="{{{"?"}}}":"!!}":"}}",W=J+H.length,X=M(K,W,Y);if(X===-1){L=J+1;continue}let Z=K.slice(W,X).trim(),U=X+Y.length;Q.push({fullMatch:K.slice(J,U),expression:Z,start:J,end:U,isRaw:O}),L=U}return Q}function M(K,Q,L){let G=Q,j=null,O={paren:0,bracket:0,brace:0},J=0;while(G<K.length){let H=K[G];if((G>0?K[G-1]:"")==="\\"&&j){G++;continue}if((H==='"'||H==="'")&&!j){j=H,G++;continue}if(H===j&&j!=="`"){j=null,G++;continue}if(H==="`"&&!j){j="`",G++;continue}if(H==="`"&&j==="`"&&J===0){j=null,G++;continue}if(j==="`"&&H==="$"&&K[G+1]==="{"){J++,G+=2;continue}if(J>0){if(H==="{")J++;else if(H==="}")J--;G++;continue}if(j){G++;continue}if(H==="(")O.paren++;else if(H===")")O.paren--;else if(H==="[")O.bracket++;else if(H==="]")O.bracket--;else if(H==="{")O.brace++;else if(H==="}")O.brace--;if(O.paren===0&&O.bracket===0&&O.brace<=0){if(K.slice(G,G+L.length)===L)return G}G++}return-1}function D(K){let Q=B(K);if(Q.length===0)return{baseExpression:"",filters:[]};let L=Q[0],G=[];for(let j=1;j<Q.length;j++){let O=v(Q[j]);if(O)G.push(O)}return{baseExpression:L,filters:G}}function v(K){let Q=K.trim();if(!Q)return null;let L=Q.indexOf("(");if(L===-1)return{name:Q,args:[]};let G=Q.slice(0,L).trim(),j=L+1,O=_(Q,"(",")",L);if(O===-1)return{name:G,args:[]};let J=Q.slice(j,O),H=y(J);return{name:G,args:H}}function y(K){let Q=[],L="",G={paren:0,bracket:0,brace:0},j=null,O=0;for(let J=0;J<K.length;J++){let H=K[J];if((J>0?K[J-1]:"")==="\\"&&j){L+=H;continue}if((H==='"'||H==="'")&&!j){j=H,L+=H;continue}if(H===j&&j!=="`"){j=null,L+=H;continue}if(H==="`"&&!j){j="`",L+=H;continue}if(H==="`"&&j==="`"&&O===0){j=null,L+=H;continue}if(j==="`"&&H==="$"&&K[J+1]==="{"){O++,L+="${",J++;continue}if(O>0&&H==="{"){O++,L+=H;continue}if(O>0&&H==="}"){O--,L+=H;continue}if(j){L+=H;continue}if(H==="(")G.paren++;else if(H===")")G.paren--;else if(H==="[")G.bracket++;else if(H==="]")G.bracket--;else if(H==="{")G.brace++;else if(H==="}")G.brace--;if(H===","&&G.paren===0&&G.bracket===0&&G.brace===0){Q.push(L.trim()),L="";continue}L+=H}if(L.trim())Q.push(L.trim());return Q}function f(K,Q){let L=Q;while(L<K.length&&/\s/.test(K[L]))L++;if(K[L]!=="(")return null;let G=_(K,"(",")",L);if(G===-1)return null;return{params:K.slice(L+1,G),endPos:G+1}}function R(K){let Q=[],G=new A(K).tokenize().filter((O)=>O.type!=="WHITESPACE"&&O.type!=="COMMENT"),j=0;while(j<G.length){let O=G[j],J=!1;if(O.type==="IDENTIFIER"&&O.value==="export"){if(J=!0,j++,j>=G.length)break}let H=G[j];if(H.type==="IDENTIFIER"&&(H.value==="const"||H.value==="let"||H.value==="var")){let Y=H.value;if(j++,j>=G.length)break;let W=G[j];if(W.type==="IDENTIFIER"){let X=W.value;if(j++,j<G.length&&G[j].type==="OPERATOR"&&G[j].value==="="){j++;let Z=j<G.length?G[j].start:K.length,U=N(G,j,K);j=U.nextIndex,Q.push({type:"variable",name:X,value:K.slice(Z,U.endPos),exported:J,start:H.start,end:U.endPos})}}else if(W.type==="PUNCTUATION"&&(W.value==="{"||W.value==="[")){let X=W.start,Z=W.value==="{"?"}":"]",U=_(K,W.value,Z,X);if(U!==-1){let F=K.slice(X,U+1);if(j=V(G,U+1),j<G.length&&G[j].type==="OPERATOR"&&G[j].value==="="){j++;let z=j<G.length?G[j].start:K.length,$=N(G,j,K);j=$.nextIndex;let q=`__stx_destructured_${Q.length}`;Q.push({type:"variable",name:q,value:`${K.slice(z,$.endPos)}; ${Y} ${F} = ${q}`,exported:J,start:H.start,end:$.endPos})}}}}else if(H.type==="IDENTIFIER"&&H.value==="function"){let Y=J?G[j-1].start:H.start;if(j++,j>=G.length)break;let W=G[j];if(W.type==="IDENTIFIER"){let X=W.value;j++;let Z=-1;while(j<G.length){if(G[j].type==="PUNCTUATION"&&G[j].value==="{"){Z=G[j].start;break}j++}if(Z!==-1){let U=_(K,"{","}",Z);if(U!==-1)Q.push({type:"function",name:X,value:K.slice(Y,U+1).replace(/^export\s+/,""),exported:J,start:Y,end:U+1}),j=V(G,U+1)}}}else j++}return Q}function N(K,Q,L){let G=Q,j={paren:0,bracket:0,brace:0},O=Q<K.length?K[Q].start:L.length;while(G<K.length){let J=K[G];if(J.type==="PUNCTUATION"){if(J.value==="(")j.paren++;else if(J.value===")")j.paren--;else if(J.value==="[")j.bracket++;else if(J.value==="]")j.bracket--;else if(J.value==="{")j.brace++;else if(J.value==="}")j.brace--;if(J.value===";"&&j.paren===0&&j.bracket===0&&j.brace===0){O=J.start,G++;break}}if(J.type==="IDENTIFIER"&&(J.value==="const"||J.value==="let"||J.value==="var"||J.value==="function"||J.value==="export")){if(j.paren===0&&j.bracket===0&&j.brace===0){O=K[G-1]?.end??J.start;break}}O=J.end,G++}return{nextIndex:G,endPos:O}}function V(K,Q){for(let L=0;L<K.length;L++)if(K[L].start>=Q)return L;return K.length}export{w as Wx,D as Xx,y as Yx,f as Zx,R as _x};
|
|
@@ -8,4 +8,4 @@ ${y.element}`);U.push("@endif");let j=U.join(`
|
|
|
8
8
|
`),B=G[0].outerStart,S=G[G.length-1].outerEnd;b=b.slice(0,B)+j+b.slice(S),q=B+j.length}return b}function v(z){return z.replace(/\bv-show="([^"]*)"/g,'@show="$1"')}function f(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=k.attrs,G=!1,X=/v-model:([a-zA-Z_][a-zA-Z0-9_]*)(?:\.([a-zA-Z.]+))?\s*=\s*"([^"]*)"/,Y=K.match(X);while(Y){G=!0;let Z=Y[1],U=Y[2],j=Y[3];K=K.replace(Y[0],""),K+=` :${Z}="${j}" @update:${Z}="${j} = $event"`,Y=K.match(X)}if(G){let Z=J(b,k),U=b.slice(Z.outerStart,Z.outerEnd),j=W(U,{...k,start:0,end:k.end-k.start},K);b=b.slice(0,Z.outerStart)+j+b.slice(Z.outerEnd),q=Z.outerStart+j.length;continue}let Q=I(k.attrs,"v-model");if(Q===null){q=k.end;continue}if(A.has(k.tag.toLowerCase())){let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"")+` @model="${Q}"`,U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}else{let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"");Z+=` :modelValue="${Q}" @update:modelValue="${Q} = $event"`;let U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}}return b}function x(z){return z.replace(/\bv-bind:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'@bind:$1="$2"')}function d(z){return z.replace(/\bv-on:([a-zA-Z_][a-zA-Z0-9_.-]*)\s*=\s*"([^"]*)"/g,'@$1="$2"')}function p(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-html");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-html"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{!! ${K} !!}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function o(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-text");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-text"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{{ ${K} }}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function u(z){return z.replace(/(<[a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*?)\s+v-pre([^>]*>)/g,"$1$2 data-stx-skip$3").replace(/(<[a-zA-Z][a-zA-Z0-9-]*)\s+v-pre(\s[^>]*>|>)/g,"$1 data-stx-skip$2")}function i(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;if(!w(k.attrs,"v-once")){q=k.end;continue}let K=L(k.attrs,"v-once"),G=J(b,k),X=b.slice(G.outerStart,G.outerEnd),Q=`@once
|
|
9
9
|
${W(X,{...k,start:0,end:k.end-k.start},K)}
|
|
10
10
|
@endonce`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function h(z){return z.replace(/\bv-memo="([^"]*)"/g,'data-stx-memo="$1"')}function c(z){return z.replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'#$1="$2"').replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)(?=[\s>])/g,"#$1").replace(/\bv-slot\s*=\s*"([^"]*)"/g,'#default="$1"')}function g(z){if(!E(z))return z;let b=z;return b=T(b),b=V(b),b=i(b),b=x(b),b=d(b),b=f(b),b=v(b),b=c(b),b=p(b),b=o(b),b=u(b),b=h(b),b}
|
|
11
|
-
export{E as
|
|
11
|
+
export{E as Ys,g as Zs};
|