@bkm016/basalt 0.1.21 → 0.1.23
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/chunk-01g872ez.js +3 -0
- package/chunk-078td1r4.js +7 -0
- package/chunk-1mhv12a5.js +3 -0
- package/chunk-1zrht78t.js +2 -0
- package/chunk-2e4xds74.js +18 -0
- package/chunk-2hkpqjqj.js +3 -0
- package/chunk-2mhpgb4t.js +2 -0
- package/chunk-3nwqng5t.js +59 -0
- package/chunk-3zm1ejmh.js +3 -0
- package/chunk-4d9p68s9.js +3 -0
- package/chunk-5h96jz3p.js +3 -0
- package/chunk-5znfck4s.js +5 -0
- package/chunk-6048rq29.js +8 -0
- package/chunk-61zk13qr.js +3 -0
- package/chunk-62ty404c.js +2 -0
- package/chunk-6vp2nqbj.js +2 -0
- package/chunk-7a5derff.js +25 -0
- package/chunk-7qhbff72.js +5 -0
- package/chunk-7xw6fpx3.js +3 -0
- package/chunk-84rk4tew.js +2 -0
- package/chunk-8np9b2y8.js +3 -0
- package/chunk-8wb8yr7d.js +12 -0
- package/chunk-93b76hhg.js +11 -0
- package/chunk-9h05aqdd.js +25 -0
- package/chunk-a2jsx2ew.js +3 -0
- package/chunk-a2qwx6cr.js +2 -0
- package/chunk-a7h459z1.js +2 -0
- package/chunk-atjwde1c.js +2 -0
- package/chunk-bk20awc9.js +10 -0
- package/chunk-bm2jhkqt.js +3 -0
- package/chunk-bp4zk5ch.js +3 -0
- package/chunk-c5ess8kd.js +3 -0
- package/chunk-chfzk1fx.js +3 -0
- package/chunk-cj7yhgnd.js +2 -0
- package/chunk-cjq2bzkf.js +3 -0
- package/chunk-csrpxzn7.js +3 -0
- package/chunk-cwesdh51.js +39 -0
- package/chunk-drbd6485.js +3 -0
- package/chunk-dt594v3d.js +9 -0
- package/chunk-dwxp0gtf.js +4 -0
- package/chunk-ejdewe04.js +3 -0
- package/chunk-fkzk83xs.js +2 -0
- package/chunk-fsnc2sja.js +3 -0
- package/chunk-g18hxgdr.js +12 -0
- package/chunk-hfwy0rzt.js +10 -0
- package/chunk-hg5wmrfb.js +3 -0
- package/chunk-hvex6qjc.js +5 -0
- package/chunk-hw8xknv5.js +2 -0
- package/chunk-j91wgfzj.js +2 -0
- package/chunk-jyx4ynyp.js +3 -0
- package/chunk-jz1pavma.js +20 -0
- package/chunk-kjjrmfmt.js +2 -0
- package/chunk-kz1ja7t7.js +31 -0
- package/chunk-mh4s6m7e.js +2 -0
- package/chunk-n0g6w24y.js +3 -0
- package/chunk-nnp82zvz.js +5 -0
- package/chunk-p34keb5j.js +3 -0
- package/chunk-pcxaycc3.js +3560 -0
- package/chunk-pdwexj34.js +16 -0
- package/chunk-phpse938.js +3 -0
- package/chunk-pt14ba7d.js +15 -0
- package/chunk-q0hvv6bh.js +390 -0
- package/chunk-qd4xtknk.js +2 -0
- package/chunk-qfg0dr8f.js +2 -0
- package/chunk-qnrkh3ca.js +7 -0
- package/chunk-r1t5yhee.js +7 -0
- package/chunk-r5na5qx5.js +2 -0
- package/chunk-r7a6q57s.js +2 -0
- package/chunk-smsn4ebc.js +4 -0
- package/chunk-sqr8tx1m.js +471 -0
- package/chunk-t4twa09y.js +2 -0
- package/chunk-tjs6h6zk.js +4 -0
- package/chunk-tvbh69tm.js +3 -0
- package/chunk-tvv9yfqv.js +11 -0
- package/chunk-vbdf5psp.js +2 -0
- package/chunk-vr60qwyg.js +2 -0
- package/chunk-w509y6w6.js +2 -0
- package/chunk-w7n83ye7.js +7 -0
- package/chunk-wacjm9ww.js +3 -0
- package/chunk-xex050bc.js +3 -0
- package/chunk-y0fgbrkc.js +2 -0
- package/chunk-ysfpdxjy.js +3 -0
- package/chunk-ytsnns2n.js +2 -0
- package/chunk-zwgdbrbg.js +2 -0
- package/chunk-zz7qjanc.js +2 -0
- package/compiled.js +8 -8
- package/package.json +1 -1
- package/ui-test-worker.js +57 -57
- package/web/chunk-07q4pdkf.js +1 -0
- package/web/chunk-07q4pdkf.js.br +0 -0
- package/web/chunk-07q4pdkf.js.gz +0 -0
- package/web/chunk-0s237vb2.js +2 -0
- package/web/chunk-0s237vb2.js.br +0 -0
- package/web/chunk-0s237vb2.js.gz +0 -0
- package/web/chunk-0zbmaspt.js +24 -0
- package/web/chunk-0zbmaspt.js.br +0 -0
- package/web/chunk-0zbmaspt.js.gz +0 -0
- package/web/chunk-11p8z5sv.js +8 -0
- package/web/chunk-11p8z5sv.js.br +0 -0
- package/web/chunk-11p8z5sv.js.gz +0 -0
- package/web/chunk-1axadk7j.js +2 -0
- package/web/chunk-1axadk7j.js.br +0 -0
- package/web/chunk-1axadk7j.js.gz +0 -0
- package/web/chunk-1ebz6hbk.js +1 -0
- package/web/chunk-1ebz6hbk.js.br +0 -0
- package/web/chunk-1ebz6hbk.js.gz +0 -0
- package/web/chunk-1pg22vjr.js +38 -0
- package/web/chunk-1pg22vjr.js.br +0 -0
- package/web/chunk-1pg22vjr.js.gz +0 -0
- package/web/chunk-1ys90q5s.js +1 -0
- package/web/chunk-1ys90q5s.js.br +0 -0
- package/web/chunk-1ys90q5s.js.gz +0 -0
- package/web/chunk-1zd8azrg.js +34 -0
- package/web/chunk-1zd8azrg.js.br +0 -0
- package/web/chunk-1zd8azrg.js.gz +0 -0
- package/web/chunk-22rjbwxp.js +303 -0
- package/web/chunk-22rjbwxp.js.br +0 -0
- package/web/chunk-22rjbwxp.js.gz +0 -0
- package/web/chunk-2eg9t1mz.js +2 -0
- package/web/chunk-2eg9t1mz.js.br +0 -0
- package/web/chunk-2eg9t1mz.js.gz +0 -0
- package/web/chunk-2emc5sd7.js +12 -0
- package/web/chunk-2emc5sd7.js.br +0 -0
- package/web/chunk-2emc5sd7.js.gz +0 -0
- package/web/chunk-2gj9yydt.js +2 -0
- package/web/chunk-2gj9yydt.js.br +0 -0
- package/web/chunk-2gj9yydt.js.gz +0 -0
- package/web/chunk-2jvy4y1e.js +1 -0
- package/web/chunk-2jvy4y1e.js.br +0 -0
- package/web/chunk-2jvy4y1e.js.gz +0 -0
- package/web/chunk-2kwn5gsx.js +1 -0
- package/web/chunk-2kwn5gsx.js.br +0 -0
- package/web/chunk-2kwn5gsx.js.gz +0 -0
- package/web/chunk-2r84nrwk.js +99 -0
- package/web/chunk-2r84nrwk.js.br +0 -0
- package/web/chunk-2r84nrwk.js.gz +0 -0
- package/web/chunk-3abhxhtv.js +2 -0
- package/web/chunk-3abhxhtv.js.br +0 -0
- package/web/chunk-3abhxhtv.js.gz +0 -0
- package/web/chunk-3cgxntbk.js +2 -0
- package/web/chunk-3cgxntbk.js.br +0 -0
- package/web/chunk-3cgxntbk.js.gz +0 -0
- package/web/chunk-3g3n9pc5.js +332 -0
- package/web/chunk-3g3n9pc5.js.br +0 -0
- package/web/chunk-3g3n9pc5.js.gz +0 -0
- package/web/chunk-3qmpdzq2.js +1 -0
- package/web/chunk-3qmpdzq2.js.br +0 -0
- package/web/chunk-3qmpdzq2.js.gz +0 -0
- package/web/chunk-3rxjewe5.js +2 -0
- package/web/chunk-3rxjewe5.js.br +0 -0
- package/web/chunk-3rxjewe5.js.gz +0 -0
- package/web/chunk-3vh17h7n.js +62 -0
- package/web/chunk-3vh17h7n.js.br +0 -0
- package/web/chunk-3vh17h7n.js.gz +0 -0
- package/web/chunk-49ywdzda.js +36 -0
- package/web/chunk-49ywdzda.js.br +0 -0
- package/web/chunk-49ywdzda.js.gz +0 -0
- package/web/chunk-5ch8rwjz.js +2 -0
- package/web/chunk-5ch8rwjz.js.br +0 -0
- package/web/chunk-5ch8rwjz.js.gz +0 -0
- package/web/chunk-5k1xca5m.js +324 -0
- package/web/chunk-5k1xca5m.js.br +0 -0
- package/web/chunk-5k1xca5m.js.gz +0 -0
- package/web/chunk-5kcmtrrk.js +2 -0
- package/web/chunk-5kcmtrrk.js.br +0 -0
- package/web/chunk-5kcmtrrk.js.gz +0 -0
- package/web/chunk-5t1yv276.js +1 -0
- package/web/chunk-5t1yv276.js.br +0 -0
- package/web/chunk-5t1yv276.js.gz +0 -0
- package/web/chunk-612xftnp.js +1 -0
- package/web/chunk-612xftnp.js.br +0 -0
- package/web/chunk-612xftnp.js.gz +0 -0
- package/web/chunk-6183jmyq.js +2 -0
- package/web/chunk-6183jmyq.js.br +0 -0
- package/web/chunk-6183jmyq.js.gz +0 -0
- package/web/chunk-66zp24sf.js +2 -0
- package/web/chunk-66zp24sf.js.br +0 -0
- package/web/chunk-66zp24sf.js.gz +0 -0
- package/web/chunk-67wywbgr.js +2 -0
- package/web/chunk-67wywbgr.js.br +0 -0
- package/web/chunk-67wywbgr.js.gz +0 -0
- package/web/chunk-6j0d6131.js +1 -0
- package/web/chunk-6j0d6131.js.br +0 -0
- package/web/chunk-6j0d6131.js.gz +0 -0
- package/web/chunk-6ycpdpfj.js +107 -0
- package/web/chunk-6ycpdpfj.js.br +0 -0
- package/web/chunk-6ycpdpfj.js.gz +0 -0
- package/web/chunk-79tbvvqj.js +1 -0
- package/web/chunk-79tbvvqj.js.br +0 -0
- package/web/chunk-79tbvvqj.js.gz +0 -0
- package/web/chunk-7bcksmqx.js +2 -0
- package/web/chunk-7bcksmqx.js.br +0 -0
- package/web/chunk-7bcksmqx.js.gz +0 -0
- package/web/chunk-7c2zkqgd.js +89 -0
- package/web/chunk-7c2zkqgd.js.br +0 -0
- package/web/chunk-7c2zkqgd.js.gz +0 -0
- package/web/chunk-7ed42dqv.js +1 -0
- package/web/chunk-7ed42dqv.js.br +0 -0
- package/web/chunk-7ed42dqv.js.gz +0 -0
- package/web/chunk-7mzdjjha.js +1 -0
- package/web/chunk-7mzdjjha.js.br +0 -0
- package/web/chunk-7mzdjjha.js.gz +0 -0
- package/web/chunk-7t1sb86g.js +2 -0
- package/web/chunk-7t1sb86g.js.br +0 -0
- package/web/chunk-7t1sb86g.js.gz +0 -0
- package/web/chunk-7t5kzbp1.js +1 -0
- package/web/chunk-7t5kzbp1.js.br +0 -0
- package/web/chunk-7t5kzbp1.js.gz +0 -0
- package/web/chunk-7tmzvm05.js +2 -0
- package/web/chunk-7tmzvm05.js.br +0 -0
- package/web/chunk-7tmzvm05.js.gz +0 -0
- package/web/chunk-80k4k6aw.js +7 -0
- package/web/chunk-80k4k6aw.js.br +0 -0
- package/web/chunk-80k4k6aw.js.gz +0 -0
- package/web/chunk-8tvy5xbr.js +217 -0
- package/web/chunk-8tvy5xbr.js.br +0 -0
- package/web/chunk-8tvy5xbr.js.gz +0 -0
- package/web/chunk-95jr0f0q.js +139 -0
- package/web/chunk-95jr0f0q.js.br +0 -0
- package/web/chunk-95jr0f0q.js.gz +0 -0
- package/web/chunk-9h6ayn54.js +16 -0
- package/web/chunk-9h6ayn54.js.br +0 -0
- package/web/chunk-9h6ayn54.js.gz +0 -0
- package/web/chunk-9jzpxvwa.js +106 -0
- package/web/chunk-9jzpxvwa.js.br +0 -0
- package/web/chunk-9jzpxvwa.js.gz +0 -0
- package/web/chunk-9kx2s040.js +1 -0
- package/web/chunk-9kx2s040.js.br +0 -0
- package/web/chunk-9kx2s040.js.gz +0 -0
- package/web/chunk-9mdbahpr.js +2 -0
- package/web/chunk-9mdbahpr.js.br +0 -0
- package/web/chunk-9mdbahpr.js.gz +0 -0
- package/web/chunk-9w6mjqgp.js +1 -0
- package/web/chunk-9w6mjqgp.js.br +0 -0
- package/web/chunk-9w6mjqgp.js.gz +0 -0
- package/web/chunk-9xb3j03w.js +142 -0
- package/web/chunk-9xb3j03w.js.br +0 -0
- package/web/chunk-9xb3j03w.js.gz +0 -0
- package/web/chunk-abzt3tzj.js +1 -0
- package/web/chunk-abzt3tzj.js.br +0 -0
- package/web/chunk-abzt3tzj.js.gz +0 -0
- package/web/chunk-ahebswgf.js +1 -0
- package/web/chunk-ahebswgf.js.br +0 -0
- package/web/chunk-ahebswgf.js.gz +0 -0
- package/web/chunk-ahsw5yz2.js +2 -0
- package/web/chunk-ahsw5yz2.js.br +0 -0
- package/web/chunk-ahsw5yz2.js.gz +0 -0
- package/web/chunk-b21jhnc3.js +1 -0
- package/web/chunk-b21jhnc3.js.br +2 -0
- package/web/chunk-b21jhnc3.js.gz +0 -0
- package/web/chunk-b3cn4qmw.js +1 -0
- package/web/chunk-b3cn4qmw.js.br +0 -0
- package/web/chunk-b3cn4qmw.js.gz +0 -0
- package/web/chunk-b4qxx7jx.js +2 -0
- package/web/chunk-b4qxx7jx.js.br +0 -0
- package/web/chunk-b4qxx7jx.js.gz +0 -0
- package/web/chunk-b79d9r5v.js +98 -0
- package/web/chunk-b79d9r5v.js.br +0 -0
- package/web/chunk-b79d9r5v.js.gz +0 -0
- package/web/chunk-b9x115jw.css +1 -0
- package/web/chunk-b9x115jw.css.br +0 -0
- package/web/chunk-b9x115jw.css.gz +0 -0
- package/web/chunk-bbnamv1j.js +1 -0
- package/web/chunk-bbnamv1j.js.br +2 -0
- package/web/chunk-bbnamv1j.js.gz +0 -0
- package/web/chunk-bgqfryh2.js +1 -0
- package/web/chunk-bgqfryh2.js.br +0 -0
- package/web/chunk-bgqfryh2.js.gz +0 -0
- package/web/chunk-bjrnqvf4.js +1 -0
- package/web/chunk-bjrnqvf4.js.br +0 -0
- package/web/chunk-bjrnqvf4.js.gz +0 -0
- package/web/chunk-cbh6w44y.js +1 -0
- package/web/chunk-cbh6w44y.js.br +0 -0
- package/web/chunk-cbh6w44y.js.gz +0 -0
- package/web/chunk-d0bt1ypq.js +140 -0
- package/web/chunk-d0bt1ypq.js.br +0 -0
- package/web/chunk-d0bt1ypq.js.gz +0 -0
- package/web/chunk-ddfd1c5x.js +1 -0
- package/web/chunk-ddfd1c5x.js.br +0 -0
- package/web/chunk-ddfd1c5x.js.gz +0 -0
- package/web/chunk-deqy1rfx.js +1 -0
- package/web/chunk-deqy1rfx.js.br +0 -0
- package/web/chunk-deqy1rfx.js.gz +0 -0
- package/web/chunk-dk3dpdnc.js +4 -0
- package/web/chunk-dk3dpdnc.js.br +0 -0
- package/web/chunk-dk3dpdnc.js.gz +0 -0
- package/web/chunk-dr35dsw5.js +1 -0
- package/web/chunk-dr35dsw5.js.br +0 -0
- package/web/chunk-dr35dsw5.js.gz +0 -0
- package/web/chunk-drr7mqg2.js +1 -0
- package/web/chunk-drr7mqg2.js.br +0 -0
- package/web/chunk-drr7mqg2.js.gz +0 -0
- package/web/chunk-dy9amqbz.js +1 -0
- package/web/chunk-dy9amqbz.js.br +0 -0
- package/web/chunk-dy9amqbz.js.gz +0 -0
- package/web/chunk-e039ekp7.js +89 -0
- package/web/chunk-e039ekp7.js.br +0 -0
- package/web/chunk-e039ekp7.js.gz +0 -0
- package/web/chunk-e2e2fdwq.js +30 -0
- package/web/chunk-e2e2fdwq.js.br +0 -0
- package/web/chunk-e2e2fdwq.js.gz +0 -0
- package/web/chunk-e5j1v42p.js +7 -0
- package/web/chunk-e5j1v42p.js.br +0 -0
- package/web/chunk-e5j1v42p.js.gz +0 -0
- package/web/chunk-ef0wf92p.js +2 -0
- package/web/chunk-ef0wf92p.js.br +0 -0
- package/web/chunk-ef0wf92p.js.gz +0 -0
- package/web/chunk-emsyqa1e.js +1 -0
- package/web/chunk-emsyqa1e.js.br +0 -0
- package/web/chunk-emsyqa1e.js.gz +0 -0
- package/web/chunk-en7n9d1p.js +41 -0
- package/web/chunk-en7n9d1p.js.br +0 -0
- package/web/chunk-en7n9d1p.js.gz +0 -0
- package/web/chunk-ez4yt1s1.js +1 -0
- package/web/chunk-ez4yt1s1.js.br +0 -0
- package/web/chunk-ez4yt1s1.js.gz +0 -0
- package/web/chunk-f620k3hk.js +1 -0
- package/web/chunk-f620k3hk.js.br +0 -0
- package/web/chunk-f620k3hk.js.gz +0 -0
- package/web/chunk-fe2hpamc.js +200 -0
- package/web/chunk-fe2hpamc.js.br +0 -0
- package/web/chunk-fe2hpamc.js.gz +0 -0
- package/web/chunk-fm7saxzr.js +1 -0
- package/web/chunk-fm7saxzr.js.br +0 -0
- package/web/chunk-fm7saxzr.js.gz +0 -0
- package/web/chunk-fz5d3ayq.js +2 -0
- package/web/chunk-fz5d3ayq.js.br +0 -0
- package/web/chunk-fz5d3ayq.js.gz +0 -0
- package/web/chunk-gb2tkfv0.js +1 -0
- package/web/chunk-gb2tkfv0.js.br +0 -0
- package/web/chunk-gb2tkfv0.js.gz +0 -0
- package/web/chunk-gc1ypgy4.js +1 -0
- package/web/chunk-gc1ypgy4.js.br +0 -0
- package/web/chunk-gc1ypgy4.js.gz +0 -0
- package/web/chunk-h23pczjh.js +40 -0
- package/web/chunk-h23pczjh.js.br +0 -0
- package/web/chunk-h23pczjh.js.gz +0 -0
- package/web/chunk-h2sttxfn.js +1 -0
- package/web/chunk-h2sttxfn.js.br +2 -0
- package/web/chunk-h2sttxfn.js.gz +0 -0
- package/web/chunk-h5m9ggsm.js +2 -0
- package/web/chunk-h5m9ggsm.js.br +0 -0
- package/web/chunk-h5m9ggsm.js.gz +0 -0
- package/web/chunk-h5zc1hw5.js +1 -0
- package/web/chunk-h5zc1hw5.js.br +0 -0
- package/web/chunk-h5zc1hw5.js.gz +0 -0
- package/web/chunk-hkg6bts9.js +1 -0
- package/web/chunk-hkg6bts9.js.br +0 -0
- package/web/chunk-hkg6bts9.js.gz +0 -0
- package/web/chunk-hncdpeer.js +120 -0
- package/web/chunk-hncdpeer.js.br +0 -0
- package/web/chunk-hncdpeer.js.gz +0 -0
- package/web/chunk-j40wechd.js +2 -0
- package/web/chunk-j40wechd.js.br +0 -0
- package/web/chunk-j40wechd.js.gz +0 -0
- package/web/chunk-jddmse74.js +169 -0
- package/web/chunk-jddmse74.js.br +0 -0
- package/web/chunk-jddmse74.js.gz +0 -0
- package/web/chunk-jdvdg38q.js +3 -0
- package/web/chunk-jdvdg38q.js.br +0 -0
- package/web/chunk-jdvdg38q.js.gz +0 -0
- package/web/chunk-jf6q93m9.js +1 -0
- package/web/chunk-jf6q93m9.js.br +0 -0
- package/web/chunk-jf6q93m9.js.gz +0 -0
- package/web/chunk-jfd1gybx.js +39 -0
- package/web/chunk-jfd1gybx.js.br +0 -0
- package/web/chunk-jfd1gybx.js.gz +0 -0
- package/web/chunk-jkgkt722.js +1 -0
- package/web/chunk-jkgkt722.js.br +0 -0
- package/web/chunk-jkgkt722.js.gz +0 -0
- package/web/chunk-k427fwgp.js +1 -0
- package/web/chunk-k427fwgp.js.br +0 -0
- package/web/chunk-k427fwgp.js.gz +0 -0
- package/web/chunk-k8pezbya.js +2 -0
- package/web/chunk-k8pezbya.js.br +3 -0
- package/web/chunk-k8pezbya.js.gz +0 -0
- package/web/chunk-k9t941fj.js +1 -0
- package/web/chunk-k9t941fj.js.br +0 -0
- package/web/chunk-k9t941fj.js.gz +0 -0
- package/web/chunk-kkzwvnft.js +1 -0
- package/web/chunk-kkzwvnft.js.br +0 -0
- package/web/chunk-kkzwvnft.js.gz +0 -0
- package/web/chunk-kpm8gp4z.js +292 -0
- package/web/chunk-kpm8gp4z.js.br +0 -0
- package/web/chunk-kpm8gp4z.js.gz +0 -0
- package/web/chunk-kqyk2an3.js +214 -0
- package/web/chunk-kqyk2an3.js.br +0 -0
- package/web/chunk-kqyk2an3.js.gz +0 -0
- package/web/chunk-m3gryxba.js +2 -0
- package/web/chunk-m3gryxba.js.br +0 -0
- package/web/chunk-m3gryxba.js.gz +0 -0
- package/web/chunk-m8h3c5x3.js +1 -0
- package/web/chunk-m8h3c5x3.js.br +0 -0
- package/web/chunk-m8h3c5x3.js.gz +0 -0
- package/web/chunk-mb7sr4tf.js +55 -0
- package/web/chunk-mb7sr4tf.js.br +0 -0
- package/web/chunk-mb7sr4tf.js.gz +0 -0
- package/web/chunk-meqcd10n.js +1 -0
- package/web/chunk-meqcd10n.js.br +0 -0
- package/web/chunk-meqcd10n.js.gz +0 -0
- package/web/chunk-msrq7vsz.js +7 -0
- package/web/chunk-msrq7vsz.js.br +0 -0
- package/web/chunk-msrq7vsz.js.gz +0 -0
- package/web/chunk-myhtb5ps.js +2 -0
- package/web/chunk-myhtb5ps.js.br +0 -0
- package/web/chunk-myhtb5ps.js.gz +0 -0
- package/web/chunk-n1n55yt8.js +84 -0
- package/web/chunk-n1n55yt8.js.br +0 -0
- package/web/chunk-n1n55yt8.js.gz +0 -0
- package/web/chunk-nmgy1mrz.js +1 -0
- package/web/chunk-nmgy1mrz.js.br +0 -0
- package/web/chunk-nmgy1mrz.js.gz +0 -0
- package/web/chunk-nmnyaawa.js +24 -0
- package/web/chunk-nmnyaawa.js.br +0 -0
- package/web/chunk-nmnyaawa.js.gz +0 -0
- package/web/chunk-nwepnbvn.js +70 -0
- package/web/chunk-nwepnbvn.js.br +0 -0
- package/web/chunk-nwepnbvn.js.gz +0 -0
- package/web/chunk-p2cmfhpz.js +2 -0
- package/web/chunk-p2cmfhpz.js.br +0 -0
- package/web/chunk-p2cmfhpz.js.gz +0 -0
- package/web/chunk-pac9nyhp.js +2 -0
- package/web/chunk-pac9nyhp.js.br +0 -0
- package/web/chunk-pac9nyhp.js.gz +0 -0
- package/web/chunk-pdt40dj7.js +1 -0
- package/web/chunk-pdt40dj7.js.br +2 -0
- package/web/chunk-pdt40dj7.js.gz +0 -0
- package/web/chunk-phs38wt7.js +2 -0
- package/web/chunk-phs38wt7.js.br +0 -0
- package/web/chunk-phs38wt7.js.gz +0 -0
- package/web/chunk-prc7b9xh.js +1 -0
- package/web/chunk-prc7b9xh.js.br +0 -0
- package/web/chunk-prc7b9xh.js.gz +0 -0
- package/web/chunk-q1e80chw.js +1 -0
- package/web/chunk-q1e80chw.js.br +2 -0
- package/web/chunk-q1e80chw.js.gz +0 -0
- package/web/chunk-q6aqg79d.js +2 -0
- package/web/chunk-q6aqg79d.js.br +0 -0
- package/web/chunk-q6aqg79d.js.gz +0 -0
- package/web/chunk-q6sv3fhe.js +2 -0
- package/web/chunk-q6sv3fhe.js.br +0 -0
- package/web/chunk-q6sv3fhe.js.gz +0 -0
- package/web/chunk-rbd2n2mr.js +1 -0
- package/web/chunk-rbd2n2mr.js.br +0 -0
- package/web/chunk-rbd2n2mr.js.gz +0 -0
- package/web/chunk-rbh0yrp6.js +1 -0
- package/web/chunk-rbh0yrp6.js.br +0 -0
- package/web/chunk-rbh0yrp6.js.gz +0 -0
- package/web/chunk-rdarpbhd.js +2 -0
- package/web/chunk-rdarpbhd.js.br +0 -0
- package/web/chunk-rdarpbhd.js.gz +0 -0
- package/web/chunk-rf93p28v.js +1 -0
- package/web/chunk-rf93p28v.js.br +0 -0
- package/web/chunk-rf93p28v.js.gz +0 -0
- package/web/chunk-rjvdk0s6.js +1 -0
- package/web/chunk-rjvdk0s6.js.br +0 -0
- package/web/chunk-rjvdk0s6.js.gz +0 -0
- package/web/chunk-rvmk483c.js +1 -0
- package/web/chunk-rvmk483c.js.br +0 -0
- package/web/chunk-rvmk483c.js.gz +0 -0
- package/web/chunk-s99vfrrz.js +1 -0
- package/web/chunk-s99vfrrz.js.br +0 -0
- package/web/chunk-s99vfrrz.js.gz +0 -0
- package/web/chunk-saem11tv.js +2 -0
- package/web/chunk-saem11tv.js.br +0 -0
- package/web/chunk-saem11tv.js.gz +0 -0
- package/web/chunk-scv8t4m6.js +1 -0
- package/web/chunk-scv8t4m6.js.br +0 -0
- package/web/chunk-scv8t4m6.js.gz +0 -0
- package/web/chunk-stsmcqxe.js +1 -0
- package/web/chunk-stsmcqxe.js.br +0 -0
- package/web/chunk-stsmcqxe.js.gz +0 -0
- package/web/chunk-svaq7f3c.js +1134 -0
- package/web/chunk-svaq7f3c.js.br +0 -0
- package/web/chunk-svaq7f3c.js.gz +0 -0
- package/web/chunk-sy099zt8.js +1 -0
- package/web/chunk-sy099zt8.js.br +0 -0
- package/web/chunk-sy099zt8.js.gz +0 -0
- package/web/chunk-thqrbjwn.js +1 -0
- package/web/chunk-thqrbjwn.js.br +2 -0
- package/web/chunk-thqrbjwn.js.gz +0 -0
- package/web/chunk-ty1m1k6b.js +1 -0
- package/web/chunk-ty1m1k6b.js.br +0 -0
- package/web/chunk-ty1m1k6b.js.gz +0 -0
- package/web/chunk-w54qcqk3.js +1 -0
- package/web/chunk-w54qcqk3.js.br +0 -0
- package/web/chunk-w54qcqk3.js.gz +0 -0
- package/web/chunk-wgf4paqc.js +1 -0
- package/web/chunk-wgf4paqc.js.br +0 -0
- package/web/chunk-wgf4paqc.js.gz +0 -0
- package/web/chunk-ww5c1dmz.js +1 -0
- package/web/chunk-ww5c1dmz.js.br +0 -0
- package/web/chunk-ww5c1dmz.js.gz +0 -0
- package/web/chunk-x5m7phbb.js +1 -0
- package/web/chunk-x5m7phbb.js.br +0 -0
- package/web/chunk-x5m7phbb.js.gz +0 -0
- package/web/chunk-x9wzj52f.js +2 -0
- package/web/chunk-x9wzj52f.js.br +0 -0
- package/web/chunk-x9wzj52f.js.gz +0 -0
- package/web/chunk-xgfam7bx.js +1 -0
- package/web/chunk-xgfam7bx.js.br +0 -0
- package/web/chunk-xgfam7bx.js.gz +0 -0
- package/web/chunk-xnn07hr4.js +21 -0
- package/web/chunk-xnn07hr4.js.br +0 -0
- package/web/chunk-xnn07hr4.js.gz +0 -0
- package/web/chunk-xreg1e03.js +78 -0
- package/web/chunk-xreg1e03.js.br +0 -0
- package/web/chunk-xreg1e03.js.gz +0 -0
- package/web/chunk-xsxd3wsv.js +4 -0
- package/web/chunk-xsxd3wsv.js.br +0 -0
- package/web/chunk-xsxd3wsv.js.gz +0 -0
- package/web/chunk-y7jebh1j.js +1 -0
- package/web/chunk-y7jebh1j.js.br +0 -0
- package/web/chunk-y7jebh1j.js.gz +0 -0
- package/web/chunk-yhn2mwnb.js +291 -0
- package/web/chunk-yhn2mwnb.js.br +0 -0
- package/web/chunk-yhn2mwnb.js.gz +0 -0
- package/web/chunk-yj85fg74.js +1 -0
- package/web/chunk-yj85fg74.js.br +0 -0
- package/web/chunk-yj85fg74.js.gz +0 -0
- package/web/chunk-yjvjzayn.js +1 -0
- package/web/chunk-yjvjzayn.js.br +0 -0
- package/web/chunk-yjvjzayn.js.gz +0 -0
- package/web/chunk-yqwvedf5.js +370 -0
- package/web/chunk-yqwvedf5.js.br +0 -0
- package/web/chunk-yqwvedf5.js.gz +0 -0
- package/web/chunk-z3tr221x.js +1 -0
- package/web/chunk-z3tr221x.js.br +0 -0
- package/web/chunk-z3tr221x.js.gz +0 -0
- package/web/chunk-z4n3tx0q.js +1 -0
- package/web/chunk-z4n3tx0q.js.br +0 -0
- package/web/chunk-z4n3tx0q.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-03b5jh31.js +0 -5
- package/chunk-0b2brwjc.js +0 -3
- package/chunk-0x0459qp.js +0 -2
- package/chunk-16yz5ebn.js +0 -2
- package/chunk-1kdd7xry.js +0 -2
- package/chunk-225dyk1y.js +0 -8
- package/chunk-2fymxwe7.js +0 -7
- package/chunk-2m2sa0bp.js +0 -2
- package/chunk-35y6nf6k.js +0 -12
- package/chunk-3phf8eg6.js +0 -3
- package/chunk-3qxq264t.js +0 -2
- package/chunk-3r38vbt5.js +0 -2
- package/chunk-3s8rpc1w.js +0 -3
- package/chunk-3t8wz9w8.js +0 -3
- package/chunk-43qf44t8.js +0 -3
- package/chunk-49hsqsht.js +0 -2
- package/chunk-4fbj3k59.js +0 -3
- package/chunk-4fj91gt1.js +0 -4
- package/chunk-51a0843g.js +0 -3
- package/chunk-5h59tby8.js +0 -470
- package/chunk-5m51j40e.js +0 -7
- package/chunk-5mt8xxex.js +0 -3
- package/chunk-85sjfyjd.js +0 -2
- package/chunk-97ntcrm7.js +0 -2
- package/chunk-9qzyn98b.js +0 -3
- package/chunk-9t3v8c3m.js +0 -2
- package/chunk-9w1m9av8.js +0 -11
- package/chunk-9x28stv0.js +0 -2
- package/chunk-a3fpx924.js +0 -3
- package/chunk-ak95r8mq.js +0 -3556
- package/chunk-ak9rkrf3.js +0 -5
- package/chunk-b516bp7n.js +0 -3
- package/chunk-bn1aaewd.js +0 -59
- package/chunk-c5ydt3vq.js +0 -3
- package/chunk-cjh5h31t.js +0 -11
- package/chunk-cr0tqn6j.js +0 -3
- package/chunk-e0ytnnwt.js +0 -3
- package/chunk-e2m8ap8f.js +0 -3
- package/chunk-e8xywvv4.js +0 -3
- package/chunk-enmrpjpt.js +0 -3
- package/chunk-ewaskman.js +0 -2
- package/chunk-feyt85gg.js +0 -2
- package/chunk-fj56fznw.js +0 -3
- package/chunk-ftg4b5pa.js +0 -3
- package/chunk-g6cc7ac1.js +0 -3
- package/chunk-gdx1j9c5.js +0 -10
- package/chunk-gs5aebwh.js +0 -2
- package/chunk-h00wjps7.js +0 -4
- package/chunk-h1fwdz4h.js +0 -2
- package/chunk-hhxtc9jn.js +0 -2
- package/chunk-hrn2ss1a.js +0 -2
- package/chunk-jhwb962k.js +0 -15
- package/chunk-jpwr1sd2.js +0 -3
- package/chunk-jy07y4pv.js +0 -7
- package/chunk-k9x1r69s.js +0 -18
- package/chunk-kb5h9rmb.js +0 -2
- package/chunk-kgnd32hn.js +0 -4
- package/chunk-kka12j10.js +0 -3
- package/chunk-kypdthjg.js +0 -2
- package/chunk-m9386732.js +0 -16
- package/chunk-np123myw.js +0 -12
- package/chunk-ntntwtxn.js +0 -5
- package/chunk-qn70tm91.js +0 -20
- package/chunk-qtgc74er.js +0 -5
- package/chunk-qz6ybxjg.js +0 -39
- package/chunk-r36b12zb.js +0 -2
- package/chunk-re8n2te5.js +0 -2
- package/chunk-rpbxbb92.js +0 -10
- package/chunk-rqrjzz73.js +0 -2
- package/chunk-scy1p7x2.js +0 -9
- package/chunk-sq5ppnr3.js +0 -25
- package/chunk-syhhzr1j.js +0 -3
- package/chunk-t3mq64c8.js +0 -3
- package/chunk-tmq8ktys.js +0 -3
- package/chunk-ttv805sb.js +0 -390
- package/chunk-v878x8zr.js +0 -7
- package/chunk-ve1b6vg6.js +0 -2
- package/chunk-vzrmdaba.js +0 -2
- package/chunk-w3n8wm44.js +0 -2
- package/chunk-w3skxmvx.js +0 -3
- package/chunk-wxzk086k.js +0 -2
- package/chunk-x1y4s01x.js +0 -31
- package/chunk-y8mf9tcj.js +0 -25
- package/chunk-z4g2q36h.js +0 -3
- package/chunk-zkjnt298.js +0 -3
- package/web/chunk-07dd0jed.js +0 -78
- package/web/chunk-07dd0jed.js.br +0 -0
- package/web/chunk-07dd0jed.js.gz +0 -0
- package/web/chunk-0hvyq55w.js +0 -1
- package/web/chunk-0hvyq55w.js.br +0 -0
- package/web/chunk-0hvyq55w.js.gz +0 -0
- package/web/chunk-0q5drhbk.js +0 -1
- package/web/chunk-0q5drhbk.js.br +0 -0
- package/web/chunk-0q5drhbk.js.gz +0 -0
- package/web/chunk-0rvx1z2b.js +0 -1
- package/web/chunk-0rvx1z2b.js.br +0 -0
- package/web/chunk-0rvx1z2b.js.gz +0 -0
- package/web/chunk-0w6ta3ps.js +0 -1
- package/web/chunk-0w6ta3ps.js.br +0 -0
- package/web/chunk-0w6ta3ps.js.gz +0 -0
- package/web/chunk-0wqmwnd8.js +0 -2
- package/web/chunk-0wqmwnd8.js.br +0 -0
- package/web/chunk-0wqmwnd8.js.gz +0 -0
- package/web/chunk-0z10aqp1.js +0 -2
- package/web/chunk-0z10aqp1.js.br +0 -0
- package/web/chunk-0z10aqp1.js.gz +0 -0
- package/web/chunk-12vcrj7y.js +0 -1
- package/web/chunk-12vcrj7y.js.br +0 -0
- package/web/chunk-12vcrj7y.js.gz +0 -0
- package/web/chunk-16b5anw4.js +0 -3
- package/web/chunk-16b5anw4.js.br +0 -0
- package/web/chunk-16b5anw4.js.gz +0 -0
- package/web/chunk-21d8pzcm.js +0 -142
- package/web/chunk-21d8pzcm.js.br +0 -0
- package/web/chunk-21d8pzcm.js.gz +0 -0
- package/web/chunk-2c4affp1.js +0 -70
- package/web/chunk-2c4affp1.js.br +0 -0
- package/web/chunk-2c4affp1.js.gz +0 -0
- package/web/chunk-2dykyq1n.js +0 -2
- package/web/chunk-2dykyq1n.js.br +0 -0
- package/web/chunk-2dykyq1n.js.gz +0 -0
- package/web/chunk-2h2w244w.js +0 -370
- package/web/chunk-2h2w244w.js.br +0 -0
- package/web/chunk-2h2w244w.js.gz +0 -0
- package/web/chunk-2hd51wb6.js +0 -169
- package/web/chunk-2hd51wb6.js.br +0 -0
- package/web/chunk-2hd51wb6.js.gz +0 -0
- package/web/chunk-2tc6krye.js +0 -291
- package/web/chunk-2tc6krye.js.br +0 -0
- package/web/chunk-2tc6krye.js.gz +0 -0
- package/web/chunk-2w27acew.js +0 -38
- package/web/chunk-2w27acew.js.br +0 -0
- package/web/chunk-2w27acew.js.gz +0 -0
- package/web/chunk-2w4rdnhj.js +0 -1
- package/web/chunk-2w4rdnhj.js.br +0 -0
- package/web/chunk-2w4rdnhj.js.gz +0 -0
- package/web/chunk-31vxes2p.js +0 -200
- package/web/chunk-31vxes2p.js.br +0 -0
- package/web/chunk-31vxes2p.js.gz +0 -0
- package/web/chunk-32qd2y5h.js +0 -1
- package/web/chunk-32qd2y5h.js.br +0 -0
- package/web/chunk-32qd2y5h.js.gz +0 -0
- package/web/chunk-366a11ec.js +0 -1
- package/web/chunk-366a11ec.js.br +0 -0
- package/web/chunk-366a11ec.js.gz +0 -0
- package/web/chunk-39kaz6fa.js +0 -4
- package/web/chunk-39kaz6fa.js.br +0 -0
- package/web/chunk-39kaz6fa.js.gz +0 -0
- package/web/chunk-3d3y4tep.js +0 -214
- package/web/chunk-3d3y4tep.js.br +0 -0
- package/web/chunk-3d3y4tep.js.gz +0 -0
- package/web/chunk-4makcmpw.js +0 -1
- package/web/chunk-4makcmpw.js.br +0 -0
- package/web/chunk-4makcmpw.js.gz +0 -0
- package/web/chunk-4mypk63p.js +0 -2
- package/web/chunk-4mypk63p.js.br +0 -0
- package/web/chunk-4mypk63p.js.gz +0 -0
- package/web/chunk-4wd9r73y.js +0 -1
- package/web/chunk-4wd9r73y.js.br +0 -0
- package/web/chunk-4wd9r73y.js.gz +0 -0
- package/web/chunk-4zftsyq2.js +0 -2
- package/web/chunk-4zftsyq2.js.br +0 -0
- package/web/chunk-4zftsyq2.js.gz +0 -0
- package/web/chunk-50wrjr22.js +0 -2
- package/web/chunk-50wrjr22.js.br +0 -0
- package/web/chunk-50wrjr22.js.gz +0 -0
- package/web/chunk-52tt9qt4.js +0 -2
- package/web/chunk-52tt9qt4.js.br +0 -0
- package/web/chunk-52tt9qt4.js.gz +0 -0
- package/web/chunk-55kw8p9r.js +0 -89
- package/web/chunk-55kw8p9r.js.br +0 -0
- package/web/chunk-55kw8p9r.js.gz +0 -0
- package/web/chunk-56tqa12m.js +0 -2
- package/web/chunk-56tqa12m.js.br +0 -0
- package/web/chunk-56tqa12m.js.gz +0 -0
- package/web/chunk-595tqsv5.js +0 -1
- package/web/chunk-595tqsv5.js.br +0 -0
- package/web/chunk-595tqsv5.js.gz +0 -0
- package/web/chunk-5cp4n5ck.js +0 -2
- package/web/chunk-5cp4n5ck.js.br +0 -0
- package/web/chunk-5cp4n5ck.js.gz +0 -0
- package/web/chunk-5h193k2c.js +0 -1
- package/web/chunk-5h193k2c.js.br +0 -0
- package/web/chunk-5h193k2c.js.gz +0 -0
- package/web/chunk-5nbmnchg.js +0 -16
- package/web/chunk-5nbmnchg.js.br +0 -0
- package/web/chunk-5nbmnchg.js.gz +0 -0
- package/web/chunk-5vc1wkwb.js +0 -2
- package/web/chunk-5vc1wkwb.js.br +0 -0
- package/web/chunk-5vc1wkwb.js.gz +0 -0
- package/web/chunk-5wgdprjp.js +0 -1
- package/web/chunk-5wgdprjp.js.br +0 -0
- package/web/chunk-5wgdprjp.js.gz +0 -0
- package/web/chunk-60fbfw70.js +0 -1
- package/web/chunk-60fbfw70.js.br +0 -0
- package/web/chunk-60fbfw70.js.gz +0 -0
- package/web/chunk-62z94rt2.js +0 -36
- package/web/chunk-62z94rt2.js.br +0 -0
- package/web/chunk-62z94rt2.js.gz +0 -0
- package/web/chunk-67khfy00.css +0 -1
- package/web/chunk-67khfy00.css.br +0 -0
- package/web/chunk-67khfy00.css.gz +0 -0
- package/web/chunk-6bt2t0xt.js +0 -8
- package/web/chunk-6bt2t0xt.js.br +0 -0
- package/web/chunk-6bt2t0xt.js.gz +0 -0
- package/web/chunk-780qvh05.js +0 -99
- package/web/chunk-780qvh05.js.br +0 -0
- package/web/chunk-780qvh05.js.gz +0 -0
- package/web/chunk-78t5dqea.js +0 -324
- package/web/chunk-78t5dqea.js.br +0 -0
- package/web/chunk-78t5dqea.js.gz +0 -0
- package/web/chunk-7cf1kk45.js +0 -1
- package/web/chunk-7cf1kk45.js.br +0 -2
- package/web/chunk-7cf1kk45.js.gz +0 -0
- package/web/chunk-7edmyret.js +0 -1
- package/web/chunk-7edmyret.js.br +0 -0
- package/web/chunk-7edmyret.js.gz +0 -0
- package/web/chunk-7remkcff.js +0 -2
- package/web/chunk-7remkcff.js.br +0 -0
- package/web/chunk-7remkcff.js.gz +0 -0
- package/web/chunk-7s062q01.js +0 -1
- package/web/chunk-7s062q01.js.br +0 -0
- package/web/chunk-7s062q01.js.gz +0 -0
- package/web/chunk-82zwwy0b.js +0 -1
- package/web/chunk-82zwwy0b.js.br +0 -0
- package/web/chunk-82zwwy0b.js.gz +0 -0
- package/web/chunk-89crtpnw.js +0 -1
- package/web/chunk-89crtpnw.js.br +0 -0
- package/web/chunk-89crtpnw.js.gz +0 -0
- package/web/chunk-8c6h952g.js +0 -106
- package/web/chunk-8c6h952g.js.br +0 -0
- package/web/chunk-8c6h952g.js.gz +0 -0
- package/web/chunk-8g239029.js +0 -1
- package/web/chunk-8g239029.js.br +0 -0
- package/web/chunk-8g239029.js.gz +0 -0
- package/web/chunk-8wgev3hd.js +0 -1
- package/web/chunk-8wgev3hd.js.br +0 -0
- package/web/chunk-8wgev3hd.js.gz +0 -0
- package/web/chunk-9r7nbre7.js +0 -2
- package/web/chunk-9r7nbre7.js.br +0 -0
- package/web/chunk-9r7nbre7.js.gz +0 -0
- package/web/chunk-9vcbnf1m.js +0 -1
- package/web/chunk-9vcbnf1m.js.br +0 -0
- package/web/chunk-9vcbnf1m.js.gz +0 -0
- package/web/chunk-9y9nwaqj.js +0 -1
- package/web/chunk-9y9nwaqj.js.br +0 -0
- package/web/chunk-9y9nwaqj.js.gz +0 -0
- package/web/chunk-abahqsws.js +0 -2
- package/web/chunk-abahqsws.js.br +0 -0
- package/web/chunk-abahqsws.js.gz +0 -0
- package/web/chunk-acv6gk2b.js +0 -2
- package/web/chunk-acv6gk2b.js.br +0 -0
- package/web/chunk-acv6gk2b.js.gz +0 -0
- package/web/chunk-ad6x47yy.js +0 -1
- package/web/chunk-ad6x47yy.js.br +0 -0
- package/web/chunk-ad6x47yy.js.gz +0 -0
- package/web/chunk-ajpzsx51.js +0 -1
- package/web/chunk-ajpzsx51.js.br +0 -0
- package/web/chunk-ajpzsx51.js.gz +0 -0
- package/web/chunk-b1b9txvk.js +0 -1
- package/web/chunk-b1b9txvk.js.br +0 -0
- package/web/chunk-b1b9txvk.js.gz +0 -0
- package/web/chunk-b83bzjcx.js +0 -1134
- package/web/chunk-b83bzjcx.js.br +0 -0
- package/web/chunk-b83bzjcx.js.gz +0 -0
- package/web/chunk-c1zhat04.js +0 -1
- package/web/chunk-c1zhat04.js.br +0 -0
- package/web/chunk-c1zhat04.js.gz +0 -0
- package/web/chunk-c37hhmtd.js +0 -62
- package/web/chunk-c37hhmtd.js.br +0 -0
- package/web/chunk-c37hhmtd.js.gz +0 -0
- package/web/chunk-c69t0ysj.js +0 -1
- package/web/chunk-c69t0ysj.js.br +0 -0
- package/web/chunk-c69t0ysj.js.gz +0 -0
- package/web/chunk-caz85hz4.js +0 -1
- package/web/chunk-caz85hz4.js.br +0 -0
- package/web/chunk-caz85hz4.js.gz +0 -0
- package/web/chunk-cbtpaf3e.js +0 -7
- package/web/chunk-cbtpaf3e.js.br +0 -0
- package/web/chunk-cbtpaf3e.js.gz +0 -0
- package/web/chunk-d18r4m14.js +0 -141
- package/web/chunk-d18r4m14.js.br +0 -0
- package/web/chunk-d18r4m14.js.gz +0 -0
- package/web/chunk-d1gga18f.js +0 -217
- package/web/chunk-d1gga18f.js.br +0 -0
- package/web/chunk-d1gga18f.js.gz +0 -0
- package/web/chunk-d4kjy2qn.js +0 -1
- package/web/chunk-d4kjy2qn.js.br +0 -0
- package/web/chunk-d4kjy2qn.js.gz +0 -0
- package/web/chunk-dbv8qpen.js +0 -303
- package/web/chunk-dbv8qpen.js.br +0 -0
- package/web/chunk-dbv8qpen.js.gz +0 -0
- package/web/chunk-dmqtdeb4.js +0 -1
- package/web/chunk-dmqtdeb4.js.br +0 -0
- package/web/chunk-dmqtdeb4.js.gz +0 -0
- package/web/chunk-e65y60v1.js +0 -2
- package/web/chunk-e65y60v1.js.br +0 -0
- package/web/chunk-e65y60v1.js.gz +0 -0
- package/web/chunk-e6r1sb5r.js +0 -7
- package/web/chunk-e6r1sb5r.js.br +0 -0
- package/web/chunk-e6r1sb5r.js.gz +0 -0
- package/web/chunk-ed8qqn45.js +0 -2
- package/web/chunk-ed8qqn45.js.br +0 -0
- package/web/chunk-ed8qqn45.js.gz +0 -0
- package/web/chunk-ef1h0tt7.js +0 -2
- package/web/chunk-ef1h0tt7.js.br +0 -0
- package/web/chunk-ef1h0tt7.js.gz +0 -0
- package/web/chunk-ep5qff8m.js +0 -1
- package/web/chunk-ep5qff8m.js.br +0 -0
- package/web/chunk-ep5qff8m.js.gz +0 -0
- package/web/chunk-ex66t805.js +0 -120
- package/web/chunk-ex66t805.js.br +0 -0
- package/web/chunk-ex66t805.js.gz +0 -0
- package/web/chunk-fb8qtyqg.js +0 -1
- package/web/chunk-fb8qtyqg.js.br +0 -0
- package/web/chunk-fb8qtyqg.js.gz +0 -0
- package/web/chunk-fbzhgaak.js +0 -98
- package/web/chunk-fbzhgaak.js.br +0 -0
- package/web/chunk-fbzhgaak.js.gz +0 -0
- package/web/chunk-ffwyfdg4.js +0 -1
- package/web/chunk-ffwyfdg4.js.br +0 -0
- package/web/chunk-ffwyfdg4.js.gz +0 -0
- package/web/chunk-fsz1msjr.js +0 -2
- package/web/chunk-fsz1msjr.js.br +0 -0
- package/web/chunk-fsz1msjr.js.gz +0 -0
- package/web/chunk-fztzcy7c.js +0 -89
- package/web/chunk-fztzcy7c.js.br +0 -0
- package/web/chunk-fztzcy7c.js.gz +0 -0
- package/web/chunk-g3vbtxgy.js +0 -2
- package/web/chunk-g3vbtxgy.js.br +0 -0
- package/web/chunk-g3vbtxgy.js.gz +0 -0
- package/web/chunk-g4st8a4e.js +0 -1
- package/web/chunk-g4st8a4e.js.br +0 -0
- package/web/chunk-g4st8a4e.js.gz +0 -0
- package/web/chunk-gs41j1vb.js +0 -1
- package/web/chunk-gs41j1vb.js.br +0 -0
- package/web/chunk-gs41j1vb.js.gz +0 -0
- package/web/chunk-gt4dzb4b.js +0 -292
- package/web/chunk-gt4dzb4b.js.br +0 -0
- package/web/chunk-gt4dzb4b.js.gz +0 -0
- package/web/chunk-h4g8j133.js +0 -7
- package/web/chunk-h4g8j133.js.br +0 -0
- package/web/chunk-h4g8j133.js.gz +0 -0
- package/web/chunk-hj067dfg.js +0 -1
- package/web/chunk-hj067dfg.js.br +0 -2
- package/web/chunk-hj067dfg.js.gz +0 -0
- package/web/chunk-hp167dbv.js +0 -1
- package/web/chunk-hp167dbv.js.br +0 -0
- package/web/chunk-hp167dbv.js.gz +0 -0
- package/web/chunk-ht3cek8b.js +0 -1
- package/web/chunk-ht3cek8b.js.br +0 -2
- package/web/chunk-ht3cek8b.js.gz +0 -0
- package/web/chunk-hw4f79k8.js +0 -1
- package/web/chunk-hw4f79k8.js.br +0 -0
- package/web/chunk-hw4f79k8.js.gz +0 -0
- package/web/chunk-j2y3wkxc.js +0 -40
- package/web/chunk-j2y3wkxc.js.br +0 -0
- package/web/chunk-j2y3wkxc.js.gz +0 -0
- package/web/chunk-j4942vkb.js +0 -1
- package/web/chunk-j4942vkb.js.br +0 -0
- package/web/chunk-j4942vkb.js.gz +0 -0
- package/web/chunk-j7sfcfxr.js +0 -1
- package/web/chunk-j7sfcfxr.js.br +0 -0
- package/web/chunk-j7sfcfxr.js.gz +0 -0
- package/web/chunk-jge5e8c4.js +0 -1
- package/web/chunk-jge5e8c4.js.br +0 -0
- package/web/chunk-jge5e8c4.js.gz +0 -0
- package/web/chunk-jyjgvcac.js +0 -2
- package/web/chunk-jyjgvcac.js.br +0 -0
- package/web/chunk-jyjgvcac.js.gz +0 -0
- package/web/chunk-k1d0y72z.js +0 -2
- package/web/chunk-k1d0y72z.js.br +0 -0
- package/web/chunk-k1d0y72z.js.gz +0 -0
- package/web/chunk-k9bzz441.js +0 -1
- package/web/chunk-k9bzz441.js.br +0 -0
- package/web/chunk-k9bzz441.js.gz +0 -0
- package/web/chunk-keway722.js +0 -39
- package/web/chunk-keway722.js.br +0 -0
- package/web/chunk-keway722.js.gz +0 -0
- package/web/chunk-kh0xyffx.js +0 -1
- package/web/chunk-kh0xyffx.js.br +0 -0
- package/web/chunk-kh0xyffx.js.gz +0 -0
- package/web/chunk-kr7shpnb.js +0 -4
- package/web/chunk-kr7shpnb.js.br +0 -0
- package/web/chunk-kr7shpnb.js.gz +0 -0
- package/web/chunk-ktvxgxsd.js +0 -2
- package/web/chunk-ktvxgxsd.js.br +0 -0
- package/web/chunk-ktvxgxsd.js.gz +0 -0
- package/web/chunk-kv5swske.js +0 -1
- package/web/chunk-kv5swske.js.br +0 -0
- package/web/chunk-kv5swske.js.gz +0 -0
- package/web/chunk-kx2k462h.js +0 -1
- package/web/chunk-kx2k462h.js.br +0 -0
- package/web/chunk-kx2k462h.js.gz +0 -0
- package/web/chunk-m5b7hny2.js +0 -2
- package/web/chunk-m5b7hny2.js.br +0 -0
- package/web/chunk-m5b7hny2.js.gz +0 -0
- package/web/chunk-m7kypzvp.js +0 -2
- package/web/chunk-m7kypzvp.js.br +0 -0
- package/web/chunk-m7kypzvp.js.gz +0 -0
- package/web/chunk-n00se8nk.js +0 -2
- package/web/chunk-n00se8nk.js.br +0 -0
- package/web/chunk-n00se8nk.js.gz +0 -0
- package/web/chunk-n419cees.js +0 -1
- package/web/chunk-n419cees.js.br +0 -0
- package/web/chunk-n419cees.js.gz +0 -0
- package/web/chunk-n45fgfyt.js +0 -1
- package/web/chunk-n45fgfyt.js.br +0 -2
- package/web/chunk-n45fgfyt.js.gz +0 -0
- package/web/chunk-n5v71fas.js +0 -2
- package/web/chunk-n5v71fas.js.br +0 -0
- package/web/chunk-n5v71fas.js.gz +0 -0
- package/web/chunk-ngdj0r7w.js +0 -24
- package/web/chunk-ngdj0r7w.js.br +0 -0
- package/web/chunk-ngdj0r7w.js.gz +0 -0
- package/web/chunk-nzey7cpv.js +0 -1
- package/web/chunk-nzey7cpv.js.br +0 -0
- package/web/chunk-nzey7cpv.js.gz +0 -0
- package/web/chunk-p6ma361e.js +0 -2
- package/web/chunk-p6ma361e.js.br +0 -0
- package/web/chunk-p6ma361e.js.gz +0 -0
- package/web/chunk-p76f6cf4.js +0 -2
- package/web/chunk-p76f6cf4.js.br +0 -0
- package/web/chunk-p76f6cf4.js.gz +0 -0
- package/web/chunk-pvhz0gqy.js +0 -332
- package/web/chunk-pvhz0gqy.js.br +0 -0
- package/web/chunk-pvhz0gqy.js.gz +0 -0
- package/web/chunk-q96eky9v.js +0 -1
- package/web/chunk-q96eky9v.js.br +0 -0
- package/web/chunk-q96eky9v.js.gz +0 -0
- package/web/chunk-qcgs1mft.js +0 -2
- package/web/chunk-qcgs1mft.js.br +0 -0
- package/web/chunk-qcgs1mft.js.gz +0 -0
- package/web/chunk-qgtqwmkb.js +0 -1
- package/web/chunk-qgtqwmkb.js.br +0 -2
- package/web/chunk-qgtqwmkb.js.gz +0 -0
- package/web/chunk-qh24q7c0.js +0 -2
- package/web/chunk-qh24q7c0.js.br +0 -0
- package/web/chunk-qh24q7c0.js.gz +0 -0
- package/web/chunk-qygjhm63.js +0 -1
- package/web/chunk-qygjhm63.js.br +0 -0
- package/web/chunk-qygjhm63.js.gz +0 -0
- package/web/chunk-r1dnh0s8.js +0 -1
- package/web/chunk-r1dnh0s8.js.br +0 -0
- package/web/chunk-r1dnh0s8.js.gz +0 -0
- package/web/chunk-r1xksxab.js +0 -1
- package/web/chunk-r1xksxab.js.br +0 -0
- package/web/chunk-r1xksxab.js.gz +0 -0
- package/web/chunk-r5eakmw6.js +0 -1
- package/web/chunk-r5eakmw6.js.br +0 -0
- package/web/chunk-r5eakmw6.js.gz +0 -0
- package/web/chunk-rfsg5rke.js +0 -1
- package/web/chunk-rfsg5rke.js.br +0 -2
- package/web/chunk-rfsg5rke.js.gz +0 -0
- package/web/chunk-rsc5k5he.js +0 -139
- package/web/chunk-rsc5k5he.js.br +0 -0
- package/web/chunk-rsc5k5he.js.gz +0 -0
- package/web/chunk-s7a2f62f.js +0 -140
- package/web/chunk-s7a2f62f.js.br +0 -0
- package/web/chunk-s7a2f62f.js.gz +0 -0
- package/web/chunk-s7h50avx.js +0 -2
- package/web/chunk-s7h50avx.js.br +0 -0
- package/web/chunk-s7h50avx.js.gz +0 -0
- package/web/chunk-sac6fn9n.js +0 -24
- package/web/chunk-sac6fn9n.js.br +0 -0
- package/web/chunk-sac6fn9n.js.gz +0 -0
- package/web/chunk-sk47kk5j.js +0 -1
- package/web/chunk-sk47kk5j.js.br +0 -0
- package/web/chunk-sk47kk5j.js.gz +0 -0
- package/web/chunk-t0xjx21h.js +0 -30
- package/web/chunk-t0xjx21h.js.br +0 -0
- package/web/chunk-t0xjx21h.js.gz +0 -0
- package/web/chunk-t6agpn2z.js +0 -1
- package/web/chunk-t6agpn2z.js.br +0 -0
- package/web/chunk-t6agpn2z.js.gz +0 -0
- package/web/chunk-t9heac9a.js +0 -2
- package/web/chunk-t9heac9a.js.br +0 -0
- package/web/chunk-t9heac9a.js.gz +0 -0
- package/web/chunk-v7ck87jf.js +0 -1
- package/web/chunk-v7ck87jf.js.br +0 -0
- package/web/chunk-v7ck87jf.js.gz +0 -0
- package/web/chunk-vvk9nche.js +0 -21
- package/web/chunk-vvk9nche.js.br +0 -0
- package/web/chunk-vvk9nche.js.gz +0 -0
- package/web/chunk-vxtfen72.js +0 -1
- package/web/chunk-vxtfen72.js.br +0 -0
- package/web/chunk-vxtfen72.js.gz +0 -0
- package/web/chunk-w5c2r59n.js +0 -41
- package/web/chunk-w5c2r59n.js.br +0 -0
- package/web/chunk-w5c2r59n.js.gz +0 -0
- package/web/chunk-wh0vt2vd.js +0 -34
- package/web/chunk-wh0vt2vd.js.br +0 -0
- package/web/chunk-wh0vt2vd.js.gz +0 -0
- package/web/chunk-wvvrdqgb.js +0 -1
- package/web/chunk-wvvrdqgb.js.br +0 -2
- package/web/chunk-wvvrdqgb.js.gz +0 -0
- package/web/chunk-xe7fj72r.js +0 -1
- package/web/chunk-xe7fj72r.js.br +0 -0
- package/web/chunk-xe7fj72r.js.gz +0 -0
- package/web/chunk-xp9tdb5t.js +0 -1
- package/web/chunk-xp9tdb5t.js.br +0 -2
- package/web/chunk-xp9tdb5t.js.gz +0 -0
- package/web/chunk-y10hsdq4.js +0 -1
- package/web/chunk-y10hsdq4.js.br +0 -0
- package/web/chunk-y10hsdq4.js.gz +0 -0
- package/web/chunk-yarsp7h7.js +0 -12
- package/web/chunk-yarsp7h7.js.br +0 -0
- package/web/chunk-yarsp7h7.js.gz +0 -0
- package/web/chunk-yw5wyz1q.js +0 -55
- package/web/chunk-yw5wyz1q.js.br +0 -0
- package/web/chunk-yw5wyz1q.js.gz +0 -0
- package/web/chunk-z09emmrb.js +0 -1
- package/web/chunk-z09emmrb.js.br +0 -0
- package/web/chunk-z09emmrb.js.gz +0 -0
- package/web/chunk-z3ea4vhk.js +0 -1
- package/web/chunk-z3ea4vhk.js.br +0 -0
- package/web/chunk-z3ea4vhk.js.gz +0 -0
- package/web/chunk-z7adzvfz.js +0 -1
- package/web/chunk-z7adzvfz.js.br +0 -0
- package/web/chunk-z7adzvfz.js.gz +0 -0
- package/web/chunk-zb01zmms.js +0 -84
- package/web/chunk-zb01zmms.js.br +0 -0
- package/web/chunk-zb01zmms.js.gz +0 -0
package/chunk-ak9rkrf3.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{a,r}from"./chunk-zkjnt298.js";var R=r(function(U){Object.defineProperty(U,"__esModule",{value:!0});U.Allow=U.ALL=U.COLLECTION=U.ATOM=U.SPECIAL=U.INF=U._INFINITY=U.INFINITY=U.NAN=U.BOOL=U.NULL=U.OBJ=U.ARR=U.NUM=U.STR=void 0;U.STR=1;U.NUM=2;U.ARR=4;U.OBJ=8;U.NULL=16;U.BOOL=32;U.NAN=64;U.INFINITY=128;U._INFINITY=256;U.INF=U.INFINITY|U._INFINITY;U.SPECIAL=U.NULL|U.BOOL|U.INF|U.NAN;U.ATOM=U.STR|U.NUM|U.SPECIAL;U.COLLECTION=U.ARR|U.OBJ;U.ALL=U.ATOM|U.COLLECTION;U.Allow={STR:U.STR,NUM:U.NUM,ARR:U.ARR,OBJ:U.OBJ,NULL:U.NULL,BOOL:U.BOOL,NAN:U.NAN,INFINITY:U.INFINITY,_INFINITY:U._INFINITY,INF:U.INF,SPECIAL:U.SPECIAL,ATOM:U.ATOM,COLLECTION:U.COLLECTION,ALL:U.ALL};U.default=U.Allow});var v=r(function(o){var G=o&&o.__createBinding||(Object.create?function(t,s,i,e){if(e===void 0)e=i;var n=Object.getOwnPropertyDescriptor(s,i);if(!n||("get"in n?!s.__esModule:n.writable||n.configurable))n={enumerable:!0,get:function(){return s[i]}};Object.defineProperty(t,e,n)}:function(t,s,i,e){if(e===void 0)e=i;t[e]=s[i]}),H=o&&o.__exportStar||function(t,s){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))G(s,t,i)};Object.defineProperty(o,"__esModule",{value:!0});o.Allow=o.MalformedJSON=o.PartialJSON=o.parseJSON=o.parse=void 0;var u=R();Object.defineProperty(o,"Allow",{enumerable:!0,get:function(){return u.Allow}});H(R(),o);class B extends Error{}o.PartialJSON=B;class F extends Error{}o.MalformedJSON=F;function Y(t,s=u.Allow.ALL){if(typeof t!=="string")throw TypeError(`expecting str, got ${typeof t}`);if(!t.trim())throw Error(`${t} is empty`);return K(t.trim(),s)}o.parseJSON=Y;var K=(t,s)=>{let i=t.length,e=0,n=(c)=>{throw new B(`${c} at position ${e}`)},p=(c)=>{throw new F(`${c} at position ${e}`)},l=()=>{if(O(),e>=i)n("Unexpected end of input");if(t[e]==='"')return M();if(t[e]==="{")return W();if(t[e]==="[")return D();if(t.substring(e,e+4)==="null"||u.Allow.NULL&s&&i-e<4&&"null".startsWith(t.substring(e)))return e+=4,null;if(t.substring(e,e+4)==="true"||u.Allow.BOOL&s&&i-e<4&&"true".startsWith(t.substring(e)))return e+=4,!0;if(t.substring(e,e+5)==="false"||u.Allow.BOOL&s&&i-e<5&&"false".startsWith(t.substring(e)))return e+=5,!1;if(t.substring(e,e+8)==="Infinity"||u.Allow.INFINITY&s&&i-e<8&&"Infinity".startsWith(t.substring(e)))return e+=8,1/0;if(t.substring(e,e+9)==="-Infinity"||u.Allow._INFINITY&s&&1<i-e&&i-e<9&&"-Infinity".startsWith(t.substring(e)))return e+=9,-1/0;if(t.substring(e,e+3)==="NaN"||u.Allow.NAN&s&&i-e<3&&"NaN".startsWith(t.substring(e)))return e+=3,NaN;return q()},M=()=>{let c=e,f=!1;e++;while(e<i&&(t[e]!=='"'||f&&t[e-1]==="\\"))f=t[e]==="\\"?!f:!1,e++;if(t.charAt(e)=='"')try{return JSON.parse(t.substring(c,++e-Number(f)))}catch(N){p(String(N))}else if(u.Allow.STR&s)try{return JSON.parse(t.substring(c,e-Number(f))+'"')}catch(N){return JSON.parse(t.substring(c,t.lastIndexOf("\\"))+'"')}n("Unterminated string literal")},W=()=>{e++,O();let c={};try{while(t[e]!=="}"){if(O(),e>=i&&u.Allow.OBJ&s)return c;let f=M();O(),e++;try{let N=l();c[f]=N}catch(N){if(u.Allow.OBJ&s)return c;else throw N}if(O(),t[e]===",")e++}}catch(f){if(u.Allow.OBJ&s)return c;else n("Expected '}' at end of object")}return e++,c},D=()=>{e++;let c=[];try{while(t[e]!=="]")if(c.push(l()),O(),t[e]===",")e++}catch(f){if(u.Allow.ARR&s)return c;n("Expected ']' at end of array")}return e++,c},q=()=>{if(e===0){if(t==="-")p("Not sure what '-' is");try{return JSON.parse(t)}catch(f){if(u.Allow.NUM&s)try{return JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch(N){}p(String(f))}}let c=e;if(t[e]==="-")e++;while(t[e]&&",]}".indexOf(t[e])===-1)e++;if(e==i&&!(u.Allow.NUM&s))n("Unterminated number literal");try{return JSON.parse(t.substring(c,e))}catch(f){if(t.substring(c,e)==="-")n("Not sure what '-' is");try{return JSON.parse(t.substring(c,t.lastIndexOf("e")))}catch(N){p(String(N))}}},O=()=>{while(e<i&&`
|
|
3
|
-
\r `.includes(t[e]))e++};return l()},Q=Y;o.parse=Q});var P=a(v(),1),X=new Set(['"',"\\","/","b","f","n","r","t","u"]);function Z(t){let s=t.codePointAt(0);return s!==void 0&&s>=0&&s<=31}function S(t){switch(t){case"\b":return"\\b";case"\f":return"\\f";case`
|
|
4
|
-
`:return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:return`\\u${t.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function si(t){let s="",i=!1;for(let e=0;e<t.length;e++){let n=t[e];if(!i){if(s+=n,n==='"')i=!0;continue}if(n==='"'){s+=n,i=!1;continue}if(n==="\\"){let p=t[e+1];if(p===void 0){s+="\\\\";continue}if(p==="u"){let l=t.slice(e+2,e+6);if(/^[0-9a-fA-F]{4}$/.test(l)){s+=`\\u${l}`,e+=5;continue}}if(X.has(p)){s+=`\\${p}`,e+=1;continue}s+="\\\\";continue}s+=Z(n)?S(n):n}return s}function vn(t){try{return JSON.parse(t)}catch(s){let i=si(t);if(i!==t)return JSON.parse(i);throw s}}function z(t){if(!t||t.trim()==="")return{};try{return vn(t)}catch{try{return P.parse(t)??{}}catch{try{return P.parse(si(t))??{}}catch{return{}}}}}
|
|
5
|
-
export{si,vn,z};
|
package/chunk-b516bp7n.js
DELETED
package/chunk-bn1aaewd.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function Ue(e){let t=Object.values(e).filter((o)=>typeof o==="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function fr(e,t="|"){return e.map((r)=>hr(r)).join(t)}function Me(e,t){if(typeof t==="bigint")return t.toString();return t}class on{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;if(e!==void 0)this._value=e(),this._getter=void 0;return this._value}}function Fe(e){return new on(e)}function nn(e){return e===null||e===void 0}function ct(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function sn(e,t){let r=e/t,o=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);if(Math.abs(r-o)<n)return 0;return r-o}function oe(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Be(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function me(e){return Be(e._zod.def)??e._zod.def.shape}function cn(e,t,r){Object.defineProperty(e,t,{get(){let o=r();return oe(this,t,o),o},enumerable:!0,configurable:!0})}function an(e,t,r){if(t in e)oe(e,t,r);else e[t]=r}function $e(e,t,r,o){let n=me(t);for(let i of r){let s=Object.getOwnPropertyDescriptor(n,i);if(!s.enumerable)continue;if(s.get)cn(e,i,()=>{let c=t._zod.def.shape[i];return o?o(c,i):c});else an(e,i,o?o(s.value,i):s.value)}}function Nu(e,t){for(let r of Reflect.ownKeys(t)){let o=Object.getOwnPropertyDescriptor(t,r);if(!o.enumerable)continue;if(o.get)cn(e,r,()=>t[r]);else an(e,r,o.value)}}function ee(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function un(e){return JSON.stringify(e)}function ln(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var dr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var pn=Fe(()=>{if(X.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Se(e){if(Pe(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!=="function")return!0;let r=t.prototype;if(Pe(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function mr(e){if(Se(e))return{...e};if(Array.isArray(e))return[...e];if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);return e}var fn=new Set(["string","number","symbol"]);function xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ue(e,t,r){let o=new e._zod.constr(t??e._zod.def);if(!t||r?.parent)o._zod.parent=e;return o}function x(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function hr(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function dn(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var at=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),gr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ju(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i={};return $e(i,e,ut(e,t)),ue(e,ee(r,{shape:i,checks:[]}))}function ut(e,t){let r=me(e),o=[];for(let n of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw Error(`Unrecognized key: "${String(n)}"`);if(t[n])o.push(n)}return o}function Lu(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(ut(e,t)),s={};return $e(s,e,Reflect.ownKeys(me(e)).filter((c)=>!i.has(c))),ue(e,ee(r,{shape:s,checks:[]}))}function Du(e,t){if(!Se(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let n=me(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,i)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ue(e,ee(e._zod.def,{shape:mn(e,t)}))}function mn(e,t){let r={};return $e(r,e,Reflect.ownKeys(me(e))),Nu(r,t),r}function Uu(e,t){if(!Se(t))throw Error("Invalid input to safeExtend: expected a plain object");return ue(e,ee(e._zod.def,{shape:mn(e,t)}))}function Mu(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};$e(r,e,Reflect.ownKeys(me(e))),$e(r,t,Reflect.ownKeys(me(t)));let o=ee(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ue(e,o)}function hn(e,t,r,o="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${o}() cannot be used on object schemas containing refinements`);let c=r?new Set(ut(t,r)):void 0,a={};return $e(a,t,Reflect.ownKeys(me(t)),e&&((l,p)=>c&&!c.has(p)?l:new e({type:"optional",innerType:l}))),ue(t,ee(t._zod.def,{shape:a,checks:[]}))}function Fu(e,t,r){let o=r?new Set(ut(t,r)):void 0,n={};return $e(n,t,Reflect.ownKeys(me(t)),(i,s)=>o&&!o.has(s)?i:new e({type:"nonoptional",innerType:i})),ue(t,ee(t._zod.def,{shape:n}))}function pe(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function gn(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ye(e,t){return t.map((r)=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function De(e){return typeof e==="string"?e:e?.message}function _r(e){let t=[];for(let r of e??[]){let o=r._zod.def;if(!/_(length|size)$|_equals$/.test(o.check))break;let n=o.maximum??o.length??o.size;if(n>=0)t.push([n,r])}return t}function lt(e,t,r){var o;for(let n=t;n<e.length;n++)(o=e[n]).schema??(o.schema=r)}function fe(e,t,r){var o;let n=e.inst?._zod?.traits;if(n?.has("$ZodType"))if(n.has("$ZodCheck"))(o=e).schema??(o.schema=e.inst);else e.schema=e.inst;let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:De(e.inst?._zod.def?.error?.(e))??De(i?.(e))??De(t?.error?.(e))??De(r.customError?.(e))??De(r.localeError?.(e))??"Invalid input",c={};for(let a of Object.keys(e)){if(a==="inst"||a==="schema"||a==="continue"||a==="input"||a==="__proto__")continue;c[a]=e[a]}if(c.path??(c.path=[]),c.message=s,t?.reportInput)c.input=e.input;return c}var Bu=/[\uD800-\uDBFF]/;function pt(e){let t=e.length;if(!Bu.test(e))return t;let r=t;for(let o=0;o<t-1;o++)if((e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320)r--,o++;return r}function ft(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function _n(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function ke(...e){let[t,r,o]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:o};return{...t}}function zn(e,t){for(let r in t){let o=Object.getOwnPropertyDescriptor(t,r);if(o.get)Object.defineProperty(e,r,{...o,enumerable:!1});else Ju(e,r,o.value)}}function he(e,t,r,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:r}),r}function dt(e,t,r){return he(e,t,r,!1)}function xn(e,t){for(let r in e){let o=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return he(this,r,o(this))},set(n){he(this,r,n)}})}return t}function Ju(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:he(this,t,r.bind(this))},set(o){he(this,t,o)}})}function qu(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var pr,ze=!1,Vu={configurable:!0,get(){ze=!0;return}};function S(e,t,r){let o=Object.getPrototypeOf(e._zod);if(t in o&&pr!==e._zod){pr=void 0;return}pr=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,Vu);let n=ze;ze=!1;try{let i=r(this);if(ze)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i});return ze=ze||n,i}catch(i){throw delete this[t],ze=ze||n,i}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function Ku(e,t,r,o){let n=qu(e,t);if(!n)return;Object.defineProperty(n,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,i),i.value=r(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:i})}})}var Wu="~constantCatch";function yn(e){let t=()=>e;return t[Wu]=!0,t}var bn,xr=Object.freeze({status:"aborted"}),zr={value:void 0,enumerable:!1},vn="captureStackTrace"in Error?Error:null;function Gu(e){let t=vn;if(t){let r=t.stackTraceLimit;if(typeof r==="number"){try{t.stackTraceLimit=0}catch{return vn=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function f(e,t,r,o){let n={};function i(h){this.def=h,this.constr=d,this.traits=new Set}i.prototype=n;let s=r,c=s&&new WeakSet;function a(h,m){if(!h._zod){zr.value=new i(m);try{Object.defineProperty(h,"_zod",zr)}finally{zr.value=void 0}}else if(h._zod.traits.has(e))return;if(h._zod.traits.add(e),t(h,m),c){let b=Object.getPrototypeOf(h),v=h._zod.constr.prototype,k=b;while(k&&k!==v)k=Object.getPrototypeOf(k);let H=k??b;if(!c.has(H))c.add(H),zn(H,s)}let g=d.prototype;for(let b in g){if(!Object.prototype.hasOwnProperty.call(g,b))continue;if(!(b in h))h[b]=g[b].bind(h)}}let l=o?.Parent??Object;class p extends l{}Object.defineProperty(p,"name",{value:e});function d(h){let m=o?.Parent?Gu(p):this;a(m,h);let g=m._zod.deferred;if(g){for(let v of g)v();m._zod.deferred=void 0}let b=globalThis.__zod_globalConfig?.postProcessor;if(b)b(m);return m}return Object.defineProperty(d,"init",{value:a}),Object.defineProperty(d,Symbol.hasInstance,{value:(h)=>{if(o?.Parent&&h instanceof o.Parent)return!0;return h?._zod?.traits?.has(e)}}),Object.defineProperty(d,"name",{value:e}),d}class de extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Je extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(bn=globalThis).__zod_globalConfig??(bn.__zod_globalConfig={});var X=globalThis.__zod_globalConfig;function Y(e){if(e)Object.assign(X,e);return X}function Hu(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Me,2)),e.message}function Xu(e){this._zod.message=e}var Yu={get:Hu,set:Xu,enumerable:!0,configurable:!0},br={value:void 0,enumerable:!1},wn=new WeakSet([Object.prototype,Error.prototype]),$n=(e,t)=>{e.name="$ZodError",br.value=t,Object.defineProperty(e,"issues",br),br.value=void 0,Object.defineProperty(e,"message",Yu);let r=Object.getPrototypeOf(e);if(!wn.has(r))wn.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}})},Sn=f("$ZodError",$n),Pn=f("$ZodError",$n,void 0,{Parent:Error});function Qu(e,t,r){if(!Object.prototype.hasOwnProperty.call(e,t))if(t==="__proto__")Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0});else e[t]=r();return e[t]}function vr(e,t=(r)=>r.message){let r={},o=[];for(let n of e.issues)if(n.path.length>0)Qu(r,n.path[0],()=>[]).push(t(n));else o.push(t(n));return{formErrors:o,fieldErrors:r}}function wr(e,t=(r)=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map((c)=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0)r._errors.push(t(s));else{let a=r,l=0;while(l<c.length){let p=c[l],d=l===c.length-1;if(p==="_errors"){if(d)a._errors.push(t(s));l++;continue}if(!Object.prototype.hasOwnProperty.call(a,p))Object.defineProperty(a,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let h=a[p];if(d)h._errors.push(t(s));a=h,l++}}}};return o(e),r}function mt(e,t){return{callee:t?.callee??e,Err:t?.Err}}var gt=(e)=>{let t=(r,o,n,i)=>{let s=n?{...n,async:!1}:{async:!1},c=r._zod.run({value:o,issues:[]},s);if(c instanceof Promise)throw new de;if(c.issues.length){let a=new(i?.Err??e)(c.issues.map((l)=>fe(l,s,Y())));throw dr(a,i?.callee??t),a}return c.value};return t};var _t=(e)=>{let t=async(r,o,n,i)=>{let s=n?{...n,async:!0}:{async:!0},c=r._zod.run({value:o,issues:[]},s);if(c instanceof Promise)c=await c;if(c.issues.length){let a=new(i?.Err??e)(c.issues.map((l)=>fe(l,s,Y())));throw dr(a,i?.callee??t),a}return c.value};return t};var qe=(e)=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new de;return i.issues.length?Zn(e,i.issues,n):{success:!0,data:i.value}},So=qe(Pn);function Zn(e,t,r){let o;return{success:!1,get error(){if(!o)o=new e(t.map((n)=>fe(n,r,Y()))),t=void 0,r=void 0;return o},set error(n){o=n,t=void 0,r=void 0}}}var zt=(e)=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)i=await i;return i.issues.length?Zn(e,i.issues,n):{success:!0,data:i.value}};var tl=Symbol.for("zod.compile.invalid"),rl=Symbol.for("zod.compile.fallback"),$r=(e,t,r)=>{let o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==tl)return!0;if(o.definite===!0&&r===void 0)return!1}return ol(e,t,r)};function ol(e,t,r){let o=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,i;if(n)o[rl]=!0,i=n({value:t,issues:[]},o);else i=e._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new de;return i.issues.length===0}var Sr=async(e,t,r)=>{let o=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=e._zod.run({value:t,issues:[]},o);if(n instanceof Promise)n=await n;return n.issues.length===0},Tn=(e)=>{let t=gt(e),r=(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,n,c,mt(r,s))};return r};var An=(e)=>{let t=gt(e),r=(o,n,i,s)=>t(o,n,i,mt(r,s));return r};var En=(e)=>{let t=_t(e),r=async(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,n,c,mt(r,s))};return r};var jn=(e)=>{let t=_t(e),r=async(o,n,i,s)=>await t(o,n,i,mt(r,s));return r};var Un=(e)=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return qe(e)(t,r,n)};var Fn=(e)=>(t,r,o)=>qe(e)(t,r,o);var Bn=(e)=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return zt(e)(t,r,n)};var Jn=(e)=>async(t,r,o)=>zt(e)(t,r,o);var qn=/^[cC][0-9a-z]{6,}$/,Vn=/^[0-9a-z]+$/,Kn=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Wn=/^[0-9a-vA-V]{20}$/,Gn=/^[A-Za-z0-9]{27}$/,Hn=/^[a-zA-Z0-9_-]{21}$/;function Xn(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Yn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Qn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Pr=(e)=>{if(!e)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var ei=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var nl="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function ti(){return new RegExp(nl,"u")}var ri=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,oi=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var ni=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ii=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,si=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ci=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;var ai=/^https?$/,ui=/^\+[1-9]\d{6,14}$/;var li="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function il(e){return new RegExp(`^${e}$`)}var _i=il(li);function kr(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function zi(e){return new RegExp(`^${kr(e)}$`)}function xi(e){let t=["Z"];if(e.offset)t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${kr({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${r}|${kr({precision:e.precision})}`:r;return new RegExp(`^${li}T(?:${o})$`)}var bi=/^[\s\S]{0,}$/;var Zr=/^-?\d+$/,Ke=/^-?\d+(?:\.\d+)?$/,vi=/^(?:true|false)$/i,wi=/^null$/i;var $i=/^[^A-Z]*$/,Si=/^[^a-z]*$/;var q=f("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Or=(e)=>{let t=e.value;return!nn(t)&&t.length!==void 0},xt={number:"number",bigint:"bigint",object:"date"},Rr=f("$ZodCheckLessThan",(e,t)=>{q.init(e,t);let r=xt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value<=t.value:o.value<t.value)return;o.issues.push({origin:xt[typeof o.value]??r,code:"too_big",maximum:typeof t.value==="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Cr=f("$ZodCheckGreaterThan",(e,t)=>{q.init(e,t);let r=xt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value>=t.value:o.value>t.value)return;o.issues.push({origin:xt[typeof o.value]??r,code:"too_small",minimum:typeof t.value==="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ki=f("$ZodCheckMultipleOf",(e,t)=>{q.init(e,t),e._zod.check=(r)=>{if(typeof r.value!==typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof r.value==="bigint"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):sn(r.value,t.value)===0)return;r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Pi=f("$ZodCheckNumberFormat",(e,t)=>{q.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=at[t.format];e._zod.check=(s)=>{let c=s.value;if(r){if(!Number.isInteger(c)){s.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){if(c>0)s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});else s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}if(c<n)s.issues.push({origin:"number",input:c,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort});if(c>i)s.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}});var Zi=f("$ZodCheckMaxLength",(e,t)=>{var r;q.init(e,t),(r=e._zod.def).when??(r.when=Or),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>t.maximum?pt(n):i)<=t.maximum)return;let c=ft(n);o.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Oi=f("$ZodCheckMinLength",(e,t)=>{var r;q.init(e,t),(r=e._zod.def).when??(r.when=Or),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>=t.minimum&&i<t.minimum*2?pt(n):i)>=t.minimum)return;let c=ft(n);o.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ri=f("$ZodCheckLengthEquals",(e,t)=>{var r;q.init(e,t),(r=e._zod.def).when??(r.when=Or),e._zod.check=(o)=>{let n=o.value,i=n.length,s=typeof n==="string"&&i>=t.length&&i<=t.length*2?pt(n):i;if(s===t.length)return;let c=ft(n),a=s>t.length;o.issues.push({origin:c,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),We=f("$ZodCheckStringFormat",(e,t)=>{var r,o;if(q.init(e,t),t.pattern)(r=e._zod).check??(r.check=(n)=>{if(t.pattern.lastIndex=0,t.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(o=e._zod).check??(o.check=()=>{})}),Ci=f("$ZodCheckRegex",(e,t)=>{We.init(e,t),e._zod.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ii=f("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$i),We.init(e,t)}),Ti=f("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Si),We.init(e,t)}),Ai=f("$ZodCheckIncludes",(e,t)=>{q.init(e,t);let r=xe(t.includes),o=new RegExp(typeof t.position==="number"?`^.{${t.position},}${r}`:r);t.pattern=o,e._zod.check=(n)=>{if(n.value.includes(t.includes,t.position))return;n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ei=f("$ZodCheckStartsWith",(e,t)=>{q.init(e,t);let r=new RegExp(`^${xe(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.check=(o)=>{if(o.value.startsWith(t.prefix))return;o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Ni=f("$ZodCheckEndsWith",(e,t)=>{q.init(e,t);let r=new RegExp(`.*${xe(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.check=(o)=>{if(o.value.endsWith(t.suffix))return;o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});var ji=f("$ZodCheckOverwrite",(e,t)=>{q.init(e,t),e._zod.check=(r)=>{r.value=t.tx(r.value)}});class Ir{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e==="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let r=e.split(`
|
|
3
|
-
`).filter((i)=>i),o=Math.min(...r.map((i)=>i.length-i.trimStart().length)),n=r.map((i)=>i.slice(o)).map((i)=>" ".repeat(this.indent*2)+i);for(let i of n)this.content.push(i)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
4
|
-
${t.join(`
|
|
5
|
-
`)}
|
|
6
|
-
};`)(...Object.values(this.closed))}}var Di={major:4,minor:6,patch:7};var R=f("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Di;let o=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let i of n)for(let s of i._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(c,a,l)=>{if(c.memo)return c;let p=pe(c),d;for(let h of a){if(h._zod.def.when){if(gn(c))continue;if(!h._zod.def.when(c))continue}else if(p)continue;let m=c.issues.length,g=h._zod.check(c);if(g instanceof Promise&&l?.async===!1)throw new de;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{if(await g,c.issues.length===m)return;if(lt(c.issues,m,e),!p)p=pe(c,m)});else{if(c.issues.length===m)continue;if(lt(c.issues,m,e),!p)p=pe(c,m)}}if(d)return d.then(()=>c);return c},s=(c,a,l)=>{if(pe(c))return c.aborted=!0,c;let p=i(a,n,l);if(p instanceof Promise){if(l.async===!1)throw new de;return p.then((d)=>e._zod.parse(d,l))}return e._zod.parse(p,l)};e._zod.run=(c,a)=>{if(a.skipChecks)return e._zod.parse(c,a);if(a.direction==="backward"){let p=e._zod.parse({value:c.value,issues:[]},{...a,skipChecks:!0});if(p instanceof Promise)return p.then((d)=>s(d,c,a));return s(p,c,a)}let l=e._zod.parse(c,a);if(l instanceof Promise){if(a.async===!1)throw new de;return l.then((p)=>i(p,n,a))}return i(l,n,a)}}},{get "~standard"(){return dt(this,"~standard",Ar(this))},set "~standard"(e){he(this,"~standard",e)}}),Hi=(e,t)=>e.issues.length?{issues:e.issues.map((r)=>fe(r,t,Y()))}:{value:e.value};async function sl(e,t){let r={async:!0};return Hi(await e._zod.run({value:t,issues:[]},r),r)}function Ar(e){return{validate:(t)=>{let r={async:!1};try{let o=e._zod.run({value:t,issues:[]},r);if(!(o instanceof Promise))return Hi(o,r)}catch(o){}return sl(e,t)},vendor:"zod",version:1}}var wt=f("$ZodString",(e,t)=>{R.init(e,t),e._zod.pattern=t.pattern??bi,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch(n){}if(typeof r.value==="string")return r;return r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),T=f("$ZodStringFormat",(e,t)=>{We.init(e,t),wt.init(e,t)}),Xi=f("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Qn),T.init(e,t)}),Yi=f("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Pr(o))}else t.pattern??(t.pattern=Pr());T.init(e,t)}),Qi=f("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ei),T.init(e,t)}),es=1,bt=2;function ts(e){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(e);return new URL(e),!0}catch{return!1}}function cl(e,t){if(!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t))return ts(e)||bt;return al(e,t)}function al(e,t){if(!t.normalize&&t.protocol?.source===ai.source&&!/^https?:\/\//i.test(e))return es;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse==="function")return r.parse(e)??bt}return new URL(e)}catch{return bt}}var ul=/[\t\n\r]/g;function Ui(e){return e.replace(ul,"")}function ll(e,t){return t.lastIndex=0,t.test(e.hostname)}function pl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var rs=f("$ZodURL",(e,t)=>{T.init(e,t),e._zod.check=(r)=>{try{let o=r.value.trim(),n=cl(o,t);if(n===es){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===bt){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=Ui(o);return}if(t.hostname&&!ll(n,t.hostname))r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort});if(t.protocol&&!pl(n,t.protocol))r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort});r.value=t.normalize?n.href:Ui(o);return}catch(o){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),os=f("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ti()),T.init(e,t)}),ns=f("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Hn:Xn(t.length)),T.init(e,t)}),is=f("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=qn),T.init(e,t)}),ss=f("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Vn),T.init(e,t)}),cs=f("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Kn),T.init(e,t)}),as=f("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Wn),T.init(e,t)}),us=f("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Gn),T.init(e,t)}),ls=f("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xi(t)),T.init(e,t)}),ps=f("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=_i),T.init(e,t)}),fs=f("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=zi(t)),T.init(e,t)}),ds=f("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Yn),T.init(e,t)}),ms=f("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ri),T.init(e,t)}),fl=/^[0-9a-fA-F:.]+$/;function hs(e){if(!fl.test(e))return!1;return ts(`http://[${e}]`)}var gs=f("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=oi),T.init(e,t),e._zod.check=(r)=>{if(!hs(r.value))r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}});var _s=f("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ni),T.init(e,t)});function dl(e){let t=e.split("/");if(t.length!==2)return!1;let[r,o]=t;if(!o)return!1;let n=Number(o);if(`${n}`!==o)return!1;if(n<0||n>128)return!1;return hs(r)}var zs=f("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ii),T.init(e,t),e._zod.check=(r)=>{if(!dl(r.value))r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function xs(e){if(e==="")return!0;if(/\s/.test(e))return!1;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Er=/^[0-9a-zA-Z+/]*={0,2}$/,ys=f("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Er),T.init(e,t),e._zod.check=(r)=>{if(xs(r.value))return;r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),St=/^[A-Za-z0-9_-]*$/;function ml(e){if(!St.test(e))return!1;let t=e.replace(/[-_]/g,(o)=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return xs(r)}var bs=f("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=St),T.init(e,t),e._zod.check=(r)=>{if(ml(r.value))return;r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),vs=f("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ui),T.init(e,t)});function hl(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));if("typ"in n&&n?.typ!=="JWT")return!1;if(!n.alg)return!1;if(t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}var ws=f("$ZodJWT",(e,t)=>{T.init(e,t),e._zod.check=(r)=>{if(hl(r.value,t.alg))return;r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}});var Nr=f("$ZodNumber",(e,t)=>{R.init(e,t),e._zod.pattern=Ke,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch(s){}let n=r.value;if(typeof n==="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n==="number"?Number.isNaN(n)?"NaN":!Number.isFinite(n)?String(n):void 0:void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),$s=f("$ZodNumberFormat",(e,t)=>{Pi.init(e,t),Nr.init(e,t)}),Ss=f("$ZodBoolean",(e,t)=>{R.init(e,t),e._zod.pattern=vi,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Boolean(r.value)}catch(i){}let n=r.value;if(typeof n==="boolean")return r;return r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}});var ks=f("$ZodNull",(e,t)=>{R.init(e,t),e._zod.pattern=wi,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;if(n===null)return r;return r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Ps=f("$ZodAny",(e,t)=>{R.init(e,t),e._zod.parse=(r)=>r}),Zs=f("$ZodUnknown",(e,t)=>{R.init(e,t),e._zod.parse=(r)=>r}),Os=f("$ZodNever",(e,t)=>{R.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function gl(e,t){let r=_r(e._zod.def.checks);if(!r.length)return;let o=Math.min(...r.map((i)=>i[0])),n=e._zod.parse;e._zod.parse=(i,s)=>{let c=t(i.value);if(c>o&&!s?.skipChecks&&s?.direction!=="backward"){for(let[a,l]of _r(e._zod.def.checks))if(c>a&&l._zod.def.when(i)){let p=i.issues.length;return l._zod.check(i),i.issues[p].continue=!1,lt(i.issues,p,e),i}}return n(i,s)}}var _l=(e)=>Array.isArray(e)?e.length:-1;function Mi(e,t,r){if(e.issues.length)t.issues.push(...ye(r,e.issues));t.value[r]=e.value}var Rs=f("$ZodArray",(e,t)=>{R.init(e,t);let r=X.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=r?r.alloc(e,o,Array(i.length),n):Array(i.length);let s=[],c=n?.abortEarly;for(let a=0;a<i.length;a++){let l=i[a],p=t.element._zod.run({value:l,issues:[]},n);if(p instanceof Promise)s.push(p.then((d)=>Mi(d,o,a)));else if(Mi(p,o,a),c&&p.issues.length!==0&&pe(p))break}if(s.length)return Promise.all(s).then(()=>o);return o},gl(e,_l)});function vt(e,t,r,o,n,i){let s=r in o,c=i==="optional";if(!s&&c&&n==="optional")return;if(e.issues.length){if(n!==void 0&&c&&!s)return;t.issues.push(...ye(r,e.issues))}if(!s&&n===void 0){if(!e.issues.length)t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}if(e.value===void 0){if(s||n==="defaulted"&&!c)t.value[r]=void 0}else t.value[r]=e.value}var zl=[];function Cs(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),o=r.length?r:zl,n=o.length?[...t,...o]:t;for(let s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=dn(e.shape);return{...e,allKeys:n,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function Is(e,t,r,o,n,i,s){let c=[],a=n.keySet,l=n.catchall._zod,p=l.def.type,{optin:d,optout:h}=l,m=0;for(let g in t){if(s&&r.issues.length!==m){if(pe(r,m))break;m=r.issues.length}if(a.has(g))continue;if(g==="__proto__"){if(p==="never")c.push(g);continue}if(p==="never"){c.push(g);continue}let b=l.run({value:t[g],issues:[]},o);if(b instanceof Promise)e.push(b.then((v)=>vt(v,r,g,t,d,h)));else vt(b,r,g,t,d,h)}if(c.length)r.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:i,continue:!0});if(!e.length)return r;return Promise.all(e).then(()=>r)}var xl=f("$ZodObject",(e,t)=>{R.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),o=r?.get?r.get.raw:t.shape??{};if(o){let l=()=>{let p={...o};return Object.defineProperty(t,"shape",{value:p}),l.raw=p,p};l.raw=o,Object.defineProperty(t,"shape",{get:l})}let n=Fe(()=>Cs(t));S(e,"propValues",(l)=>{let p=l.def.shape,d={};for(let h in p){let m=p[h]._zod;if(m.values){if(!Object.prototype.hasOwnProperty.call(d,h))oe(d,h,new Set);for(let g of m.values)d[h].add(g);if(m.optin!==void 0)d[h].add(void 0)}}return d});let i=Pe,s=t.catchall,c,a=X.memoizer;a?.attach(e),e._zod.parse=(l,p)=>{c??(c=n.value);let d=l.value;if(!i(d))return l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l;l.value=a?a.alloc(e,l,{},p):{};let h=[],m=c.shape,g=p?.abortEarly,b=l.issues.length;for(let v of c.allKeys){if(g&&l.issues.length!==b){if(pe(l,b))break;b=l.issues.length}if(v==="__proto__")continue;let k=m[v],H=k._zod.optin,F=k._zod.optout,ae=k._zod.run({value:d[v],issues:[]},p);if(ae instanceof Promise)h.push(ae.then((U)=>vt(U,l,v,d,H,F)));else vt(ae,l,v,d,H,F)}if(!s)return h.length?Promise.all(h).then(()=>l):l;return Is(h,d,l,p,n.value,e,g===!0)}}),Ts=f("$ZodObjectJIT",(e,t)=>{xl.init(e,t);let r=e._zod.parse,o=Fe(()=>Cs(t)),n=X.memoizer,i=(m)=>{let g=o.value,b=g.symbolKeys,v=new Ir(["payload","ctx"],{shape:m,inst:e,memo:n,syms:b}),k=(U)=>`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`,H=(U,Z)=>`
|
|
7
|
-
let ${U}_ab = false;
|
|
8
|
-
for (let i = 0; i < ${U}.issues.length; i++) {
|
|
9
|
-
const iss = ${U}.issues[i];
|
|
10
|
-
iss.path = iss.path ? [${Z}, ...iss.path] : [${Z}];
|
|
11
|
-
payload.issues.push(iss);
|
|
12
|
-
if (iss.continue !== true) ${U}_ab = true;
|
|
13
|
-
}
|
|
14
|
-
if (${U}_ab && ctx && ctx.abortEarly) {
|
|
15
|
-
payload.value = newResult;
|
|
16
|
-
return payload;
|
|
17
|
-
}`;v.write("const input = payload.value;");let F=Object.create(null),ae=0;for(let U of g.allKeys)F[U]=`key_${ae++}`;v.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let U of g.allKeys){if(U==="__proto__")continue;let Z=F[U],le=typeof U==="symbol"?`syms[${b.indexOf(U)}]`:un(U),ar=`${le} in input`,tn=m[U],ur=tn?._zod?.optin,rn=ur!==void 0,Au=tn?._zod?.optout==="optional";if(v.write(`const ${Z} = ${k(le)};`),rn&&Au){let Eu=ur==="optional"?`${Z}_present`:`${Z}.value !== undefined || ${Z}_present`;v.write(`
|
|
18
|
-
const ${Z}_present = ${ar};
|
|
19
|
-
if (!${Z}.issues.length || ${Z}_present) {
|
|
20
|
-
if (${Z}.issues.length) {${H(Z,le)}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (${Eu}) {
|
|
24
|
-
newResult[${le}] = ${Z}.value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
`)}else if(!rn)v.write(`
|
|
29
|
-
const ${Z}_present = ${ar};
|
|
30
|
-
if (${Z}.issues.length) {${H(Z,le)}
|
|
31
|
-
}
|
|
32
|
-
if (!${Z}_present && !${Z}.issues.length) {
|
|
33
|
-
payload.issues.push({
|
|
34
|
-
code: "invalid_type",
|
|
35
|
-
expected: "nonoptional",
|
|
36
|
-
input: undefined,
|
|
37
|
-
path: [${le}]
|
|
38
|
-
});
|
|
39
|
-
if (ctx && ctx.abortEarly) {
|
|
40
|
-
payload.value = newResult;
|
|
41
|
-
return payload;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (${Z}_present) {
|
|
46
|
-
newResult[${le}] = ${Z}.value;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
`);else if(v.write(`
|
|
50
|
-
if (${Z}.issues.length) {${H(Z,le)}
|
|
51
|
-
}
|
|
52
|
-
`),ur==="defaulted")v.write(`newResult[${le}] = ${Z}.value;`);else v.write(`
|
|
53
|
-
if (${Z}.value !== undefined || ${ar}) {
|
|
54
|
-
newResult[${le}] = ${Z}.value;
|
|
55
|
-
}
|
|
56
|
-
`)}return v.write("payload.value = newResult;"),v.write("return payload;"),v.compile()},s,c=Pe,a=!X.jitless,p=a&&pn.value,d=t.catchall,h;e._zod.parse=(m,g)=>{h??(h=o.value);let b=m.value;if(!c(b))return m.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),m;if(a&&p&&g?.async===!1&&g.jitless!==!0){if(!s)s=i(t.shape);if(m=s(m,g),!d)return m;return Is([],b,m,g,h,e,g?.abortEarly===!0)}return r(m,g)}});function Fi(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter((i)=>!pe(i));if(n.length===1)return t.value=n[0].value,n[0];return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map((i)=>i.issues.map((s)=>fe(s,o,Y())))}),t}var jr=f("$ZodUnion",(e,t)=>{R.init(e,t),S(e,"optin",(o)=>o.def.options.some((n)=>n._zod.optin==="defaulted")?"defaulted":o.def.options.some((n)=>n._zod.optin!==void 0)?"optional":void 0),S(e,"optout",(o)=>o.def.options.some((n)=>n._zod.optout==="optional")?"optional":void 0),S(e,"values",(o)=>{if(o.def.options.every((n)=>n._zod.values))return new Set(o.def.options.flatMap((n)=>Array.from(n._zod.values)));return}),S(e,"pattern",(o)=>{if(o.def.options.every((n)=>n._zod.pattern)){let n=o.def.options.map((i)=>i._zod.pattern);return new RegExp(`^(${n.map((i)=>ct(i.source)).join("|")})$`)}return});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,s=[];for(let c of t.options){let a=c._zod.run({value:o.value,issues:[]},n);if(a instanceof Promise)s.push(a),i=!0;else{if(a.issues.length===0)return a;s.push(a)}}if(!i)return Fi(s,o,e,n);return Promise.all(s).then((c)=>Fi(c,o,e,n))}});function yl(e){let t=new Map;for(let r of e.options){let o=r._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let n of o)if(t.has(n)){if(n!==void 0)throw Error(`Duplicate discriminator value "${String(n)}"`);t.set(n,null)}else t.set(n,r)}return t}var As=f("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,jr.init(e,t);let r=e._zod.parse;S(e,"propValues",(n)=>{let i={},s=0;for(let c of n.def.options){let a=c._zod.propValues;if(!a||Object.keys(a).length===0)throw Error(`Invalid discriminated union option at index "${n.def.options.indexOf(c)}"`);if(a[n.def.discriminator]?.has(void 0))s++;for(let[l,p]of Object.entries(a)){if(!Object.prototype.hasOwnProperty.call(i,l))oe(i,l,new Set);for(let d of p)i[l].add(d)}}if(!n.def.unionFallback&&s>1)i[n.def.discriminator]?.delete(void 0);return i}),t.options.forEach((n,i)=>{let s=Be(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw Error(`Invalid discriminated union option at index "${i}"`)});let o=Fe(()=>yl(t));e._zod.parse=(n,i)=>{let s=n.value;if(!Pe(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let c=s?.[t.discriminator],a=o.value.get(c);if(a&&(c!==void 0||i.direction!=="backward"))return a._zod.run(n,i);if(t.unionFallback||i.direction==="backward")return r(n,i);return n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()).filter((l)=>o.value.get(l)!==null),input:s,path:[t.discriminator],inst:e}),n}}),Es=f("$ZodIntersection",(e,t)=>{R.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),s=t.right._zod.run({value:n,issues:[]},o);if(i instanceof Promise||s instanceof Promise)return Promise.all([i,s]).then(([a,l])=>Bi(r,a,l));return Bi(r,i,s)}});function Tr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(Se(e)&&Se(t)){let r=Object.keys(t),o=Object.keys(e).filter((i)=>r.indexOf(i)!==-1),n={...e,...t};if(Object.prototype.hasOwnProperty.call(n,"__proto__"))delete n.__proto__;for(let i of o){if(i==="__proto__")continue;let s=Tr(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n[i]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],s=Tr(n,i);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Bi(e,t,r){let o=new Map,n,i=new Map,s=(l,p)=>{let d;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),d=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let h=String(l.path[0]);if(!i.has(h))i.set(h,l);d=[h]}else return!1;for(let h of d){if(!o.has(h))o.set(h,{});o.get(h)[p]=!0}return!0};for(let l of t.issues)if(!s(l,"l"))e.issues.push(l);for(let l of r.issues)if(!s(l,"r"))e.issues.push(l);let c=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(c.length){let l=n?c.filter((p)=>n.keys.includes(p)):[];if(l.length)e.issues.push({...n,keys:l});for(let p of c)if(!l.includes(p)&&i.has(p))e.issues.push(i.get(p))}let a=Tr(t.value,r.value);if(!a.valid){if(pe(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`)}return e.value=a.data,e}var Ns=f("$ZodRecord",(e,t)=>{R.init(e,t);let r=X.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Se(i))return o.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),o;let s=[],c=t.keyType._zod.values;if(c&&!t.partial){o.value=r?r.alloc(e,o,{},n):{};let a=new Set;for(let p of c)if(typeof p==="string"||typeof p==="number"||typeof p==="symbol"){if(a.add(typeof p==="number"?p.toString():p),p==="__proto__")continue;let d=t.keyType._zod.run({value:p,issues:[]},n);if(d instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(d.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map((g)=>fe(g,n,Y())),input:p,path:[p],inst:e});continue}let h=d.value;if(h==="__proto__")continue;let m=t.valueType._zod.run({value:i[p],issues:[]},n);if(m instanceof Promise)s.push(m.then((g)=>{if(g.issues.length)o.issues.push(...ye(p,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...ye(p,m.issues));o.value[h]=m.value}}let l;for(let p in i)if(!a.has(p))if(t.mode==="loose"){if(p==="__proto__")continue;o.value[p]=i[p]}else l=l??[],l.push(p);if(l&&l.length>0)o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}else{o.value=r?r.alloc(e,o,{},n):{};let a;for(let l of Reflect.ownKeys(i)){if(l==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(i,l))continue;let p=t.keyType._zod.run({value:l,issues:[]},n);if(p instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof l==="string"&&Ke.test(l)&&p.issues.length){let g=t.keyType._zod.run({value:Number(l),issues:[]},n);if(g instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(g.issues.length===0)p=g}if(p.issues.length){if(t.mode==="loose")o.value[l]=i[l];else if(c)a=a??[],a.push(l);else o.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map((g)=>fe(g,n,Y())),input:l,path:[l],inst:e});continue}let h=p.value;if(h==="__proto__")continue;let m=t.valueType._zod.run({value:i[l],issues:[]},n);if(m instanceof Promise)s.push(m.then((g)=>{if(g.issues.length)o.issues.push(...ye(l,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...ye(l,m.issues));o.value[h]=m.value}}if(a&&a.length>0)o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a,continue:!0})}if(s.length)return Promise.all(s).then(()=>o);return o}});var js=f("$ZodEnum",(e,t)=>{R.init(e,t);let r=Ue(t.entries),o=new Set(r);e._zod.values=o,S(e,"pattern",(n)=>{let i=Ue(n.def.entries).filter((s)=>fn.has(typeof s));return new RegExp(i.length?`^(${i.map((s)=>xe(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(n,i)=>{let s=n.value;if(o.has(s))return n;return n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),Ls=f("$ZodLiteral",(e,t)=>{R.init(e,t);let r=new Set(t.values);e._zod.values=r,S(e,"pattern",(o)=>{let n=o.def.values;return new RegExp(n.length?`^(${n.map((i)=>typeof i==="string"?xe(i):i?xe(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,n)=>{let i=o.value;if(r.has(i))return o;return o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}});var Ds=f("$ZodTransform",(e,t)=>{R.init(e,t),e._zod.optin="optional",X.memoizer?.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Je(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then((s)=>(r.value=s,r));if(n instanceof Promise)throw new de;return r.value=n,r}});function Ji(e,t){return e.value=t.issues.length?void 0:t.value,e}var Lr=f("$ZodOptional",(e,t)=>{R.init(e,t),S(e,"optin",(r)=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",S(e,"values",(r)=>{let o=r.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),S(e,"pattern",(r)=>{let o=r.def.innerType._zod.pattern;return o?new RegExp(`^(${ct(o.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let n=t.innerType._zod.run({value:r.value,issues:[]},o);if(n instanceof Promise)return n.then((i)=>Ji(r,i));return Ji(r,n)}return t.innerType._zod.run(r,o)}}),Us=f("$ZodExactOptional",(e,t)=>{Lr.init(e,t),S(e,"values",(r)=>r.def.innerType._zod.values),S(e,"pattern",(r)=>r.def.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Ms=f("$ZodNullable",(e,t)=>{R.init(e,t),S(e,"optin",(r)=>r.def.innerType._zod.optin),S(e,"optout",(r)=>r.def.innerType._zod.optout),S(e,"pattern",(r)=>{let o=r.def.innerType._zod.pattern;return o?new RegExp(`^(${ct(o.source)}|null)$`):void 0}),S(e,"values",(r)=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>{if(r.value===null)return r;return t.innerType._zod.run(r,o)}}),Fs=f("$ZodDefault",(e,t)=>{R.init(e,t),e._zod.optin="defaulted",S(e,"values",(r)=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>qi(i,t));return qi(n,t)}});function qi(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var Bs=f("$ZodPrefault",(e,t)=>{R.init(e,t),e._zod.optin="defaulted",S(e,"values",(r)=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)r.value=t.defaultValue;return t.innerType._zod.run(r,o)}}),Js=f("$ZodNonOptional",(e,t)=>{R.init(e,t),S(e,"values",(r)=>{let o=r.def.innerType._zod.values;return o?new Set([...o].filter((n)=>n!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>Vi(i,e));return Vi(n,e)}});function Vi(e,t){if(!e.issues.length&&e.value===void 0)e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t});return e}function Ki(e,t,r,o){if(!t.issues.length){if(e.value=t.value,t.memo)e.memo=!0;return e}return e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map((n)=>fe(n,o,Y()))},input:e.value}),e}var qs=f("$ZodCatch",(e,t)=>{R.init(e,t),S(e,"optin",(r)=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),S(e,"optout",(r)=>r.def.innerType._zod.optout),S(e,"values",(r)=>r.def.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run({value:r.value,issues:[]},o);if(n instanceof Promise)return n.then((i)=>Ki(r,i,t,o));return Ki(r,n,t,o)}});var Dr=f("$ZodPipe",(e,t)=>{R.init(e,t),S(e,"values",(r)=>r.def.in._zod.values),S(e,"optin",(r)=>r.def.in._zod.optin),S(e,"optout",(r)=>r.def.out._zod.optout),S(e,"propValues",(r)=>r.def.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);if(i instanceof Promise)return i.then((s)=>yt(s,t.in,o));return yt(i,t.in,o)}let n=t.in._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>yt(i,t.out,o));return yt(n,t.out,o)}});function yt(e,t,r){if(e.issues.some((o)=>o.code!=="unrecognized_keys"))return e.aborted=!0,e;return t._zod.run({value:e.value,issues:e.issues},r)}var Vs=f("$ZodPreprocess",(e,t)=>{Dr.init(e,t)}),Ks=f("$ZodReadonly",(e,t)=>{R.init(e,t),S(e,"propValues",(r)=>r.def.innerType._zod.propValues),S(e,"values",(r)=>r.def.innerType._zod.values),S(e,"optin",(r)=>r.def.innerType?._zod?.optin),S(e,"optout",(r)=>r.def.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);if(n instanceof Promise)return n.then(Wi);return Wi(n)}});function Wi(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var Ws=f("$ZodCustom",(e,t)=>{q.init(e,t),R.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=(r)=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then((i)=>Gi(i,r,o,e));Gi(n,r,o,e);return}});function Gi(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};if(o._zod.def.params)n.params=o._zod.def.params;t.issues.push(ke(n))}}class Hs extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var Mr="~memo",Gs=[];function Xs(e){return e!==null&&typeof e==="object"}function Ur(e){return e.map((t)=>t.path?{...t,path:t.path.slice()}:{...t})}var Ys=new WeakMap,Ge=0,Rt=1,He=2;function Ct(e,t,r){let o=Ys.get(e);if(o!==void 0)return o?He:Ge;if(t.has(e))return He;t.add(e);let n=Ge,i=(p)=>{if(n!==He&&p?._zod){let d=Ct(p,t,r);if(d>n)n=d}},s=(p,d)=>{let h=Ge;for(let m of Reflect.ownKeys(p)){let g=Object.getOwnPropertyDescriptor(p,m);if(d&&!g.enumerable)continue;let b=g.get?Rt:g.value?._zod?Ct(g.value,t,r):Ge;if(b>h)h=b}return h},c=(p)=>{if(p>n)n=p},a=e._zod.def,l=a.type;switch(l){case"object":{let p=Be(a);c(p?s(p,!0):Rt),i(a.catchall);break}case"array":i(a.element);break;case"tuple":for(let p of a.items)i(p);i(a.rest);break;case"record":case"map":i(a.keyType),i(a.valueType);break;case"set":i(a.valueType);break;case"union":for(let p of a.options)i(p);break;case"intersection":i(a.left),i(a.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(a.innerType);break;case"pipe":i(a.in),i(a.out);break;case"function":i(a.input),i(a.output);break;case"lazy":{let p=a._cachedInner??(r?e._zod.innerType:void 0);c(p?Ct(p,t,!1):Rt);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let p in a){let d=Object.getOwnPropertyDescriptor(a,p);if(!d||d.get)continue;let h=d.value;if(!h||typeof h!=="object")continue;if(h._zod)i(h);else if(Array.isArray(h))for(let m of h)i(m)}}return t.delete(e),bl(e,n)}function bl(e,t){if(t!==Rt)Ys.set(e,t===He);return t}function vl(e,t){let r=e.buckets.get(t);if(!r)r=new WeakMap,e.buckets.set(t,r);return r}var Zt,Ot=[],wl={alloc(e,t,r){let o=Zt;if(!o)return r;Zt=void 0;let n={value:r,issues:null};return o.set(t.value,n),Ot.push(n),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,o=(n,i)=>{if(i.direction!=="backward"&&$l(i,n.value))throw new Hs;return r(n,i)};if(e._zod.parse=o,e._zod.run===r)e._zod.run=o})},attach(e){var t;let r,o=!1,n,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,c=(a,l)=>{if(r===void 0){let k=Ct(e,new Set,!1);if(k===Ge){if(e._zod.parse=s,e._zod.run===c)e._zod.run=s;return s(a,l)}if(k===He||o)r=!0;else o=!0}let p=a.value;if(!Xs(p))return s(a,l);let d=l[Mr];if(!d)d={buckets:new WeakMap,backEdges:void 0},l[Mr]=d;let h;if(n===l)h=i;else h=vl(d,e),n=l,i=h;let m=h.get(p);if(m){if(a.value=m.value,m.issues){if(m.issues.length)a.issues.push(...Ur(m.issues))}else a.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(m.value);return a}Zt=h;let g=Ot.length,b=s(a,l);Zt=void 0;let v=Ot.length>g?Ot.pop():void 0;if(b instanceof Promise)return b.then((k)=>{if(v)v.issues=k.issues.length?Ur(k.issues):Gs;return k});if(v)v.issues=b.issues.length?Ur(b.issues):Gs;return b};if(e._zod.parse=c,e._zod.run===s)e._zod.run=c})}};function Fr(){return wl}function $l(e,t){let r=e[Mr]?.backEdges;return r!==void 0&&Xs(t)&&r.has(t)}var Sl=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};function n(i,s){if(i==="number"&&typeof s==="number"&&!Number.isFinite(s))return String(s);return o[i]??i}return(i)=>{switch(i.code){case"invalid_type":{let s=n(i.expected),c=_n(i.input),a=n(c,i.input);return`Invalid input: expected ${s}, received ${a}`}case"invalid_value":if(i.values.length===1)return`Invalid input: expected ${hr(i.values[0])}`;return`Invalid option: expected one of ${fr(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",c=t(i.origin);if(c)return`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${c.unit??"elements"}`;return`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",c=t(i.origin);if(c)return`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${c.unit}`;return`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;if(s.format==="starts_with")return`Invalid string: must start with "${s.prefix}"`;if(s.format==="ends_with")return`Invalid string: must end with "${s.suffix}"`;if(s.format==="includes")return`Invalid string: must include "${s.includes}"`;if(s.format==="regex")return`Invalid string: must match pattern ${s.pattern}`;return`Invalid ${r[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${fr(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":if(i.options&&Array.isArray(i.options)&&i.options.length>0)return`Invalid discriminator value. Expected ${i.options.map((c)=>`'${c}'`).join(" | ")}`;if(i.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Br(){return{localeError:Sl()}}var Qs;class ec{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&typeof r==="object"&&"id"in r)this._idmap.set(r.id,e);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);if(t&&typeof t==="object"&&"id"in t)this._idmap.delete(t.id);return this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let o={...r,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function tc(){return new ec}(Qs=globalThis).__zod_globalRegistry??(Qs.__zod_globalRegistry=tc());var be=globalThis.__zod_globalRegistry;function Jr(e){if(e.checks)e.checks=[...e.checks];return e}function rc(e,t){return new e(Jr({type:"string",...x(t)}))}function oc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function nc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function ic(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function sc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function cc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function ac(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function Vr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function uc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function lc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function pc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function fc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function dc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function mc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function hc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function gc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function _c(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function zc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function xc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function yc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function bc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function vc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function wc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}function It(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function Kr(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function Wr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function Xr(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function $c(e,t){return new e(Jr({type:"number",checks:[],...x(t)}))}function Sc(e,t){return new e(Jr({type:"number",coerce:!0,checks:[],...x(t)}))}function kc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function Pc(e,t){return new e({type:"boolean",...x(t)})}function Zc(e,t){return new e({type:"null",...x(t)})}function Oc(e){return new e({type:"any"})}function Rc(e){return new e({type:"unknown"})}function Cc(e,t){return new e({type:"never",...x(t)})}function Tt(e,t){return new Rr({check:"less_than",...x(t),value:e,inclusive:!1})}function Xe(e,t){return new Rr({check:"less_than",...x(t),value:e,inclusive:!0})}function At(e,t){return new Cr({check:"greater_than",...x(t),value:e,inclusive:!1})}function Ye(e,t){return new Cr({check:"greater_than",...x(t),value:e,inclusive:!0})}function Et(e,t){return new ki({check:"multiple_of",...x(t),value:e})}function Nt(e,t){return new Zi({check:"max_length",...x(t),maximum:e})}function Oe(e,t){return new Oi({check:"min_length",...x(t),minimum:e})}function jt(e,t){return new Ri({check:"length_equals",...x(t),length:e})}function Yr(e,t){return new Ci({check:"string_format",format:"regex",...x(t),pattern:e})}function Qr(e){return new Ii({check:"string_format",format:"lowercase",...x(e)})}function eo(e){return new Ti({check:"string_format",format:"uppercase",...x(e)})}function to(e,t){return new Ai({check:"string_format",format:"includes",...x(t),includes:e})}function ro(e,t){return new Ei({check:"string_format",format:"starts_with",...x(t),prefix:e})}function oo(e,t){return new Ni({check:"string_format",format:"ends_with",...x(t),suffix:e})}function ve(e){return new ji({check:"overwrite",tx:e})}function no(e){return ve((t)=>t.normalize(e))}function io(){return ve((e)=>e.trim())}function so(){return ve((e)=>e.toLowerCase())}function co(){return ve((e)=>e.toUpperCase())}function ao(){return ve((e)=>ln(e))}function Ic(e,t,r){return new e({type:"array",element:t,...x(r)})}function Tc(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Ac(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Ec(e,t){let r=kl((o)=>(o.addIssue=(n)=>{if(typeof n==="string")o.issues.push(ke(n,o.value,r._zod.def));else{let i=n;if(i.fatal)i.continue=!1;if(i.code??(i.code="custom"),!("input"in i))i.input=o.value;i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(ke(i))}},e(o.value,o)),t);return r}function kl(e,t){let r=new q({check:"custom",...x(t)});return r._zod.check=e,r}function Qe(e,...t){for(let r of t)for(let o of Reflect.ownKeys(r))if(Object.prototype.propertyIsEnumerable.call(r,o))oe(e,o,r[o]);return e}function lo(e){let t=e?.target??"draft-2020-12";if(t==="draft-4")t="draft-04";if(t==="draft-7")t="draft-07";return{processors:e.processors??{},metadataRegistry:e?.metadata??be,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function _e(e,t,r,o,n){let i=typeof t.unrepresentable==="function"?t.unrepresentable({zodSchema:e,path:o.path,message:n}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw Error(n);return Object.assign(r,i),!0}function D(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i){if(i.count++,r.schemaPath.includes(e))i.cycle=r.path;return i.schema}let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let c=e._zod.toJSONSchema?.();if(c)s.schema=c;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,p);else{let h=s.schema,m=t.processors[n.type];if(!m)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,h,p)}let d=e._zod.parent;if(d){if(!s.ref)s.ref=d;D(d,t,p),t.seen.get(d).isParent=!0}}let a=t.metadataRegistry.get(e);if(a)Qe(s.schema,a);if(t.io==="input"&&G(e))delete s.schema.examples,delete s.schema.default;if(t.io==="input"&&"_prefault"in s.schema)(o=s.schema).default??(o.default=s.schema._prefault);return delete s.schema._prefault,t.seen.get(e).schema}function Nc(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function po(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let o=new Map;for(let s of e.seen.entries()){let c=e.metadataRegistry.get(s[0])?.id;if(c){let a=o.get(c);if(a&&a!==s[0])throw Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(c,s[0])}}let n=(s)=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,h=e.external.uri??((g)=>g);if(d)return{ref:h(d)};let m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${h("__shared")}#/${c}/${Nc(m)}`}}let a="#",l=`${a}/${c}/`;if(s[1]===r&&!s[1].schema.id)return{ref:a};let p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:l+Nc(p)}},i=(s)=>{if(s[1].schema.$ref)return;let c=s[1],{ref:a,defId:l}=n(s);if(c.def={...c.schema},l)c.defId=l;let p=c.schema;for(let d in p)delete p[d];p.$ref=a};if(e.cycles==="throw")for(let s of e.seen.entries()){let c=s[1];if(c.cycle)throw Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
|
|
57
|
-
|
|
58
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let c=s[1];if(t===s[0]){i(s);continue}if(e.external){let l=e.external.registry.get(s[0])?.id;if(t!==s[0]&&l){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(c.cycle){i(s);continue}if(c.count>1){if(e.reused==="ref")i(s)}}if(e.external)e.sharedDefsExtractedFor=e.external}function Dc(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let o of t){if(!o||typeof o!=="object")return;Dc(o);let n=Object.keys(o);if(n.length!==1||n[0]!=="type")return;let i=o.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!=="string")return;if(!r.includes(s))r.push(s)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var Uc=new Set(["type","properties","required","additionalProperties"]),jc=["oneOf","anyOf"];function Lc(e){let t=e.additionalProperties;if(t===void 0||t===!1||typeof t!=="object"||t===null)return null;return Object.keys(t).length?t:null}function uo(e){let t=[];for(let i of e){if(typeof i!=="object"||i.type!=="object")return null;for(let s in i)if(!Uc.has(s))return null;t.push(i)}let r={},o=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let c=[];for(let l of t){let p=l.properties?.[s]??Lc(l);if(p===null||p===void 0)continue;if(!c.some((d)=>JSON.stringify(d)===JSON.stringify(p)))c.push(p)}let a=c.length===1?c[0]:uo(c)??{allOf:c};oe(r,s,a)}for(let s of i.required??[])o.add(s)}let n={type:"object",properties:r};if(o.size)n.required=[...o];if(t.every((i)=>i.additionalProperties===!1))n.additionalProperties=!1;else{let i=[];for(let s of t){let c=Lc(s);if(c&&!i.some((a)=>JSON.stringify(a)===JSON.stringify(c)))i.push(c)}if(i.length===1)n.additionalProperties=i[0];else if(i.length>1)n.additionalProperties={allOf:i}}return n}function Pl(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of Uc)if(n in e)return;let r=t.filter((n)=>jc.some((i)=>Array.isArray(n[i]))),o=null;if(!r.length)o=uo(t);else{let n=r[0],i=jc.find((a)=>Array.isArray(n[a]));if(Object.keys(n).length!==1)return;let s=t.filter((a)=>a!==n),c=n[i].map((a)=>uo([...s,a]));if(c.some((a)=>!a))return;o={[i]:c}}if(!o)return;delete e.allOf,Qe(e,o)}function fo(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let o=(c)=>{let a=e.seen.get(c);if(a.ref===null)return;let l=a.def??a.schema,p={...l},d=a.ref;if(a.ref=null,d){o(d);let m=e.seen.get(d),g=m.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"))l.allOf=l.allOf??[],l.allOf.push(g);else Qe(l,g);if(Qe(l,p),c._zod.parent===d)for(let v in l){if(v==="$ref"||v==="allOf")continue;if(!(v in p))delete l[v]}if(g.$ref&&m.def)for(let v in l){if(v==="$ref"||v==="allOf")continue;if(v in m.def&&JSON.stringify(l[v])===JSON.stringify(m.def[v]))delete l[v]}}let h=c._zod.parent;if(h&&h!==d){o(h);let m=e.seen.get(h);if(m?.schema.$ref){if(l.$ref=m.schema.$ref,m.def)for(let g in l){if(g==="$ref"||g==="allOf")continue;if(g in m.def&&JSON.stringify(l[g])===JSON.stringify(m.def[g]))delete l[g]}}}e.override({zodSchema:c,jsonSchema:l,path:a.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let c of[...e.seen.entries()].reverse())o(c[0]);if(e.target!=="openapi-3.0")for(let c of e.seen.entries())Dc(c[1].def??c[1].schema);for(let c of e.deferred)c();if(e.intersections.length){let c=new Map;for(let a of e.seen.values())for(let l of[a.schema,a.def]){let p=l?.allOf;if(!Array.isArray(p))continue;let d=c.get(p);if(d)d.push(l);else c.set(p,[l])}for(let a of e.intersections)for(let l of c.get(a)??[])Pl(l)}}let n={};if(e.target==="draft-2020-12")n.$schema="https://json-schema.org/draft/2020-12/schema";else if(e.target==="draft-07")n.$schema="http://json-schema.org/draft-07/schema#";else if(e.target==="draft-04")n.$schema="http://json-schema.org/draft-04/schema#";else if(e.target==="openapi-3.0");if(e.external?.uri){let c=e.external.registry.get(t)?.id;if(!c)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(c)}Qe(n,r.defId?r.schema:r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;if(i!==void 0&&n.id===i)delete n.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let c of e.seen.entries()){let a=c[1];if(a.def&&a.defId){if(a.def.id===a.defId)delete a.def.id;oe(s,a.defId,a.def)}}if(e.external)e.sharedEmitDoneFor=e.external;if(e.external);else if(Object.keys(s).length>0)if(e.target==="draft-2020-12")n.$defs=s;else n.definitions=s;try{let c=JSON.parse(JSON.stringify(n));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:et(t,"input",e.processors),output:et(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch(c){throw Error("Error converting schema to JSON.")}}function G(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return G(o.element,r);if(o.type==="set")return G(o.valueType,r);if(o.type==="lazy")return G(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault"||o.type==="catch")return G(o.innerType,r);if(o.type==="intersection")return G(o.left,r)||G(o.right,r);if(o.type==="record"||o.type==="map")return G(o.keyType,r)||G(o.valueType,r);if(o.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return G(o.in,r)||G(o.out,r)}if(o.type==="object"){for(let n in o.shape)if(G(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(G(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(G(n,r))return!0;if(o.rest&&G(o.rest,r))return!0;return!1}return!1}var Mc=(e,t={})=>(r)=>{let o=lo({...r,processors:t});return D(e,o),po(o,e),fo(o,e)},et=(e,t,r={})=>(o)=>{let{libraryOptions:n,target:i}=o??{},s=lo({...n??{},target:i,io:t,processors:r});return D(e,s),po(s,e),fo(s,e)};var Re=(e,t,r)=>{if(e[t]===void 0||r>e[t])e[t]=r},Ce=(e,t,r)=>{if(e[t]===void 0||r<e[t])e[t]=r},Fc=(e,t)=>{Re(e,"minimum",t),Ce(e,"maximum",t)},Vc=(e,t)=>{if(e.multipleOf??(e.multipleOf=[]),!e.multipleOf.includes(t))e.multipleOf.push(t)},Kc=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Wc=(e,t)=>{e.mime=e.mime?e.mime.filter((r)=>t.includes(r)):[...t]},Gc=(e,t)=>{if(e.format=t,t.includes("int"))e.isInt=!0},Bc=(e,t)=>Re(e,"minimum",t.minimum),Jc=(e,t)=>Ce(e,"maximum",t.maximum),qc=(e)=>(t,r)=>{Gc(t,r.format);let[o,n]=e[r.format];Re(t,"minimum",o),Ce(t,"maximum",n)},Zl={greater_than:(e,t)=>Re(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Ce(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Vc(e,t.value),number_format:qc(at),bigint_format:qc(gr),min_length:Bc,max_length:Jc,length_equals:(e,t)=>Fc(e,t.length),min_size:Bc,max_size:Jc,size_equals:(e,t)=>Fc(e,t.size),string_format:(e,t)=>{if(Gc(e,t.format),t.pattern)Kc(e,t.pattern);if(t.format==="base64"||t.format==="base64url")e.contentEncoding=t.format;if(t.local||t.precision===-1)e.laxFormat=!0},mime_type:(e,t)=>Wc(e,t.mime)};function ie(e){let t={},r=e._zod.def,o=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let i of o)Zl[i._zod.def.check]?.(t,i._zod.def);let n=e._zod.bag;if(n.minimum!==void 0)Re(t,"minimum",n.minimum);if(n.exclusiveMinimum!==void 0)Re(t,"exclusiveMinimum",n.exclusiveMinimum);if(n.maximum!==void 0)Ce(t,"maximum",n.maximum);if(n.exclusiveMaximum!==void 0)Ce(t,"exclusiveMaximum",n.exclusiveMaximum);if(n.multipleOf!==void 0)Vc(t,n.multipleOf);if(n.format!==void 0){if(t.format??(t.format=n.format),n.format.includes("int"))t.isInt=!0}if(n.mime)Wc(t,n.mime);for(let i of n.patterns??[])Kc(t,i);return t}var Ol={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Rl=new Map([[Er,si],[St,ci]]),Hc=(e)=>Rl.get(e)??e,Xc=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:c,patterns:a,contentEncoding:l,laxFormat:p}=ie(e);if(typeof i==="number")n.minLength=i;if(typeof s==="number")n.maxLength=s;if(c){if(n.format=Ol[c]??c,n.format==="")delete n.format;if(c==="time"||p)delete n.format}if(l)n.contentEncoding=l;if(a&&a.size>0){let d=[...a].map(Hc);if(d.length===1)n.pattern=d[0].source;else if(d.length>1)n.allOf=[...d.map((h)=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))]}},Yc=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,multipleOf:c,exclusiveMaximum:a,exclusiveMinimum:l,isInt:p}=ie(e);n.type=p?"integer":"number";let d=typeof l==="number"&&l>=(i??Number.NEGATIVE_INFINITY),h=typeof a==="number"&&a<=(s??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";if(d)if(m)n.minimum=l,n.exclusiveMinimum=!0;else n.exclusiveMinimum=l;else if(typeof i==="number")n.minimum=i;if(h)if(m)n.maximum=a,n.exclusiveMaximum=!0;else n.exclusiveMaximum=a;else if(typeof s==="number")n.maximum=s;if(c){let g=new Set;for(let k of c)if(Number.isFinite(k)&&k!==0)g.add(Math.abs(k));else _e(e,t,n,o,`A multipleOf divisor of ${k} cannot be represented in JSON Schema`);let[b,...v]=g;if(b!==void 0)n.multipleOf=b;if(v.length)n.allOf=[...n.allOf??[],...v.map((k)=>({multipleOf:k}))]}},Qc=(e,t,r,o)=>{r.type="boolean"};var ea=(e,t,r,o)=>{if(t.target==="openapi-3.0")r.type="string",r.nullable=!0,r.enum=[null];else r.type="null"};var ta=(e,t,r,o)=>{r.not={}},ra=(e,t,r,o)=>{},oa=(e,t,r,o)=>{};var na=(e,t,r,o)=>{let n=e._zod.def,i=Ue(n.entries);if(i.length===0){r.not={};return}if(i.every((s)=>typeof s==="number"))r.type="number";if(i.every((s)=>typeof s==="string"))r.type="string";r.enum=i},ia=(e,t,r,o)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let i=[];for(let s of n.values)if(s===void 0){if(_e(e,t,r,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s==="bigint"){if(_e(e,t,r,o,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length===0);else if(i.length===1){let s=i[0];if(r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0")r.enum=[s];else r.const=s}else{if(i.every((s)=>typeof s==="number"))r.type="number";if(i.every((s)=>typeof s==="string"))r.type="string";if(i.every((s)=>typeof s==="boolean"))r.type="boolean";if(i.every((s)=>s===null))r.type="null";r.enum=i}};var sa=(e,t,r,o)=>{_e(e,t,r,o,"Custom types cannot be represented in JSON Schema")};var ca=(e,t,r,o)=>{_e(e,t,r,o,"Transforms cannot be represented in JSON Schema")};var aa=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:c}=ie(e);if(typeof s==="number")n.minItems=s;if(typeof c==="number")n.maxItems=c;n.type="array",n.items=D(i.element,t,{...o,path:[...o.path,"items"]})};function Lt(e){let t=e._zod.def;if(t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform"))return Lt(t.out);if(t.type==="catch")return Lt(t.innerType);return e._zod.optin}var ua=(e,t,r,o)=>{let n=r,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&_e(e,t,n,o,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let l in s)oe(n.properties,l,D(s[l],t,{...o,path:[...o.path,"properties",l]}));let a=[];for(let l of Object.keys(s)){let p=i.shape[l];if(t.io==="input"?Lt(p)===void 0:p._zod.optout===void 0)a.push(l)}if(a.length>0)n.required=a;if(i.catchall?._zod.def.type==="never")n.additionalProperties=!1;else if(!i.catchall){if(t.io==="output")n.additionalProperties=!1}else if(i.catchall)n.additionalProperties=D(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})},la=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,s=n.options.map((c,a)=>D(c,t,{...o,path:[...o.path,i?"oneOf":"anyOf",a]}));if(i)r.oneOf=s;else r.anyOf=s},pa=(e,t,r,o)=>{let n=e._zod.def,i=D(n.left,t,{...o,path:[...o.path,"allOf",0]}),s=D(n.right,t,{...o,path:[...o.path,"allOf",1]}),c=(l)=>("allOf"in l)&&Object.keys(l).length===1,a=[...c(i)?i.allOf:[i],...c(s)?s.allOf:[s]];r.allOf=a,t.intersections.push(a)};function mo(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let g=e.get(t)?.def;if(!g)return t;let b=mo(e,g,r);return b===g?t:b}for(let g of["anyOf","oneOf"]){let b=t[g];if(!Array.isArray(b))continue;let v=b.map((k)=>mo(e,k,r));if(v.some((k,H)=>k!==b[H]))t={...t,[g]:v}}let o=Array.isArray(t.type)?t.type:[t.type],n=!o.includes("string")&&o.some((g)=>g==="number"||g==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!i?.some((g)=>typeof g==="number"))return t;let{minimum:s,maximum:c,exclusiveMinimum:a,exclusiveMaximum:l,multipleOf:p,format:d,id:h,...m}=t;if(m.enum)m.enum=m.enum.map((g)=>typeof g==="number"?String(g):g);else if(typeof m.const==="number")m.const=String(m.const);if(!n)return m;if(m.type="string",!i)m.pattern=(o.includes("number")?Ke:Zr).source;return m}var ho=new WeakMap;function Cl(e){let t=new Map;for(let o of e.seen.values())if(o.def&&!t.has(o.schema))t.set(o.schema,o);let r=new Map;for(let o of ho.get(e)??[]){let n=e.seen.get(o),i=(n?.def??n?.schema)?.propertyNames;if(!i||i===!0||r.has(i))continue;let s=mo(t,i,new Set);if(s!==i)r.set(i,s)}if(!r.size)return;for(let o of e.seen.values())for(let n of[o.schema,o.def]){let i=n&&r.get(n.propertyNames);if(i)n.propertyNames=i}}var fa=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=ie(s).patterns;if(i.mode==="loose"&&c&&c.size>0){let p=D(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)oe(n.patternProperties,Hc(d).source,p)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=D(i.keyType,t,{...o,path:[...o.path,"propertyNames"]});let p=ho.get(t);if(!p)p=[],ho.set(t,p),t.deferred.push(()=>Cl(t));p.push(e)}n.additionalProperties=D(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let a=s._zod.values,l=t.io==="input"&&Lt(i.valueType)!==void 0;if(a&&!i.partial&&!l){let p=[...a].filter((d)=>typeof d==="string"||typeof d==="number");if(p.length>0)n.required=p.map(String)}},da=(e,t,r,o)=>{let n=e._zod.def,i=D(n.innerType,t,o),s=t.seen.get(e);if(t.target==="openapi-3.0")s.ref=n.innerType,r.nullable=!0;else r.anyOf=[i,{type:"null"}]},ma=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},go=Symbol();function ha(e,t,r,o,n){let i=!1,s=JSON.stringify(e,(c,a)=>{if(typeof a!=="bigint")return a;return i=!0,null});if(!i)return JSON.parse(s);return _e(t,r,o,n,"BigInt defaults cannot be represented in JSON Schema"),go}var ga=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s=ha(n.defaultValue,e,t,r,o);if(s!==go)r.default=s},_a=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);if(i.ref=n.innerType,t.io!=="input")return;let s=ha(n.defaultValue,e,t,r,o);if(s!==go)r._prefault=s},za=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{_e(e,t,r,o,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},xa=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?n.out:n.in:n.out;D(s,t,o);let c=t.seen.get(e);c.ref=s},ya=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0};var zo=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType};var ba=new WeakSet([Object.prototype,Error.prototype]);function Dt(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let o=r(this);return Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0})}})}var Ul=(e,t)=>{Sn.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);if(ba.has(r))return;ba.add(r),Dt(r,"format",(o)=>(n)=>wr(o,n)),Dt(r,"flatten",(o)=>(n)=>vr(o,n)),Dt(r,"addIssue",(o)=>(n)=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Me,2)}),Dt(r,"addIssues",(o)=>(n)=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Me,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var te=f("ZodError",Ul,void 0,{Parent:Error});var va=gt(te),wa=_t(te),$a=qe(te),Sa=zt(te),ka=Tn(te),Pa=An(te),Za=En(te),Oa=jn(te),Ra=Un(te),Ca=Fn(te),Ia=Bn(te),Ta=Jn(te);function Fl(){if(!X.localeError)Y(Br())}function Mt(){if(!X.memoizer)Y({memoizer:Fr()})}var A=f("ZodType",(e,t)=>(Fl(),R.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ee(t,{checks:[...t.checks??[],...e.map((r)=>typeof r==="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ue(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Op(e,t))},superRefine(e,t){return this.check(Rp(e,t))},overwrite(e){return this.check(ve(e))},optional(){return j(this)},exactOptional(){return _p(this)},nullable(){return Na(this)},nullish(){return j(Na(this))},nonoptional(e){return wp(this,e)},array(){return _(this)},or(e){return E([this,e])},and(e){return Jt(this,e)},transform(e){return ja(this,Ha(e))},default(e){return yp(this,e)},prefault(e){return vp(this,e)},catch(e){return Sp(this,e)},pipe(e){return ja(this,e)},readonly(){return Zp(this)},describe(e){let t=this.clone();return be.add(t,{description:e}),t},meta(...e){if(e.length===0)return be.get(this);let t=this.clone();return be.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get "~standard"(){return dt(this,"~standard",{...Ar(this),jsonSchema:{input:et(this,"input"),output:et(this,"output")}})},set "~standard"(e){he(this,"~standard",e)},parse:function e(t,r){return va(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await wa(this,t,r,{callee:e})},safeParse(e,t){return $a(this,e,t)},async safeParseAsync(e,t){return Sa(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){he(this,"spa",e)},validate(e,t){return $r(this,e,t)},validateAsync(e,t){return Sr(this,e,t)},encode:function e(t,r){return ka(this,t,r,{callee:e})},decode:function e(t,r){return Pa(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await Za(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await Oa(this,t,r,{callee:e})},safeEncode(e,t){return Ra(this,e,t)},safeDecode(e,t){return Ca(this,e,t)},async safeEncodeAsync(e,t){return Ia(this,e,t)},async safeDecodeAsync(e,t){return Ta(this,e,t)},toJSONSchema(e){return Mc(this,{})(e)},get description(){return be.get(this)?.description},get _def(){return this._zod.def}}),La=f("_ZodString",(e,t)=>{wt.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xc(e,r,o,n)},xn({format:(e)=>ie(e).format??null,minLength:(e)=>ie(e).minimum??null,maxLength:(e)=>ie(e).maximum??null},{regex(...e){return this.check(Yr(...e))},includes(...e){return this.check(to(...e))},startsWith(...e){return this.check(ro(...e))},endsWith(...e){return this.check(oo(...e))},min(...e){return this.check(Oe(...e))},max(...e){return this.check(Nt(...e))},length(...e){return this.check(jt(...e))},nonempty(...e){return this.check(Oe(1,...e))},lowercase(e){return this.check(Qr(e))},uppercase(e){return this.check(eo(e))},trim(){return this.check(io())},normalize(...e){return this.check(no(...e))},toLowerCase(){return this.check(so())},toUpperCase(){return this.check(co())},slugify(){return this.check(ao())}})),Da=f("ZodString",(e,t)=>{wt.init(e,t),La.init(e,t)},{email(e){return this.check(oc(Bl,e))},url(e){return this.check(Vr(Ba,e))},jwt(e){return this.check(wc(ip,e))},emoji(e){return this.check(uc(ql,e))},guid(e){return this.check(nc(Jl,e))},uuid(e){return this.check(ic(Ut,e))},uuidv4(e){return this.check(sc(Ut,e))},uuidv6(e){return this.check(cc(Ut,e))},uuidv7(e){return this.check(ac(Ut,e))},nanoid(e){return this.check(lc(Vl,e))},cuid(e){return this.check(pc(Kl,e))},cuid2(e){return this.check(fc(Wl,e))},ulid(e){return this.check(dc(Gl,e))},base64(e){return this.check(yc(rp,e))},base64url(e){return this.check(bc(op,e))},xid(e){return this.check(mc(Hl,e))},ksuid(e){return this.check(hc(Xl,e))},ipv4(e){return this.check(gc(Yl,e))},ipv6(e){return this.check(_c(Ql,e))},cidrv4(e){return this.check(zc(ep,e))},cidrv6(e){return this.check(xc(tp,e))},e164(e){return this.check(vc(np,e))},datetime(e){return this.check(It(bo,e))},date(e){return this.check(Kr(Ua,e))},time(e){return this.check(Wr(Ma,e))},duration(e){return this.check(Xr(Fa,e))}});function u(e){return rc(Da,e)}var L=f("ZodStringFormat",(e,t)=>{T.init(e,t),La.init(e,t)}),bo=f("ZodISODateTime",(e,t)=>{ls.init(e,t),L.init(e,t)}),Ua=f("ZodISODate",(e,t)=>{ps.init(e,t),L.init(e,t)}),Ma=f("ZodISOTime",(e,t)=>{fs.init(e,t),L.init(e,t)}),Fa=f("ZodISODuration",(e,t)=>{ds.init(e,t),L.init(e,t)}),Bl=f("ZodEmail",(e,t)=>{Qi.init(e,t),L.init(e,t)});var Jl=f("ZodGUID",(e,t)=>{Xi.init(e,t),L.init(e,t)});var Ut=f("ZodUUID",(e,t)=>{Yi.init(e,t),L.init(e,t)});var Ba=f("ZodURL",(e,t)=>{rs.init(e,t),L.init(e,t)});function Ja(e){return Vr(Ba,e)}var ql=f("ZodEmoji",(e,t)=>{os.init(e,t),L.init(e,t)});var Vl=f("ZodNanoID",(e,t)=>{ns.init(e,t),L.init(e,t)});var Kl=f("ZodCUID",(e,t)=>{is.init(e,t),L.init(e,t)});var Wl=f("ZodCUID2",(e,t)=>{ss.init(e,t),L.init(e,t)});var Gl=f("ZodULID",(e,t)=>{cs.init(e,t),L.init(e,t)});var Hl=f("ZodXID",(e,t)=>{as.init(e,t),L.init(e,t)});var Xl=f("ZodKSUID",(e,t)=>{us.init(e,t),L.init(e,t)});var Yl=f("ZodIPv4",(e,t)=>{ms.init(e,t),L.init(e,t)});var Ql=f("ZodIPv6",(e,t)=>{gs.init(e,t),L.init(e,t)});var ep=f("ZodCIDRv4",(e,t)=>{_s.init(e,t),L.init(e,t)});var tp=f("ZodCIDRv6",(e,t)=>{zs.init(e,t),L.init(e,t)});var rp=f("ZodBase64",(e,t)=>{ys.init(e,t),L.init(e,t)});var op=f("ZodBase64URL",(e,t)=>{bs.init(e,t),L.init(e,t)});var np=f("ZodE164",(e,t)=>{vs.init(e,t),L.init(e,t)});var ip=f("ZodJWT",(e,t)=>{ws.init(e,t),L.init(e,t)});var Bt=f("ZodNumber",(e,t)=>{Nr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yc(e,r,o,n),e.isFinite=!0},xn({minValue:(e)=>{let{minimum:t,exclusiveMinimum:r}=ie(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:(e)=>{let{maximum:t,exclusiveMaximum:r}=ie(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:(e)=>{let{isInt:t,multipleOf:r}=ie(e);return!!t||!!r?.some(Number.isSafeInteger)},format:(e)=>ie(e).format??null},{gt(e,t){return this.check(At(e,t))},gte(e,t){return this.check(Ye(e,t))},min(e,t){return this.check(Ye(e,t))},lt(e,t){return this.check(Tt(e,t))},lte(e,t){return this.check(Xe(e,t))},max(e,t){return this.check(Xe(e,t))},int(e){return this.check(Aa(e))},safe(e){return this.check(Aa(e))},positive(e){return this.check(At(0,e))},nonnegative(e){return this.check(Ye(0,e))},negative(e){return this.check(Tt(0,e))},nonpositive(e){return this.check(Xe(0,e))},multipleOf(e,t){return this.check(Et(e,t))},step(e,t){return this.check(Et(e,t))},finite(){return this}}));function w(e){return $c(Bt,e)}var sp=f("ZodNumberFormat",(e,t)=>{$s.init(e,t),Bt.init(e,t)});function Aa(e){return kc(sp,e)}var qa=f("ZodBoolean",(e,t)=>{Ss.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qc(e,r,o,n)});function O(e){return Pc(qa,e)}var cp=f("ZodNull",(e,t)=>{ks.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ea(e,r,o,n)});function Va(e){return Zc(cp,e)}var ap=f("ZodAny",(e,t)=>{Ps.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ra(e,r,o,n)});function Ka(){return Oc(ap)}var up=f("ZodUnknown",(e,t)=>{Zs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>oa(e,r,o,n)});function N(){return Rc(up)}var lp=f("ZodNever",(e,t)=>{Os.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ta(e,r,o,n)});function pp(e){return Cc(lp,e)}var fp=f("ZodArray",(e,t)=>{Mt(),Rs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>aa(e,r,o,n),e.element=t.element},{min(e,t){return this.check(Oe(e,t))},nonempty(e){return this.check(Oe(1,e))},max(e,t){return this.check(Nt(e,t))},length(e,t){return this.check(jt(e,t))},unwrap(){return this.element}});function _(e,t){return Ic(fp,e,t)}var Wa=f("ZodObject",(e,t)=>{Mt(),Ts.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ua(e,r,o,n),Ku(e,"shape",(r)=>r._zod.def.shape,!1)},{keyof(){return Q(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ee(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ee(this._zod.def,{catchall:N()}))},loose(){return this.clone(ee(this._zod.def,{catchall:N()}))},strict(){return this.clone(ee(this._zod.def,{catchall:pp()}))},strip(){return this.clone(ee(this._zod.def,{catchall:void 0}))},extend(e){return Du(this,e)},safeExtend(e){return Uu(this,e)},merge(e){return Mu(this,e)},pick(e){return ju(this,e)},omit(e){return Lu(this,e)},partial(...e){return hn(Xa,this,e[0])},exactPartial(...e){return hn(Ya,this,e[0],"exactPartial")},required(...e){return Fu(Qa,this,e[0])}});function z(e,t){let r={type:"object",shape:e??{},...x(t)};return new Wa(r)}function B(e,t){return new Wa({type:"object",shape:e,catchall:N(),...x(t)})}var Ga=f("ZodUnion",(e,t)=>{jr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>la(e,r,o,n),e.options=t.options});function E(e,t){return new Ga({type:"union",options:e,...x(t)})}var dp=f("ZodDiscriminatedUnion",(e,t)=>{Ga.init(e,t),As.init(e,t)});function $o(e,t,r){return new dp({type:"union",options:t,discriminator:e,...x(r)})}var mp=f("ZodIntersection",(e,t)=>{Es.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pa(e,r,o,n)});function Jt(e,t){return new mp({type:"intersection",left:e,right:t})}var Ea=f("ZodRecord",(e,t)=>{Mt(),Ns.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fa(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function I(e,t,r){if(!t||!t._zod)return new Ea({type:"record",keyType:u(),valueType:e,...x(t)});return new Ea({type:"record",keyType:e,valueType:t,...x(r)})}var yo=f("ZodEnum",(e,t)=>{js.init(e,t),A.init(e,t),e._zod.processJSONSchema=(o,n,i)=>na(e,o,n,i),e.enum=t.entries,e.options=[...e._zod.values];let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let s of o)if(r.has(s))i[s]=t.entries[s];else throw Error(`Key ${s} not found in enum`);return new yo({...t,checks:[],...x(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let s of o)if(r.has(s))delete i[s];else throw Error(`Key ${s} not found in enum`);return new yo({...t,checks:[],...x(n),entries:i})}});function Q(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map((o)=>[o,o])):e;return new yo({type:"enum",entries:r,...x(t)})}var hp=f("ZodLiteral",(e,t)=>{Ls.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ia(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function y(e,t){return new hp({type:"literal",values:Array.isArray(e)?e:[e],...x(t)})}var gp=f("ZodTransform",(e,t)=>{Mt(),Ds.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ca(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Je(e.constructor.name);r.addIssue=(i)=>{if(typeof i==="string")r.issues.push(ke(i,r.value,t));else{let s=i;if(s.fatal)s.continue=!1;if(s.code??(s.code="custom"),!("input"in s))s.input=r.value;s.inst??(s.inst=e),r.issues.push(ke(s))}};let n=t.transform(r.value,r);if(n instanceof Promise)return n.then((i)=>(r.value=i,r));return r.value=n,r}});function Ha(e){return new gp({type:"transform",transform:e})}var Xa=f("ZodOptional",(e,t)=>{Lr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zo(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function j(e){return new Xa({type:"optional",innerType:e})}var Ya=f("ZodExactOptional",(e,t)=>{Us.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zo(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function _p(e){return new Ya({type:"optional",innerType:e})}var zp=f("ZodNullable",(e,t)=>{Ms.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>da(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Na(e){return new zp({type:"nullable",innerType:e})}var xp=f("ZodDefault",(e,t)=>{Fs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ga(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function yp(e,t){return new xp({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():mr(t)}})}var bp=f("ZodPrefault",(e,t)=>{Bs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_a(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function vp(e,t){return new bp({type:"prefault",innerType:e,get defaultValue(){return typeof t==="function"?t():mr(t)}})}var Qa=f("ZodNonOptional",(e,t)=>{Js.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ma(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function wp(e,t){return new Qa({type:"nonoptional",innerType:e,...x(t)})}var $p=f("ZodCatch",(e,t)=>{qs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>za(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sp(e,t){return new $p({type:"catch",innerType:e,catchValue:typeof t==="function"?t:yn(t)})}var eu=f("ZodPipe",(e,t)=>{Dr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xa(e,r,o,n),e.in=t.in,e.out=t.out});function ja(e,t){return new eu({type:"pipe",in:e,out:t})}var kp=f("ZodPreprocess",(e,t)=>{eu.init(e,t),Vs.init(e,t)}),Pp=f("ZodReadonly",(e,t)=>{Ks.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ya(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Zp(e){return new Pp({type:"readonly",innerType:e})}var tu=f("ZodCustom",(e,t)=>{Ws.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sa(e,r,o,n)});function ru(e,t){return Tc(tu,e??(()=>!0),t)}function Op(e,t={}){return Ac(tu,e,t)}function Rp(e,t){return Ec(e,t)}function Zo(e,t){return new kp({type:"pipe",in:Ha(e),out:t})}var nu={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var ou;(function(e){})(ou||(ou={}));function Ip(e){return It(bo,e)}function Tp(e){return Sc(Bt,e)}var lr="2025-11-25";var pi=[lr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Pt="io.modelcontextprotocol/related-task",Vt="2.0",J=ru((e)=>e!==null&&(typeof e==="object"||typeof e==="function")),cu=E([u(),w().int()]),au=u(),gg=B({ttl:w().optional(),pollInterval:w().optional()}),Ep=z({ttl:w().optional()}),Np=z({taskId:u()}),No=B({progressToken:cu.optional(),[Pt]:Np.optional()}),re=z({_meta:No.optional()}),tt=re.extend({task:Ep.optional()}),di=(e)=>tt.safeParse(e).success,V=z({method:u(),params:re.loose().optional()}),se=z({_meta:No.optional()}),ce=z({method:u(),params:se.loose().optional()}),K=B({_meta:No.optional()}),Kt=E([u(),w().int()]),uu=z({jsonrpc:y(Vt),id:Kt,...V.shape}).strict(),Hr=(e)=>uu.safeParse(e).success,lu=z({jsonrpc:y(Vt),...ce.shape}).strict(),mi=(e)=>lu.safeParse(e).success,jo=z({jsonrpc:y(Vt),id:Kt,result:K}).strict(),Ft=(e)=>jo.safeParse(e).success;var C;(function(e){e[e.ConnectionClosed=-32000]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(C||(C={}));var Do=z({jsonrpc:y(Vt),id:Kt.optional(),error:z({code:w().int(),message:u(),data:N().optional()})}).strict();var hi=(e)=>Do.safeParse(e).success;var kt=E([uu,lu,jo,Do]),_g=E([jo,Do]),$t=K.strict(),jp=se.extend({requestId:Kt.optional(),reason:u().optional()}),kn=ce.extend({method:y("notifications/cancelled"),params:jp}),Lp=z({src:u(),mimeType:u().optional(),sizes:_(u()).optional(),theme:Q(["light","dark"]).optional()}),rt=z({icons:_(Lp).optional()}),Te=z({name:u(),title:u().optional()}),pu=Te.extend({...Te.shape,...rt.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),Dp=Jt(z({applyDefaults:O().optional()}),I(u(),N())),Up=Zo((e)=>{if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.keys(e).length===0)return{form:{}}}return e},Jt(z({form:Dp.optional(),url:J.optional()}),I(u(),N()).optional())),Mp=B({list:J.optional(),cancel:J.optional(),requests:B({sampling:B({createMessage:J.optional()}).optional(),elicitation:B({create:J.optional()}).optional()}).optional()}),Fp=B({list:J.optional(),cancel:J.optional(),requests:B({tools:B({call:J.optional()}).optional()}).optional()}),Bp=z({experimental:I(u(),J).optional(),sampling:z({context:J.optional(),tools:J.optional()}).optional(),elicitation:Up.optional(),roots:z({listChanged:O().optional()}).optional(),tasks:Mp.optional(),extensions:I(u(),J).optional()}),Jp=re.extend({protocolVersion:u(),capabilities:Bp,clientInfo:pu}),qp=V.extend({method:y("initialize"),params:Jp});var Vp=z({experimental:I(u(),J).optional(),logging:J.optional(),completions:J.optional(),prompts:z({listChanged:O().optional()}).optional(),resources:z({subscribe:O().optional(),listChanged:O().optional()}).optional(),tools:z({listChanged:O().optional()}).optional(),tasks:Fp.optional(),extensions:I(u(),J).optional()}),wo=K.extend({protocolVersion:u(),capabilities:Vp,serverInfo:pu,instructions:u().optional()}),fu=ce.extend({method:y("notifications/initialized"),params:se.optional()}),fi=(e)=>fu.safeParse(e).success,Rn=V.extend({method:y("ping"),params:re.optional()}),Kp=z({progress:w(),total:j(w()),message:j(u())}),Wp=z({...se.shape,...Kp.shape,progressToken:cu}),Cn=ce.extend({method:y("notifications/progress"),params:Wp}),Gp=re.extend({cursor:au.optional()}),ot=V.extend({params:Gp.optional()}),nt=K.extend({nextCursor:au.optional()}),Hp=Q(["working","input_required","completed","failed","cancelled"]),it=z({taskId:u(),status:Hp,ttl:E([w(),Va()]),createdAt:u(),lastUpdatedAt:u(),pollInterval:j(w()),statusMessage:j(u())}),Wt=K.extend({task:it}),Xp=se.merge(it),qr=ce.extend({method:y("notifications/tasks/status"),params:Xp}),In=V.extend({method:y("tasks/get"),params:re.extend({taskId:u()})}),Mn=K.merge(it),Ln=V.extend({method:y("tasks/result"),params:re.extend({taskId:u()})}),zg=K.loose(),On=ot.extend({method:y("tasks/list")}),Nn=nt.extend({tasks:_(it)}),Dn=V.extend({method:y("tasks/cancel"),params:re.extend({taskId:u()})}),gi=K.merge(it),du=z({uri:u(),mimeType:j(u()),_meta:I(u(),N()).optional()}),mu=du.extend({text:u()}),Uo=u().refine((e)=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),hu=du.extend({blob:Uo}),st=Q(["user","assistant"]),Ae=z({audience:_(st).optional(),priority:w().min(0).max(1).optional(),lastModified:Ip({offset:!0}).optional()}),gu=z({...Te.shape,...rt.shape,uri:u(),description:j(u()),mimeType:j(u()),size:j(w()),annotations:Ae.optional(),_meta:j(B({}))}),Yp=z({...Te.shape,...rt.shape,uriTemplate:u(),description:j(u()),mimeType:j(u()),annotations:Ae.optional(),_meta:j(B({}))}),Qp=ot.extend({method:y("resources/list")}),xo=nt.extend({resources:_(gu)}),ef=ot.extend({method:y("resources/templates/list")}),vo=nt.extend({resourceTemplates:_(Yp)}),Fo=re.extend({uri:u()}),tf=Fo,rf=V.extend({method:y("resources/read"),params:tf}),_o=K.extend({contents:_(E([mu,hu]))}),Ao=ce.extend({method:y("notifications/resources/list_changed"),params:se.optional()}),of=Fo,nf=V.extend({method:y("resources/subscribe"),params:of}),sf=Fo,cf=V.extend({method:y("resources/unsubscribe"),params:sf}),af=se.extend({uri:u()}),uf=ce.extend({method:y("notifications/resources/updated"),params:af}),lf=z({name:u(),description:j(u()),required:j(O())}),pf=z({...Te.shape,...rt.shape,description:j(u()),arguments:j(_(lf)),_meta:j(B({}))}),ff=ot.extend({method:y("prompts/list")}),Eo=nt.extend({prompts:_(pf)}),df=re.extend({name:u(),arguments:I(u(),u()).optional()}),mf=V.extend({method:y("prompts/get"),params:df}),Bo=z({type:y("text"),text:u(),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),Jo=z({type:y("image"),data:Uo,mimeType:u(),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),qo=z({type:y("audio"),data:Uo,mimeType:u(),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),hf=z({type:y("tool_use"),name:u(),id:u(),input:I(u(),N()),_meta:I(u(),N()).optional()}),gf=z({type:y("resource"),resource:E([mu,hu]),annotations:Ae.optional(),_meta:I(u(),N()).optional()}),_f=gu.extend({type:y("resource_link")}),Vo=E([Bo,Jo,qo,_f,gf]),zf=z({role:st,content:Vo}),To=K.extend({description:u().optional(),messages:_(zf)}),Po=ce.extend({method:y("notifications/prompts/list_changed"),params:se.optional()}),xf=z({title:u().optional(),readOnlyHint:O().optional(),destructiveHint:O().optional(),idempotentHint:O().optional(),openWorldHint:O().optional()}),yf=z({taskSupport:Q(["required","optional","forbidden"]).optional()}),_u=z({...Te.shape,...rt.shape,description:u().optional(),inputSchema:z({type:y("object"),properties:I(u(),J).optional(),required:_(u()).optional()}).catchall(N()),outputSchema:z({type:y("object"),properties:I(u(),J).optional(),required:_(u()).optional()}).catchall(N()).optional(),annotations:xf.optional(),execution:yf.optional(),_meta:I(u(),N()).optional()}),bf=ot.extend({method:y("tools/list")}),ko=nt.extend({tools:_(_u)}),ht=K.extend({content:_(Vo).default([]),structuredContent:I(u(),N()).optional(),isError:O().optional()}),xg=ht.or(K.extend({toolResult:N()})),vf=tt.extend({name:u(),arguments:I(u(),N()).optional()}),wf=V.extend({method:y("tools/call"),params:vf}),Gr=ce.extend({method:y("notifications/tools/list_changed"),params:se.optional()}),yi=z({autoRefresh:O().default(!0),debounceMs:w().int().nonnegative().default(300)}),zu=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),$f=re.extend({level:zu}),Sf=V.extend({method:y("logging/setLevel"),params:$f}),kf=se.extend({level:zu,logger:u().optional(),data:N()}),Pf=ce.extend({method:y("notifications/message"),params:kf}),Zf=z({name:u().optional()}),Of=z({hints:_(Zf).optional(),costPriority:w().min(0).max(1).optional(),speedPriority:w().min(0).max(1).optional(),intelligencePriority:w().min(0).max(1).optional()}),Rf=z({mode:Q(["auto","required","none"]).optional()}),Cf=z({type:y("tool_result"),toolUseId:u().describe("The unique identifier for the corresponding tool call."),content:_(Vo).default([]),structuredContent:z({}).loose().optional(),isError:O().optional(),_meta:I(u(),N()).optional()}),If=$o("type",[Bo,Jo,qo]),qt=$o("type",[Bo,Jo,qo,hf,Cf]),Tf=z({role:st,content:E([qt,_(qt)]),_meta:I(u(),N()).optional()}),Af=tt.extend({messages:_(Tf),modelPreferences:Of.optional(),systemPrompt:u().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:w().optional(),maxTokens:w().int(),stopSequences:_(u()).optional(),metadata:J.optional(),tools:_(_u).optional(),toolChoice:Rf.optional()}),Ro=V.extend({method:y("sampling/createMessage"),params:Af}),Co=K.extend({model:u(),stopReason:j(Q(["endTurn","stopSequence","maxTokens"]).or(u())),role:st,content:If}),Io=K.extend({model:u(),stopReason:j(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(u())),role:st,content:E([qt,_(qt)])}),Ef=z({type:y("boolean"),title:u().optional(),description:u().optional(),default:O().optional()}),Nf=z({type:y("string"),title:u().optional(),description:u().optional(),minLength:w().optional(),maxLength:w().optional(),format:Q(["email","uri","date","date-time"]).optional(),default:u().optional()}),jf=z({type:Q(["number","integer"]),title:u().optional(),description:u().optional(),minimum:w().optional(),maximum:w().optional(),default:w().optional()}),Lf=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),default:u().optional()}),Df=z({type:y("string"),title:u().optional(),description:u().optional(),oneOf:_(z({const:u(),title:u()})),default:u().optional()}),Uf=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),enumNames:_(u()).optional(),default:u().optional()}),Mf=E([Lf,Df]),Ff=z({type:y("array"),title:u().optional(),description:u().optional(),minItems:w().optional(),maxItems:w().optional(),items:z({type:y("string"),enum:_(u())}),default:_(u()).optional()}),Bf=z({type:y("array"),title:u().optional(),description:u().optional(),minItems:w().optional(),maxItems:w().optional(),items:z({anyOf:_(z({const:u(),title:u()}))}),default:_(u()).optional()}),Jf=E([Ff,Bf]),qf=E([Uf,Mf,Jf]),Vf=E([qf,Ef,Nf,jf]),Kf=tt.extend({mode:y("form").optional(),message:u(),requestedSchema:z({type:y("object"),properties:I(u(),Vf),required:_(u()).optional()})}),Wf=tt.extend({mode:y("url"),message:u(),elicitationId:u(),url:u().url()}),Gf=E([Kf,Wf]),Mo=V.extend({method:y("elicitation/create"),params:Gf}),Hf=se.extend({elicitationId:u()}),Xf=ce.extend({method:y("notifications/elicitation/complete"),params:Hf}),Lo=K.extend({action:Q(["accept","decline","cancel"]),content:Zo((e)=>e===null?void 0:e,I(u(),E([u(),w(),O(),_(u())])).optional())}),Yf=z({type:y("ref/resource"),uri:u()});var Qf=z({type:y("ref/prompt"),name:u()}),ed=re.extend({ref:E([Qf,Yf]),argument:z({name:u(),value:u()}),context:z({arguments:I(u(),u()).optional()}).optional()}),td=V.extend({method:y("completion/complete"),params:ed});var Oo=K.extend({completion:B({values:_(u()).max(100),total:j(w().int()),hasMore:j(O())})}),rd=z({uri:u().startsWith("file://"),name:u().optional(),_meta:I(u(),N()).optional()}),od=V.extend({method:y("roots/list"),params:re.optional()}),nd=K.extend({roots:_(rd)}),id=ce.extend({method:y("notifications/roots/list_changed"),params:se.optional()}),yg=E([Rn,qp,td,Sf,mf,ff,Qp,ef,rf,nf,cf,wf,bf,In,Ln,On,Dn]),bg=E([kn,Cn,fu,id,qr]),vg=E([$t,Co,Io,Lo,nd,Mn,Nn,Wt]),wg=E([Rn,Ro,Mo,od,In,Ln,On,Dn]),$g=E([kn,Cn,Pf,uf,Ao,Gr,Po,qr,Xf]),Sg=E([$t,wo,Oo,To,Eo,xo,vo,_o,ht,ko,Mn,Nn,Wt]);class P extends Error{constructor(e,t,r){super(`MCP error ${e}: ${t}`);this.code=e,this.data=r,this.name="McpError"}static fromError(e,t,r){if(e===C.UrlElicitationRequired&&r){let o=r;if(o.elicitations)return new xu(o.elicitations,t)}return new P(e,t,r)}}class xu extends P{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(C.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}var Ko;Ko=globalThis.crypto?.webcrypto??globalThis.crypto??import("crypto").then((e)=>e.webcrypto);async function sd(e){return(await Ko).getRandomValues(new Uint8Array(e))}async function cd(e){let r=Math.pow(2,8)-Math.pow(2,8)%66,o="";while(o.length<e){let n=await sd(e-o.length);for(let i of n)if(i<r)o+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[i%66]}return o}async function ad(e){return await cd(e)}async function ud(e){let t=await(await Ko).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Wo(e){if(!e)e=43;if(e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await ad(e),r=await ud(t);return{code_verifier:t,code_challenge:r}}var W=Ja().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:nu.custom,message:"URL must be parseable",fatal:!0}),xr}).refine((e)=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),bu=B({resource:u().url(),authorization_servers:_(W).optional(),jwks_uri:u().url().optional(),scopes_supported:_(u()).optional(),bearer_methods_supported:_(u()).optional(),resource_signing_alg_values_supported:_(u()).optional(),resource_name:u().optional(),resource_documentation:u().optional(),resource_policy_uri:u().url().optional(),resource_tos_uri:u().url().optional(),tls_client_certificate_bound_access_tokens:O().optional(),authorization_details_types_supported:_(u()).optional(),dpop_signing_alg_values_supported:_(u()).optional(),dpop_bound_access_tokens_required:O().optional()}),Go=B({issuer:u(),authorization_endpoint:W,token_endpoint:W,registration_endpoint:W.optional(),scopes_supported:_(u()).optional(),response_types_supported:_(u()),response_modes_supported:_(u()).optional(),grant_types_supported:_(u()).optional(),token_endpoint_auth_methods_supported:_(u()).optional(),token_endpoint_auth_signing_alg_values_supported:_(u()).optional(),service_documentation:W.optional(),revocation_endpoint:W.optional(),revocation_endpoint_auth_methods_supported:_(u()).optional(),revocation_endpoint_auth_signing_alg_values_supported:_(u()).optional(),introspection_endpoint:u().optional(),introspection_endpoint_auth_methods_supported:_(u()).optional(),introspection_endpoint_auth_signing_alg_values_supported:_(u()).optional(),code_challenge_methods_supported:_(u()).optional(),client_id_metadata_document_supported:O().optional()}),ld=B({issuer:u(),authorization_endpoint:W,token_endpoint:W,userinfo_endpoint:W.optional(),jwks_uri:W,registration_endpoint:W.optional(),scopes_supported:_(u()).optional(),response_types_supported:_(u()),response_modes_supported:_(u()).optional(),grant_types_supported:_(u()).optional(),acr_values_supported:_(u()).optional(),subject_types_supported:_(u()),id_token_signing_alg_values_supported:_(u()),id_token_encryption_alg_values_supported:_(u()).optional(),id_token_encryption_enc_values_supported:_(u()).optional(),userinfo_signing_alg_values_supported:_(u()).optional(),userinfo_encryption_alg_values_supported:_(u()).optional(),userinfo_encryption_enc_values_supported:_(u()).optional(),request_object_signing_alg_values_supported:_(u()).optional(),request_object_encryption_alg_values_supported:_(u()).optional(),request_object_encryption_enc_values_supported:_(u()).optional(),token_endpoint_auth_methods_supported:_(u()).optional(),token_endpoint_auth_signing_alg_values_supported:_(u()).optional(),display_values_supported:_(u()).optional(),claim_types_supported:_(u()).optional(),claims_supported:_(u()).optional(),service_documentation:u().optional(),claims_locales_supported:_(u()).optional(),ui_locales_supported:_(u()).optional(),claims_parameter_supported:O().optional(),request_parameter_supported:O().optional(),request_uri_parameter_supported:O().optional(),require_request_uri_registration:O().optional(),op_policy_uri:W.optional(),op_tos_uri:W.optional(),client_id_metadata_document_supported:O().optional()}),vu=z({...ld.shape,...Go.pick({code_challenge_methods_supported:!0}).shape}),wu=z({access_token:u(),id_token:u().optional(),token_type:u(),expires_in:Tp().optional(),scope:u().optional(),refresh_token:u().optional()}).strip(),$u=z({error:u(),error_description:u().optional(),error_uri:u().optional()}),yu=W.optional().or(y("").transform(()=>{return})),pd=z({redirect_uris:_(W),token_endpoint_auth_method:u().optional(),grant_types:_(u()).optional(),response_types:_(u()).optional(),client_name:u().optional(),client_uri:W.optional(),logo_uri:yu,scope:u().optional(),contacts:_(u()).optional(),tos_uri:yu,policy_uri:u().optional(),jwks_uri:W.optional(),jwks:Ka().optional(),software_id:u().optional(),software_version:u().optional(),software_statement:u().optional()}).strip(),fd=z({client_id:u(),client_secret:u().optional(),client_id_issued_at:w().optional(),client_secret_expires_at:w().optional()}).strip(),Su=pd.merge(fd),Zg=z({error:u(),error_description:u().optional()}).strip(),Og=z({token:u(),token_type_hint:u().optional()}).strip();function ku(e){let t=typeof e==="string"?new URL(e):new URL(e.href);return t.hash="",t}function Pu({requestedResource:e,configuredResource:t}){let r=typeof e==="string"?new URL(e):new URL(e.href),o=typeof t==="string"?new URL(t):new URL(t.href);if(r.origin!==o.origin)return!1;if(r.pathname.length<o.pathname.length)return!1;let n=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",i=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return n.startsWith(i)}class M extends Error{constructor(e,t){super(e);this.errorUri=t,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};if(this.errorUri)e.error_uri=this.errorUri;return e}get errorCode(){return this.constructor.errorCode}}class Gt extends M{}Gt.errorCode="invalid_request";class Ee extends M{}Ee.errorCode="invalid_client";class Ne extends M{}Ne.errorCode="invalid_grant";class je extends M{}je.errorCode="unauthorized_client";class Xt extends M{}Xt.errorCode="unsupported_grant_type";class Yt extends M{}Yt.errorCode="invalid_scope";class Qt extends M{}Qt.errorCode="access_denied";class we extends M{}we.errorCode="server_error";class er extends M{}er.errorCode="temporarily_unavailable";class tr extends M{}tr.errorCode="unsupported_response_type";class rr extends M{}rr.errorCode="unsupported_token_type";class or extends M{}or.errorCode="invalid_token";class nr extends M{}nr.errorCode="method_not_allowed";class ir extends M{}ir.errorCode="too_many_requests";class Le extends M{}Le.errorCode="invalid_client_metadata";class sr extends M{}sr.errorCode="insufficient_scope";class cr extends M{}cr.errorCode="invalid_target";var Zu={[Gt.errorCode]:Gt,[Ee.errorCode]:Ee,[Ne.errorCode]:Ne,[je.errorCode]:je,[Xt.errorCode]:Xt,[Yt.errorCode]:Yt,[Qt.errorCode]:Qt,[we.errorCode]:we,[er.errorCode]:er,[tr.errorCode]:tr,[rr.errorCode]:rr,[or.errorCode]:or,[nr.errorCode]:nr,[ir.errorCode]:ir,[Le.errorCode]:Le,[sr.errorCode]:sr,[cr.errorCode]:cr};class ge extends Error{constructor(e){super(e??"Unauthorized")}}function dd(e){return["client_secret_basic","client_secret_post","none"].includes(e)}var Ho="code",Xo="S256";function md(e,t){let r=e.client_secret!==void 0;if("token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&dd(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method)))return e.token_endpoint_auth_method;if(t.length===0)return r?"client_secret_basic":"none";if(r&&t.includes("client_secret_basic"))return"client_secret_basic";if(r&&t.includes("client_secret_post"))return"client_secret_post";if(t.includes("none"))return"none";return r?"client_secret_post":"none"}function hd(e,t,r,o){let{client_id:n,client_secret:i}=t;switch(e){case"client_secret_basic":gd(n,i,r);return;case"client_secret_post":_d(n,i,o);return;case"none":zd(n,o);return;default:throw Error(`Unsupported client authentication method: ${e}`)}}function gd(e,t,r){if(!t)throw Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${e}:${t}`);r.set("Authorization",`Basic ${o}`)}function _d(e,t,r){if(r.set("client_id",e),t)r.set("client_secret",t)}function zd(e,t){t.set("client_id",e)}async function Ru(e){let t=e instanceof Response?e.status:void 0,r=e instanceof Response?await e.text():e;try{let o=$u.parse(JSON.parse(r)),{error:n,error_description:i,error_uri:s}=o;return new(Zu[n]||we)(i||"",s)}catch(o){let n=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new we(n)}}async function Ve(e,t){try{return await Yo(e,t)}catch(r){if(r instanceof Ee||r instanceof je)return await e.invalidateCredentials?.("all"),await Yo(e,t);else if(r instanceof Ne)return await e.invalidateCredentials?.("tokens"),await Yo(e,t);throw r}}async function Yo(e,{serverUrl:t,authorizationCode:r,scope:o,resourceMetadataUrl:n,fetchFn:i}){let s=await e.discoveryState?.(),c,a,l,p=n;if(!p&&s?.resourceMetadataUrl)p=new URL(s.resourceMetadataUrl);if(s?.authorizationServerUrl){if(a=s.authorizationServerUrl,c=s.resourceMetadata,l=s.authorizationServerMetadata??await Iu(a,{fetchFn:i}),!c)try{c=await Cu(t,{resourceMetadataUrl:p},i)}catch{}if(l!==s.authorizationServerMetadata||c!==s.resourceMetadata)await e.saveDiscoveryState?.({authorizationServerUrl:String(a),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:l})}else{let F=await Sd(t,{resourceMetadataUrl:p,fetchFn:i});a=F.authorizationServerUrl,l=F.authorizationServerMetadata,c=F.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(a),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:l})}let d=await yd(t,e,c),h=o||c?.scopes_supported?.join(" ")||e.clientMetadata.scope,m=await Promise.resolve(e.clientInformation());if(!m){if(r!==void 0)throw Error("Existing OAuth client information is required when exchanging an authorization code");let F=l?.client_id_metadata_document_supported===!0,ae=e.clientMetadataUrl;if(ae&&!xd(ae))throw new Le(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${ae}`);if(F&&ae)m={client_id:ae},await e.saveClientInformation?.(m);else{if(!e.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");let Z=await Rd(a,{metadata:l,clientMetadata:e.clientMetadata,scope:h,fetchFn:i});await e.saveClientInformation(Z),m=Z}}let g=!e.redirectUrl;if(r!==void 0||g){let F=await Od(e,a,{metadata:l,resource:d,authorizationCode:r,fetchFn:i});return await e.saveTokens(F),"AUTHORIZED"}let b=await e.tokens();if(b?.refresh_token)try{let F=await Zd(a,{metadata:l,clientInformation:m,refreshToken:b.refresh_token,resource:d,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(F),"AUTHORIZED"}catch(F){if(!(F instanceof M)||F instanceof we);else throw F}let v=e.state?await e.state():void 0,{authorizationUrl:k,codeVerifier:H}=await kd(a,{metadata:l,clientInformation:m,state:v,redirectUrl:e.redirectUrl,scope:h,resource:d});return await e.saveCodeVerifier(H),await e.redirectToAuthorization(k),"REDIRECT"}function xd(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function yd(e,t,r){let o=ku(e);if(t.validateResourceURL)return await t.validateResourceURL(o,r?.resource);if(!r)return;if(!Pu({requestedResource:o,configuredResource:r.resource}))throw Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}function Ht(e){let t=e.headers.get("WWW-Authenticate");if(!t)return{};let[r,o]=t.split(" ");if(r.toLowerCase()!=="bearer"||!o)return{};let n=Qo(e,"resource_metadata")||void 0,i;if(n)try{i=new URL(n)}catch{}let s=Qo(e,"scope")||void 0,c=Qo(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:c}}function Qo(e,t){let r=e.headers.get("WWW-Authenticate");if(!r)return null;let o=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),n=r.match(o);if(n)return n[1]||n[2];return null}async function Cu(e,t,r=fetch){let o=await wd(e,"oauth-protected-resource",r,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!o||o.status===404)throw await o?.body?.cancel(),Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw await o.body?.cancel(),Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return bu.parse(await o.json())}async function en(e,t,r=fetch){try{return await r(e,{headers:t})}catch(o){if(o instanceof TypeError)if(t)return en(e,void 0,r);else return;throw o}}function bd(e,t="",r={}){if(t.endsWith("/"))t=t.slice(0,-1);return r.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function Ou(e,t,r=fetch){return await en(e,{"MCP-Protocol-Version":t},r)}function vd(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function wd(e,t,r,o){let n=new URL(e),i=o?.protocolVersion??lr,s;if(o?.metadataUrl)s=new URL(o.metadataUrl);else{let a=bd(t,n.pathname);s=new URL(a,o?.metadataServerUrl??n),s.search=n.search}let c=await Ou(s,i,r);if(!o?.metadataUrl&&vd(c,n.pathname)){let a=new URL(`/.well-known/${t}`,n);c=await Ou(a,i,r)}return c}function $d(e){let t=typeof e==="string"?new URL(e):e,r=t.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),o;let n=t.pathname;if(n.endsWith("/"))n=n.slice(0,-1);return o.push({url:new URL(`/.well-known/oauth-authorization-server${n}`,t.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${n}`,t.origin),type:"oidc"}),o.push({url:new URL(`${n}/.well-known/openid-configuration`,t.origin),type:"oidc"}),o}async function Iu(e,{fetchFn:t=fetch,protocolVersion:r=lr}={}){let o={"MCP-Protocol-Version":r,Accept:"application/json"},n=$d(e);for(let{url:i,type:s}of n){let c=await en(i,o,t);if(!c)continue;if(!c.ok){if(await c.body?.cancel(),c.status>=400&&c.status<500)continue;throw Error(`HTTP ${c.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(s==="oauth")return Go.parse(await c.json());else return vu.parse(await c.json())}return}async function Sd(e,t){let r,o;try{if(r=await Cu(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),r.authorization_servers&&r.authorization_servers.length>0)o=r.authorization_servers[0]}catch{}if(!o)o=String(new URL("/",e));let n=await Iu(o,{fetchFn:t?.fetchFn});return{authorizationServerUrl:o,authorizationServerMetadata:n,resourceMetadata:r}}async function kd(e,{metadata:t,clientInformation:r,redirectUrl:o,scope:n,state:i,resource:s}){let c;if(t){if(c=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Ho))throw Error(`Incompatible auth server: does not support response type ${Ho}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Xo))throw Error(`Incompatible auth server: does not support code challenge method ${Xo}`)}else c=new URL("/authorize",e);let a=await Wo(),{code_verifier:l,code_challenge:p}=a;if(c.searchParams.set("response_type",Ho),c.searchParams.set("client_id",r.client_id),c.searchParams.set("code_challenge",p),c.searchParams.set("code_challenge_method",Xo),c.searchParams.set("redirect_uri",String(o)),i)c.searchParams.set("state",i);if(n)c.searchParams.set("scope",n);if(n?.includes("offline_access"))c.searchParams.append("prompt","consent");if(s)c.searchParams.set("resource",s.href);return{authorizationUrl:c,codeVerifier:l}}function Pd(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function Tu(e,{metadata:t,tokenRequestParams:r,clientInformation:o,addClientAuthentication:n,resource:i,fetchFn:s}){let c=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),a=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i)r.set("resource",i.href);if(n)await n(a,r,c,t);else if(o){let p=t?.token_endpoint_auth_methods_supported??[],d=md(o,p);hd(d,o,a,r)}let l=await(s??fetch)(c,{method:"POST",headers:a,body:r});if(!l.ok)throw await Ru(l);return wu.parse(await l.json())}async function Zd(e,{metadata:t,clientInformation:r,refreshToken:o,resource:n,addClientAuthentication:i,fetchFn:s}){let c=new URLSearchParams({grant_type:"refresh_token",refresh_token:o}),a=await Tu(e,{metadata:t,tokenRequestParams:c,clientInformation:r,addClientAuthentication:i,resource:n,fetchFn:s});return{refresh_token:o,...a}}async function Od(e,t,{metadata:r,resource:o,authorizationCode:n,fetchFn:i}={}){let s=e.clientMetadata.scope,c;if(e.prepareTokenRequest)c=await e.prepareTokenRequest(s);if(!c){if(!n)throw Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw Error("redirectUrl is required for authorization_code flow");let l=await e.codeVerifier();c=Pd(n,l,e.redirectUrl)}let a=await e.clientInformation();return Tu(t,{metadata:r,tokenRequestParams:c,clientInformation:a??void 0,addClientAuthentication:e.addClientAuthentication,resource:o,fetchFn:i})}async function Rd(e,{metadata:t,clientMetadata:r,scope:o,fetchFn:n}){let i;if(t){if(!t.registration_endpoint)throw Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);let s=await(n??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...o!==void 0?{scope:o}:{}})});if(!s.ok)throw await Ru(s);return Su.parse(await s.json())}
|
|
59
|
-
export{So,lr,pi,Pt,di,Hr,mi,Ft,C,hi,kt,$t,kn,wo,fi,Rn,Cn,Wt,qr,In,Mn,Ln,On,Nn,Dn,gi,xo,vo,_o,Ao,Eo,To,Po,ko,ht,Gr,yi,Ro,Co,Io,Mo,Lo,Oo,P,ge,Ve,Ht};
|
package/chunk-c5ydt3vq.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{p}from"./chunk-zkjnt298.js";var u=null;function d(t){if(typeof process>"u"||!process.versions?.bun||Object.keys(process.env).length>0)return;if(u===null){u=new Map;try{let{readFileSync:r}=p("fs"),n=r("/proc/self/environ","utf-8");for(let a of n.split("\x00")){let i=a.indexOf("=");if(i>0)u.set(a.slice(0,i),a.slice(i+1))}}catch{}}return u.get(t)}function E(t,r){return r?.[t]||(typeof process<"u"?process.env[t]:void 0)||d(t)||void 0}function s(t,r){return Object.fromEntries(Object.values(t).flatMap((n)=>Object.values(n)).filter((n)=>n.type===r).map((n)=>[n.id,n]))}function h(t,r){return s(r,"chat")}function f(t,r){return s(r,"image")}function g(t,r){return s(r,"classifier")}var O=function(t,r){if(typeof t==="string"&&/^\.\.?\//.test(t))return t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,a,i,c,l){return a?r?".jsx":".js":i&&(!c||!l)?n:i+c+"."+l.toLowerCase()+"js"});return t},o=(t)=>{let r=import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t;return import(O(r))},e;function ki(t){e=t}var Ri=async()=>{if(e)return e.anthropic();return(await o("./anthropic.ts")).anthropicOAuth},Ci=async()=>{if(e)return e.openaiCodex();return(await o("./openai-codex.ts")).openaiCodexOAuth},Ii=async()=>{if(e)return e.openaiChatGPT();return(await o("./openai-chatgpt.ts")).openaiChatGPTOAuth},Mi=async()=>{if(e)return e.githubCopilot();return(await o("./github-copilot.ts")).githubCopilotOAuth},Li=async()=>{if(e)return e.openrouter();return(await o("./openrouter.ts")).openRouterOAuth},Oi=async()=>{if(e)return e.kimiCoding();return(await o("./kimi-coding.ts")).kimiCodingOAuth},Ni=async()=>{if(e)return e.meta();return(await o("./meta.ts")).metaOAuth},Di=async()=>{if(e)return e.xai();return(await o("./xai.ts")).xaiOAuth},Ui=async(t)=>{if(e)return e.radius(t);return(await o("./radius.ts")).createRadiusOAuth(t)};
|
|
3
|
-
export{E,h,f,g,ki,Ri,Ci,Ii,Mi,Li,Oi,Ni,Di,Ui};
|
package/chunk-cjh5h31t.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{_n,q,d}from"./chunk-35y6nf6k.js";var v="faux",L="faux",b="faux-1",Z="Faux Model",G="http://localhost:0",V=3,F=5,E={input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};function xt(e){return{type:"text",text:e}}function yn(e){return{type:"thinking",thinking:e}}function oo(e,t,n={}){return{type:"toolCall",id:n.id??I("tool"),name:e,arguments:t}}function X(e){if(typeof e==="string")return[xt(e)];return Array.isArray(e)?e:[e]}function Yt(e,t={}){return{role:"assistant",content:X(e),api:v,provider:L,model:b,usage:E,stopReason:t.stopReason??"stop",...t.deferred===void 0?{}:{deferred:t.deferred},...t.errorMessage===void 0?{}:{errorMessage:t.errorMessage},...t.responseId===void 0?{}:{responseId:t.responseId},timestamp:t.timestamp??Date.now()}}function U(e){return Math.ceil(e.length/4)}function I(e){return`${e}:${Date.now()}:${Math.random().toString(36).slice(2)}`}function P(e){if(typeof e==="string")return e;return e.map((t)=>{if(t.type==="text")return t.text;return`[image:${t.mimeType}:${t.data.length}]`}).join(`
|
|
3
|
-
`)}function N(e){return e.map((t)=>{if(t.type==="text")return t.text;if(t.type==="thinking")return t.thinking;return`${t.name}:${JSON.stringify(t.arguments)}`}).join(`
|
|
4
|
-
`)}function H(e){return[e.toolName,...e.content.map((t)=>P([t]))].join(`
|
|
5
|
-
`)}function Q(e){if(e.role==="system")return[q(e),...e.toolsRemoved?.map((t)=>`tool-:${JSON.stringify(t)}`)??[],...e.toolsAdded?.map((t)=>`tool+:${JSON.stringify(t)}`)??[]].filter((t)=>t.length>0).join(`
|
|
6
|
-
`);if(e.role==="user")return P(e.content);if(e.role==="assistant")return N(e.content);return H(e)}function W(e,t=e.length){let n=t>0?(t-1)*2:0;for(let o=0;o<t;o++)n+=e[o].length;return n}function Y(e,t){let n=0;while(n<e.length&&n<t.length&&e[n]===t[n])n++;let o=(c)=>n===c.length?"":(n>0?`
|
|
7
|
-
|
|
8
|
-
`:"")+c.slice(n).join(`
|
|
9
|
-
|
|
10
|
-
`);return W(e,n)+ee(o(e),o(t))}function ee(e,t){let n=Math.min(e.length,t.length),o=0;while(o<n&&e[o]===t[o])o++;return o}function C(e,t,n,o){let c=t.messages.map((y)=>`${y.role}:${Q(y)}`),g=W(c),a=Math.ceil(g/4),s=U(N(e.content)),f=a,u=0,x=0,w=n?.sessionId;if(w&&n?.cacheRetention!=="none"){let y=o.get(w);if(y){let M=Y(y,c);u=Math.ceil(M/4),x=Math.ceil((g-M)/4),f=Math.max(0,a-u)}else x=a;o.set(w,c)}return{...e,usage:{input:f,output:s,cacheRead:u,cacheWrite:x,totalTokens:f+s+u+x,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}}function k(e,t,n){let o=[],c=0;while(c<e.length){let g=t+Math.floor(Math.random()*(n-t+1)),a=Math.max(1,g*4);o.push(e.slice(c,c+a)),c+=a}return o.length>0?o:[""]}function te(e,t,n,o){let c=structuredClone(e);return{...c,api:t,provider:n,model:o,timestamp:c.timestamp??Date.now(),usage:c.usage??E}}function S(e,t){return{role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:E,stopReason:"deferred",deferred:t,timestamp:Date.now()}}function T(e,t,n,o){return{role:"assistant",content:[],api:t,provider:n,model:o,usage:E,stopReason:"error",errorMessage:e instanceof Error?e.message:String(e),timestamp:Date.now()}}function D(e){return{...e,stopReason:"aborted",errorMessage:"Request was aborted",timestamp:Date.now()}}function A(e,t){if(!t||t<=0)return new Promise((o)=>queueMicrotask(o));let n=U(e)/t*1000;return new Promise((o)=>setTimeout(o,n))}async function _(e,t,n,o,c,g){let a={...t,content:[],stopReason:"pending"};if(g?.aborted){let s=D(a);e.push({type:"error",reason:"aborted",error:s}),e.end(s);return}e.push({type:"start",partial:{...a}});for(let s=0;s<t.content.length;s++){if(g?.aborted){let u=D(a);e.push({type:"error",reason:"aborted",error:u}),e.end(u);return}let f=t.content[s];if(f.type==="thinking"){a.content=[...a.content,{type:"thinking",thinking:""}],e.push({type:"thinking_start",contentIndex:s,partial:{...a}});for(let u of k(f.thinking,n,o)){if(await A(u,c),g?.aborted){let x=D(a);e.push({type:"error",reason:"aborted",error:x}),e.end(x);return}a.content[s].thinking+=u,e.push({type:"thinking_delta",contentIndex:s,delta:u,partial:{...a}})}e.push({type:"thinking_end",contentIndex:s,content:f.thinking,partial:{...a}});continue}if(f.type==="text"){a.content=[...a.content,{type:"text",text:""}],e.push({type:"text_start",contentIndex:s,partial:{...a}});for(let u of k(f.text,n,o)){if(await A(u,c),g?.aborted){let x=D(a);e.push({type:"error",reason:"aborted",error:x}),e.end(x);return}a.content[s].text+=u,e.push({type:"text_delta",contentIndex:s,delta:u,partial:{...a}})}e.push({type:"text_end",contentIndex:s,content:f.text,partial:{...a}});continue}a.content=[...a.content,{type:"toolCall",id:f.id,name:f.name,arguments:{}}],e.push({type:"toolcall_start",contentIndex:s,partial:{...a}});for(let u of k(JSON.stringify(f.arguments),n,o)){if(await A(u,c),g?.aborted){let x=D(a);e.push({type:"error",reason:"aborted",error:x}),e.end(x);return}e.push({type:"toolcall_delta",contentIndex:s,delta:u,partial:{...a}})}a.content[s].arguments=f.arguments,e.push({type:"toolcall_end",contentIndex:s,toolCall:f,partial:{...a}})}if(t.stopReason==="pending")throw Error("Faux response ended without a stop reason");if(t.stopReason==="error"||t.stopReason==="aborted"){e.push({type:"error",reason:t.stopReason,error:t}),e.end(t);return}e.push({type:"done",reason:t.stopReason,message:t}),e.end(t)}function Wi(e){let t=e.api??I(v),n=e.provider??L,o=Math.max(1,Math.min(e.tokenSize?.min??V,e.tokenSize?.max??F)),c=Math.max(o,e.tokenSize?.max??F),g=[],a=e.tokensPerSecond,s={callCount:0,deferredFetchCount:0,cancelledDeferred:[]},f=new Map,u=new Map,w=((e.models?.length)?e.models:[{id:b,name:Z,reasoning:!1,input:["text","image"],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:128000,maxTokens:16384}]).map((r)=>({id:r.id,name:r.name??r.id,api:t,provider:n,baseUrl:G,reasoning:r.reasoning??!1,input:r.input??["text","image"],inputLimits:r.inputLimits,cost:r.cost??{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:r.contextWindow??128000,maxTokens:r.maxTokens??16384})),y=async(r,p,h,l)=>{let i=typeof r==="function"?await r(p,h,s,l):r;return C(te(i,t,n,l.id),p,h,f)},M=(r,p,h)=>{let l=_n(),i=g.shift();return s.callCount++,queueMicrotask(async()=>{try{if(await h?.onResponse?.({status:200,headers:{}},r),!i){let m=T(Error("No more faux responses queued"),t,n,r.id);m=C(m,p,h,f),l.push({type:"error",reason:"error",error:m}),l.end(m);return}if(h?.deferred){let m={provider:r.provider,modelId:r.id,api:r.api,id:I("deferred"),...e.deferred?.pollAfterMs!==void 0?{pollAfterMs:e.deferred.pollAfterMs}:{}};u.set(m.id,{handle:m,step:i,context:p,options:h,model:r,pendingFetches:Math.max(0,Math.floor(e.deferred?.pendingFetches??0)),cancelled:!1}),await _(l,S(r,m),o,c,a,h.signal);return}let R=await y(i,p,h,r);await _(l,R,o,c,a,h?.signal)}catch(R){let m=T(R,t,n,r.id);l.push({type:"error",reason:"error",error:m}),l.end(m)}}),l},j=(r,p,h)=>M(r,p,h),z=(r,p,h)=>{let l=_n();return s.deferredFetchCount++,queueMicrotask(async()=>{try{await h?.onResponse?.({status:200,headers:{}},r);let i=u.get(p.id);if(!i||i.handle.provider!==p.provider||i.handle.modelId!==p.modelId||i.handle.api!==p.api)throw Error(`Unknown faux deferred response: ${p.id}`);if(i.cancelled)throw Error(`Faux deferred response was cancelled: ${p.id}`);if(i.pendingFetches>0){i.pendingFetches--,await _(l,S(r,i.handle),o,c,a,h?.signal);return}if(!i.final){let{deferred:R,signal:m,onResponse:ne,...B}=i.options??{};try{i.final=await y(i.step,i.context,B,i.model)}catch(O){i.final=T(O,t,n,i.model.id)}}await _(l,i.final,o,c,a,h?.signal)}catch(i){let R=T(i,t,n,r.id);l.push({type:"error",reason:"error",error:R}),l.end(R)}}),l},J=async(r,p,h)=>{s.cancelledDeferred.push(structuredClone(p));let l=u.get(p.id);if(l)l.cancelled=!0;await h?.onResponse?.({status:200,headers:{}},r)};function K(r){if(!r)return w[0];return w.find((p)=>p.id===r)}return{api:t,provider:n,models:w,stream:M,streamSimple:j,fetchDeferred:z,cancelDeferred:J,getModel:K,state:s,setResponses(r){g=[...r]},appendResponses(r){g.push(...r)},getPendingResponseCount(){return g.length}}}function io(e={}){let t=Wi(e);return{provider:d({id:t.provider,auth:{apiKey:{name:"Faux",resolve:async()=>({auth:{}})}},models:t.models,api:{stream:t.stream,streamSimple:t.streamSimple,fetchDeferred:t.fetchDeferred,cancelDeferred:t.cancelDeferred}}),api:t.api,models:t.models,getModel:t.getModel,state:t.state,setResponses:t.setResponses,appendResponses:t.appendResponses,getPendingResponseCount:t.getPendingResponseCount}}
|
|
11
|
-
export{xt,yn,oo,Yt,Wi,io};
|
package/chunk-cr0tqn6j.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function r(e){let t=e[e.length-1];return t&&t.role!=="user"?"agent":"user"}function Ct(e){return e.some((t)=>{if(t.role==="user"&&Array.isArray(t.content))return t.content.some((n)=>n.type==="image");if(t.role==="toolResult"&&Array.isArray(t.content))return t.content.some((n)=>n.type==="image");return!1})}function It(e){let t={"X-Initiator":r(e.messages),"Openai-Intent":"conversation-edits"};if(e.hasImages)t["Copilot-Vision-Request"]="true";return t}
|
|
3
|
-
export{Ct,It};
|
package/chunk-e0ytnnwt.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{dr}from"./chunk-a3fpx924.js";var y=Promise.resolve(),M=60000,T=1e4,E=(r)=>r instanceof Error?r.message:String(r);function R(){return new Worker(new URL("./ui-test-worker.js",import.meta.url))}function I(r,e,t){if(!Number.isInteger(e)||e<1||e>t)throw Error(`${r} must be between 1 and ${t}`)}async function $n(r,e,t={}){let l=t.timeoutMs??M,u=t.importTimeoutMs??T;I("timeoutMs",l,M),I("importTimeoutMs",u,T);let i=y,p=Promise.withResolvers();y=i.then(()=>p.promise);let o=new AbortController,n=t.signal?AbortSignal.any([t.signal,o.signal]):o.signal,g,b,f,w=new Map,c=Promise.withResolvers(),k=()=>c.reject(n.reason??Error("UI test cancelled"));n.addEventListener("abort",k,{once:!0});async function h(d,s){let m=new AbortController;w.set(s.id,m);try{if(!t.runtime)throw Error("API unavailable during module inspection");let a=await dr(t.runtime,s.input,AbortSignal.any([n,m.signal]));if(!n.aborted)d.postMessage({type:"response",id:s.id,response:a})}catch(a){if(!n.aborted)d.postMessage({type:"response",id:s.id,error:E(a)})}finally{w.delete(s.id)}}try{n.throwIfAborted(),f=setTimeout(()=>o.abort(Error(`UI execution timed out after ${l}ms`)),l),await Promise.race([i,c.promise]),n.throwIfAborted();let d=typeof r==="string"?{source:r,css:t.css}:await Promise.race([r(),c.promise.then(()=>{throw Error("Worker finished before startup")})]);n.throwIfAborted();let s=R();return g=s,s.onerror=(m)=>c.reject(Error(m.message)),s.onmessage=(m)=>{let a=m.data;switch(a.type){case"importing":b=setTimeout(()=>o.abort(Error(`UI import timed out after ${u}ms`)),u);break;case"imported":clearTimeout(b);break;case"done":c.resolve(a.result);break;case"error":c.reject(Error(a.error));break;case"cancel":w.get(a.id)?.abort();break;case"request":h(s,a);break}},s.postMessage({type:"start",...d,id:e,input:t.input}),await c.promise}finally{clearTimeout(f),clearTimeout(b),n.removeEventListener("abort",k),o.abort();for(let d of w.values())d.abort();g?.terminate(),p.resolve()}}async function Rs(r,e,t){t?.throwIfAborted();let l=r.plugins.list().find((o)=>o.id===e.id);if(l?.status!=="enabled")throw Error("Load and enable the plugin before ui_test");if([e.slot,e.view,e.codeBlock].filter(Boolean).length!==1)throw Error("ui_test requires exactly one of slot, view or codeBlock");let u=e.view?l.web?.find((o)=>o.view===e.view):void 0;if(e.view&&u&&e.kind&&u.kind!==e.kind)throw Error(`View kind mismatch: expected ${u.kind}, got ${e.kind}`);let i=e.kind??u?.kind;if(i!==void 0&&i!=="page"&&i!=="tab"&&i!=="card"&&i!=="sidebar")throw Error(`Unsupported view kind: ${i}`);let p=await $n(async()=>{let o=await r.plugins.webBundle(e.id);if(!o)throw Error("Plugin has no dynamic Web bundle");let n=await r.plugins.webCSS(e.id);return{source:o,css:n}},e.id,{input:{...e,kind:i},runtime:r,signal:t,timeoutMs:e.timeoutMs,importTimeoutMs:e.importTimeoutMs});if(!("steps"in p))throw Error("Worker returned an invalid UI report");return p}
|
|
3
|
-
export{$n,Rs};
|
package/chunk-e2m8ap8f.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function V(t){if(!(t instanceof Error))return{message:u(t),messageCarriesBody:!1};let e=t,n=d(e),s=o(e),r=s===void 0||t.message.includes(s);return{status:n,body:s,message:t.message,messageCarriesBody:r}}function d(t){if(typeof t.statusCode==="number")return t.statusCode;if(typeof t.status==="number")return t.status;if(typeof t.$metadata?.httpStatusCode==="number")return t.$metadata.httpStatusCode;if(typeof t.$response?.statusCode==="number")return t.$response.statusCode;return}function o(t){let e=f(t);if(e===void 0)return;let n=e.trim();if(n.length===0)return;return c(n,4000)}function f(t){if(typeof t.body==="string")return t.body;if(i(t.error))return u(t.error);let e=t.$response?.body;if(typeof e==="string")return e;if(a(e))return;if(i(e))return u(e);return}function a(t){return typeof t==="object"&&t!==null&&"pipe"in t&&typeof t.pipe==="function"}function i(t){if(typeof t!=="object"||t===null)return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;return Object.keys(t).length>0}function X(t,e){if(t.messageCarriesBody||t.status===void 0||t.body===void 0)return e!==void 0&&t.status!==void 0?`${e} (${t.status}): ${t.message}`:t.message;return e!==void 0?`${e} (${t.status}): ${t.body}`:`${t.status}: ${t.body}`}function c(t,e){if(t.length<=e)return t;return`${t.slice(0,e)}... [truncated ${t.length-e} chars]`}function u(t){try{let e=JSON.stringify(t);return e===void 0?String(t):e}catch{return String(t)}}
|
|
3
|
-
export{V,X};
|
package/chunk-e8xywvv4.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var mt={name:"@basalt/cli",version:"0.1.21",private:!0,type:"module",imports:{"#*":"./src/*","#test/*":"./test/*"},bin:{basalt:"./src/main.ts"},scripts:{typecheck:"tsgo --noEmit -p ."},dependencies:{"@basalt/builtins":"workspace:*","@basalt/core":"workspace:*","@basalt/protocol":"workspace:*","@basalt/server":"workspace:*","@basalt/web":"workspace:*","@earendil-works/pi-ai":"1.2.0"},exports:{"./plugin-sdk":"./src/plugin-sdk.ts"}};
|
|
3
|
-
export{mt};
|
package/chunk-enmrpjpt.js
DELETED
package/chunk-ewaskman.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bn}from"./chunk-x1y4s01x.js";import"./chunk-ak9rkrf3.js";import{zr,bi}from"./chunk-ftg4b5pa.js";import{gt,at,yt}from"./chunk-np123myw.js";import{et}from"./chunk-4fbj3k59.js";import{se}from"./chunk-keq5kv9b.js";import{pe}from"./chunk-fj56fznw.js";import{V,X}from"./chunk-e2m8ap8f.js";import{Re,bt,Y}from"./chunk-43qf44t8.js";import{J}from"./chunk-0b2brwjc.js";import{W,ae,_e,Ae,K}from"./chunk-35y6nf6k.js";var g=new Set(["openai","openai-codex","opencode","azure"]),h=16;function y(r){return X(V(r),"Azure OpenAI API error")}var A=(r,a,e)=>{let t=new W,i=ae(a,r.compat?.supportsMidConvoSystemMessages);return(async()=>{let n=zr(r,e),s={role:"assistant",content:[],api:"azure-openai-responses",provider:r.provider,model:r.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{let p=e?.apiKey;if(!p)throw Error(`No API key for provider: ${r.provider}`);let c=R(r,p,e),o=Re(_e(i.messages),r.compat?.supportsOpenAIGrammarTools??!1),m=T(r,i,e,n,o),u=await e?.onPayload?.(m,r);if(u!==void 0)m=u;let f={...e?.signal?{signal:e.signal}:{},...e?.timeoutMs!==void 0?{timeout:e.timeoutMs}:{},maxRetries:0},{data:d,response:l}=await pe(()=>c.responses.create(m,f).withResponse(),{maxRetries:e?.maxRetries,maxRetryDelayMs:e?.maxRetryDelayMs,signal:e?.signal});if(await e?.onResponse?.({status:l.status,headers:J(l.headers)},r),t.push({type:"start",partial:s}),await yt(d,s,t,r,{onProviderStreamEvent:e?.onProviderStreamEvent,grammarToolInputProperties:o}),e?.signal?.aborted)throw Error("Request was aborted");if(s.stopReason==="pending")throw Error("Azure OpenAI Responses stream ended without a stop reason");if(s.stopReason==="aborted"||s.stopReason==="error")throw Error(s.errorMessage||"An unknown error occurred");t.push({type:"done",reason:s.stopReason,message:s}),t.end()}catch(p){for(let c of s.content)delete c.index,delete c.partialJson,delete c.customInput;s.stopReason=e?.signal?.aborted?"aborted":"error",s.errorMessage=y(p),t.push({type:"error",reason:s.stopReason,error:s}),t.end()}})(),t},z=(r,a,e)=>{let t=e?.apiKey;if(!t)throw Error(`No API key for provider: ${r.provider}`);let i={...Y(r,a,e,t),toolChoice:e?.toolChoice},n=e?.reasoning?K(r,e.reasoning):void 0;return A(r,a,{...i,reasoningEffort:n==="off"?void 0:n})};function R(r,a,e){let t={"User-Agent":se(),...r.headers};if(e?.headers)Object.assign(t,e.headers);let{baseUrl:i,apiVersion:n}=bi(r,e);return new Bn({apiKey:a,apiVersion:n,dangerouslyAllowBrowser:!0,fetch:e?.fetch,defaultHeaders:t,baseURL:i})}function T(r,a,e,t,i=Re(_e(a.messages),r.compat?.supportsOpenAIGrammarTools??!1)){let n=r.compat?.supportsAdditionalTools??!1,s=r.compat?.supportsToolSearch??!1,p=Ae(a.messages,n||s),c=gt(r,a,g,{grammarToolInputProperties:i,supportsMidConvoSystemMessages:r.compat?.supportsMidConvoSystemMessages??!1,supportsAdditionalTools:n,supportsToolSearch:s,toolOptions:{supportsStrictMode:r.compat?.supportsStrictMode??!0,supportsOpenAIGrammarTools:r.compat?.supportsOpenAIGrammarTools??!1}}),o={model:t,input:c,stream:!0,prompt_cache_key:et(e?.sessionId),store:!1};if(e?.maxTokens)o.max_output_tokens=Math.max(e.maxTokens,h);if(e?.temperature!==void 0)o.temperature=e?.temperature;if(p.requestTools.length>0)o.tools=at(p.requestTools,{supportsStrictMode:r.compat?.supportsStrictMode??!0,supportsOpenAIGrammarTools:r.compat?.supportsOpenAIGrammarTools??!1});if(e?.toolChoice!==void 0)o.tool_choice=e.toolChoice;let m=e?.reasoningEffort??(e?.reasoningSummary?"medium":void 0);if(r.reasoning){if(m){let f=e?.reasoningEffort?r.thinkingLevelMap?.[e.reasoningEffort]??e.reasoningEffort:m;o.reasoning={effort:f,summary:e?.reasoningSummary||"auto"},o.include=["reasoning.encrypted_content"]}else if(r.thinkingLevelMap?.off!==null)o.reasoning={effort:r.thinkingLevelMap?.off??"none"}}let u=bt(r,m??"off",e?.samplingParams);if(u)Object.assign(o,u);return o}export{A as stream,z as streamSimple};
|
package/chunk-feyt85gg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ze,dt}from"./chunk-qn70tm91.js";import{je}from"./chunk-qtgc74er.js";import{Ye,ke,B}from"./chunk-9w1m9av8.js";import{Ee,te,_,Te,re,st,j}from"./chunk-k9x1r69s.js";var{awsEndpointFunctions:Pe,emitWarningIfUnsupportedVersion:Ce,createDefaultUserAgentProvider:Ae,NODE_APP_ID_CONFIG_OPTIONS:ye,getAwsRegionExtensionConfiguration:Oe,resolveAwsRegionExtensionConfiguration:we,resolveUserAgentConfig:De,resolveHostHeaderConfig:Re,getUserAgentPlugin:$e,getHostHeaderPlugin:Ne,getLoggerPlugin:be,getRecursionDetectionPlugin:Ue}=B(),{NoAuthSigner:Fe,getHttpAuthSchemeEndpointRuleSetPlugin:qe,DefaultIdentityProviderConfig:He,getHttpSigningPlugin:Ge}=ke(),{normalizeProvider:K,getSmithyContext:Me,ServiceException:Ke,NoOpLogger:Ve,emitWarningIfUnsupportedVersion:Le,loadConfigsForDefaultMode:Be,getDefaultExtensionConfiguration:We,resolveDefaultRuntimeConfig:Je,Client:V,makeBuilder:Xe,createAggregatedClient:Qe}=te(),{Command:Ze}=te();var Kr=Ze,Vr=V;var{resolveDefaultsModeConfig:et,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:tt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:rt,NODE_REGION_CONFIG_OPTIONS:ot,NODE_REGION_CONFIG_FILE_OPTIONS:nt,resolveRegionConfig:it}=_(),{BinaryDecisionDiagram:ct,EndpointCache:at,decideEndpoint:pt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=Te(),{parseUrl:Et,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:_t,getContentLengthPlugin:mt}=j(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:St,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ft,resolveRetryConfig:It,getRetryPlugin:vt}=Ye(),{TypeRegistry:L,getSchemaSerdePlugin:Pt}=Ee(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=ze(),{toUtf8:Tt,fromUtf8:Ot,toBase64:wt,fromBase64:Dt,calculateBodyLength:Rt}=re(),{streamCollector:kt,NodeHttpHandler:$t}=je(),{AwsRestJsonProtocol:Nt}=dt(),{Sha256:bt}=st(),Ut=async(e,t,n)=>({operation:Me(t).operation,region:await K(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var zt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Ht=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:K(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jt="3.997.47",Kt={version:jt},m="ref",E=-1,S=!0,z="isSet",W="PartitionResult",f="booleanEquals",N="getAttr",H={[m]:"Endpoint"},b={[m]:W},g={},G=[{[m]:"Region"}],M={conditions:[[z,[H]],[z,G],["aws.partition",G,W],[f,[{[m]:"UseFIPS"},S]],[f,[{[m]:"UseDualStack"},S]],[f,[{fn:N,argv:[b,"supportsDualStack"]},S]],[f,[{fn:N,argv:[b,"supportsFIPS"]},S]],["stringEquals",[{fn:N,argv:[b,"name"]},"aws-us-gov"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[H,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",g],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",g],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[E,"Invalid Configuration: Missing Region"]]},Vt=2,c=1e8,Lt=new Int32Array([-1,1,-1,0,13,3,1,4,c+12,2,5,c+12,3,8,6,4,7,c+11,5,c+9,c+10,4,11,9,6,10,c+8,7,c+6,c+7,5,12,c+5,6,c+4,c+5,3,c+1,14,4,c+2,c+3]),Bt=ct.from(Lt,Vt,M.conditions,M.results),Wt=new at({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>pt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=Pe;class i extends Ke{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class I extends i{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class v extends i{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends i{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class y extends i{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.error_description=e.error_description}}class T extends i{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class O extends i{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class w extends i{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}class R extends i{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype),this.error=e.error,this.error_description=e.error_description}}var Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",dr="InvalidScopeException",pr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",Er="UnsupportedGrantTypeException",gr="accessToken",l="client",_r="clientId",mr="clientSecret",xr="codeVerifier",Sr="code",fr="deviceCode",r="error",Ir="expiresIn",p="error_description",vr="grantType",Pr="http",u="httpError",Cr="idToken",Y="reason",J="refreshToken",Ar="redirectUri",X="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",Q=new L(X),Z=[-3,X,"SSOOIDCServiceException",0,[],[]];Q.registerError(Z,i);var a=new L(o),ee=[-3,o,Jt,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(ee,I);var oe=[-3,o,Xt,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(oe,v);var ne=[-3,o,nr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ne,P);var se=[-3,o,ar,{[r]:Tr,[u]:500},[r,p],[0,0]];a.registerError(se,C);var ie=[-3,o,sr,{[r]:l,[u]:401},[r,p],[0,0]];a.registerError(ie,A);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ce,y);var ae=[-3,o,cr,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(ae,T);var de=[-3,o,dr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(de,O);var pe=[-3,o,lr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(pe,w);var ue=[-3,o,hr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ue,D);var le=[-3,o,Er,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(le,R);var he=[Q,a],wr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],Rr=[0,o,or,8,0],kr=[0,o,pr,8,0],ge=[0,o,ur,8,0],_e=[3,o,tr,0,[_r,mr,vr,fr,Sr,J,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>ge,0],64,0,[()=>Rr,0]],3],me=[3,o,rr,0,[gr,Or,Ir,J,Cr],[[()=>wr,0],0,1,[()=>ge,0],[()=>kr,0]]],xe=[9,o,er,{[Pr]:["POST","/token",200]},()=>_e,()=>me],$r=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??zt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fe}],logger:e?.logger??new Ve,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:he,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??Et,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Le(process.version);let t=et(e),n=()=>t().then(Be),d=$r(e);Ce(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(yt,s),bodyLengthChecker:e?.bodyLengthChecker??Rt,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ae({serviceId:d.serviceId,clientVersion:Kt.version}),maxAttempts:e?.maxAttempts??h(ft,e),region:e?.region??h(ot,{...nt,...s}),requestHandler:$t.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...St,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??kt,useDualstackEndpoint:e?.useDualstackEndpoint??h(rt,s),useFipsEndpoint:e?.useFipsEndpoint??h(tt,s),userAgentAppId:e?.userAgentAppId??h(ye,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:d}=e;return{setHttpAuthScheme(s){let x=t.findIndex((k)=>k.schemeId===s.schemeId);if(x===-1)t.push(s);else t.splice(x,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){d=s},credentials(){return d}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Oe(e),We(e),gt(e),br(e));return t.forEach((d)=>d.configure(n)),Object.assign(e,we(n),Je(n),_t(n),Ur(n))};class U extends V{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),d=De(n),s=It(d),x=it(s),k=Re(x),Se=lt(k),fe=Ht(Se),Ie=Fr(fe,e?.extensions||[]);this.config=Ie,this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(Ue(this.config)),this.middlewareStack.use(qe(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(ve)=>new He({"aws.auth#sigv4":ve.credentials})})),this.middlewareStack.use(Ge(this.config))}destroy(){super.destroy()}}var qr=Xe(Mt,"AWSSSOOIDCService","SSOOIDCClient",ht),zr={},Hr=(e,t,n,d)=>[];class F extends qr(zr,Hr,"CreateToken",xe){}var Gr={CreateTokenCommand:F};class q extends U{}Qe(Gr,q);var Mr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},jr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=I,Br=ee,Wr=Mr,Yr=v,Jr=oe,Xr=xe,Qr=F,Zr=_e,eo=me,to=P,ro=ne,oo=C,no=se,so=A,io=ie,co=y,ao=ce,po=T,uo=ae,lo=jr,ho=O,Eo=de,go=q,_o=U,mo=i,xo=Z,So=w,fo=pe,Io=D,vo=ue,Po=R,Co=le,Ao=he;export{Kr as $Command,Vr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,Eo as InvalidScopeException$,go as SSOOIDC,_o as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,So as SlowDownException,fo as SlowDownException$,Io as UnauthorizedClientException,vo as UnauthorizedClientException$,Po as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|
package/chunk-fj56fznw.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function c(e){if(!(e instanceof Error)||!("status"in e)||!("headers"in e))return!1;return(e.status===void 0||typeof e.status==="number")&&(e.headers===void 0||e.headers instanceof Headers)}function d(e){let t=e.headers?.get("x-should-retry");if(t==="true")return!0;if(t==="false")return!1;if(e.status===void 0)return!0;return e.status===408||e.status===409||e.status===429||typeof e.status==="number"&&e.status>=500}function f(e,t,s){let n=t??60000;if(n>0&&e>n)throw Error(`Server requested ${Math.ceil(e/1000)}s retry delay (max: ${Math.ceil(n/1000)}s). ${s}`);return e}function l(e,t,s){let n=e.headers?.get("retry-after-ms");if(n){let a=Number.parseFloat(n);if(Number.isFinite(a))return f(a,s,e.message)}let r=e.headers?.get("retry-after");if(r){let a=Number.parseFloat(r),o=Number.isNaN(a)?Date.parse(r)-Date.now():a*1000;if(Number.isFinite(o))return f(o,s,e.message)}return Math.min(0.5*2**t,8)*1000*(1-Math.random()*0.25)}function i(){let e=Error("Request aborted");return e.name="AbortError",e}function m(e,t){return new Promise((s,n)=>{if(t?.aborted){n(i());return}let r=()=>{clearTimeout(u),n(i())},u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},Math.max(0,e));t?.addEventListener("abort",r,{once:!0})})}async function pe(e,t={}){let s=t.maxRetries??0,n=s;for(;;)try{return await e()}catch(r){if(t.signal?.aborted)throw i();if(n<=0||!c(r)||!d(r))throw r;if(r.status!==void 0&&t.noRetryStatuses?.includes(r.status))throw r;let u=s-n;n--,await m(l(r,u,t.maxRetryDelayMs),t.signal)}}
|
|
3
|
-
export{pe};
|
package/chunk-ftg4b5pa.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{E}from"./chunk-c5ydt3vq.js";var i="v1";function s(r){let e=new Map;if(!r)return e;for(let t of r.split(",")){let a=t.trim();if(!a)continue;let[n,o]=a.split("=",2);if(!n||!o)continue;e.set(n.trim(),o.trim())}return e}function zr(r,e){if(e?.azureDeploymentName)return e.azureDeploymentName;return s(E("AZURE_OPENAI_DEPLOYMENT_NAME_MAP",e?.env)).get(r.id)||r.id}function m(r){let e=r.trim().replace(/\/+$/,""),t;try{t=new URL(e)}catch{throw Error(`Invalid Azure OpenAI base URL: ${r}`)}let a=t.hostname.endsWith(".openai.azure.com")||t.hostname.endsWith(".cognitiveservices.azure.com")||t.hostname.endsWith(".ai.azure.com"),n=t.pathname.replace(/\/+$/,"");if(a&&(n===""||n==="/"||n==="/openai"||n==="/openai/v1/responses"))t.pathname="/openai/v1",t.search="";return t.toString().replace(/\/+$/,"")}function u(r){return`https://${r}.openai.azure.com/openai/v1`}function No(r,e){let t=e?.azureBaseUrl?.trim()||E("AZURE_OPENAI_BASE_URL",e?.env)?.trim()||void 0,a=e?.azureResourceName||E("AZURE_OPENAI_RESOURCE_NAME",e?.env),n=t;if(!n&&a)n=u(a);if(!n&&r.baseUrl)n=r.baseUrl;if(!n)throw Error("Azure OpenAI base URL is required. Set AZURE_OPENAI_BASE_URL or AZURE_OPENAI_RESOURCE_NAME, or pass azureBaseUrl, azureResourceName, or model.baseUrl.");return m(n)}function bi(r,e){return{baseUrl:No(r,e),apiVersion:e?.azureApiVersion||E("AZURE_OPENAI_API_VERSION",e?.env)||i}}
|
|
3
|
-
export{zr,No,bi};
|
package/chunk-g6cc7ac1.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{S}from"./chunk-x1y4s01x.js";import{E}from"./chunk-c5ydt3vq.js";import"./chunk-ak9rkrf3.js";import{gt,at,yt}from"./chunk-np123myw.js";import{et}from"./chunk-4fbj3k59.js";import{Ct,It}from"./chunk-cr0tqn6j.js";import{se}from"./chunk-keq5kv9b.js";import{pe}from"./chunk-fj56fznw.js";import{V,X}from"./chunk-e2m8ap8f.js";import{Re,bt,Y}from"./chunk-43qf44t8.js";import{J}from"./chunk-0b2brwjc.js";import{W,ae,_e,Ae,K}from"./chunk-35y6nf6k.js";var A=new Set(["openai","openai-codex","opencode","chatgpt:subscription"]),P=16,O="https://chatgpt.com/settings/usage";function _(e,s){return(e.provider==="openai"||e.provider==="chatgpt:subscription")&&e.baseUrl==="https://api.openai.com/v1"&&s!==void 0&&!s.startsWith("sk-")}function h(e,s){if(!e)return!1;let r=s.toLowerCase();for(let[t,i]of Object.entries(e))if(t.toLowerCase()===r&&i!==null&&i.trim().length>0)return!0;return!1}function T(e,s,r){if(s)return s;if(h(r,"authorization")||h(r,"cf-aig-authorization"))return"unused";throw Error(`No API key for provider: ${e}`)}function I(e){return e.provider==="openrouter"||e.baseUrl.includes("openrouter.ai")?"openrouter":"openai"}function v(e,s){if(e)return e;if(E("PI_CACHE_RETENTION",s)==="long")return"long";return"short"}function d(e){return{supportsDeveloperRole:e.compat?.supportsDeveloperRole??!0,supportsMidConvoSystemMessages:e.compat?.supportsMidConvoSystemMessages??!1,sessionAffinityFormat:e.compat?.sessionAffinityFormat??I(e),supportsLongCacheRetention:e.compat?.supportsLongCacheRetention??!0,supportsStrictMode:e.compat?.supportsStrictMode??!1,supportsOpenAIGrammarTools:e.compat?.supportsOpenAIGrammarTools??!1,supportsAdditionalTools:e.compat?.supportsAdditionalTools??!1,supportsToolSearch:e.compat?.supportsToolSearch??!1,supportsExplicitPromptCacheMode:e.compat?.supportsExplicitPromptCacheMode??!1,supportsMaxOutputTokens:e.compat?.supportsMaxOutputTokens??!0}}function w(e,s){return s==="long"&&e.supportsLongCacheRetention&&!e.supportsExplicitPromptCacheMode?"24h":void 0}function x(e,s){if(!e.supportsExplicitPromptCacheMode)return;if(s==="none")return{mode:"explicit"};if(s==="long"&&e.supportsLongCacheRetention)return{ttl:"30m"};return}var b=(e,s,r)=>{let t=new W,i=ae(s,d(e).supportsMidConvoSystemMessages);return(async()=>{let o={role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{let c=T(e.provider,r?.apiKey,r?.headers),p=v(r?.cacheRetention,r?.env)==="none"?void 0:r?.sessionId,n=d(e),u=Re(_e(i.messages),n.supportsOpenAIGrammarTools),l=k(e,i,c,r?.headers,r?.fetch,p),f=L(e,i,r,n,u),m=await r?.onPayload?.(f,e);if(m!==void 0)f=m;let R={...r?.signal?{signal:r.signal}:{},...r?.timeoutMs!==void 0?{timeout:r.timeoutMs}:{},maxRetries:0},{data:y,response:g}=await pe(()=>l.responses.create(f,R).withResponse(),{maxRetries:r?.maxRetries,maxRetryDelayMs:r?.maxRetryDelayMs,signal:r?.signal});if(await r?.onResponse?.({status:g.status,headers:J(g.headers)},e),t.push({type:"start",partial:o}),await yt(y,o,t,e,{onProviderStreamEvent:r?.onProviderStreamEvent,serviceTier:r?.serviceTier,grammarToolInputProperties:u,applyServiceTierPricing:(M,C)=>U(M,C,e)}),r?.signal?.aborted)throw Error("Request was aborted");if(o.stopReason==="pending")throw Error("OpenAI Responses stream ended without a stop reason");if(o.stopReason==="aborted"||o.stopReason==="error")throw Error(o.errorMessage||"An unknown error occurred");t.push({type:"done",reason:o.stopReason,message:o}),t.end()}catch(c){for(let p of o.content)delete p.index,delete p.partialJson,delete p.customInput;o.stopReason=r?.signal?.aborted?"aborted":"error";let a=X(V(c),`${e.provider==="openai"?"OpenAI":e.provider} API error`);o.errorMessage=a.includes("subscription_sharing_usage_limit_exceeded")?`${a}
|
|
3
|
-
Check your ChatGPT usage: ${O}`:a,t.push({type:"error",reason:o.stopReason,error:o}),t.end()}})(),t},ne=(e,s,r)=>{T(e.provider,r?.apiKey,r?.headers);let t={...Y(e,s,r,r?.apiKey),toolChoice:r?.toolChoice},i=r?.reasoning?K(e,r.reasoning):void 0;return b(e,s,{...t,reasoningEffort:i==="off"?void 0:i})};function k(e,s,r,t,i,o){let c=d(e),a={"User-Agent":se(),...e.headers};if(e.provider==="github-copilot"){let p=Ct(s.messages),n=It({messages:s.messages,hasImages:p});Object.assign(a,n)}if(o)if(c.sessionAffinityFormat==="openrouter")a["x-session-id"]=o;else{if(c.sessionAffinityFormat==="openai")a.session_id=o;a["x-client-request-id"]=o}if(t)Object.assign(a,t);return new S({apiKey:r,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:i,defaultHeaders:a})}function L(e,s,r,t=d(e),i=Re(_e(s.messages),t.supportsOpenAIGrammarTools)){let o=Ae(s.messages,t.supportsAdditionalTools||t.supportsToolSearch),c=gt(e,s,A,{grammarToolInputProperties:i,supportsMidConvoSystemMessages:t.supportsMidConvoSystemMessages,supportsAdditionalTools:t.supportsAdditionalTools,supportsToolSearch:t.supportsToolSearch,toolOptions:{supportsStrictMode:t.supportsStrictMode,supportsOpenAIGrammarTools:t.supportsOpenAIGrammarTools}}),a=v(r?.cacheRetention,r?.env),p=_(e,r?.apiKey),n={model:e.id,input:c,stream:!0,prompt_cache_key:a==="none"?void 0:et(r?.sessionId),prompt_cache_retention:p?void 0:w(t,a),prompt_cache_options:p?void 0:x(t,a),store:!1};if(r?.maxTokens&&t.supportsMaxOutputTokens&&!p)n.max_output_tokens=Math.max(r.maxTokens,P);if(r?.temperature!==void 0&&!p)n.temperature=r?.temperature;if(r?.serviceTier!==void 0)n.service_tier=r.serviceTier;if(o.requestTools.length>0)n.tools=at(o.requestTools,{supportsStrictMode:t.supportsStrictMode,supportsOpenAIGrammarTools:t.supportsOpenAIGrammarTools});if(r?.toolChoice!==void 0)n.tool_choice=r.toolChoice;let u=r?.reasoningEffort??(r?.reasoningSummary?"medium":void 0);if(e.reasoning){if(u){let f=r?.reasoningEffort?e.thinkingLevelMap?.[r.reasoningEffort]??r.reasoningEffort:u;n.reasoning={effort:f,summary:r?.reasoningSummary||"auto"},n.include=["reasoning.encrypted_content"]}else if(e.provider!=="github-copilot"&&e.thinkingLevelMap?.off!==null)n.reasoning={effort:e.thinkingLevelMap?.off??"none"};if(e.provider==="xai")n.include=["reasoning.encrypted_content"]}let l=bt(e,u??"off",r?.samplingParams);if(l)Object.assign(n,l);return n}function G(e,s){switch(s){case"flex":return 0.5;case"priority":case"fast":return e.id==="gpt-5.5"?2.5:2;default:return 1}}function U(e,s,r){let t=G(r,s);if(t===1)return;e.cost.input*=t,e.cost.output*=t,e.cost.cacheRead*=t,e.cost.cacheWrite*=t,e.cost.total=e.cost.input+e.cost.output+e.cost.cacheRead+e.cost.cacheWrite}export{b as stream,ne as streamSimple};
|