@stacksjs/stx 0.2.94 → 0.2.95
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-eh8hact1.js → chunk-04n64bnt.js} +1 -1
- package/dist/{chunk-yexjrg9d.js → chunk-06w68hyg.js} +2 -2
- package/dist/{chunk-4j188175.js → chunk-07y6m5xx.js} +1 -1
- package/dist/{chunk-b3kkjcdh.js → chunk-09k66d8a.js} +1 -1
- package/dist/{chunk-bk8ew8ze.js → chunk-0a61y94n.js} +2 -2
- package/dist/{chunk-qdc3aav1.js → chunk-0dx4q6yq.js} +1 -1
- package/dist/{chunk-k8440jxh.js → chunk-0p0nyq50.js} +2 -2
- package/dist/{chunk-5qb761h2.js → chunk-0p1h3p3w.js} +1 -1
- package/dist/{chunk-znxp3zha.js → chunk-10debkj5.js} +1 -1
- package/dist/{chunk-bgec9r1v.js → chunk-15nesxgt.js} +2 -2
- package/dist/{chunk-mv03qb75.js → chunk-1sr54zp8.js} +1 -1
- package/dist/{chunk-0jkwrcwj.js → chunk-1v49fwr5.js} +1 -1
- package/dist/{chunk-w01y57f5.js → chunk-1xz0w746.js} +2 -2
- package/dist/{chunk-w4n8fqp7.js → chunk-20swzkx3.js} +1 -1
- package/dist/{chunk-cz25azze.js → chunk-27zsyhrd.js} +1 -1
- package/dist/{chunk-hjdc99kb.js → chunk-29y0hk5z.js} +2 -2
- package/dist/{chunk-tx6br9r4.js → chunk-2cdvw21b.js} +1 -1
- package/dist/{chunk-g2hekckm.js → chunk-2j21d3ka.js} +1 -1
- package/dist/chunk-2jxbwnkz.js +2 -0
- package/dist/{chunk-8fgwhhb8.js → chunk-31dr4bys.js} +2 -2
- package/dist/{chunk-x64kb787.js → chunk-35faj94w.js} +1 -1
- package/dist/{chunk-9yz5d003.js → chunk-3a4qsygv.js} +2 -2
- package/dist/{chunk-1z2yq9em.js → chunk-3te20hqw.js} +2 -2
- package/dist/{chunk-aw3rp9ac.js → chunk-43t7faps.js} +1 -1
- package/dist/{chunk-0m9tdm7t.js → chunk-47kpewks.js} +1 -1
- package/dist/{chunk-cygfdk1n.js → chunk-4d2y57k7.js} +2 -2
- package/dist/{chunk-0tatqxj2.js → chunk-4deg33rw.js} +2 -2
- package/dist/{chunk-a69tvya5.js → chunk-4qcy5tx6.js} +2 -2
- package/dist/{chunk-d77yxcds.js → chunk-4x7kae4j.js} +2 -2
- package/dist/{chunk-g8b81pzc.js → chunk-55nwdnsd.js} +1 -1
- package/dist/{chunk-svahbw0w.js → chunk-5f43yz6z.js} +2 -2
- package/dist/{chunk-fch9tk1k.js → chunk-5shey2e4.js} +1 -1
- package/dist/{chunk-nanw7yhz.js → chunk-6djzdes9.js} +1 -1
- package/dist/{chunk-yj560gp8.js → chunk-6eqbxcrd.js} +1 -1
- package/dist/{chunk-03c26pjz.js → chunk-7074g241.js} +1 -1
- package/dist/{chunk-e0zytzdh.js → chunk-7b6s3g65.js} +1 -1
- package/dist/{chunk-77tga15w.js → chunk-7dkz6z2s.js} +2 -2
- package/dist/{chunk-q60knhjf.js → chunk-7ed3tean.js} +1 -1
- package/dist/{chunk-b0cyc09a.js → chunk-7gd339hd.js} +1 -1
- package/dist/{chunk-xsqbk4yk.js → chunk-7j5e8sdj.js} +2 -2
- package/dist/{chunk-52agge4n.js → chunk-7n8g0nfn.js} +1 -1
- package/dist/{chunk-cn409b69.js → chunk-80g54ncj.js} +1 -1
- package/dist/{chunk-w21mwxdd.js → chunk-8a5bxece.js} +1 -1
- package/dist/{chunk-7rvh2wwv.js → chunk-8ahwt6a4.js} +1 -1
- package/dist/{chunk-fhawx87n.js → chunk-8b3z0zd5.js} +1 -1
- package/dist/{chunk-y86m1wr4.js → chunk-8dhdpa5h.js} +2 -2
- package/dist/{chunk-hje9v2zh.js → chunk-8n9nnqr6.js} +1 -1
- package/dist/{chunk-rb1e4cnb.js → chunk-8qc1bsym.js} +1 -1
- package/dist/{chunk-bwxda6n1.js → chunk-8va64c9n.js} +2 -2
- package/dist/{chunk-hrampcrj.js → chunk-8vtm0m84.js} +1 -1
- package/dist/{chunk-cp3kwv17.js → chunk-8xj7c3mf.js} +1 -1
- package/dist/{chunk-fe7r1mq1.js → chunk-988dw6q3.js} +2 -2
- package/dist/{chunk-wk07pwtd.js → chunk-9b6cec0v.js} +1 -1
- package/dist/{chunk-13yz561y.js → chunk-9cf97f9p.js} +2 -2
- package/dist/{chunk-rv002yn0.js → chunk-9ecv8aqj.js} +1 -1
- package/dist/{chunk-jbejwejg.js → chunk-9eq3ht5f.js} +1 -1
- package/dist/{chunk-dzw95th7.js → chunk-9jtj77jx.js} +2 -2
- package/dist/{chunk-57p201gb.js → chunk-9t14se2t.js} +1 -1
- package/dist/{chunk-qd5461tt.js → chunk-9wmq2272.js} +1 -1
- package/dist/{chunk-qm4yppj5.js → chunk-9zbk5zx5.js} +2 -2
- package/dist/{chunk-7b0xdy5h.js → chunk-a2g2qb2y.js} +1 -1
- package/dist/{chunk-26r6zh3t.js → chunk-a87qqft6.js} +2 -2
- package/dist/{chunk-5kt3ay7x.js → chunk-ah88wzbg.js} +1 -1
- package/dist/{chunk-0wdar532.js → chunk-akf1r75r.js} +1 -1
- package/dist/{chunk-wxvyj65q.js → chunk-amaa1bev.js} +1 -1
- package/dist/{chunk-ganag9dm.js → chunk-avx8aydt.js} +2 -2
- package/dist/{chunk-mgmyr1b9.js → chunk-ay9qf4zj.js} +1 -1
- package/dist/{chunk-haecq01c.js → chunk-aywxfqev.js} +1 -1
- package/dist/{chunk-4bt81cg3.js → chunk-azkegjd8.js} +1 -1
- package/dist/{chunk-e53h9qhd.js → chunk-b77wjyn7.js} +1 -1
- package/dist/{chunk-jfm69keq.js → chunk-baf1hfwh.js} +2 -2
- package/dist/{chunk-hke99a0v.js → chunk-bdk6g1vj.js} +2 -2
- package/dist/{chunk-kkp6rs2n.js → chunk-bhqgmyqw.js} +1 -1
- package/dist/{chunk-fs0qezn5.js → chunk-bk3j0n82.js} +1 -1
- package/dist/{chunk-sn07azv3.js → chunk-bndmdahk.js} +2 -2
- package/dist/{chunk-mrehzhxv.js → chunk-bs3gmfxz.js} +1 -1
- package/dist/{chunk-yach037f.js → chunk-bxc7kjsk.js} +1 -1
- package/dist/{chunk-gqpkp459.js → chunk-ckxjqqn9.js} +2 -2
- package/dist/{chunk-ncnfa8ae.js → chunk-d0zjtdw4.js} +2 -2
- package/dist/{chunk-qfwzdffx.js → chunk-d1qh1x2g.js} +2 -2
- package/dist/{chunk-gcf5v18y.js → chunk-djddhmcc.js} +1 -1
- package/dist/{chunk-fms20x0n.js → chunk-dqn9gyhb.js} +1 -1
- package/dist/{chunk-6w03t7h6.js → chunk-drjq2zwg.js} +2 -2
- package/dist/{chunk-91s2hres.js → chunk-e2q9c5vq.js} +1 -1
- package/dist/{chunk-3ngm57nt.js → chunk-e98v1bc6.js} +2 -2
- package/dist/chunk-ejayeex8.js +2 -0
- package/dist/{chunk-yr1gdceh.js → chunk-ejh8fyak.js} +1 -1
- package/dist/{chunk-6wn85hn6.js → chunk-ek2w6zvy.js} +1 -1
- package/dist/{chunk-7dy588as.js → chunk-ewa88139.js} +1 -1
- package/dist/{chunk-ht4j68cs.js → chunk-fjk3x41y.js} +2 -2
- package/dist/{chunk-x39sfpvm.js → chunk-frg705zq.js} +1 -1
- package/dist/{chunk-nap11ntr.js → chunk-g1vt329s.js} +2 -2
- package/dist/{chunk-6cr3eeh4.js → chunk-gkzq8zw4.js} +1 -1
- package/dist/{chunk-3rh7va1z.js → chunk-gz5fmp3q.js} +1 -1
- package/dist/{chunk-asarebzq.js → chunk-h0hjy0kn.js} +1 -1
- package/dist/{chunk-ywkrxp2h.js → chunk-h5jxydqq.js} +1 -1
- package/dist/{chunk-4qq8ffke.js → chunk-h7aq56qj.js} +1 -1
- package/dist/{chunk-hepg894w.js → chunk-hbehnm18.js} +2 -2
- package/dist/{chunk-gc84b1d2.js → chunk-hbgxbgam.js} +2 -2
- package/dist/{chunk-05hgyyqc.js → chunk-hc2mf5h6.js} +1 -1
- package/dist/{chunk-tr0z0e1g.js → chunk-hjm2xab3.js} +1 -1
- package/dist/{chunk-50vqeesm.js → chunk-hrnnh4tq.js} +2 -2
- package/dist/{chunk-hq5cem49.js → chunk-ht43ds42.js} +1 -1
- package/dist/{chunk-vdfwv0fp.js → chunk-hy8820vc.js} +1 -1
- package/dist/{chunk-vpe6napb.js → chunk-j447q024.js} +2 -2
- package/dist/{chunk-x4fze3q2.js → chunk-j58vh0w6.js} +1 -1
- package/dist/{chunk-z37xq5rx.js → chunk-j8tn8enq.js} +2 -2
- package/dist/{chunk-m59y310j.js → chunk-jjb05d21.js} +2 -2
- package/dist/{chunk-3bjtemm6.js → chunk-jjdq01dv.js} +1 -1
- package/dist/{chunk-b3prs7y0.js → chunk-jnmgm2xw.js} +1 -1
- package/dist/{chunk-5ggw1dyv.js → chunk-jpndqst5.js} +1 -1
- package/dist/{chunk-7sm05m0j.js → chunk-jt0ezawy.js} +1 -1
- package/dist/{chunk-6y4gqs1q.js → chunk-jz73j3qs.js} +1 -1
- package/dist/{chunk-jt98jhpt.js → chunk-k21df0pg.js} +1 -1
- package/dist/{chunk-zt2yag10.js → chunk-k848dzsa.js} +1 -1
- package/dist/{chunk-bjnjpsgn.js → chunk-kdfe4t91.js} +2 -2
- package/dist/{chunk-82t27pvd.js → chunk-keawsbpn.js} +1 -1
- package/dist/{chunk-5q87fgkk.js → chunk-khdn7jwe.js} +2 -2
- package/dist/{chunk-ca6qd1dx.js → chunk-km25cwz6.js} +1 -1
- package/dist/{chunk-pc31m5x5.js → chunk-knm8a8yx.js} +1 -1
- package/dist/{chunk-baa7h4yz.js → chunk-krqn0ddk.js} +2 -2
- package/dist/{chunk-0g4gece6.js → chunk-kx6eb6ma.js} +1 -1
- package/dist/{chunk-3yg9hbmb.js → chunk-kypas8vy.js} +1 -1
- package/dist/{chunk-7xcfy2fn.js → chunk-m167kjhv.js} +1 -1
- package/dist/{chunk-w959hm8j.js → chunk-m491r0rj.js} +1 -1
- package/dist/{chunk-x1hjv24z.js → chunk-m8448qby.js} +1 -1
- package/dist/{chunk-tj6zfxeb.js → chunk-mgj88zeq.js} +2 -2
- package/dist/{chunk-6djgb0hr.js → chunk-mhgk632d.js} +1 -1
- package/dist/{chunk-y5wazw6j.js → chunk-n5kg7fpx.js} +1 -1
- package/dist/{chunk-957amb71.js → chunk-n98x35xd.js} +1 -1
- package/dist/{chunk-04mvcmcr.js → chunk-n9dhs1dw.js} +1 -1
- package/dist/{chunk-75rndzbd.js → chunk-nd9rmddh.js} +1 -1
- package/dist/{chunk-y25pr13j.js → chunk-nhv099jv.js} +1 -1
- package/dist/{chunk-cpcc11vp.js → chunk-nm15ccsg.js} +2 -2
- package/dist/{chunk-z4djtgt0.js → chunk-npfmdb6y.js} +1 -1
- package/dist/{chunk-xhkjhxsp.js → chunk-p077sw22.js} +1 -1
- package/dist/{chunk-kfd2hf6f.js → chunk-p1h8065h.js} +2 -2
- package/dist/{chunk-647849kf.js → chunk-p3e0cqtt.js} +2 -2
- package/dist/{chunk-c53hyw5c.js → chunk-p3fpb79v.js} +1 -1
- package/dist/{chunk-adjcg6wa.js → chunk-p52yzjq6.js} +2 -2
- package/dist/{chunk-qgxwmagw.js → chunk-p73meypx.js} +1 -1
- package/dist/{chunk-bykjk6vj.js → chunk-pa9zb7ty.js} +1 -1
- package/dist/{chunk-qk584whs.js → chunk-pcm1vd8w.js} +1 -1
- package/dist/{chunk-bn08k7yy.js → chunk-pcntd9h4.js} +2 -2
- package/dist/{chunk-87kx8byz.js → chunk-psc3wfcf.js} +1 -1
- package/dist/{chunk-svhtdb0s.js → chunk-pznnww6k.js} +1 -1
- package/dist/{chunk-5ppkfyn2.js → chunk-q6zhd9yf.js} +1 -1
- package/dist/chunk-qa59zejf.js +246 -0
- package/dist/{chunk-hpqr9e3x.js → chunk-qvrbjpdc.js} +2 -2
- package/dist/{chunk-46mkpbkk.js → chunk-qygvvygy.js} +2 -2
- package/dist/{chunk-xygc53vr.js → chunk-r0jcmpv6.js} +1 -1
- package/dist/{chunk-yw2fzq86.js → chunk-r5m9xtm7.js} +2 -2
- package/dist/{chunk-174z0cd0.js → chunk-rpx5fa65.js} +2 -2
- package/dist/{chunk-tmgz5t2g.js → chunk-rqxf5hns.js} +1 -1
- package/dist/{chunk-5xvbq2gs.js → chunk-rtr974rc.js} +2 -2
- package/dist/{chunk-y4c744dk.js → chunk-rvptcndz.js} +2 -2
- package/dist/{chunk-25s7bckb.js → chunk-rw26rpek.js} +2 -2
- package/dist/{chunk-qhdtssn1.js → chunk-rw7937v4.js} +2 -2
- package/dist/{chunk-n46a5g1g.js → chunk-rwrv9wbf.js} +1 -1
- package/dist/{chunk-8qbax8xn.js → chunk-rz2ec6g7.js} +1 -1
- package/dist/{chunk-epj957jf.js → chunk-scpkdrdb.js} +1 -1
- package/dist/{chunk-q6h6yvzb.js → chunk-shv88d2d.js} +2 -2
- package/dist/{chunk-2w3302dh.js → chunk-t0c9wvpr.js} +1 -1
- package/dist/{chunk-6dqzky7x.js → chunk-tffh3b1e.js} +1 -1
- package/dist/{chunk-ceg2c2q2.js → chunk-tg2f1mzq.js} +2 -2
- package/dist/{chunk-eqeyaq6g.js → chunk-trfswy66.js} +1 -1
- package/dist/{chunk-t37dp99j.js → chunk-tzwtg722.js} +1 -1
- package/dist/{chunk-ghrx0hn1.js → chunk-v7f8jj15.js} +1 -1
- package/dist/{chunk-95w08s8v.js → chunk-v8j49spx.js} +1 -1
- package/dist/{chunk-yaan98dd.js → chunk-veeerpwa.js} +1 -1
- package/dist/{chunk-xcb0pbr6.js → chunk-vg5kt6az.js} +1 -1
- package/dist/{chunk-9tmbrwwx.js → chunk-vgv7jvyz.js} +1 -1
- package/dist/{chunk-2xen423s.js → chunk-vjbefncc.js} +1 -1
- package/dist/{chunk-jt44av4j.js → chunk-vmxjghsm.js} +1 -1
- package/dist/{chunk-mqwbpamc.js → chunk-vw7vqd76.js} +1 -1
- package/dist/{chunk-adqh2m9z.js → chunk-w3b6m427.js} +1 -1
- package/dist/{chunk-eds0f8f1.js → chunk-wazkqv7n.js} +2 -2
- package/dist/{chunk-y4md9hp0.js → chunk-wfg2gm11.js} +1 -1
- package/dist/{chunk-vv9wfz1c.js → chunk-wg9k6h8w.js} +2 -2
- package/dist/{chunk-1mmykse5.js → chunk-wkz2vwkr.js} +1 -1
- package/dist/{chunk-7a51hkpf.js → chunk-wvf31nzs.js} +1 -1
- package/dist/{chunk-dyjnn5k8.js → chunk-x05nxhyv.js} +2 -2
- package/dist/{chunk-kh6rfz2v.js → chunk-x0770gt9.js} +1 -1
- package/dist/{chunk-5p568px4.js → chunk-x24s4heg.js} +1 -1
- package/dist/{chunk-cdbwprfv.js → chunk-x3r64r0c.js} +2 -2
- package/dist/{chunk-fbxt2mrx.js → chunk-x5g9w4hh.js} +2 -2
- package/dist/{chunk-268adc7r.js → chunk-xgkv66q5.js} +1 -1
- package/dist/chunk-xqq1vxb6.js +1 -0
- package/dist/{chunk-qxs6et76.js → chunk-xs03kc1h.js} +1 -1
- package/dist/{chunk-3jm3snz8.js → chunk-xv34zbp4.js} +1 -1
- package/dist/{chunk-b5zc9y0y.js → chunk-xw36p73h.js} +2 -2
- package/dist/{chunk-j4s5qwd7.js → chunk-xyg1r5w0.js} +2 -2
- package/dist/{chunk-cyp4m0vh.js → chunk-xys2sxh6.js} +1 -1
- package/dist/{chunk-kdxa9epn.js → chunk-y1k17c8b.js} +2 -2
- package/dist/{chunk-cr3wbrcr.js → chunk-y6xsqe9a.js} +2 -2
- package/dist/{chunk-94g3cahw.js → chunk-yb1t2h8h.js} +2 -2
- package/dist/{chunk-vw6ejgmy.js → chunk-yj4x5ehw.js} +1 -1
- package/dist/{chunk-fk51yyrw.js → chunk-ynhngsdh.js} +1 -1
- package/dist/{chunk-vp2395eb.js → chunk-yrsb6j3z.js} +2 -2
- package/dist/chunk-yywfvfph.js +2 -0
- package/dist/{chunk-xhnpsngj.js → chunk-zcxzdrn7.js} +2 -2
- package/dist/{chunk-jjvp4t5w.js → chunk-zen6ax1y.js} +2 -2
- package/dist/{chunk-n944baxp.js → chunk-zf2pek72.js} +1 -1
- package/dist/{chunk-z8cjr9n9.js → chunk-zk3d0jjf.js} +1 -1
- package/dist/{chunk-9agvhp1x.js → chunk-zy3rp1ab.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 +1 -6
- package/dist/dev-server/serve-file.js +1 -6
- package/dist/dev-server/serve-markdown.js +1 -1
- package/dist/dev-server/serve-multi.js +1 -171
- 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 +6 -6
- package/dist/chunk-48cw2nde.js +0 -2
- package/dist/chunk-48r3qe0k.js +0 -3
- package/dist/chunk-h45py5w5.js +0 -2
- package/dist/chunk-jfrn43vh.js +0 -2
- package/dist/chunk-mwbng54r.js +0 -2
- package/dist/chunk-qwyd9a1d.js +0 -2
- package/dist/chunk-sjagg9qz.js +0 -66
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pB as W}from"./chunk-xv34zbp4.js";function Y(k){if(k.includes("window.StacksBrowser")||k.includes("StacksBrowser ="))return k;let H=/<script\b(?![^>]*\bserver\b)[^>]*>([\s\S]*?)<\/script>/gi,q="",F;while((F=H.exec(k))!==null)q+=F[1]+`
|
|
3
3
|
`;let G=/\{\{([\s\S]*?)\}\}/g;while((F=G.exec(k))!==null)q+=F[1]+`
|
|
4
4
|
`;if(!q.trim())return k;let A=["browserQuery","BrowserQueryBuilder","configureBrowser","createBrowserModel"].some((N)=>{return new RegExp(`\\b${N}\\b`).test(q)}),z=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process"]),K=/\b([A-Z][a-zA-Z0-9]*)\s*\.\s*(all|find|first|get|where|orderBy|orderByDesc|limit|select|pluck|create|update|delete)\s*\(/g,T,V=!1;while((T=K.exec(q))!==null)if(!z.has(T[1])){V=!0;break}if(!A&&!V)return k;let L=`<script type="module">
|
|
5
5
|
// STX: Auto-load @stacksjs/browser (auto-initializes API and loads models)
|
|
@@ -18,4 +18,4 @@ ${L}`);return L+`
|
|
|
18
18
|
`+k}async function _(k,H){if(!k.includes("</body>"))return k;if(k.includes("__stxRouter)return")||k.includes("__stxRouter=true"))return k;let q=H?.router,F="";if(q){let z={};if(q.container)z.container=q.container;if(q.interceptAllLinks!==void 0)z.interceptAllLinks=q.interceptAllLinks;if(q.progress!==void 0)z.progress=q.progress;if(q.viewTransitions!==void 0)z.viewTransitions=q.viewTransitions;if(q.viewTransitionDuration!==void 0)z.viewTransitionDuration=q.viewTransitionDuration;if(q.viewTransitionEasing!==void 0)z.viewTransitionEasing=q.viewTransitionEasing;if(q.scrollToTop!==void 0)z.scrollToTop=q.scrollToTop;if(q.prefetch!==void 0)z.prefetch=q.prefetch;if(q.cache!==void 0)z.cache=q.cache;if(q.progressColor!==void 0)z.progressColor=q.progressColor;if(q.progressHeight!==void 0)z.progressHeight=q.progressHeight;if(Object.keys(z).length>0)F=`<script>window.__stxRouterConfig=${JSON.stringify(z)};</script>
|
|
19
19
|
`}let{getCachedRouterScript:G}=await import("././caching.js"),J=H?.buildMode==="compile"?'<script src="/__stx/router.__STX_HASH__.js"></script>':`<script>${await G()}</script>`,A=k.lastIndexOf("</body>");return k.slice(0,A)+F+J+`
|
|
20
20
|
</body>`+k.slice(A+7)}
|
|
21
|
-
export{Y as
|
|
21
|
+
export{Y as Pt,Z as Qt,_ as Rt};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ks as m,Yr as C}from"./chunk-1xz0w746.js";import{dt as x}from"./chunk-g1vt329s.js";import{pB as c}from"./chunk-xv34zbp4.js";var{serve:h}=globalThis.Bun;import K from"fs";import $ from"path";function jj(W,Z=200,G={}){return new Response(W,{status:Z,headers:{"Content-Type":"text/html; charset=utf-8",...G}})}async function i(W={}){let{port:Z=3000,root:G=".",stxOptions:E={},watch:v=!0,onRequest:V,routes:N={},middleware:D=[],on404:T,onError:g}=W,F=$.resolve(G),X=new Map;async function O(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;for(let J of X.keys())if(J.startsWith(`${A}:`)&&J!==L)X.delete(J);let j=await Bun.file(A).text(),Q=j,H=j.match(/<template\b(?![^>]*(?:\b(?:id|x-for|x-if|@for|@if|:for|:if)\s*=|\s#[\w-]|\bv-slot|\bslot\s*=))[^>]*>/i);if(H&&H.index!==void 0){let J=H.index+H[0].length,U=1,_=J;while(_<j.length&&U>0){let R=j.indexOf("<template",_),k=j.indexOf("</template>",_);if(k===-1)break;if(R!==-1&&R<k)U++,_=R+9;else{if(U--,U===0){Q=j.substring(J,k).trim();break}_=k+11}}}let y=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,b=[],d=[],I;while((I=y.exec(j))!==null){let J=I[1],U=I[2],_=I[0];if(J.includes("server"))d.push(U);else b.push(_)}let P=j.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],p=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),M={__filename:A,__dirname:$.dirname(A)};for(let J of d)await x(J,M,A);let Y=await m(p,M,A,E,new Set);if(P.length>0){let J=P.join(`
|
|
3
3
|
`);if(Y.match(/(<\/head>)/i))Y=Y.replace(/(<\/head>)/i,`${J}
|
|
4
4
|
$1`)}if(b.length>0){let{interpolateScriptsInTemplate:J}=await import("././expressions.js"),U=J(b.join(`
|
|
5
5
|
`),M);if(Y.match(/(<\/body>)/i))Y=Y.replace(/(<\/body>)/i,`${U}
|
|
@@ -7,4 +7,4 @@ $1`);else Y+=`
|
|
|
7
7
|
${U}`}return X.set(L,{content:Y,mtime:B.mtimeMs}),Y}async function w(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;let{content:j}=await C(A,E);return X.set(L,{content:j,mtime:B.mtimeMs}),j}function u(A){let B=A.startsWith("/")?A.slice(1):A,L=[B,`${B}.stx`,`${B}.md`,`${B}.html`,$.join(B,"index.stx"),$.join(B,"index.md"),$.join(B,"index.html")];for(let z of L){let j=$.join(F,z);if(K.existsSync(j)&&K.statSync(j).isFile())return j}return null}async function f(A){let B=new URL(A.url),L=async()=>{if(N[B.pathname])return await N[B.pathname](A);if(V){let j=await V(A);if(j)return j}let z=u(B.pathname);if(!z){if(T)return await T(A);return new Response("Not Found",{status:404})}try{let j,Q="text/html";if(z.endsWith(".stx"))j=await O(z);else if(z.endsWith(".md"))j=await w(z);else if(z.endsWith(".html"))j=await Bun.file(z).text();else if(z.endsWith(".css"))j=await Bun.file(z).text(),Q="text/css";else if(z.endsWith(".js"))j=await Bun.file(z).text(),Q="text/javascript";else if(z.endsWith(".json"))j=await Bun.file(z).text(),Q="application/json";else return new Response(Bun.file(z));return new Response(j,{headers:{"Content-Type":Q}})}catch(j){if(g)return await g(j,A);let Q=j instanceof Error?j.message:String(j),y=E?.debug===!0?`<h1>Error</h1><pre>${Q}
|
|
8
8
|
${j instanceof Error?j.stack:""}</pre>`:"<h1>Internal Server Error</h1><p>An error occurred while processing your request.</p>";return new Response(y,{status:500,headers:{"Content-Type":"text/html"}})}};for(let z=D.length-1;z>=0;z--){let j=D[z],Q=L;L=async()=>await j(A,Q)}return await L()}let S=h({port:Z,fetch:f}),q=null;if(v)q=K.watch(F,{recursive:!0},(A,B)=>{if(B&&(B.endsWith(".stx")||B.endsWith(".md")||B.endsWith(".html")))X.clear()});return{server:S,url:S.url.toString(),stop(){if(q)q.close();S.stop()}}}async function zj(W,Z={}){let G=$.resolve(W);if(!await Bun.file(G).exists())throw Error(`File not found: ${G}`);let E=G.endsWith(".md"),v=G.endsWith(".stx");if(!E&&!v)throw Error(`Unsupported file type: ${G}. Only .stx and .md files are supported.`);return await i({...Z,root:$.dirname(G),routes:{"/":async()=>{let V;if(E){let{content:N}=await C(G,Z.stxOptions);V=N}else{let N=await Bun.file(G).text(),D=[],T=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,g;while((g=T.exec(N))!==null)if(g[1].includes("server"))D.push(g[2]);let F=D.join(`
|
|
9
9
|
`),X=N.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),O={};if(F.trim())await x(F,O,G);let w=new Set;V=await m(X,O,G,Z.stxOptions||{},w)}return new Response(V,{headers:{"Content-Type":"text/html"}})},...Z.routes}})}function Aj(W){return W}function Bj(W){return W}
|
|
10
|
-
export{jj as
|
|
10
|
+
export{jj as jh,i as kh,zj as lh,Aj as mh,Bj as nh};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{zy as J}from"./chunk-fjk3x41y.js";import{Jy as K}from"./chunk-5shey2e4.js";import{pB as I}from"./chunk-xv34zbp4.js";var V={isEnabled(){return J().enableAutoRecovery},fixCommonSyntaxErrors(j){let k=J();if(!k.enableAutoRecovery)return{fixed:j,fixes:[]};let q=j,z=[],A=(q.match(/\{\{/g)||[]).length,H=(q.match(/\}\}/g)||[]).length;if(A>H){let G=A-H;q+="}}".repeat(G),z.push(`Added ${G} missing closing braces '}}'`)}let F=["if","foreach","for","switch","section"];for(let G of F){let M=(q.match(new RegExp(`@${G}\\b`,"g"))||[]).length,N=(q.match(new RegExp(`@end${G}\\b`,"g"))||[]).length;if(M>N){let O=M-N;for(let Q=0;Q<O;Q++)q+=`
|
|
3
3
|
@end${G}`;z.push(`Added ${O} missing @end${G}`)}}if(z.length>0&&k.logRecoveryWarnings)console.warn("[stx] Auto-recovery applied fixes:"),z.forEach((G)=>console.warn(` - ${G}`)),console.warn(" Consider fixing these issues in your template.");return{fixed:q,fixes:z}},createFallbackContent(j,k){if(K())return`<!-- ${j} failed: ${k.message} -->`;return"<!-- stx rendering error -->"}};class R{errors=[];maxErrors;enableFileLogging;logFilePath;logFormat;maxFileSize;maxLogFiles;minLevel;writeQueue=Promise.resolve();constructor(j={}){this.maxErrors=j.maxErrors??1000,this.enableFileLogging=j.enableFileLogging??!1,this.logFilePath=j.logFilePath??".stx/errors.log",this.logFormat=j.logFormat??"json",this.maxFileSize=j.maxFileSize??10485760,this.maxLogFiles=j.maxLogFiles??5,this.minLevel=j.minLevel??"all"}configure(j){if(j.maxErrors!==void 0)this.maxErrors=j.maxErrors;if(j.enableFileLogging!==void 0)this.enableFileLogging=j.enableFileLogging;if(j.logFilePath!==void 0)this.logFilePath=j.logFilePath;if(j.logFormat!==void 0)this.logFormat=j.logFormat;if(j.maxFileSize!==void 0)this.maxFileSize=j.maxFileSize;if(j.maxLogFiles!==void 0)this.maxLogFiles=j.maxLogFiles;if(j.minLevel!==void 0)this.minLevel=j.minLevel}log(j,k,q="error"){let z={timestamp:new Date,error:j,context:k,level:q};if(this.errors.push(z),this.errors.length>this.maxErrors)this.errors=this.errors.slice(-this.maxErrors);if(this.enableFileLogging&&this.shouldLog(q))this.writeToFile(z)}shouldLog(j){if(this.minLevel==="all")return!0;if(this.minLevel==="warning")return j==="error"||j==="warning";if(this.minLevel==="error")return j==="error";return!0}formatEntry(j){if(this.logFormat==="json")return JSON.stringify({timestamp:j.timestamp.toISOString(),level:j.level||"error",type:j.error.constructor.name,message:j.error.message,stack:j.error.stack,context:j.context});let k=[`[${j.timestamp.toISOString()}] [${(j.level||"error").toUpperCase()}] ${j.error.constructor.name}: ${j.error.message}`];if(j.error.stack)k.push(` Stack: ${j.error.stack.split(`
|
|
4
4
|
`).slice(1).join(`
|
|
5
5
|
`)}`);if(j.context)k.push(` Context: ${JSON.stringify(j.context)}`);return k.join(`
|
|
@@ -8,4 +8,4 @@ import{By as J}from"./chunk-ht4j68cs.js";import{Ly as K}from"./chunk-fch9tk1k.js
|
|
|
8
8
|
|
|
9
9
|
`),"utf-8")}}async flush(){await this.writeQueue}}var W=new R,X={isDevelopment(){return K()},logDetailedError(j,k){if(!this.isDevelopment())return;if(console.error("=== stx Detailed Error ==="),console.error("Error:",j.message),console.error("Stack:",j.stack),k)console.error("Context:",k);console.error("========================")},createErrorReport(j,k){let q=["=== stx Error Report ===",`Time: ${new Date().toISOString()}`,`Error: ${j.message}`,`Type: ${j.constructor.name}`,`Stack: ${j.stack}`];if(k)q.push(`Context: ${JSON.stringify(k,null,2)}`);return q.push("========================"),q.join(`
|
|
10
10
|
`)}};
|
|
11
|
-
export{V as
|
|
11
|
+
export{V as uy,R as vy,W as wy,X as xy};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{oB as U}from"./chunk-xv34zbp4.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,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{abortNavigation as r,clearMiddleware as t,createClientCookieManager as o,createMiddlewareContext as i,createRouteLocation as d,createServerCookieManager as l,createStorageManager as n,defineMiddleware as M,getMiddleware as g,getMiddlewareNames as w,hasMiddleware as s,loadMiddlewareFromDirectory as u,navigateTo as c,registerMiddleware as R,runMiddleware as v}from"stx-router";
|
|
3
|
-
export{r as
|
|
3
|
+
export{r as oh,t as ph,o as qh,i as rh,d as sh,l as th,n as uh,M as vh,g as wh,w as xh,s as yh,u as zh,c as Ah,R as Bh,v as Ch};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{g as
|
|
2
|
+
import{Zm as T}from"./chunk-4d2y57k7.js";import{pB as I}from"./chunk-xv34zbp4.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 dm,l as em};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ll as k,ml as q}from"./chunk-akf1r75r.js";import{wl as j}from"./chunk-zy3rp1ab.js";import{Cl as A}from"./chunk-10debkj5.js";function H(){return{script:[j(),k(),A()].join(`
|
|
3
3
|
|
|
4
4
|
`),css:q()}}function y(){let{script:D,css:E}=H(),F=D.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/.*$/gm,"").replace(/\s+/g," ").replace(/\s*([{};,:])\s*/g,"$1").trim(),G=E.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};,:])\s*/g,"$1").trim();return{script:F,css:G}}
|
|
5
|
-
export{H as
|
|
5
|
+
export{H as cl,y as dl};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{By as w}from"./chunk-fjk3x41y.js";import{Sy as v}from"./chunk-27zsyhrd.js";function F(j){let{type:B,message:D,code:q,filePath:G,line:I,column:U,template:M,offset:J,snippet:K,suggestion:Q,format:R="text"}=j,V=I,Y=U;if(!V&&M&&J!==void 0){let _=T(M,J);V=_.line,Y=_.column}let Z=G?w(G):void 0,b=q?v(q):void 0,W={type:B,code:q,codeName:b,message:D,filePath:Z,line:V,column:Y,snippet:K,suggestion:Q,timestamp:new Date().toISOString()},X;switch(R){case"html":X=O(W);break;case"json":X=JSON.stringify(W,null,2);break;case"console":X=N(W,M,J);break;case"text":default:X=k(W,M,J);break}return{formatted:X,data:W}}function k(j,B,D){let q=[],G=j.code?` [${j.codeName||j.code}]`:"";if(q.push(`[${j.type} Error${G}]`),j.filePath){let I=j.filePath;if(j.line){if(I+=`:${j.line}`,j.column)I+=`:${j.column}`}q.push(`at ${I}`)}if(q.push(`
|
|
3
3
|
${j.message}`),B&&j.line){let I=A(B,j.line,2);if(I)q.push(`
|
|
4
4
|
${I}`)}if(j.snippet)q.push(`
|
|
5
5
|
Snippet: ${j.snippet}`);if(j.suggestion)q.push(`
|
|
@@ -24,4 +24,4 @@ ${"\x1B[31m"}\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\
|
|
|
24
24
|
`;for(let J=U;J<=M;J++){let K=J+1,Q=q[J]||"",R=J===G.line-1?">":" ";I+=`${R} ${K.toString().padStart(3)}: ${Q}
|
|
25
25
|
`}if(G.line-1<q.length){let J=" ".repeat(G.column+5);I+=`${J}^
|
|
26
26
|
`}return I}function C(j,B,D){try{return j()}catch(q){if(D&&q instanceof Error)D(q);return B}}async function S(j,B,D){try{return await j()}catch(q){if(D&&q instanceof Error)D(q);return B}}
|
|
27
|
-
export{F as
|
|
27
|
+
export{F as oy,h as py,y as qy,H as ry,C as sy,S as ty};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import G from"path";var L=new Set([".jpg",".jpeg",".png",".gif"]),O=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function M(j,z){let H=z.formats??O;if(!z.publicDir)return j;let C=N(j),J=[],Y=/<img\b[^>]*?>/gi,K=[],Q;while((Q=Y.exec(j))!==null){let q=Q[0],y=q.match(/\bsrc=["']([^"']+)["']/i);if(!y)continue;if(_(Q.index,C))continue;K.push({idx:Q.index,length:q.length,src:y[1],raw:q})}if(K.length===0)return j;let Z=await Promise.all(K.map(async(q)=>{let y=await X(q.src,z.publicDir,H);return{match:q,sources:y}}));for(let{match:q,sources:y}of Z){if(y.length===0)continue;let I=`<picture>${y.map(($)=>`<source type="${$.mime}" srcset="${w($.url)}">`).join("")}${q.raw}</picture>`;J.push({start:q.idx,end:q.idx+q.length,replacement:I})}if(J.length===0)return j;let V="",W=0;for(let q of J)V+=j.slice(W,q.start),V+=q.replacement,W=q.end;return V+=j.slice(W),V}async function X(j,z,H){if(!F(j))return[];let C=G.extname(j).toLowerCase();if(!L.has(C))return[];if(!j.startsWith("/"))return[];let J=G.join(z,j.slice(1)),Y=G.dirname(J),K=G.basename(J,C),Q=G.resolve(Y),Z=G.resolve(z);if(!Q.startsWith(Z))return[];let V=G.posix.dirname(j),W=H.map(async(y)=>{let k=G.join(Y,`${K}${y.ext}`);if(!await Bun.file(k).exists())return null;return{url:G.posix.join(V,`${K}${y.ext}`),mime:y.mime}});return(await Promise.all(W)).filter((y)=>y!==null)}function F(j){if(!j)return!1;if(j.startsWith("http://")||j.startsWith("https://"))return!1;if(j.startsWith("//"))return!1;if(j.startsWith("data:"))return!1;return!0}function N(j){let z=[],H=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,C;while((C=H.exec(j))!==null)z.push([C.index,C.index+C[0].length]);return z}function _(j,z){for(let[H,C]of z)if(j>=H&&j<C)return!0;return!1}function w(j){return j.replace(/&/g,"&").replace(/"/g,""")}
|
|
3
|
-
export{M as
|
|
3
|
+
export{M as Dm};
|
|
@@ -4,4 +4,4 @@ function K(b){if(b===String)return"string";if(b===Number)return"number";if(b===B
|
|
|
4
4
|
${D}`)}return{props:F,validation:C}}function Y(b,j){let q={...b};for(let[B,z]of Object.entries(j))if(q[B]===void 0)q[B]=typeof z==="function"?z():z;return q}function Z(b){return b}function _(b){return{type:b,required:!0}}function $(b,j){return{type:j,default:b}}function G(b,j={}){return{...j,validator:b}}function M(b,j={}){return{...j,validator:(q)=>b.includes(q)}}function S(b,j={}){return{...j,type:Array,validator:(q)=>{if(!Array.isArray(q))return!1;return!0}}}function U(b,j={}){return{...j,type:Object}}function h(b,j,q){if(!j)return b;let B={};for(let[z,A]of Object.entries(j)){let F=typeof A==="function"||Array.isArray(A)?{type:A}:A||{},C=b[z];if(C===void 0&&F.default!==void 0)C=typeof F.default==="function"?F.default():F.default;{let D=L(z,C,F,q);if(D)console.warn(D.message)}B[z]=C}for(let[z,A]of Object.entries(b))if(!(z in B))B[z]=A;return B}function E(){let b=globalThis.__STX_CURRENT_ELEMENT__;return(j,q)=>{if(b){let B=new CustomEvent(String(j),{detail:q,bubbles:!0,cancelable:!0});b.dispatchEvent(B)}else console.warn(`Cannot emit event "${String(j)}" - no element context`)}}function W(b){let j=globalThis.__STX_CURRENT_ELEMENT__;if(j)j.__stx_exposed__=b,j.setAttribute("data-stx-exposed",Object.keys(b).join(","))}function V(b,j){let q=[`interface ${b}Props {`];for(let[B,z]of Object.entries(j)){let A=typeof z==="function"||Array.isArray(z)?{type:z}:z||{},F=A.type?K(A.type):"unknown",C=A.required?"":"?",D=A.description?` /** ${A.description} */
|
|
5
5
|
`:"";q.push(`${D} ${B}${C}: ${F}`)}return q.push("}"),q.join(`
|
|
6
6
|
`)}
|
|
7
|
-
export{R as
|
|
7
|
+
export{R as Ri,X as Si,Y as Ti,Z as Ui,_ as Vi,$ as Wi,G as Xi,M as Yi,S as Zi,U as _i,h as $i,E as aj,W as bj,V as cj};
|
package/dist/cli.js
CHANGED
|
@@ -20409,7 +20409,7 @@ else {
|
|
|
20409
20409
|
`)}function vN($,Z){let Y=" ".repeat(Z),X=[];for(let[K,W]of Object.entries($.props))if(W.type==="literal"){let U=typeof W.value==="string"?`"${W.value}"`:String(W.value);X.push(`${K}: ${U}`)}let J=X.length>0?`{ ${X.join(", ")} }`:"{}",Q=$.children.map((K)=>K.type==="text"?`"${K.props.text?.type==="literal"?K.props.text.value:""}"`:vN(K,Z+1)),G=Q.length>0?`,
|
|
20410
20410
|
${Y} [${Q.join(`,
|
|
20411
20411
|
${Y} `)}]`:"";return`Craft.create("${$.zigType}", ${J}${G})`}function Cf($,Z,Y){if(Z.target==="universal"){let X=[];X.push("// Universal entry point"),X.push("");for(let[J,Q]of Y)X.push(`// --- ${J.toUpperCase()} ---`),X.push(`#if ${J.toUpperCase()}`),X.push(Q),X.push("#endif"),X.push("");return X.join(`
|
|
20412
|
-
`)}return Y.get(Z.target)||IW($,Z)}function bf($,Z,Y){let X=[];function J(Q){X.push({name:Q.zigType,hash:gN(JSON.stringify(Q.props)),props:Object.keys(Q.props),events:Array.from(Q.events.keys()),slots:[],isNative:Q.zigType.startsWith("craft.")});for(let G of Q.children)J(G)}return J(Z),{version:"1.0.0",components:X,entry:$.id,assets:[],styles:$.styles}}function Pf($,Z){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}function fN(){return`id_${++yf}`}function gN($){let Z=0;for(let Y=0;Y<$.length;Y++){let X=$.charCodeAt(Y);Z=(Z<<5)-Z+X,Z=Z&Z}return Math.abs(Z).toString(36)}function xf($){return $.charAt(0).toUpperCase()+$.slice(1)}function vf($){let Z=[],Y=/<script[^>]*>([\s\S]*?)<\/script>/gi,X;while((X=Y.exec($))!==null)Z.push(X[1]);return Z}function ff($){let Z=[],Y=/<style[^>]*>([\s\S]*?)<\/style>/gi,X;while((X=Y.exec($))!==null)Z.push(X[1]);return Z}function DW($){let Z=$.type==="component"?1:0;if($.children)for(let Y of $.children)Z+=DW(Y);return Z}function kW($){let Z=$.zigType.startsWith("craft.")?1:0;for(let Y of $.children)Z+=kW(Y);return Z}function hN($){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(Z)=>{console.log(`[craft-compiler] File changed: ${Z}`)}}}var SW,yf=0,gf,hf;var uN=D(()=>{SW=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{name:"variant",type:"string",required:!1,default:"primary"},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onclick",type:"callback",required:!1}],children:"single"}],["craft-text-input",{name:"TextInput",zigType:"craft.TextInput",props:[{name:"value",type:"string",required:!1,default:""},{name:"placeholder",type:"string",required:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-textarea",{name:"TextArea",zigType:"craft.TextArea",props:[{name:"value",type:"string",required:!1,default:""},{name:"placeholder",type:"string",required:!1},{name:"rows",type:"number",required:!1,default:3},{name:"disabled",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-checkbox",{name:"Checkbox",zigType:"craft.Checkbox",props:[{name:"checked",type:"boolean",required:!1,default:!1},{name:"label",type:"string",required:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-select",{name:"Select",zigType:"craft.Select",props:[{name:"value",type:"string",required:!1},{name:"options",type:"array",required:!0},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-slider",{name:"Slider",zigType:"craft.Slider",props:[{name:"value",type:"number",required:!1,default:0},{name:"min",type:"number",required:!1,default:0},{name:"max",type:"number",required:!1,default:100},{name:"step",type:"number",required:!1,default:1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-toggle",{name:"Toggle",zigType:"craft.Toggle",props:[{name:"checked",type:"boolean",required:!1,default:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-modal",{name:"Modal",zigType:"craft.Modal",props:[{name:"open",type:"boolean",required:!1,default:!1},{name:"title",type:"string",required:!1},{name:"closable",type:"boolean",required:!1,default:!0},{name:"onclose",type:"callback",required:!1}],children:"multiple"}],["craft-alert",{name:"Alert",zigType:"craft.Alert",props:[{name:"variant",type:"string",required:!1,default:"info"},{name:"title",type:"string",required:!1},{name:"dismissible",type:"boolean",required:!1,default:!1}],children:"single"}],["craft-progress",{name:"ProgressBar",zigType:"craft.ProgressBar",props:[{name:"value",type:"number",required:!1,default:0},{name:"max",type:"number",required:!1,default:100},{name:"indeterminate",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-spinner",{name:"Spinner",zigType:"craft.Spinner",props:[{name:"size",type:"number",required:!1,default:24}],children:"none"}],["craft-avatar",{name:"Avatar",zigType:"craft.Avatar",props:[{name:"src",type:"string",required:!1},{name:"alt",type:"string",required:!1},{name:"size",type:"number",required:!1,default:40}],children:"none"}],["craft-badge",{name:"Badge",zigType:"craft.Badge",props:[{name:"variant",type:"string",required:!1,default:"default"}],children:"single"}],["craft-card",{name:"Card",zigType:"craft.Card",props:[{name:"padding",type:"number",required:!1,default:16}],children:"multiple"}],["craft-sidebar",{name:"Sidebar",zigType:"craft.NativeSidebar",props:[{name:"id",type:"string",required:!1},{name:"variant",type:"string",required:!1,default:"desktop"},{name:"material",type:"string",required:!1,default:"sidebar"},{name:"backgroundEffect",type:"string",required:!1,default:"shimmer"},{name:"allowsVibrancy",type:"boolean",required:!1,default:!0},{name:"materialOpacity",type:"number",required:!1,default:0.68},{name:"minWidth",type:"number",required:!1,default:240},{name:"maxWidth",type:"number",required:!1,default:340},{name:"canCollapse",type:"boolean",required:!1,default:!0},{name:"selectedItem",type:"string",required:!1},{name:"sections",type:"array",required:!1}],children:"multiple",platform:["macos"],fallback:"aside"}],["craft-sidebar-section",{name:"SidebarSection",zigType:"craft.NativeSidebarSection",props:[{name:"id",type:"string",required:!0},{name:"title",type:"string",required:!1},{name:"header",type:"string",required:!1}],children:"multiple",platform:["macos"],fallback:"section"}],["craft-sidebar-item",{name:"SidebarItem",zigType:"craft.NativeSidebarItem",props:[{name:"id",type:"string",required:!0},{name:"label",type:"string",required:!0},{name:"icon",type:"string",required:!1},{name:"badge",type:"string",required:!1},{name:"tintColor",type:"color",required:!1}],children:"none",platform:["macos"],fallback:"button"}],["craft-accordion",{name:"Accordion",zigType:"craft.Accordion",props:[{name:"title",type:"string",required:!0},{name:"open",type:"boolean",required:!1,default:!1}],children:"multiple"}],["craft-tabs",{name:"TabView",zigType:"craft.TabView",props:[{name:"activeTab",type:"number",required:!1,default:0},{name:"ontabchange",type:"callback",required:!1}],children:"multiple"}],["craft-tooltip",{name:"Tooltip",zigType:"craft.Tooltip",props:[{name:"content",type:"string",required:!0},{name:"position",type:"string",required:!1,default:"top"}],children:"single"}],["craft-date-picker",{name:"DatePicker",zigType:"craft.DatePicker",props:[{name:"value",type:"string",required:!1},{name:"min",type:"string",required:!1},{name:"max",type:"string",required:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-time-picker",{name:"TimePicker",zigType:"craft.TimePicker",props:[{name:"value",type:"string",required:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-color-picker",{name:"ColorPicker",zigType:"craft.ColorPicker",props:[{name:"value",type:"color",required:!1,default:"#000000"},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-data-table",{name:"DataTable",zigType:"craft.DataTable",props:[{name:"data",type:"array",required:!0},{name:"columns",type:"array",required:!0},{name:"sortable",type:"boolean",required:!1,default:!1},{name:"paginated",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-virtual-list",{name:"VirtualList",zigType:"craft.VirtualList",props:[{name:"items",type:"array",required:!0},{name:"itemHeight",type:"number",required:!1,default:48},{name:"renderItem",type:"callback",required:!0}],children:"none"}],["craft-tree-view",{name:"TreeView",zigType:"craft.TreeView",props:[{name:"data",type:"object",required:!0},{name:"expandable",type:"boolean",required:!1,default:!0}],children:"none"}]]);gf={compileToNative:CN,createHotReloadServer:hN,NATIVE_COMPONENTS:SW},hf=gf});import{spawn as lN}from"child_process";import y0 from"fs";import df from"os";import Y0 from"path";import v from"process";import{CLI as uf}from"@stacksjs/clapp";var N6="0.2.94";X$();YW();zG();AG();g4();LG();nK();var __dirname="/home/runner/work/stx/stx/packages/stx/bin",O0=new uf("stx");function mN($){let Z=typeof $==="string"?Number.parseInt($,10):$;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function cN($){try{if(!y0.existsSync($)){let Y=Y0.dirname($),X=Y0.basename($);if(y0.existsSync(Y)){let Q=y0.readdirSync(Y).filter((K)=>K.toLowerCase().includes(X.toLowerCase().substring(0,3))||K.endsWith(".stx")||K.endsWith(".md")),G=Q.length>0?`File not found. Similar files in ${Y}: ${Q.slice(0,3).join(", ")}`:`File not found. Directory ${Y} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${$}`,suggestion:G}}return{isValid:!1,error:`File does not exist: ${$}`,suggestion:"Check the file path and try again"}}if(y0.statSync($).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${$}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${$}`,suggestion:"Check file permissions and path"}}}function CW($){let Z=typeof $==="string"?Number.parseInt($,10):$;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var v5=($)=>$.includes("*")||$.includes("?")||$.includes("{")||$.includes("["),mf=($)=>$.endsWith(".stx")||$.endsWith(".md");function x5($,Z=1){if(console.error(`\u274C ${$.error}`),$.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${$.suggestion}`);v.exit(Z)}async function cf($,Z){try{let Y=["test"],X=[];if($&&$.length>0)for(let W of $)if(v5(W))try{let U=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(U.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(X.push(...U),Z.verbose)console.log(`Found ${U.length} file(s) matching pattern: ${W}`)}catch(U){return console.error(`Error expanding glob pattern ${W}:`,U),!1}else X.push(W);if(X.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(Y.push(...X),Z.filter)Y.push("--pattern",Z.filter);if(Z.timeout)Y.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=Y0.join(df.tmpdir(),`stx-test-report-${Date.now()}.xml`);Y.push("--reporter",Z.reporter),Y.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)Y.push("--coverage");if(Z.watch)Y.push("--watch");Y.push("--preload",Y0.join(__dirname,"../../../test-utils/happy-dom.ts"));let J={...v.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},Q="bun";if(Z.verbose)console.log(`Running: ${Q} ${Y.join(" ")}`);let G=performance.now(),K=lN(Q,Y,{stdio:"inherit",shell:!1,env:J});return new Promise((W)=>{K.on("close",(U)=>{let z=((performance.now()-G)/1000).toFixed(2);if(U===0)W(!0);else W(!1)}),v.on("SIGINT",()=>{console.log(`
|
|
20412
|
+
`)}return Y.get(Z.target)||IW($,Z)}function bf($,Z,Y){let X=[];function J(Q){X.push({name:Q.zigType,hash:gN(JSON.stringify(Q.props)),props:Object.keys(Q.props),events:Array.from(Q.events.keys()),slots:[],isNative:Q.zigType.startsWith("craft.")});for(let G of Q.children)J(G)}return J(Z),{version:"1.0.0",components:X,entry:$.id,assets:[],styles:$.styles}}function Pf($,Z){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}function fN(){return`id_${++yf}`}function gN($){let Z=0;for(let Y=0;Y<$.length;Y++){let X=$.charCodeAt(Y);Z=(Z<<5)-Z+X,Z=Z&Z}return Math.abs(Z).toString(36)}function xf($){return $.charAt(0).toUpperCase()+$.slice(1)}function vf($){let Z=[],Y=/<script[^>]*>([\s\S]*?)<\/script>/gi,X;while((X=Y.exec($))!==null)Z.push(X[1]);return Z}function ff($){let Z=[],Y=/<style[^>]*>([\s\S]*?)<\/style>/gi,X;while((X=Y.exec($))!==null)Z.push(X[1]);return Z}function DW($){let Z=$.type==="component"?1:0;if($.children)for(let Y of $.children)Z+=DW(Y);return Z}function kW($){let Z=$.zigType.startsWith("craft.")?1:0;for(let Y of $.children)Z+=kW(Y);return Z}function hN($){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(Z)=>{console.log(`[craft-compiler] File changed: ${Z}`)}}}var SW,yf=0,gf,hf;var uN=D(()=>{SW=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{name:"variant",type:"string",required:!1,default:"primary"},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onclick",type:"callback",required:!1}],children:"single"}],["craft-text-input",{name:"TextInput",zigType:"craft.TextInput",props:[{name:"value",type:"string",required:!1,default:""},{name:"placeholder",type:"string",required:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-textarea",{name:"TextArea",zigType:"craft.TextArea",props:[{name:"value",type:"string",required:!1,default:""},{name:"placeholder",type:"string",required:!1},{name:"rows",type:"number",required:!1,default:3},{name:"disabled",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-checkbox",{name:"Checkbox",zigType:"craft.Checkbox",props:[{name:"checked",type:"boolean",required:!1,default:!1},{name:"label",type:"string",required:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-select",{name:"Select",zigType:"craft.Select",props:[{name:"value",type:"string",required:!1},{name:"options",type:"array",required:!0},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-slider",{name:"Slider",zigType:"craft.Slider",props:[{name:"value",type:"number",required:!1,default:0},{name:"min",type:"number",required:!1,default:0},{name:"max",type:"number",required:!1,default:100},{name:"step",type:"number",required:!1,default:1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-toggle",{name:"Toggle",zigType:"craft.Toggle",props:[{name:"checked",type:"boolean",required:!1,default:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-modal",{name:"Modal",zigType:"craft.Modal",props:[{name:"open",type:"boolean",required:!1,default:!1},{name:"title",type:"string",required:!1},{name:"closable",type:"boolean",required:!1,default:!0},{name:"onclose",type:"callback",required:!1}],children:"multiple"}],["craft-alert",{name:"Alert",zigType:"craft.Alert",props:[{name:"variant",type:"string",required:!1,default:"info"},{name:"title",type:"string",required:!1},{name:"dismissible",type:"boolean",required:!1,default:!1}],children:"single"}],["craft-progress",{name:"ProgressBar",zigType:"craft.ProgressBar",props:[{name:"value",type:"number",required:!1,default:0},{name:"max",type:"number",required:!1,default:100},{name:"indeterminate",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-spinner",{name:"Spinner",zigType:"craft.Spinner",props:[{name:"size",type:"number",required:!1,default:24}],children:"none"}],["craft-avatar",{name:"Avatar",zigType:"craft.Avatar",props:[{name:"src",type:"string",required:!1},{name:"alt",type:"string",required:!1},{name:"size",type:"number",required:!1,default:40}],children:"none"}],["craft-badge",{name:"Badge",zigType:"craft.Badge",props:[{name:"variant",type:"string",required:!1,default:"default"}],children:"single"}],["craft-card",{name:"Card",zigType:"craft.Card",props:[{name:"padding",type:"number",required:!1,default:16}],children:"multiple"}],["craft-sidebar",{name:"Sidebar",zigType:"craft.NativeSidebar",props:[{name:"id",type:"string",required:!1},{name:"variant",type:"string",required:!1,default:"desktop"},{name:"material",type:"string",required:!1,default:"sidebar"},{name:"backgroundEffect",type:"string",required:!1,default:"shimmer"},{name:"allowsVibrancy",type:"boolean",required:!1,default:!0},{name:"materialOpacity",type:"number",required:!1,default:0.68},{name:"minWidth",type:"number",required:!1,default:240},{name:"maxWidth",type:"number",required:!1,default:340},{name:"canCollapse",type:"boolean",required:!1,default:!0},{name:"selectedItem",type:"string",required:!1},{name:"sections",type:"array",required:!1}],children:"multiple",platform:["macos"],fallback:"aside"}],["craft-sidebar-section",{name:"SidebarSection",zigType:"craft.NativeSidebarSection",props:[{name:"id",type:"string",required:!0},{name:"title",type:"string",required:!1},{name:"header",type:"string",required:!1}],children:"multiple",platform:["macos"],fallback:"section"}],["craft-sidebar-item",{name:"SidebarItem",zigType:"craft.NativeSidebarItem",props:[{name:"id",type:"string",required:!0},{name:"label",type:"string",required:!0},{name:"icon",type:"string",required:!1},{name:"badge",type:"string",required:!1},{name:"tintColor",type:"color",required:!1}],children:"none",platform:["macos"],fallback:"button"}],["craft-accordion",{name:"Accordion",zigType:"craft.Accordion",props:[{name:"title",type:"string",required:!0},{name:"open",type:"boolean",required:!1,default:!1}],children:"multiple"}],["craft-tabs",{name:"TabView",zigType:"craft.TabView",props:[{name:"activeTab",type:"number",required:!1,default:0},{name:"ontabchange",type:"callback",required:!1}],children:"multiple"}],["craft-tooltip",{name:"Tooltip",zigType:"craft.Tooltip",props:[{name:"content",type:"string",required:!0},{name:"position",type:"string",required:!1,default:"top"}],children:"single"}],["craft-date-picker",{name:"DatePicker",zigType:"craft.DatePicker",props:[{name:"value",type:"string",required:!1},{name:"min",type:"string",required:!1},{name:"max",type:"string",required:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-time-picker",{name:"TimePicker",zigType:"craft.TimePicker",props:[{name:"value",type:"string",required:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-color-picker",{name:"ColorPicker",zigType:"craft.ColorPicker",props:[{name:"value",type:"color",required:!1,default:"#000000"},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-data-table",{name:"DataTable",zigType:"craft.DataTable",props:[{name:"data",type:"array",required:!0},{name:"columns",type:"array",required:!0},{name:"sortable",type:"boolean",required:!1,default:!1},{name:"paginated",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-virtual-list",{name:"VirtualList",zigType:"craft.VirtualList",props:[{name:"items",type:"array",required:!0},{name:"itemHeight",type:"number",required:!1,default:48},{name:"renderItem",type:"callback",required:!0}],children:"none"}],["craft-tree-view",{name:"TreeView",zigType:"craft.TreeView",props:[{name:"data",type:"object",required:!0},{name:"expandable",type:"boolean",required:!1,default:!0}],children:"none"}]]);gf={compileToNative:CN,createHotReloadServer:hN,NATIVE_COMPONENTS:SW},hf=gf});import{spawn as lN}from"child_process";import y0 from"fs";import df from"os";import Y0 from"path";import v from"process";import{CLI as uf}from"@stacksjs/clapp";var N6="0.2.95";X$();YW();zG();AG();g4();LG();nK();var __dirname="/home/runner/work/stx/stx/packages/stx/bin",O0=new uf("stx");function mN($){let Z=typeof $==="string"?Number.parseInt($,10):$;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function cN($){try{if(!y0.existsSync($)){let Y=Y0.dirname($),X=Y0.basename($);if(y0.existsSync(Y)){let Q=y0.readdirSync(Y).filter((K)=>K.toLowerCase().includes(X.toLowerCase().substring(0,3))||K.endsWith(".stx")||K.endsWith(".md")),G=Q.length>0?`File not found. Similar files in ${Y}: ${Q.slice(0,3).join(", ")}`:`File not found. Directory ${Y} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${$}`,suggestion:G}}return{isValid:!1,error:`File does not exist: ${$}`,suggestion:"Check the file path and try again"}}if(y0.statSync($).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${$}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${$}`,suggestion:"Check file permissions and path"}}}function CW($){let Z=typeof $==="string"?Number.parseInt($,10):$;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var v5=($)=>$.includes("*")||$.includes("?")||$.includes("{")||$.includes("["),mf=($)=>$.endsWith(".stx")||$.endsWith(".md");function x5($,Z=1){if(console.error(`\u274C ${$.error}`),$.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${$.suggestion}`);v.exit(Z)}async function cf($,Z){try{let Y=["test"],X=[];if($&&$.length>0)for(let W of $)if(v5(W))try{let U=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(U.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(X.push(...U),Z.verbose)console.log(`Found ${U.length} file(s) matching pattern: ${W}`)}catch(U){return console.error(`Error expanding glob pattern ${W}:`,U),!1}else X.push(W);if(X.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(Y.push(...X),Z.filter)Y.push("--pattern",Z.filter);if(Z.timeout)Y.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=Y0.join(df.tmpdir(),`stx-test-report-${Date.now()}.xml`);Y.push("--reporter",Z.reporter),Y.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)Y.push("--coverage");if(Z.watch)Y.push("--watch");Y.push("--preload",Y0.join(__dirname,"../../../test-utils/happy-dom.ts"));let J={...v.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},Q="bun";if(Z.verbose)console.log(`Running: ${Q} ${Y.join(" ")}`);let G=performance.now(),K=lN(Q,Y,{stdio:"inherit",shell:!1,env:J});return new Promise((W)=>{K.on("close",(U)=>{let z=((performance.now()-G)/1000).toFixed(2);if(U===0)W(!0);else W(!1)}),v.on("SIGINT",()=>{console.log(`
|
|
20413
20413
|
Test run interrupted`),K.kill("SIGINT"),v.exit(1)})})}catch(Y){return console.error("Error running tests:",Y instanceof Error?Y.message:String(Y)),!1}}var lf=v.argv.length>=3&&(mf(v.argv[2])&&y0.existsSync(v.argv[2])||v5(v.argv[2]));if(lf){let $=v.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let Y=3;Y<v.argv.length;Y++){let X=v.argv[Y];if(X==="--port"&&Y+1<v.argv.length){let J=mN(v.argv[++Y]);if(!J.isValid)x5(J);Z.port=Number.parseInt(v.argv[Y],10)}else if(X==="--no-watch")Z.watch=!1;else if(X==="--highlight-theme"&&Y+1<v.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=v.argv[++Y]}else if(X==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(X==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(X==="--no-cache")Z.cache=!1;else if(X==="--native")Z.native=!0}if(v5($))try{let Y=await Array.fromAsync(new Bun.Glob($).scan({onlyFiles:!0,absolute:!0})),X=$.endsWith(".stx")?Y.filter((K)=>K.endsWith(".stx")):$.endsWith(".md")?Y.filter((K)=>K.endsWith(".md")):Y.filter((K)=>K.endsWith(".stx")||K.endsWith(".md")),J=$.split("*")[0].replace(/\/$/,"")||".",Q=Y0.resolve(J);try{let K=new Bun.Glob("**/*.stx"),U=(await Array.fromAsync(K.scan({cwd:Q,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test(Y0.basename(_)));for(let _ of U)if(!X.includes(_))X.push(_)}catch{}if(X.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${$}`),v.exit(1);if(!await c8(X,Z))v.exit(1)}catch(Y){console.error("Failed to process files:",Y),v.exit(1)}else m8($,Z).catch((Y)=>{console.error("Failed to start dev server:",Y),v.exit(1)})}else{let $=function(X,J){let Q=[];for(let G=0;G<=J.length;G++)Q[G]=[G];for(let G=0;G<=X.length;G++)Q[0][G]=G;for(let G=1;G<=J.length;G++)for(let K=1;K<=X.length;K++)if(J.charAt(G-1)===X.charAt(K-1))Q[G][K]=Q[G-1][K-1];else Q[G][K]=Math.min(Q[G-1][K-1]+1,Q[G][K-1]+1,Q[G-1][K]+1);return Q[J.length][X.length]};O0.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(X)=>{try{if(await _G(X))console.log("Documentation generated successfully."),v.exit(0);else console.error("Documentation generation failed."),v.exit(1)}catch(J){console.error("Error generating documentation:",J),v.exit(1)}}),O0.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(X,J)=>{try{let{fetchCollections:Q,generatePackage:G}=await import("@stacksjs/iconify-generator");if(X==="list"){console.log(`
|
|
20414
20414
|
\uD83D\uDCDA Fetching available icon collections...
|
|
20415
20415
|
`);let K=await Q(),W=Object.entries(K).sort((U,_)=>_[1].total-U[1].total);console.log(`Available collections:
|
package/dist/client/directive.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Wy as a,Xy as b}from"../chunk-8vtm0m84.js";import"../chunk-xv34zbp4.js";export{a as stxRouterHandler,b as stxRouterDirective};
|
package/dist/client/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Vy as a,Wy as b,Xy as c}from"../chunk-8vtm0m84.js";import"../chunk-xv34zbp4.js";export{b as stxRouterHandler,c as stxRouterDirective,a as getRouterScript};
|
package/dist/client-helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{up as a}from"./chunk-j58vh0w6.js";import"./chunk-xv34zbp4.js";export{a as stxClientHelpers};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ty as x}from"./chunk-7ed3tean.js";import"./chunk-xv34zbp4.js";import H from"path";import Y from"fs";var T=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function f(W){let q=/^\s*import\s+(?!type\s)/gm;if(!W.match(q))return!1;let $=/^\s*import\s+(?!type\s).*?\s+from\s+['"]([^'"]+)['"]/gm,k;while((k=$.exec(W))!==null){let z=k[1];if(!T.some((G)=>G.test(z)))return console.log("[stx:bundler] detected user import:",z),!0}let Q=/^\s*import\s+['"]([^'"]+)['"]/gm;while((k=Q.exec(W))!==null){let z=k[1];if(/\.css(?:\?.*)?$/.test(z))continue;if(!T.some((G)=>G.test(z)))return console.log("[stx:bundler] detected side-effect import:",z),!0}return!1}function R(W,q,_,$){let k=(Q,z)=>{let w=Q===_?q:H.dirname(Q),G=H.resolve(w,z),Z=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,H.join(G,"index.ts"),H.join(G,"index.tsx"),H.join(G,"index.js"),H.join(G,"index.mjs")];for(let L of Z)try{if(Y.existsSync(L)&&Y.statSync(L,{throwIfNoEntry:!1})?.isFile())return L}catch{}return G};return{name:"stx-client-bundle",setup(Q){Q.onResolve({filter:/^(stx|@stacksjs\/stx|@stacksjs\/browser)$/},(z)=>({path:z.path,external:!0})),Q.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(z)=>({path:z.path,external:!0})),Q.onResolve({filter:/^\.\.?\//},(z)=>{let w=k(z.importer,z.path);return $.add(w),{path:w}}),Q.onResolve({filter:/^[@~]\//},(z)=>{let w=H.resolve(W,z.path.slice(2)),G=[w,`${w}.ts`,`${w}.tsx`,`${w}.js`,`${w}.mjs`,`${w}.jsx`,H.join(w,"index.ts"),H.join(w,"index.tsx"),H.join(w,"index.js"),H.join(w,"index.mjs")];for(let Z of G)if(Y.existsSync(Z)&&Y.statSync(Z,{throwIfNoEntry:!1})?.isFile())return console.log(`[stx:bundler] resolved ${z.path[0]}/ import:`,z.path,"\u2192",Z),$.add(Z),{path:Z};return console.warn(`[stx:bundler] could not resolve ${z.path[0]}/ import:`,z.path),{path:w}})}}}async function v(W,q,_={}){let $=_.projectRoot||process.cwd(),k=_.minify??!1,Q=_.cacheDir||H.join($,".stx","bundle-cache"),z=new Bun.CryptoHasher("md5");z.update(W+q);let w=z.digest("hex").slice(0,12),G=H.join(Q,`${w}.js`),Z=H.join(Q,`${w}.deps.json`),L=Bun.file(G);if(await L.exists()){let U=Bun.file(Z),J=!0;if(await U.exists())try{let I=JSON.parse(await U.text());for(let O of I.files)try{if(Y.statSync(O.path).mtimeMs!==O.mtimeMs){J=!1;break}}catch{J=!1;break}}catch{J=!1}if(J)return console.log("[stx:bundler] cache hit:",w),await L.text();console.log("[stx:bundler] cache invalidated by dep change:",w)}let V=H.join($,".stx","bundle-tmp"),A=H.join(V,`${w}.ts`),M=H.join(V,"out",w);Y.mkdirSync(V,{recursive:!0}),Y.mkdirSync(M,{recursive:!0});let y=H.dirname(q),S=[],N=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,F=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,C;while((C=N.exec(W))!==null){if(C[1])continue;if(C[2])C[2].split(",").forEach((U)=>{let J=U.split(":")[0].trim();if(J)S.push(J)});else if(C[3])S.push(C[3])}while((C=F.exec(W))!==null){if(C[1])continue;S.push(C[2])}let D=S.length>0?`
|
|
3
3
|
export { ${S.join(", ")} }`:"";await Bun.write(A,W+D),console.log("[stx:bundler] bundling:",w,"from:",H.basename(q));let j=new Set;try{let U=await Bun.build({entrypoints:[A],outdir:M,target:"browser",format:"esm",minify:k,plugins:[R($,y,A,j)],define:{"process.env.NODE_ENV":k?'"production"':'"development"',...x()},root:$});if(!U.success){let K=U.logs.filter((B)=>B.level==="error").map((B)=>B.message).join(", ");return console.warn("[stx:bundler] build failed:",K),W}let J="";for(let K of U.outputs){J=await K.text();break}let I=[];for(let K of J.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let B of K[1].split(",")){let X=B.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(X&&X[1]!==X[2])I.push([X[2],X[1]])}if(J=J.replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),I.length>0){let K=I.map(([B,X])=>`${JSON.stringify(B)}: ${X}`).join(", ");J+=`
|
|
4
4
|
var __stxScopeRenames = { ${K} };`}console.log("[stx:bundler] bundled:",w,"output:",J.length,"bytes"),Y.mkdirSync(Q,{recursive:!0}),await Bun.write(G,J);let O=Array.from(j).map((K)=>{try{return{path:K,mtimeMs:Y.statSync(K).mtimeMs}}catch{return null}}).filter((K)=>K!==null);return await Bun.write(Z,JSON.stringify({files:O})),J}catch(U){let J=U instanceof Error?U.message:String(U),I=U?.errors,O=Array.isArray(I)&&I.length>0?`
|
|
5
5
|
${I.map((K)=>`- ${K?.message??K}`).join(`
|
package/dist/client-script.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{jr as a,kr as b,lr as c,mr as d,nr as e}from"./chunk-1xz0w746.js";import"./chunk-m8448qby.js";import"./chunk-kx6eb6ma.js";import"./chunk-g1vt329s.js";import"./chunk-7074g241.js";import"./chunk-9cf97f9p.js";import"./chunk-6djzdes9.js";import"./chunk-v7f8jj15.js";import"./chunk-keawsbpn.js";import"./chunk-8b3z0zd5.js";import"./chunk-hbgxbgam.js";import"./chunk-ejh8fyak.js";import"./chunk-krqn0ddk.js";import"./chunk-y1k17c8b.js";import"./chunk-2j21d3ka.js";import"./chunk-frg705zq.js";import"./chunk-hjm2xab3.js";import"./chunk-07y6m5xx.js";import"./chunk-wazkqv7n.js";import"./chunk-x05nxhyv.js";import"./chunk-31dr4bys.js";import"./chunk-mgj88zeq.js";import"./chunk-m167kjhv.js";import"./chunk-3a4qsygv.js";import"./chunk-dqn9gyhb.js";import"./chunk-988dw6q3.js";import"./chunk-8qc1bsym.js";import"./chunk-xyg1r5w0.js";import"./chunk-7gd339hd.js";import"./chunk-4deg33rw.js";import"./chunk-pa9zb7ty.js";import"./chunk-a2g2qb2y.js";import"./chunk-h5jxydqq.js";import"./chunk-nhv099jv.js";import"./chunk-shv88d2d.js";import"./chunk-0dx4q6yq.js";import"./chunk-ek2w6zvy.js";import"./chunk-9wmq2272.js";import"./chunk-7dkz6z2s.js";import"./chunk-9ecv8aqj.js";import"./chunk-bdk6g1vj.js";import"./chunk-xqq1vxb6.js";import"./chunk-amaa1bev.js";import"./chunk-r5m9xtm7.js";import"./chunk-bs3gmfxz.js";import"./chunk-1zgsgk4b.js";import"./chunk-2jxbwnkz.js";import"./chunk-zen6ax1y.js";import"./chunk-yb1t2h8h.js";import"./chunk-fjk3x41y.js";import"./chunk-5shey2e4.js";import"./chunk-27zsyhrd.js";import"./chunk-7ed3tean.js";import"./chunk-8vtm0m84.js";import"./chunk-tzwtg722.js";import"./chunk-ah88wzbg.js";import"./chunk-v8j49spx.js";import"./chunk-tg2f1mzq.js";import"./chunk-n9dhs1dw.js";import"./chunk-rwrv9wbf.js";import"./chunk-wg9k6h8w.js";import"./chunk-9jtj77jx.js";import"./chunk-qygvvygy.js";import"./chunk-gz5fmp3q.js";import"./chunk-vjbefncc.js";import"./chunk-8xj7c3mf.js";import"./chunk-qvrbjpdc.js";import"./chunk-w3b6m427.js";import"./chunk-rz2ec6g7.js";import"./chunk-35faj94w.js";import"./chunk-djddhmcc.js";import"./chunk-knm8a8yx.js";import"./chunk-xv34zbp4.js";export{b as renderVendorStyleTags,e as processClientScript,d as generateServerDataBridge,c as extractBridgeData,a as extractAndStripCssImports};
|
package/dist/component-hmr.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$o as a,ap as b,bp as c,cp as d,dp as e,ep as f}from"./chunk-2cdvw21b.js";import"./chunk-xv34zbp4.js";export{c as wrapComponentForHMR,e as resetHMRHandler,d as getHMRHandler,b as generateHMRClientScript,f as default,a as ComponentHMRHandler};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ds as c,es as d,fs as e,gs as f,hs as g,is as h,js as i,ks as j,ls as k}from"./chunk-1xz0w746.js";import"./chunk-m8448qby.js";import"./chunk-kx6eb6ma.js";import"./chunk-g1vt329s.js";import"./chunk-7074g241.js";import"./chunk-9cf97f9p.js";import"./chunk-6djzdes9.js";import"./chunk-v7f8jj15.js";import"./chunk-keawsbpn.js";import"./chunk-8b3z0zd5.js";import"./chunk-hbgxbgam.js";import"./chunk-ejh8fyak.js";import"./chunk-krqn0ddk.js";import"./chunk-y1k17c8b.js";import"./chunk-2j21d3ka.js";import"./chunk-frg705zq.js";import"./chunk-hjm2xab3.js";import"./chunk-07y6m5xx.js";import"./chunk-wazkqv7n.js";import"./chunk-x05nxhyv.js";import"./chunk-31dr4bys.js";import"./chunk-mgj88zeq.js";import"./chunk-m167kjhv.js";import"./chunk-3a4qsygv.js";import"./chunk-dqn9gyhb.js";import"./chunk-988dw6q3.js";import{ov as a,pv as b}from"./chunk-8qc1bsym.js";import"./chunk-xyg1r5w0.js";import"./chunk-7gd339hd.js";import"./chunk-4deg33rw.js";import"./chunk-pa9zb7ty.js";import"./chunk-a2g2qb2y.js";import"./chunk-h5jxydqq.js";import"./chunk-nhv099jv.js";import"./chunk-shv88d2d.js";import"./chunk-0dx4q6yq.js";import"./chunk-ek2w6zvy.js";import"./chunk-9wmq2272.js";import"./chunk-7dkz6z2s.js";import"./chunk-9ecv8aqj.js";import"./chunk-bdk6g1vj.js";import"./chunk-xqq1vxb6.js";import"./chunk-amaa1bev.js";import"./chunk-r5m9xtm7.js";import"./chunk-bs3gmfxz.js";import"./chunk-1zgsgk4b.js";import"./chunk-2jxbwnkz.js";import"./chunk-zen6ax1y.js";import"./chunk-yb1t2h8h.js";import"./chunk-fjk3x41y.js";import"./chunk-5shey2e4.js";import"./chunk-27zsyhrd.js";import"./chunk-7ed3tean.js";import"./chunk-8vtm0m84.js";import"./chunk-tzwtg722.js";import"./chunk-ah88wzbg.js";import"./chunk-v8j49spx.js";import"./chunk-tg2f1mzq.js";import"./chunk-n9dhs1dw.js";import"./chunk-rwrv9wbf.js";import"./chunk-wg9k6h8w.js";import"./chunk-9jtj77jx.js";import"./chunk-qygvvygy.js";import"./chunk-gz5fmp3q.js";import"./chunk-vjbefncc.js";import"./chunk-8xj7c3mf.js";import"./chunk-qvrbjpdc.js";import"./chunk-w3b6m427.js";import"./chunk-rz2ec6g7.js";import"./chunk-35faj94w.js";import"./chunk-djddhmcc.js";import"./chunk-knm8a8yx.js";import"./chunk-xv34zbp4.js";export{a as stashScriptElements,b as restoreStashedScripts,i as processImportDirectives,k as processCustomElements,j as processComponentDirectives,h as processBuiltInComponents,c as pascalToKebab,f as parseMultilineAttributes,g as parseAttributes,d as findComponentTags,e as decodeStxProp};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$r as
|
|
2
|
+
import{$r as b,_r as a,as as c,bs as d}from"./chunk-1xz0w746.js";import"./chunk-m8448qby.js";import"./chunk-kx6eb6ma.js";import"./chunk-g1vt329s.js";import"./chunk-7074g241.js";import"./chunk-9cf97f9p.js";import"./chunk-6djzdes9.js";import"./chunk-v7f8jj15.js";import"./chunk-keawsbpn.js";import"./chunk-8b3z0zd5.js";import"./chunk-hbgxbgam.js";import"./chunk-ejh8fyak.js";import"./chunk-krqn0ddk.js";import"./chunk-y1k17c8b.js";import"./chunk-2j21d3ka.js";import"./chunk-frg705zq.js";import"./chunk-hjm2xab3.js";import"./chunk-07y6m5xx.js";import"./chunk-wazkqv7n.js";import"./chunk-x05nxhyv.js";import"./chunk-31dr4bys.js";import"./chunk-mgj88zeq.js";import"./chunk-m167kjhv.js";import"./chunk-3a4qsygv.js";import"./chunk-dqn9gyhb.js";import"./chunk-988dw6q3.js";import"./chunk-8qc1bsym.js";import"./chunk-xyg1r5w0.js";import"./chunk-7gd339hd.js";import"./chunk-4deg33rw.js";import"./chunk-pa9zb7ty.js";import"./chunk-a2g2qb2y.js";import"./chunk-h5jxydqq.js";import"./chunk-nhv099jv.js";import"./chunk-shv88d2d.js";import"./chunk-0dx4q6yq.js";import"./chunk-ek2w6zvy.js";import"./chunk-9wmq2272.js";import"./chunk-7dkz6z2s.js";import"./chunk-9ecv8aqj.js";import"./chunk-bdk6g1vj.js";import"./chunk-xqq1vxb6.js";import"./chunk-amaa1bev.js";import"./chunk-r5m9xtm7.js";import"./chunk-bs3gmfxz.js";import"./chunk-1zgsgk4b.js";import"./chunk-2jxbwnkz.js";import"./chunk-zen6ax1y.js";import"./chunk-yb1t2h8h.js";import"./chunk-fjk3x41y.js";import"./chunk-5shey2e4.js";import"./chunk-27zsyhrd.js";import"./chunk-7ed3tean.js";import"./chunk-8vtm0m84.js";import"./chunk-tzwtg722.js";import"./chunk-ah88wzbg.js";import"./chunk-v8j49spx.js";import"./chunk-tg2f1mzq.js";import"./chunk-n9dhs1dw.js";import"./chunk-rwrv9wbf.js";import"./chunk-wg9k6h8w.js";import"./chunk-9jtj77jx.js";import"./chunk-qygvvygy.js";import"./chunk-gz5fmp3q.js";import"./chunk-vjbefncc.js";import"./chunk-8xj7c3mf.js";import"./chunk-qvrbjpdc.js";import"./chunk-w3b6m427.js";import"./chunk-rz2ec6g7.js";import"./chunk-35faj94w.js";import"./chunk-djddhmcc.js";import"./chunk-knm8a8yx.js";import"./chunk-xv34zbp4.js";export{d as registry,b as pascalToKebab,a as kebabToPascal,c as ComponentRegistry};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ms as a,ns as b}from"./chunk-1xz0w746.js";import"./chunk-m8448qby.js";import"./chunk-kx6eb6ma.js";import"./chunk-g1vt329s.js";import"./chunk-7074g241.js";import"./chunk-9cf97f9p.js";import"./chunk-6djzdes9.js";import"./chunk-v7f8jj15.js";import"./chunk-keawsbpn.js";import"./chunk-8b3z0zd5.js";import"./chunk-hbgxbgam.js";import"./chunk-ejh8fyak.js";import"./chunk-krqn0ddk.js";import"./chunk-y1k17c8b.js";import"./chunk-2j21d3ka.js";import"./chunk-frg705zq.js";import"./chunk-hjm2xab3.js";import"./chunk-07y6m5xx.js";import"./chunk-wazkqv7n.js";import"./chunk-x05nxhyv.js";import"./chunk-31dr4bys.js";import"./chunk-mgj88zeq.js";import"./chunk-m167kjhv.js";import"./chunk-3a4qsygv.js";import"./chunk-dqn9gyhb.js";import"./chunk-988dw6q3.js";import"./chunk-8qc1bsym.js";import"./chunk-xyg1r5w0.js";import"./chunk-7gd339hd.js";import"./chunk-4deg33rw.js";import"./chunk-pa9zb7ty.js";import"./chunk-a2g2qb2y.js";import"./chunk-h5jxydqq.js";import"./chunk-nhv099jv.js";import"./chunk-shv88d2d.js";import"./chunk-0dx4q6yq.js";import"./chunk-ek2w6zvy.js";import"./chunk-9wmq2272.js";import"./chunk-7dkz6z2s.js";import"./chunk-9ecv8aqj.js";import"./chunk-bdk6g1vj.js";import"./chunk-xqq1vxb6.js";import"./chunk-amaa1bev.js";import"./chunk-r5m9xtm7.js";import"./chunk-bs3gmfxz.js";import"./chunk-1zgsgk4b.js";import"./chunk-2jxbwnkz.js";import"./chunk-zen6ax1y.js";import"./chunk-yb1t2h8h.js";import"./chunk-fjk3x41y.js";import"./chunk-5shey2e4.js";import"./chunk-27zsyhrd.js";import"./chunk-7ed3tean.js";import"./chunk-8vtm0m84.js";import"./chunk-tzwtg722.js";import"./chunk-ah88wzbg.js";import"./chunk-v8j49spx.js";import"./chunk-tg2f1mzq.js";import"./chunk-n9dhs1dw.js";import"./chunk-rwrv9wbf.js";import"./chunk-wg9k6h8w.js";import"./chunk-9jtj77jx.js";import"./chunk-qygvvygy.js";import"./chunk-gz5fmp3q.js";import"./chunk-vjbefncc.js";import"./chunk-8xj7c3mf.js";import"./chunk-qvrbjpdc.js";import"./chunk-w3b6m427.js";import"./chunk-rz2ec6g7.js";import"./chunk-35faj94w.js";import"./chunk-djddhmcc.js";import"./chunk-knm8a8yx.js";import"./chunk-xv34zbp4.js";export{a as processESImports,b as processComponents};
|
package/dist/components.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{fp as a,gp as b,hp as c,ip as d}from"./chunk-hbehnm18.js";import"./chunk-1xz0w746.js";import"./chunk-m8448qby.js";import"./chunk-kx6eb6ma.js";import"./chunk-g1vt329s.js";import"./chunk-7074g241.js";import"./chunk-9cf97f9p.js";import"./chunk-6djzdes9.js";import"./chunk-v7f8jj15.js";import"./chunk-keawsbpn.js";import"./chunk-8b3z0zd5.js";import"./chunk-hbgxbgam.js";import"./chunk-ejh8fyak.js";import"./chunk-krqn0ddk.js";import"./chunk-y1k17c8b.js";import"./chunk-2j21d3ka.js";import"./chunk-frg705zq.js";import"./chunk-hjm2xab3.js";import"./chunk-07y6m5xx.js";import"./chunk-wazkqv7n.js";import"./chunk-x05nxhyv.js";import"./chunk-31dr4bys.js";import"./chunk-mgj88zeq.js";import"./chunk-m167kjhv.js";import"./chunk-3a4qsygv.js";import"./chunk-dqn9gyhb.js";import"./chunk-988dw6q3.js";import"./chunk-8qc1bsym.js";import"./chunk-xyg1r5w0.js";import"./chunk-7gd339hd.js";import"./chunk-4deg33rw.js";import"./chunk-pa9zb7ty.js";import"./chunk-a2g2qb2y.js";import"./chunk-h5jxydqq.js";import"./chunk-nhv099jv.js";import"./chunk-shv88d2d.js";import"./chunk-0dx4q6yq.js";import"./chunk-ek2w6zvy.js";import"./chunk-9wmq2272.js";import"./chunk-7dkz6z2s.js";import"./chunk-9ecv8aqj.js";import"./chunk-bdk6g1vj.js";import"./chunk-xqq1vxb6.js";import"./chunk-amaa1bev.js";import"./chunk-r5m9xtm7.js";import"./chunk-bs3gmfxz.js";import"./chunk-1zgsgk4b.js";import"./chunk-2jxbwnkz.js";import"./chunk-zen6ax1y.js";import"./chunk-yb1t2h8h.js";import"./chunk-fjk3x41y.js";import"./chunk-5shey2e4.js";import"./chunk-27zsyhrd.js";import"./chunk-7ed3tean.js";import"./chunk-8vtm0m84.js";import"./chunk-tzwtg722.js";import"./chunk-ah88wzbg.js";import"./chunk-v8j49spx.js";import"./chunk-tg2f1mzq.js";import"./chunk-n9dhs1dw.js";import"./chunk-rwrv9wbf.js";import"./chunk-wg9k6h8w.js";import"./chunk-9jtj77jx.js";import"./chunk-qygvvygy.js";import"./chunk-gz5fmp3q.js";import"./chunk-vjbefncc.js";import"./chunk-8xj7c3mf.js";import"./chunk-qvrbjpdc.js";import"./chunk-w3b6m427.js";import"./chunk-rz2ec6g7.js";import"./chunk-35faj94w.js";import"./chunk-djddhmcc.js";import"./chunk-knm8a8yx.js";import"./chunk-xv34zbp4.js";export{a as validateComponentProps,d as registerComponentDirectives,c as componentDirective,b as applyPropDefaults};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";export{p as useWindowSize,PA as useWebSocket,lA as useWakeLock,y as useVisibility,ZB as useToggle,h as useTitle,XB as useTimeout,VB as useThrottle,kA as useTextSelection,FA as useTextObserver,B as useStorage,ej as useSpeechSynthesis,sj as useSpeechRecognition,Cj as useShare,H as useSessionStorage,bA as useSelectionPopup,IB as useSearchParams,w as useScroll,TA as useSSE,HB as useRoute,lj as useResizeObserverMultiple,dj as useResizeObserver,C as usePreferredReducedMotion,z as usePreferredLight,x as usePreferredDark,D as usePreferredContrast,Oj as usePost,i as usePointer,gj as usePermissions,Mj as usePermission,ZA as useParallax,M as useOnline,Zj as useNotification,f as useNetwork,CA as useMutationObserver,n as useMouseInElement,a as useMouse,OB as useMeta,q as useMediaQuery,G as useLocalStorage,Gj as useLazyLoad,wA as useLastActive,o as useKeyboard,s as useKeySequence,u as useKeyPressed,L as useIsTablet,F as useIsMobile,Q as useIsDesktop,WB as useInterval,Ij as useIntersectionObserverMultiple,Aj as useIntersectionObserver,Hj as useInfiniteScroll,pA as useIdleState,gA as useIdle,t as useHotkey,m as useGeolocationWatch,b as useGeolocation,Vj as useFullscreen,qB as useFocus,Kj as useFetch,k as useFavicon,rA as useEyeDropper,UA as useEventSource,KB as useEventListener,Bj as useElementVisibility,vA as useElementTextSelection,cj as useElementSize,XA as useDeviceOrientation,YA as useDeviceMotion,SB as useDebouncedValue,RB as useDebounce,DB as useDark,_B as useCounter,mA as useCopySelection,P as useCookies,O as useCookie,aA as useConditionalWakeLock,CB as useColorMode,oA as useColorHistory,Z as useClipboard,$B as useClickOutside,EA as useChildListObserver,VA as useChannel,JA as useBroadcastChannel,E as useBreakpoint,ij as useBattery,cA as useAutoWakeLock,yA as useAutoLogout,DA as useAttributeObserver,Nj as useAsyncData,xB as useAsync,Wj as toggleFullscreen,GA as stopSpeaking,BA as speak,e as shortcuts,Uj as shareWithFallback,Ej as shareURL,Fj as shareText,Lj as shareFiles,Qj as shareCurrentPage,Dj as share,S as setCookie,qA as requestOrientationPermission,qj as requestNotificationPermission,xA as requestMotionPermission,vj as requestMediaPermissions,V as removeCookie,Rj as prefetch,tA as pickColor,bj as permissionGroups,W as parseCookies,_j as notify,xj as notifications,AB as navigate,RA as isWebSocketSupported,nA as isWakeLockSupported,AA as isSpeechSynthesisSupported,jA as isSpeechRecognitionSupported,pj as isPermissionGranted,LA as isMutationObserverSupported,Xj as isInFullscreen,eA as isEyeDropperSupported,fA as isEventSourceSupported,_A as isDeviceOrientationSupported,$A as isDeviceMotionSupported,oj as isCharging,NA as isBroadcastChannelSupported,uA as hexToRgb,sA as hexToHsl,aj as hasResizeObserver,kj as hasNotificationPermission,yj as hasMicrophonePermission,hj as hasGeolocationPermission,wj as hasCameraPermission,tj as hasBattery,GB as goForward,BB as goBack,HA as getVoices,K as getStorageSize,J as getStorageKeys,d as getCurrentPosition,R as getCookie,rj as getBatteryLevel,Tj as createShareableFile,_ as copyToClipboard,I as clearStorage,Pj as clearFetchCache,X as clearCookies,$j as canNotify,l as calculateDistance,KA as broadcast,U as breakpoints};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function D(){return typeof navigator<"u"&&"getBattery"in navigator}function K(){return{charging:!1,chargingTime:0,dischargingTime:0,level:1}}function L(){let q=D(),j=K(),x=[],g=null,E=!1,F=()=>{x.forEach((m)=>m(j))},w=()=>{if(g)j={charging:g.charging,chargingTime:g.chargingTime,dischargingTime:g.dischargingTime,level:g.level},F()},G=async()=>{if(E||!q)return;try{let m=navigator;if(m.getBattery)g=await m.getBattery(),j={charging:g.charging,chargingTime:g.chargingTime,dischargingTime:g.dischargingTime,level:g.level},g.addEventListener("chargingchange",w),g.addEventListener("chargingtimechange",w),g.addEventListener("dischargingtimechange",w),g.addEventListener("levelchange",w),E=!0,F()}catch{}},H=()=>{if(g)g.removeEventListener("chargingchange",w),g.removeEventListener("chargingtimechange",w),g.removeEventListener("dischargingtimechange",w),g.removeEventListener("levelchange",w),g=null;E=!1};return{get:()=>j,subscribe:(m)=>{if(x.length===0)G();return x.push(m),m(j),()=>{if(x=x.filter((J)=>J!==m),x.length===0)H()}},isSupported:()=>q,getPercentage:()=>Math.round(j.level*100),isLow:(m=0.2)=>j.level<=m&&!j.charging,isCritical:()=>j.level<=0.1&&!j.charging}}async function M(){if(!D())return null;try{let q=navigator;if(q.getBattery){let j=await q.getBattery();return Math.round(j.level*100)}}catch{}return null}async function N(){if(!D())return null;try{let q=navigator;if(q.getBattery)return(await q.getBattery()).charging}catch{}return null}function O(){return D()}export{L as useBattery,N as isCharging,O as hasBattery,M as getBatteryLevel};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function K(){return typeof window<"u"&&"BroadcastChannel"in window}function R(F,D={}){let z=K(),G=new Set,A=new Map,q={isSupported:z,isClosed:!1,channel:null,lastMessage:null,error:null};function H(){G.forEach((j)=>j(q))}function I(j,w){let J=A.get(j);if(J)J.forEach((Q)=>Q(w))}if(z)try{let j=new BroadcastChannel(F);j.onmessage=(w)=>{q={...q,lastMessage:w.data},H(),I("message",w),D.onMessage?.(w)},j.onmessageerror=(w)=>{q={...q,error:Error("Message error")},H(),I("error",w),D.onError?.(w)},q={...q,channel:j}}catch(j){q={...q,error:j}}function M(j){if(q.channel&&!q.isClosed)q.channel.postMessage(j)}function O(){if(q.channel&&!q.isClosed)q.channel.close(),q={...q,isClosed:!0,channel:null},H()}function P(j,w){if(!A.has(j))A.set(j,new Set);return A.get(j).add(w),()=>{A.get(j)?.delete(w)}}return{get:()=>q,subscribe:(j)=>{return G.add(j),j(q),()=>{G.delete(j)}},post:M,close:O,isSupported:()=>z,on:P}}function T(F,D){if(!K())return;let z=new BroadcastChannel(F);z.postMessage(D),z.close()}export{R as useBroadcastChannel,K as isBroadcastChannelSupported,T as broadcast};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function x(){let F=typeof window<"u"?window.__stx_broadcasting:void 0;return{host:F?.host??(typeof window<"u"?window.location.hostname:"localhost"),port:F?.port??6001,scheme:F?.scheme??"ws"}}function T(F,H={}){let O=x(),Y=H.host??O.host,Z=H.port??O.port,_=H.scheme??O.scheme,$=H.autoConnect??!0,A=H.autoReconnect??!0,E=H.maxReconnectAttempts??Number.POSITIVE_INFINITY,D=H.reconnectDelay??1000,P=new Set,I=new Map,B={data:null,event:null,isSubscribed:!1,isConnected:!1,socketId:null},G=null,K=0,M=null,Q=!1;function J(){for(let z of P)z(B)}function j(z,q){let W=I.get(z);if(W)for(let U of W)U(q);let X=I.get("*");if(X)for(let U of X)U(q)}function S(){if(typeof WebSocket>"u")return;Q=!1;try{G=new WebSocket(`${_}://${Y}:${Z}/ws`)}catch{V();return}G.onmessage=(z)=>{try{let q=JSON.parse(z.data);if(q.event==="connection_established"){B={...B,isConnected:!0,socketId:q.data?.socket_id??null},J(),G.send(JSON.stringify({event:"subscribe",channel:F}));return}if(q.event==="subscription_succeeded"&&q.channel===F){B={...B,isSubscribed:!0},K=0,J();return}if(q.event==="subscription_error"&&q.channel===F){console.warn(`[stx] Channel subscription failed: ${F}`,q.data);return}if(q.channel===F&&q.event)B={...B,data:q.data,event:q.event},J(),j(q.event,q.data)}catch{}},G.onclose=()=>{let z=B.isSubscribed;if(B={...B,isConnected:!1,isSubscribed:!1,socketId:null},G=null,J(),!Q&&A)V()},G.onerror=()=>{}}function V(){if(K>=E)return;let z=Math.min(D*2**K,30000);K++,M=setTimeout(S,z)}function R(){if(Q=!0,M)clearTimeout(M),M=null;if(G){if(B.isSubscribed)try{G.send(JSON.stringify({event:"unsubscribe",channel:F}))}catch{}G.close(),G=null}B={data:null,event:null,isSubscribed:!1,isConnected:!1,socketId:null},J()}if($)S();return{get:()=>B,subscribe:(z)=>{return P.add(z),z(B),()=>{P.delete(z)}},on:(z,q)=>{if(!I.has(z))I.set(z,new Set);return I.get(z).add(q),()=>{I.get(z)?.delete(q)}},close:R,open:S}}export{T as useChannel};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function G(z={}){let{timeout:A=1500}=z,B=new Set,w="",v=!1,q=null,D=typeof navigator<"u"&&"clipboard"in navigator,E=(g)=>{for(let j of B)try{j(g)}catch(F){console.error("[useClipboard] Subscriber error:",F)}};return{get text(){return w},get isSupported(){return D},get copied(){return v},copy:async(g)=>{if(!D)try{let j=document.createElement("textarea");if(j.value=g,j.style.position="fixed",j.style.opacity="0",document.body.appendChild(j),j.select(),document.execCommand("copy"),document.body.removeChild(j),w=g,v=!0,E(g),q)clearTimeout(q);return q=setTimeout(()=>{v=!1},A),!0}catch{return!1}try{if(await navigator.clipboard.writeText(g),w=g,v=!0,E(g),q)clearTimeout(q);return q=setTimeout(()=>{v=!1},A),!0}catch{return!1}},read:async()=>{if(!D)return"";try{let g=await navigator.clipboard.readText();return w=g,g}catch{return""}},subscribe:(g)=>{return B.add(g),()=>B.delete(g)}}}async function J(z){return G().copy(z)}export{G as useClipboard,J as copyToClipboard};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function K(R={}){let{storageKey:F="stx-color-mode",initialMode:H="auto",darkClass:N="dark",attribute:X,disableTransitions:Y=!0}=R,G=H,A="light",I=new Set,U=[],J=typeof window<"u";function Z(){if(!J)return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _(z){return z==="auto"?Z():z}function V(z){if(!J)return;let E=document.documentElement;if(Y)E.style.setProperty("transition","none","important");if(X)E.setAttribute(X,z);else if(z==="dark")E.classList.add(N);else E.classList.remove(N);if(Y)E.offsetHeight,E.style.removeProperty("transition")}function j(z){if(!J)return;try{localStorage.setItem(F,z)}catch{}}function x(){if(!J)return null;try{let z=localStorage.getItem(F);if(z==="light"||z==="dark"||z==="auto")return z}catch{}return null}function W(z){G=z,A=_(z),V(A),j(z),I.forEach((E)=>E(A,G))}let h=x();if(W(h??H),J){let z=window.matchMedia("(prefers-color-scheme: dark)"),E=()=>{if(G==="auto")A=Z(),V(A),I.forEach((Q)=>Q(A,G))};z.addEventListener("change",E),U.push(()=>z.removeEventListener("change",E));let $=(Q)=>{if(Q.key!==F)return;let L=Q.newValue;if(L==="light"||L==="dark"||L==="auto")G=L,A=_(L),V(A),I.forEach((q)=>q(A,G))};window.addEventListener("storage",$),U.push(()=>window.removeEventListener("storage",$))}if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(()=>{U.forEach((z)=>z()),I.clear()});return{get mode(){return A},get preference(){return G},get isDark(){return A==="dark"},set(z){W(z)},toggle(){W(A==="dark"?"light":"dark")},subscribe(z){return I.add(z),()=>{I.delete(z)}}}}function O(R={}){let F=K(R);return{get isDark(){return F.isDark},toggle(){F.toggle()},set(H){F.set(H?"dark":"light")},subscribe(H){return F.subscribe((N)=>H(N==="dark"))}}}export{O as useDark,K as useColorMode};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{dq as Y}from"../chunk-q6zhd9yf.js";import"../chunk-xv34zbp4.js";var B=encodeURIComponent,Z=decodeURIComponent;function X(){if(typeof document>"u")return{};let j={},q=document.cookie.split(";");for(let I of q){let[K,...G]=I.trim().split("=");if(K)try{j[K]=Z(G.join("="))}catch{j[K]=G.join("=")}}return j}function N(j){return X()[j]??null}function _(j,q,I){let{maxAge:K,expires:G,path:Q="/",domain:T,secure:U,sameSite:M="Lax",encode:$=B}=I,L=[`${j}=${q?$(q):""}`];if(Q)L.push(`path=${Q}`);if(T)L.push(`domain=${T}`);if(q==="")L.push("max-age=0");else if(typeof K==="number")L.push(`max-age=${K}`);else if(G!==void 0){let w=G instanceof Date?G:typeof G==="number"?new Date(Date.now()+G*1000):new Date(G);L.push(`expires=${w.toUTCString()}`)}L.push(`SameSite=${M}`);let W=U;if(W===void 0)W=typeof location<"u"&&location.protocol==="https:";if(W)L.push("Secure");return L.join("; ")}function E(j,q,I={}){if(typeof document>"u")return;document.cookie=_(j,q,I)}function H(j,q={}){E(j,"",{...q,maxAge:0,expires:new Date(0)})}function O(j,q={}){let I=q.decode||Z,K=q.defaultValue??"",G=j.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Q=new RegExp(`(?:^|; )${G}=([^;]*)`);function T(){if(typeof document>"u")return K;let M=document.cookie.match(Q);return M?I(M[1]):K}let U=Y(T());return U.subscribe((M)=>{if(typeof document>"u")return;document.cookie=_(j,M,q)}),U}function R(){return X()}function b(j={}){let q=X();for(let I of Object.keys(q))H(I,j)}export{R as useCookies,O as useCookie,E as setCookie,H as removeCookie,X as parseCookies,N as getCookie,b as clearCookies};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function J(){return typeof window<"u"&&"DeviceOrientationEvent"in window}function K(){return typeof window<"u"&&"DeviceMotionEvent"in window}async function Q(){if(typeof window>"u")return!1;let k=window.DeviceOrientationEvent;if(typeof k?.requestPermission==="function")try{return await k.requestPermission()==="granted"}catch{return!1}return!0}async function R(){if(typeof window>"u")return!1;let k=window.DeviceMotionEvent;if(typeof k?.requestPermission==="function")try{return await k.requestPermission()==="granted"}catch{return!1}return!0}function T(){let k=J(),B=new Set,A={isSupported:k,isAbsolute:!1,alpha:null,beta:null,gamma:null},w=null;function C(){B.forEach((j)=>j(A))}function F(j){A={...A,isAbsolute:j.absolute,alpha:j.alpha,beta:j.beta,gamma:j.gamma},C()}function G(){if(!k||w)return;window.addEventListener("deviceorientation",F,!0),w=()=>{window.removeEventListener("deviceorientation",F,!0)}}function H(){w?.(),w=null}async function I(){let j=await Q();if(j)G();return j}if(k)G();return{get:()=>A,subscribe:(j)=>{return B.add(j),j(A),()=>{if(B.delete(j),B.size===0)H()}},isSupported:()=>k,requestPermission:I}}function U(){let k=K(),B=new Set,A={isSupported:k,acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:0},w=null;function C(){B.forEach((j)=>j(A))}function F(j){A={...A,acceleration:{x:j.acceleration?.x??null,y:j.acceleration?.y??null,z:j.acceleration?.z??null},accelerationIncludingGravity:{x:j.accelerationIncludingGravity?.x??null,y:j.accelerationIncludingGravity?.y??null,z:j.accelerationIncludingGravity?.z??null},rotationRate:{alpha:j.rotationRate?.alpha??null,beta:j.rotationRate?.beta??null,gamma:j.rotationRate?.gamma??null},interval:j.interval},C()}function G(){if(!k||w)return;window.addEventListener("devicemotion",F,!0),w=()=>{window.removeEventListener("devicemotion",F,!0)}}function H(){w?.(),w=null}async function I(){let j=await R();if(j)G();return j}if(k)G();return{get:()=>A,subscribe:(j)=>{return B.add(j),j(A),()=>{if(B.delete(j),B.size===0)H()}},isSupported:()=>k,requestPermission:I}}function V(){let k=T(),B=new Set,A={x:0,y:0};return k.subscribe((w)=>{if(w.gamma!==null&&w.beta!==null)A={x:Math.max(-1,Math.min(1,(w.gamma||0)/45)),y:Math.max(-1,Math.min(1,(w.beta||0)/45))},B.forEach((C)=>C(A))}),{get:()=>A,subscribe:(w)=>{return B.add(w),w(A),()=>{B.delete(w)}},isSupported:k.isSupported,requestPermission:k.requestPermission}}export{V as useParallax,T as useDeviceOrientation,U as useDeviceMotion,Q as requestOrientationPermission,R as requestMotionPermission,J as isDeviceOrientationSupported,K as isDeviceMotionSupported};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function C(q,w,j){if(typeof window>"u")return{remove:()=>{}};let k=window;if(j?.target)if(typeof j.target==="string"){let B=document.querySelector(j.target);if(!B)return console.warn(`[stx] useEventListener: selector "${j.target}" did not match any element. Listener not attached.`),{remove:()=>{}};k=B}else k=j.target;let x={capture:j?.capture,passive:j?.passive,once:j?.once};k.addEventListener(q,w,x);let z=()=>{k.removeEventListener(q,w,x)};if(typeof globalThis.onDestroy==="function")globalThis.onDestroy(z);return{remove:z}}export{C as useEventListener};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-xv34zbp4.js";function O(){return typeof window<"u"&&"EventSource"in window}function k(T,G={}){let{withCredentials:I=!1,autoReconnect:B=!0,immediate:Z=!0,events:Y=[],onOpen:_,onMessage:$,onError:h}=G,U=new Set,K=new Map,q={status:"closed",data:null,event:null,lastEventId:null,error:null},A=null,Q=0,V=!1;function H(){U.forEach((j)=>j(q))}function W(j,z){let F=K.get(j);if(F)F.forEach((P)=>P(z))}function w(){if(typeof B==="object")return{retries:B.retries??3,delay:B.delay??1000,onFailed:B.onFailed};return{retries:3,delay:1000,onFailed:void 0}}function X(){if(!O())return;V=!1,q={...q,status:"connecting"},H();try{A=new EventSource(T.toString(),{withCredentials:I}),A.onopen=(j)=>{q={...q,status:"open"},Q=0,H(),_?.(j)},A.onmessage=(j)=>{let z;try{z=JSON.parse(j.data)}catch{z=j.data}q={...q,data:z,event:"message",lastEventId:j.lastEventId||null},H(),W("message",j),$?.(j)},A.onerror=(j)=>{if(q={...q,status:"error",error:j},H(),h?.(j),A?.readyState===EventSource.CLOSED){if(q={...q,status:"closed"},H(),B&&!V){let z=w();if(Q<z.retries)Q++,setTimeout(X,z.delay*Q);else z.onFailed?.()}}};for(let j of Y)A.addEventListener(j,(z)=>{let F=z,P;try{P=JSON.parse(F.data)}catch{P=F.data}q={...q,data:P,event:j,lastEventId:F.lastEventId||null},H(),W(j,F)})}catch(j){q={...q,status:"error",error:j},H()}}function J(){if(V=!0,A)A.close(),A=null,q={...q,status:"closed"},H()}function M(j,z){if(!K.has(j)){if(K.set(j,new Set),A&&!Y.includes(j))A.addEventListener(j,(F)=>{W(j,F)})}return K.get(j).add(z),()=>{K.get(j)?.delete(z)}}if(Z)X();return{get:()=>q,subscribe:(j)=>{return U.add(j),j(q),()=>{U.delete(j)}},open:X,close:J,eventSource:()=>A,on:M}}function x(T){let G=k(T);return{data:{get:()=>G.get().data,subscribe:(I)=>{return G.subscribe((B)=>I(B.data))}},status:{get:()=>G.get().status,subscribe:(I)=>{return G.subscribe((B)=>I(B.status))}},close:G.close,open:G.open}}export{x as useSSE,k as useEventSource,O as isEventSourceSupported};
|