@bkm016/basalt 0.1.35 → 0.1.36
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/README.md +1 -1
- package/chunk-082x3g29.js +3 -0
- package/chunk-0aaf270z.js +3 -0
- package/chunk-0dqv9x0y.js +51 -0
- package/chunk-0ns02fzq.js +2 -0
- package/chunk-0y13kfpt.js +5 -0
- package/chunk-1753m6xk.js +4179 -0
- package/chunk-24ae99b6.js +5 -0
- package/chunk-2cp8why4.js +2 -0
- package/chunk-3bdzn4h2.js +2 -0
- package/chunk-48m0w8xg.js +2 -0
- package/chunk-4pr7ykh0.js +2 -0
- package/chunk-4qtw5cga.js +12 -0
- package/chunk-4yqge35f.js +3 -0
- package/chunk-65rd9zn4.js +3 -0
- package/chunk-67ehvv4n.js +44 -0
- package/chunk-6wm62kte.js +18 -0
- package/chunk-6zkggkdm.js +13 -0
- package/chunk-78ferdza.js +3 -0
- package/chunk-794r8w6m.js +2 -0
- package/chunk-7azn0brs.js +7 -0
- package/chunk-7wh4n0yg.js +2 -0
- package/chunk-7z0wh161.js +25 -0
- package/chunk-95aqrqnh.js +2 -0
- package/chunk-a0zcps2d.js +2 -0
- package/chunk-a23pv6tv.js +3 -0
- package/chunk-adb2nbxk.js +2 -0
- package/chunk-as2ty5w5.js +3 -0
- package/chunk-b84y794v.js +3 -0
- package/chunk-bh80e336.js +3 -0
- package/chunk-c6azecvs.js +3 -0
- package/chunk-cc8h8mz9.js +2 -0
- package/chunk-cdb6caq7.js +3 -0
- package/chunk-cjdbsa9s.js +3 -0
- package/chunk-cnqgtmwm.js +10 -0
- package/chunk-cwn9vs1a.js +3 -0
- package/chunk-cxybp3fn.js +8 -0
- package/chunk-dea2htm4.js +2 -0
- package/chunk-e01wravf.js +12 -0
- package/chunk-f0pz8pvb.js +5 -0
- package/chunk-fvmrsrmq.js +3 -0
- package/chunk-fwdhn0gw.js +7 -0
- package/chunk-h7x8g57v.js +9 -0
- package/chunk-h8qhy3px.js +39 -0
- package/chunk-hsvchrh3.js +7 -0
- package/chunk-j1peg724.js +504 -0
- package/chunk-j2cse817.js +63 -0
- package/chunk-j3jzgw98.js +31 -0
- package/chunk-jmzdtefg.js +2 -0
- package/chunk-k0e6n6yy.js +3 -0
- package/chunk-mb2jqd5z.js +3 -0
- package/chunk-nbgtqpay.js +3 -0
- package/chunk-prfczhpq.js +10 -0
- package/chunk-pv25a7sw.js +2 -0
- package/chunk-q8m2x20d.js +286 -0
- package/chunk-qnkxeh37.js +3 -0
- package/chunk-qvfrv3rb.js +59 -0
- package/chunk-r14x07ez.js +2 -0
- package/chunk-r1kah65k.js +2 -0
- package/chunk-r6pt44wk.js +60 -0
- package/chunk-rhkw8ygf.js +3 -0
- package/chunk-rvqeb7gr.js +3 -0
- package/chunk-rwa7mfwa.js +2 -0
- package/chunk-sj46f002.js +2 -0
- package/chunk-sp89jja7.js +3 -0
- package/chunk-sss5x2ak.js +2 -0
- package/chunk-szn4y5mx.js +25 -0
- package/chunk-t05q9ksf.js +2 -0
- package/chunk-tb66q678.js +11 -0
- package/chunk-tej75y8n.js +2 -0
- package/chunk-tmfr2ym8.js +4 -0
- package/chunk-txwheg1n.js +2 -0
- package/chunk-ve6n38r4.js +16 -0
- package/chunk-vfa49qcy.js +3 -0
- package/chunk-wcy1r6vv.js +2 -0
- package/chunk-wj6am3ag.js +3 -0
- package/chunk-x0afp8wt.js +3 -0
- package/chunk-xe627eyp.js +20 -0
- package/chunk-y18ey7s9.js +8 -0
- package/chunk-y9r7tt53.js +3 -0
- package/chunk-yq20v3va.js +3 -0
- package/chunk-yyg4ygv7.js +2 -0
- package/chunk-z2zhr4e5.js +3 -0
- package/chunk-zdtg52xn.js +2 -0
- package/chunk-zrhdrkdb.js +5 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +33 -33
- package/web/chunk-0d0fwb7b.js +2 -0
- package/web/chunk-0d0fwb7b.js.br +0 -0
- package/web/chunk-0d0fwb7b.js.gz +0 -0
- package/web/chunk-0jm4zyrt.js +1 -0
- package/web/chunk-0jm4zyrt.js.br +0 -0
- package/web/chunk-0jm4zyrt.js.gz +0 -0
- package/web/chunk-0pp7dzx1.js +1 -0
- package/web/chunk-0pp7dzx1.js.br +0 -0
- package/web/chunk-0pp7dzx1.js.gz +0 -0
- package/web/chunk-0w73jp4n.js +1 -0
- package/web/chunk-0w73jp4n.js.br +0 -0
- package/web/chunk-0w73jp4n.js.gz +0 -0
- package/web/chunk-1416f30c.js +2 -0
- package/web/chunk-1416f30c.js.br +0 -0
- package/web/chunk-1416f30c.js.gz +0 -0
- package/web/chunk-18wyawez.js +30 -0
- package/web/chunk-18wyawez.js.br +0 -0
- package/web/chunk-18wyawez.js.gz +0 -0
- package/web/chunk-19ew9re5.js +1 -0
- package/web/chunk-19ew9re5.js.br +0 -0
- package/web/chunk-19ew9re5.js.gz +0 -0
- package/web/chunk-1mdtr9wk.js +8 -0
- package/web/chunk-1mdtr9wk.js.br +1 -0
- package/web/chunk-1mdtr9wk.js.gz +0 -0
- package/web/chunk-1p4egv85.js +1 -0
- package/web/chunk-1p4egv85.js.br +0 -0
- package/web/chunk-1p4egv85.js.gz +0 -0
- package/web/chunk-1x61dvvr.js +2 -0
- package/web/chunk-1x61dvvr.js.br +0 -0
- package/web/chunk-1x61dvvr.js.gz +0 -0
- package/web/chunk-241n0y1h.js +1 -0
- package/web/chunk-241n0y1h.js.br +0 -0
- package/web/chunk-241n0y1h.js.gz +0 -0
- package/web/chunk-26sgnzb2.js +1 -0
- package/web/chunk-26sgnzb2.js.br +0 -0
- package/web/chunk-26sgnzb2.js.gz +0 -0
- package/web/chunk-2p77pefd.js +1 -0
- package/web/chunk-2p77pefd.js.br +0 -0
- package/web/chunk-2p77pefd.js.gz +0 -0
- package/web/chunk-2ppe5znq.js +1 -0
- package/web/chunk-2ppe5znq.js.br +0 -0
- package/web/chunk-2ppe5znq.js.gz +0 -0
- package/web/chunk-2qzr943m.js +2 -0
- package/web/chunk-2qzr943m.js.br +0 -0
- package/web/chunk-2qzr943m.js.gz +0 -0
- package/web/chunk-32k44660.js +214 -0
- package/web/chunk-32k44660.js.br +0 -0
- package/web/chunk-32k44660.js.gz +0 -0
- package/web/chunk-33zb5a76.js +2 -0
- package/web/chunk-33zb5a76.js.br +0 -0
- package/web/chunk-33zb5a76.js.gz +0 -0
- package/web/chunk-38bzkv9k.js +7 -0
- package/web/chunk-38bzkv9k.js.br +0 -0
- package/web/chunk-38bzkv9k.js.gz +0 -0
- package/web/chunk-42ytz496.js +1 -0
- package/web/chunk-42ytz496.js.br +0 -0
- package/web/chunk-42ytz496.js.gz +0 -0
- package/web/chunk-4749rrqv.js +55 -0
- package/web/chunk-4749rrqv.js.br +0 -0
- package/web/chunk-4749rrqv.js.gz +0 -0
- package/web/chunk-4d57cnh5.js +40 -0
- package/web/chunk-4d57cnh5.js.br +0 -0
- package/web/chunk-4d57cnh5.js.gz +0 -0
- package/web/chunk-4gh3hcrc.js +1 -0
- package/web/chunk-4gh3hcrc.js.br +0 -0
- package/web/chunk-4gh3hcrc.js.gz +0 -0
- package/web/chunk-4hg08mj3.js +1 -0
- package/web/chunk-4hg08mj3.js.br +0 -0
- package/web/chunk-4hg08mj3.js.gz +0 -0
- package/web/chunk-4rra9tt7.js +78 -0
- package/web/chunk-4rra9tt7.js.br +0 -0
- package/web/chunk-4rra9tt7.js.gz +0 -0
- package/web/chunk-572kjbne.js +89 -0
- package/web/chunk-572kjbne.js.br +0 -0
- package/web/chunk-572kjbne.js.gz +0 -0
- package/web/chunk-5hqe3cct.js +98 -0
- package/web/chunk-5hqe3cct.js.br +0 -0
- package/web/chunk-5hqe3cct.js.gz +0 -0
- package/web/chunk-5k4vdcwk.js +24 -0
- package/web/chunk-5k4vdcwk.js.br +0 -0
- package/web/chunk-5k4vdcwk.js.gz +0 -0
- package/web/chunk-5z44jbdc.js +1 -0
- package/web/chunk-5z44jbdc.js.br +0 -0
- package/web/chunk-5z44jbdc.js.gz +0 -0
- package/web/chunk-600x58nm.js +1143 -0
- package/web/chunk-600x58nm.js.br +0 -0
- package/web/chunk-600x58nm.js.gz +0 -0
- package/web/chunk-61djfs0t.js +140 -0
- package/web/chunk-61djfs0t.js.br +0 -0
- package/web/chunk-61djfs0t.js.gz +0 -0
- package/web/chunk-6j4jdvtd.js +1 -0
- package/web/chunk-6j4jdvtd.js.br +0 -0
- package/web/chunk-6j4jdvtd.js.gz +0 -0
- package/web/chunk-74ymgabb.js +2 -0
- package/web/chunk-74ymgabb.js.br +0 -0
- package/web/chunk-74ymgabb.js.gz +0 -0
- package/web/chunk-768vchz5.js +169 -0
- package/web/chunk-768vchz5.js.br +0 -0
- package/web/chunk-768vchz5.js.gz +0 -0
- package/web/chunk-7f87paxe.js +36 -0
- package/web/chunk-7f87paxe.js.br +0 -0
- package/web/chunk-7f87paxe.js.gz +0 -0
- package/web/chunk-7ns0kj87.js +2 -0
- package/web/chunk-7ns0kj87.js.br +0 -0
- package/web/chunk-7ns0kj87.js.gz +0 -0
- package/web/chunk-7vpk9y00.js +1 -0
- package/web/chunk-7vpk9y00.js.br +0 -0
- package/web/chunk-7vpk9y00.js.gz +0 -0
- package/web/chunk-89mc1vj3.js +1 -0
- package/web/chunk-89mc1vj3.js.br +0 -0
- package/web/chunk-89mc1vj3.js.gz +0 -0
- package/web/chunk-8wgpesrk.js +139 -0
- package/web/chunk-8wgpesrk.js.br +0 -0
- package/web/chunk-8wgpesrk.js.gz +0 -0
- package/web/chunk-9nh1aeqs.js +303 -0
- package/web/chunk-9nh1aeqs.js.br +0 -0
- package/web/chunk-9nh1aeqs.js.gz +0 -0
- package/web/chunk-9pgq2ax4.js +1 -0
- package/web/chunk-9pgq2ax4.js.br +0 -0
- package/web/chunk-9pgq2ax4.js.gz +0 -0
- package/web/chunk-9tfs2dg1.js +1 -0
- package/web/chunk-9tfs2dg1.js.br +0 -0
- package/web/chunk-9tfs2dg1.js.gz +0 -0
- package/web/chunk-9wemd2wn.js +41 -0
- package/web/chunk-9wemd2wn.js.br +0 -0
- package/web/chunk-9wemd2wn.js.gz +0 -0
- package/web/chunk-9wsz2j8n.js +1 -0
- package/web/chunk-9wsz2j8n.js.br +0 -0
- package/web/chunk-9wsz2j8n.js.gz +0 -0
- package/web/chunk-9wzvqpre.js +2 -0
- package/web/chunk-9wzvqpre.js.br +0 -0
- package/web/chunk-9wzvqpre.js.gz +0 -0
- package/web/chunk-a48wgrb1.js +1 -0
- package/web/chunk-a48wgrb1.js.br +2 -0
- package/web/chunk-a48wgrb1.js.gz +0 -0
- package/web/chunk-a67d8w1k.js +14 -0
- package/web/chunk-a67d8w1k.js.br +0 -0
- package/web/chunk-a67d8w1k.js.gz +0 -0
- package/web/chunk-ah8e1y9j.js +4 -0
- package/web/chunk-ah8e1y9j.js.br +0 -0
- package/web/chunk-ah8e1y9j.js.gz +0 -0
- package/web/chunk-amsr9cg2.js +1 -0
- package/web/chunk-amsr9cg2.js.br +0 -0
- package/web/chunk-amsr9cg2.js.gz +0 -0
- package/web/chunk-aps2c5t2.js +16 -0
- package/web/chunk-aps2c5t2.js.br +0 -0
- package/web/chunk-aps2c5t2.js.gz +0 -0
- package/web/chunk-avfynf6y.js +1 -0
- package/web/chunk-avfynf6y.js.br +0 -0
- package/web/chunk-avfynf6y.js.gz +0 -0
- package/web/chunk-b5zrttcx.js +2 -0
- package/web/chunk-b5zrttcx.js.br +0 -0
- package/web/chunk-b5zrttcx.js.gz +0 -0
- package/web/chunk-bvvf024a.js +24 -0
- package/web/chunk-bvvf024a.js.br +0 -0
- package/web/chunk-bvvf024a.js.gz +0 -0
- package/web/chunk-by2dphx7.js +200 -0
- package/web/chunk-by2dphx7.js.br +0 -0
- package/web/chunk-by2dphx7.js.gz +0 -0
- package/web/chunk-c0sc2yy1.js +1 -0
- package/web/chunk-c0sc2yy1.js.br +0 -0
- package/web/chunk-c0sc2yy1.js.gz +0 -0
- package/web/chunk-c612n2pw.js +2 -0
- package/web/chunk-c612n2pw.js.br +0 -0
- package/web/chunk-c612n2pw.js.gz +0 -0
- package/web/chunk-c91rk85x.js +2 -0
- package/web/chunk-c91rk85x.js.br +0 -0
- package/web/chunk-c91rk85x.js.gz +0 -0
- package/web/chunk-catm30vp.js +2 -0
- package/web/chunk-catm30vp.js.br +0 -0
- package/web/chunk-catm30vp.js.gz +0 -0
- package/web/chunk-cbdxzddd.js +142 -0
- package/web/chunk-cbdxzddd.js.br +0 -0
- package/web/chunk-cbdxzddd.js.gz +0 -0
- package/web/chunk-cng693ts.js +2 -0
- package/web/chunk-cng693ts.js.br +0 -0
- package/web/chunk-cng693ts.js.gz +0 -0
- package/web/chunk-d5vcma5a.js +89 -0
- package/web/chunk-d5vcma5a.js.br +0 -0
- package/web/chunk-d5vcma5a.js.gz +0 -0
- package/web/chunk-d6d9cp71.js +1 -0
- package/web/chunk-d6d9cp71.js.br +2 -0
- package/web/chunk-d6d9cp71.js.gz +0 -0
- package/web/chunk-dsghhcew.js +1 -0
- package/web/chunk-dsghhcew.js.br +0 -0
- package/web/chunk-dsghhcew.js.gz +0 -0
- package/web/chunk-dt2e6evf.js +1 -0
- package/web/chunk-dt2e6evf.js.br +0 -0
- package/web/chunk-dt2e6evf.js.gz +0 -0
- package/web/chunk-dxrsmcah.js +1 -0
- package/web/chunk-dxrsmcah.js.br +0 -0
- package/web/chunk-dxrsmcah.js.gz +0 -0
- package/web/chunk-ent5zx24.js +1 -0
- package/web/chunk-ent5zx24.js.br +2 -0
- package/web/chunk-ent5zx24.js.gz +0 -0
- package/web/chunk-f4n1q3mf.js +1 -0
- package/web/chunk-f4n1q3mf.js.br +0 -0
- package/web/chunk-f4n1q3mf.js.gz +0 -0
- package/web/chunk-fdfrv6bc.js +1 -0
- package/web/chunk-fdfrv6bc.js.br +2 -0
- package/web/chunk-fdfrv6bc.js.gz +0 -0
- package/web/chunk-fh44xz70.js +1 -0
- package/web/chunk-fh44xz70.js.br +0 -0
- package/web/chunk-fh44xz70.js.gz +0 -0
- package/web/chunk-fkbp72gk.js +1 -0
- package/web/chunk-fkbp72gk.js.br +0 -0
- package/web/chunk-fkbp72gk.js.gz +0 -0
- package/web/chunk-fzkjgwzq.js +4 -0
- package/web/chunk-fzkjgwzq.js.br +0 -0
- package/web/chunk-fzkjgwzq.js.gz +0 -0
- package/web/chunk-gf2gznsb.js +38 -0
- package/web/chunk-gf2gznsb.js.br +0 -0
- package/web/chunk-gf2gznsb.js.gz +0 -0
- package/web/chunk-gne1ybac.js +2 -0
- package/web/chunk-gne1ybac.js.br +0 -0
- package/web/chunk-gne1ybac.js.gz +0 -0
- package/web/chunk-gws1fj71.js +106 -0
- package/web/chunk-gws1fj71.js.br +0 -0
- package/web/chunk-gws1fj71.js.gz +0 -0
- package/web/chunk-h4m88fg8.js +2 -0
- package/web/chunk-h4m88fg8.js.br +0 -0
- package/web/chunk-h4m88fg8.js.gz +0 -0
- package/web/chunk-h4vk09kd.js +2 -0
- package/web/chunk-h4vk09kd.js.br +0 -0
- package/web/chunk-h4vk09kd.js.gz +0 -0
- package/web/chunk-h6wzjfj2.js +34 -0
- package/web/chunk-h6wzjfj2.js.br +0 -0
- package/web/chunk-h6wzjfj2.js.gz +0 -0
- package/web/chunk-hajg1p0h.js +7 -0
- package/web/chunk-hajg1p0h.js.br +0 -0
- package/web/chunk-hajg1p0h.js.gz +0 -0
- package/web/chunk-hhmd6qrc.js +2 -0
- package/web/chunk-hhmd6qrc.js.br +0 -0
- package/web/chunk-hhmd6qrc.js.gz +0 -0
- package/web/chunk-hya0fh1r.js +1 -0
- package/web/chunk-hya0fh1r.js.br +0 -0
- package/web/chunk-hya0fh1r.js.gz +0 -0
- package/web/chunk-j469ky77.js +1 -0
- package/web/chunk-j469ky77.js.br +0 -0
- package/web/chunk-j469ky77.js.gz +0 -0
- package/web/chunk-j6ymcm3h.js +2 -0
- package/web/chunk-j6ymcm3h.js.br +0 -0
- package/web/chunk-j6ymcm3h.js.gz +0 -0
- package/web/chunk-j79z6bta.js +21 -0
- package/web/chunk-j79z6bta.js.br +0 -0
- package/web/chunk-j79z6bta.js.gz +0 -0
- package/web/chunk-jbxc5y3z.js +12 -0
- package/web/chunk-jbxc5y3z.js.br +0 -0
- package/web/chunk-jbxc5y3z.js.gz +0 -0
- package/web/chunk-jcc187d7.js +1 -0
- package/web/chunk-jcc187d7.js.br +0 -0
- package/web/chunk-jcc187d7.js.gz +0 -0
- package/web/chunk-jjvpdxhd.js +2 -0
- package/web/chunk-jjvpdxhd.js.br +0 -0
- package/web/chunk-jjvpdxhd.js.gz +0 -0
- package/web/chunk-jrh3mwmy.js +2 -0
- package/web/chunk-jrh3mwmy.js.br +0 -0
- package/web/chunk-jrh3mwmy.js.gz +0 -0
- package/web/chunk-jv3pgdp0.js +1 -0
- package/web/chunk-jv3pgdp0.js.br +2 -0
- package/web/chunk-jv3pgdp0.js.gz +0 -0
- package/web/chunk-ksxjhezb.js +1 -0
- package/web/chunk-ksxjhezb.js.br +0 -0
- package/web/chunk-ksxjhezb.js.gz +0 -0
- package/web/chunk-ktnd8t40.js +2 -0
- package/web/chunk-ktnd8t40.js.br +0 -0
- package/web/chunk-ktnd8t40.js.gz +0 -0
- package/web/chunk-mgwv3dp0.js +1 -0
- package/web/chunk-mgwv3dp0.js.br +0 -0
- package/web/chunk-mgwv3dp0.js.gz +0 -0
- package/web/chunk-mtjdfgjj.js +2 -0
- package/web/chunk-mtjdfgjj.js.br +0 -0
- package/web/chunk-mtjdfgjj.js.gz +0 -0
- package/web/chunk-mzkaanwd.js +2 -0
- package/web/chunk-mzkaanwd.js.br +0 -0
- package/web/chunk-mzkaanwd.js.gz +0 -0
- package/web/chunk-n22pg5xy.js +1 -0
- package/web/chunk-n22pg5xy.js.br +0 -0
- package/web/chunk-n22pg5xy.js.gz +0 -0
- package/web/chunk-n58ezsfb.js +2 -0
- package/web/chunk-n58ezsfb.js.br +0 -0
- package/web/chunk-n58ezsfb.js.gz +0 -0
- package/web/chunk-nhx74teq.js +3 -0
- package/web/chunk-nhx74teq.js.br +0 -0
- package/web/chunk-nhx74teq.js.gz +0 -0
- package/web/chunk-njjsgwfw.js +2 -0
- package/web/chunk-njjsgwfw.js.br +0 -0
- package/web/chunk-njjsgwfw.js.gz +0 -0
- package/web/chunk-nwhqcbnr.js +1 -0
- package/web/chunk-nwhqcbnr.js.br +0 -0
- package/web/chunk-nwhqcbnr.js.gz +0 -0
- package/web/chunk-pnghaajd.js +70 -0
- package/web/chunk-pnghaajd.js.br +0 -0
- package/web/chunk-pnghaajd.js.gz +0 -0
- package/web/chunk-pqfn8x7v.js +1 -0
- package/web/chunk-pqfn8x7v.js.br +0 -0
- package/web/chunk-pqfn8x7v.js.gz +0 -0
- package/web/chunk-ptk0jnyx.js +1 -0
- package/web/chunk-ptk0jnyx.js.br +0 -0
- package/web/chunk-ptk0jnyx.js.gz +0 -0
- package/web/chunk-pv7e5g4k.js +370 -0
- package/web/chunk-pv7e5g4k.js.br +0 -0
- package/web/chunk-pv7e5g4k.js.gz +0 -0
- package/web/chunk-pxnh5qgn.js +2 -0
- package/web/chunk-pxnh5qgn.js.br +0 -0
- package/web/chunk-pxnh5qgn.js.gz +0 -0
- package/web/chunk-q6eq5y2t.js +1 -0
- package/web/chunk-q6eq5y2t.js.br +2 -0
- package/web/chunk-q6eq5y2t.js.gz +0 -0
- package/web/chunk-qdwg9n1d.js +1 -0
- package/web/chunk-qdwg9n1d.js.br +0 -0
- package/web/chunk-qdwg9n1d.js.gz +0 -0
- package/web/chunk-qp42gtvd.js +1 -0
- package/web/chunk-qp42gtvd.js.br +0 -0
- package/web/chunk-qp42gtvd.js.gz +0 -0
- package/web/chunk-qzdw8vdp.js +1 -0
- package/web/chunk-qzdw8vdp.js.br +0 -0
- package/web/chunk-qzdw8vdp.js.gz +0 -0
- package/web/chunk-r571ywxq.js +1 -0
- package/web/chunk-r571ywxq.js.br +0 -0
- package/web/chunk-r571ywxq.js.gz +0 -0
- package/web/chunk-r9fx4cjw.js +1 -0
- package/web/chunk-r9fx4cjw.js.br +0 -0
- package/web/chunk-r9fx4cjw.js.gz +0 -0
- package/web/chunk-rhvq3c1c.js +1 -0
- package/web/chunk-rhvq3c1c.js.br +0 -0
- package/web/chunk-rhvq3c1c.js.gz +0 -0
- package/web/chunk-rjay9w1t.js +1 -0
- package/web/chunk-rjay9w1t.js.br +0 -0
- package/web/chunk-rjay9w1t.js.gz +0 -0
- package/web/chunk-rpvdnc3p.js +1 -0
- package/web/chunk-rpvdnc3p.js.br +0 -0
- package/web/chunk-rpvdnc3p.js.gz +0 -0
- package/web/chunk-rrfr4wyt.js +62 -0
- package/web/chunk-rrfr4wyt.js.br +0 -0
- package/web/chunk-rrfr4wyt.js.gz +0 -0
- package/web/chunk-rvngywg9.js +2 -0
- package/web/chunk-rvngywg9.js.br +0 -0
- package/web/chunk-rvngywg9.js.gz +0 -0
- package/web/chunk-rw7d025r.js +84 -0
- package/web/chunk-rw7d025r.js.br +0 -0
- package/web/chunk-rw7d025r.js.gz +0 -0
- package/web/chunk-s1g8acth.js +324 -0
- package/web/chunk-s1g8acth.js.br +0 -0
- package/web/chunk-s1g8acth.js.gz +0 -0
- package/web/chunk-s8572njv.js +2 -0
- package/web/chunk-s8572njv.js.br +1 -0
- package/web/chunk-s8572njv.js.gz +0 -0
- package/web/chunk-sb57e1m9.css +1 -0
- package/web/chunk-sb57e1m9.css.br +0 -0
- package/web/chunk-sb57e1m9.css.gz +0 -0
- package/web/chunk-sn3h5adt.js +2 -0
- package/web/chunk-sn3h5adt.js.br +0 -0
- package/web/chunk-sn3h5adt.js.gz +0 -0
- package/web/chunk-tb2v18q8.js +2 -0
- package/web/chunk-tb2v18q8.js.br +0 -0
- package/web/chunk-tb2v18q8.js.gz +0 -0
- package/web/chunk-tetbyky0.js +39 -0
- package/web/chunk-tetbyky0.js.br +0 -0
- package/web/chunk-tetbyky0.js.gz +0 -0
- package/web/chunk-tqvctvsv.js +1 -0
- package/web/chunk-tqvctvsv.js.br +0 -0
- package/web/chunk-tqvctvsv.js.gz +0 -0
- package/web/chunk-v9mj2pxz.js +1 -0
- package/web/chunk-v9mj2pxz.js.br +0 -0
- package/web/chunk-v9mj2pxz.js.gz +0 -0
- package/web/chunk-vkhah4nd.js +2 -0
- package/web/chunk-vkhah4nd.js.br +0 -0
- package/web/chunk-vkhah4nd.js.gz +0 -0
- package/web/chunk-vpnh7wmw.js +1 -0
- package/web/chunk-vpnh7wmw.js.br +0 -0
- package/web/chunk-vpnh7wmw.js.gz +0 -0
- package/web/chunk-w1qe2x5p.js +217 -0
- package/web/chunk-w1qe2x5p.js.br +0 -0
- package/web/chunk-w1qe2x5p.js.gz +0 -0
- package/web/chunk-werh47fw.js +99 -0
- package/web/chunk-werh47fw.js.br +0 -0
- package/web/chunk-werh47fw.js.gz +0 -0
- package/web/chunk-wfmf0dc8.js +1 -0
- package/web/chunk-wfmf0dc8.js.br +0 -0
- package/web/chunk-wfmf0dc8.js.gz +0 -0
- package/web/chunk-wna4vqp6.js +1 -0
- package/web/chunk-wna4vqp6.js.br +0 -0
- package/web/chunk-wna4vqp6.js.gz +0 -0
- package/web/chunk-wwhq09nf.js +1 -0
- package/web/chunk-wwhq09nf.js.br +0 -0
- package/web/chunk-wwhq09nf.js.gz +0 -0
- package/web/chunk-x6va53y6.js +291 -0
- package/web/chunk-x6va53y6.js.br +0 -0
- package/web/chunk-x6va53y6.js.gz +0 -0
- package/web/chunk-xefyzr9s.js +120 -0
- package/web/chunk-xefyzr9s.js.br +0 -0
- package/web/chunk-xefyzr9s.js.gz +0 -0
- package/web/chunk-xj1w9054.js +2 -0
- package/web/chunk-xj1w9054.js.br +0 -0
- package/web/chunk-xj1w9054.js.gz +0 -0
- package/web/chunk-xtb3xhxk.js +2 -0
- package/web/chunk-xtb3xhxk.js.br +2 -0
- package/web/chunk-xtb3xhxk.js.gz +0 -0
- package/web/chunk-y1eeptks.js +2 -0
- package/web/chunk-y1eeptks.js.br +0 -0
- package/web/chunk-y1eeptks.js.gz +0 -0
- package/web/chunk-y7z6zmvp.js +292 -0
- package/web/chunk-y7z6zmvp.js.br +0 -0
- package/web/chunk-y7z6zmvp.js.gz +0 -0
- package/web/chunk-yj8tkncg.js +7 -0
- package/web/chunk-yj8tkncg.js.br +0 -0
- package/web/chunk-yj8tkncg.js.gz +0 -0
- package/web/chunk-z0m2d74w.js +1 -0
- package/web/chunk-z0m2d74w.js.br +0 -0
- package/web/chunk-z0m2d74w.js.gz +0 -0
- package/web/chunk-z30kqv40.js +1 -0
- package/web/chunk-z30kqv40.js.br +0 -0
- package/web/chunk-z30kqv40.js.gz +0 -0
- package/web/chunk-z3a96d42.js +332 -0
- package/web/chunk-z3a96d42.js.br +0 -0
- package/web/chunk-z3a96d42.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-10y5hvt2.js +0 -2
- package/chunk-22k2be3e.js +0 -13
- package/chunk-28hye007.js +0 -2
- package/chunk-2fmsw1c6.js +0 -5
- package/chunk-2h2mvrw2.js +0 -3
- package/chunk-2xj51v3m.js +0 -3
- package/chunk-3x0wm92n.js +0 -3
- package/chunk-4fgsqb1e.js +0 -2
- package/chunk-519eek65.js +0 -39
- package/chunk-5qa4dean.js +0 -2
- package/chunk-5x256mz8.js +0 -2
- package/chunk-6n01sefp.js +0 -8
- package/chunk-74xtmwpw.js +0 -2
- package/chunk-7mafj833.js +0 -3
- package/chunk-7v1sqn9k.js +0 -59
- package/chunk-8my52htr.js +0 -3
- package/chunk-8vh98e46.js +0 -2
- package/chunk-92mpgche.js +0 -2
- package/chunk-9vacevyf.js +0 -3
- package/chunk-9y44m27k.js +0 -5
- package/chunk-a5wv2shs.js +0 -3
- package/chunk-a78qhb4t.js +0 -5
- package/chunk-axsxx67j.js +0 -3
- package/chunk-b49fzzzn.js +0 -2
- package/chunk-bc8awbnt.js +0 -2
- package/chunk-crxs0n0r.js +0 -3
- package/chunk-csed8fsv.js +0 -3
- package/chunk-cspx3bz9.js +0 -2
- package/chunk-ctdtmwmd.js +0 -63
- package/chunk-d3xsmwbh.js +0 -25
- package/chunk-dvwgpsfz.js +0 -3
- package/chunk-dzd8k6bw.js +0 -3
- package/chunk-e2xqa46t.js +0 -2
- package/chunk-e41mpwx9.js +0 -9
- package/chunk-e5ccfgsk.js +0 -3
- package/chunk-e67wqhzh.js +0 -12
- package/chunk-emeb13nd.js +0 -25
- package/chunk-ers9s2c4.js +0 -31
- package/chunk-ezq0fnz6.js +0 -3
- package/chunk-ezqvx0hm.js +0 -2
- package/chunk-f10ca9ma.js +0 -12
- package/chunk-f72jhcp8.js +0 -2
- package/chunk-fjv41a8r.js +0 -4155
- package/chunk-gj0dhgbg.js +0 -3
- package/chunk-h0ggc6pv.js +0 -60
- package/chunk-hrt42rkh.js +0 -4
- package/chunk-j7m36g5w.js +0 -3
- package/chunk-jhn30hjp.js +0 -2
- package/chunk-ka41gq1g.js +0 -16
- package/chunk-kcp9byws.js +0 -2
- package/chunk-me72k64f.js +0 -7
- package/chunk-n4jemqf1.js +0 -2
- package/chunk-ndt4jvh1.js +0 -3
- package/chunk-pyxn4wqj.js +0 -3
- package/chunk-rajb3566.js +0 -2
- package/chunk-rbq2gsar.js +0 -3
- package/chunk-rd98e7kg.js +0 -10
- package/chunk-rm5dbbsg.js +0 -3
- package/chunk-rztw3tgx.js +0 -3
- package/chunk-s4mn41eh.js +0 -8
- package/chunk-s9p624fq.js +0 -44
- package/chunk-sawrte7v.js +0 -3
- package/chunk-sd8d792h.js +0 -51
- package/chunk-sgvmxx0d.js +0 -2
- package/chunk-sqbnt2t1.js +0 -3
- package/chunk-t2bvj735.js +0 -2
- package/chunk-t8tkamx6.js +0 -2
- package/chunk-tbehe5ky.js +0 -18
- package/chunk-tsha69rv.js +0 -7
- package/chunk-twqwer9t.js +0 -5
- package/chunk-vr2rtqeh.js +0 -2
- package/chunk-vr6eej6b.js +0 -3
- package/chunk-w41gswj8.js +0 -3
- package/chunk-x7tras0x.js +0 -498
- package/chunk-xakmebnm.js +0 -10
- package/chunk-xj453mny.js +0 -286
- package/chunk-xmrw19xj.js +0 -2
- package/chunk-xpj8fcjp.js +0 -20
- package/chunk-y218jsvc.js +0 -3
- package/chunk-y33fkh8m.js +0 -2
- package/chunk-z3h9ydyr.js +0 -11
- package/chunk-zc51vfhr.js +0 -2
- package/chunk-zm88mnds.js +0 -7
- package/chunk-zz9rj82y.js +0 -3
- package/web/chunk-0b5vh2pt.js +0 -2
- package/web/chunk-0b5vh2pt.js.br +0 -0
- package/web/chunk-0b5vh2pt.js.gz +0 -0
- package/web/chunk-0hkdqhkv.js +0 -1
- package/web/chunk-0hkdqhkv.js.br +0 -0
- package/web/chunk-0hkdqhkv.js.gz +0 -0
- package/web/chunk-0v7wrb32.js +0 -2
- package/web/chunk-0v7wrb32.js.br +0 -0
- package/web/chunk-0v7wrb32.js.gz +0 -0
- package/web/chunk-0x2fgw1m.js +0 -1
- package/web/chunk-0x2fgw1m.js.br +0 -0
- package/web/chunk-0x2fgw1m.js.gz +0 -0
- package/web/chunk-0xctxqvv.js +0 -2
- package/web/chunk-0xctxqvv.js.br +0 -0
- package/web/chunk-0xctxqvv.js.gz +0 -0
- package/web/chunk-0y9tf0rt.js +0 -89
- package/web/chunk-0y9tf0rt.js.br +0 -0
- package/web/chunk-0y9tf0rt.js.gz +0 -0
- package/web/chunk-0yrp0f6x.js +0 -1
- package/web/chunk-0yrp0f6x.js.br +0 -0
- package/web/chunk-0yrp0f6x.js.gz +0 -0
- package/web/chunk-10jk2pn9.js +0 -1
- package/web/chunk-10jk2pn9.js.br +0 -0
- package/web/chunk-10jk2pn9.js.gz +0 -0
- package/web/chunk-15ka35m9.js +0 -2
- package/web/chunk-15ka35m9.js.br +0 -0
- package/web/chunk-15ka35m9.js.gz +0 -0
- package/web/chunk-1700cges.js +0 -1
- package/web/chunk-1700cges.js.br +0 -0
- package/web/chunk-1700cges.js.gz +0 -0
- package/web/chunk-1apw6pnk.css +0 -1
- package/web/chunk-1apw6pnk.css.br +0 -0
- package/web/chunk-1apw6pnk.css.gz +0 -0
- package/web/chunk-1b005nqw.js +0 -139
- package/web/chunk-1b005nqw.js.br +0 -0
- package/web/chunk-1b005nqw.js.gz +0 -0
- package/web/chunk-1c9khgyt.js +0 -1
- package/web/chunk-1c9khgyt.js.br +0 -2
- package/web/chunk-1c9khgyt.js.gz +0 -0
- package/web/chunk-1pr20x9x.js +0 -1
- package/web/chunk-1pr20x9x.js.br +0 -0
- package/web/chunk-1pr20x9x.js.gz +0 -0
- package/web/chunk-1sjgdggk.js +0 -7
- package/web/chunk-1sjgdggk.js.br +0 -0
- package/web/chunk-1sjgdggk.js.gz +0 -0
- package/web/chunk-1tt5ympp.js +0 -1
- package/web/chunk-1tt5ympp.js.br +0 -0
- package/web/chunk-1tt5ympp.js.gz +0 -0
- package/web/chunk-29fpfs5q.js +0 -1142
- package/web/chunk-29fpfs5q.js.br +0 -0
- package/web/chunk-29fpfs5q.js.gz +0 -0
- package/web/chunk-2gr7vwnp.js +0 -24
- package/web/chunk-2gr7vwnp.js.br +0 -0
- package/web/chunk-2gr7vwnp.js.gz +0 -0
- package/web/chunk-2p84jch3.js +0 -1
- package/web/chunk-2p84jch3.js.br +0 -0
- package/web/chunk-2p84jch3.js.gz +0 -0
- package/web/chunk-2qs283mh.js +0 -2
- package/web/chunk-2qs283mh.js.br +0 -0
- package/web/chunk-2qs283mh.js.gz +0 -0
- package/web/chunk-3gf2d852.js +0 -1
- package/web/chunk-3gf2d852.js.br +0 -0
- package/web/chunk-3gf2d852.js.gz +0 -0
- package/web/chunk-3hswqkb0.js +0 -1
- package/web/chunk-3hswqkb0.js.br +0 -0
- package/web/chunk-3hswqkb0.js.gz +0 -0
- package/web/chunk-46yjp1x4.js +0 -2
- package/web/chunk-46yjp1x4.js.br +0 -0
- package/web/chunk-46yjp1x4.js.gz +0 -0
- package/web/chunk-4ezd1rkc.js +0 -84
- package/web/chunk-4ezd1rkc.js.br +0 -0
- package/web/chunk-4ezd1rkc.js.gz +0 -0
- package/web/chunk-4v9ar0sf.js +0 -142
- package/web/chunk-4v9ar0sf.js.br +0 -0
- package/web/chunk-4v9ar0sf.js.gz +0 -0
- package/web/chunk-51z88j1t.js +0 -21
- package/web/chunk-51z88j1t.js.br +0 -0
- package/web/chunk-51z88j1t.js.gz +0 -0
- package/web/chunk-5f5zcfga.js +0 -1
- package/web/chunk-5f5zcfga.js.br +0 -2
- package/web/chunk-5f5zcfga.js.gz +0 -0
- package/web/chunk-5n61r0rr.js +0 -36
- package/web/chunk-5n61r0rr.js.br +0 -0
- package/web/chunk-5n61r0rr.js.gz +0 -0
- package/web/chunk-5vcdeenv.js +0 -2
- package/web/chunk-5vcdeenv.js.br +0 -0
- package/web/chunk-5vcdeenv.js.gz +0 -0
- package/web/chunk-5y7ks8c3.js +0 -30
- package/web/chunk-5y7ks8c3.js.br +0 -0
- package/web/chunk-5y7ks8c3.js.gz +0 -0
- package/web/chunk-60v8qwec.js +0 -2
- package/web/chunk-60v8qwec.js.br +0 -0
- package/web/chunk-60v8qwec.js.gz +0 -0
- package/web/chunk-61m5t9wg.js +0 -200
- package/web/chunk-61m5t9wg.js.br +0 -0
- package/web/chunk-61m5t9wg.js.gz +0 -0
- package/web/chunk-669n37qf.js +0 -70
- package/web/chunk-669n37qf.js.br +0 -0
- package/web/chunk-669n37qf.js.gz +0 -0
- package/web/chunk-6kf1xwz9.js +0 -2
- package/web/chunk-6kf1xwz9.js.br +0 -0
- package/web/chunk-6kf1xwz9.js.gz +0 -0
- package/web/chunk-6rw72jmj.js +0 -2
- package/web/chunk-6rw72jmj.js.br +0 -0
- package/web/chunk-6rw72jmj.js.gz +0 -0
- package/web/chunk-6wyxxd9h.js +0 -2
- package/web/chunk-6wyxxd9h.js.br +0 -0
- package/web/chunk-6wyxxd9h.js.gz +0 -0
- package/web/chunk-77vj65dc.js +0 -1
- package/web/chunk-77vj65dc.js.br +0 -0
- package/web/chunk-77vj65dc.js.gz +0 -0
- package/web/chunk-8ktz0w1x.js +0 -120
- package/web/chunk-8ktz0w1x.js.br +0 -0
- package/web/chunk-8ktz0w1x.js.gz +0 -0
- package/web/chunk-8rcfpj02.js +0 -2
- package/web/chunk-8rcfpj02.js.br +0 -0
- package/web/chunk-8rcfpj02.js.gz +0 -0
- package/web/chunk-8x4s1c9g.js +0 -1
- package/web/chunk-8x4s1c9g.js.br +0 -2
- package/web/chunk-8x4s1c9g.js.gz +0 -0
- package/web/chunk-8zf4cywy.js +0 -1
- package/web/chunk-8zf4cywy.js.br +0 -0
- package/web/chunk-8zf4cywy.js.gz +0 -0
- package/web/chunk-a18y5dmf.js +0 -2
- package/web/chunk-a18y5dmf.js.br +0 -0
- package/web/chunk-a18y5dmf.js.gz +0 -0
- package/web/chunk-a36sfjyk.js +0 -1
- package/web/chunk-a36sfjyk.js.br +0 -0
- package/web/chunk-a36sfjyk.js.gz +0 -0
- package/web/chunk-aahzqxq7.js +0 -34
- package/web/chunk-aahzqxq7.js.br +0 -0
- package/web/chunk-aahzqxq7.js.gz +0 -0
- package/web/chunk-b2gtwatf.js +0 -370
- package/web/chunk-b2gtwatf.js.br +0 -0
- package/web/chunk-b2gtwatf.js.gz +0 -0
- package/web/chunk-bdp4y1zg.js +0 -1
- package/web/chunk-bdp4y1zg.js.br +0 -0
- package/web/chunk-bdp4y1zg.js.gz +0 -0
- package/web/chunk-be67vfx1.js +0 -1
- package/web/chunk-be67vfx1.js.br +0 -0
- package/web/chunk-be67vfx1.js.gz +0 -0
- package/web/chunk-bt6r78y9.js +0 -106
- package/web/chunk-bt6r78y9.js.br +0 -0
- package/web/chunk-bt6r78y9.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +0 -14
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/chunk-c97th1x0.js +0 -1
- package/web/chunk-c97th1x0.js.br +0 -0
- package/web/chunk-c97th1x0.js.gz +0 -0
- package/web/chunk-cfkp7taw.js +0 -1
- package/web/chunk-cfkp7taw.js.br +0 -0
- package/web/chunk-cfkp7taw.js.gz +0 -0
- package/web/chunk-cvf9k1fy.js +0 -140
- package/web/chunk-cvf9k1fy.js.br +0 -0
- package/web/chunk-cvf9k1fy.js.gz +0 -0
- package/web/chunk-d33n9fsr.js +0 -1
- package/web/chunk-d33n9fsr.js.br +0 -1
- package/web/chunk-d33n9fsr.js.gz +0 -0
- package/web/chunk-e667nxc9.js +0 -1
- package/web/chunk-e667nxc9.js.br +0 -0
- package/web/chunk-e667nxc9.js.gz +0 -0
- package/web/chunk-eejjsqm1.js +0 -303
- package/web/chunk-eejjsqm1.js.br +0 -0
- package/web/chunk-eejjsqm1.js.gz +0 -0
- package/web/chunk-eg3qjy7a.js +0 -2
- package/web/chunk-eg3qjy7a.js.br +0 -0
- package/web/chunk-eg3qjy7a.js.gz +0 -0
- package/web/chunk-embvjvdj.js +0 -12
- package/web/chunk-embvjvdj.js.br +0 -0
- package/web/chunk-embvjvdj.js.gz +0 -0
- package/web/chunk-etjfr79m.js +0 -2
- package/web/chunk-etjfr79m.js.br +0 -0
- package/web/chunk-etjfr79m.js.gz +0 -0
- package/web/chunk-ez36gbz3.js +0 -7
- package/web/chunk-ez36gbz3.js.br +0 -0
- package/web/chunk-ez36gbz3.js.gz +0 -0
- package/web/chunk-f0vcm8mk.js +0 -214
- package/web/chunk-f0vcm8mk.js.br +0 -0
- package/web/chunk-f0vcm8mk.js.gz +0 -0
- package/web/chunk-f3t3ey83.js +0 -1
- package/web/chunk-f3t3ey83.js.br +0 -0
- package/web/chunk-f3t3ey83.js.gz +0 -0
- package/web/chunk-f84sngcq.js +0 -2
- package/web/chunk-f84sngcq.js.br +0 -0
- package/web/chunk-f84sngcq.js.gz +0 -0
- package/web/chunk-f97hz4v5.js +0 -99
- package/web/chunk-f97hz4v5.js.br +0 -0
- package/web/chunk-f97hz4v5.js.gz +0 -0
- package/web/chunk-fnkp6s0g.js +0 -1
- package/web/chunk-fnkp6s0g.js.br +0 -0
- package/web/chunk-fnkp6s0g.js.gz +0 -0
- package/web/chunk-fpdyzyn8.js +0 -16
- package/web/chunk-fpdyzyn8.js.br +0 -0
- package/web/chunk-fpdyzyn8.js.gz +0 -0
- package/web/chunk-g43z223a.js +0 -2
- package/web/chunk-g43z223a.js.br +0 -0
- package/web/chunk-g43z223a.js.gz +0 -0
- package/web/chunk-gcm82aj8.js +0 -1
- package/web/chunk-gcm82aj8.js.br +0 -0
- package/web/chunk-gcm82aj8.js.gz +0 -0
- package/web/chunk-gffb3p4z.js +0 -2
- package/web/chunk-gffb3p4z.js.br +0 -0
- package/web/chunk-gffb3p4z.js.gz +0 -0
- package/web/chunk-gnzg3krt.js +0 -1
- package/web/chunk-gnzg3krt.js.br +0 -0
- package/web/chunk-gnzg3krt.js.gz +0 -0
- package/web/chunk-grqtpfdp.js +0 -2
- package/web/chunk-grqtpfdp.js.br +0 -0
- package/web/chunk-grqtpfdp.js.gz +0 -0
- package/web/chunk-gsm8spf8.js +0 -1
- package/web/chunk-gsm8spf8.js.br +0 -0
- package/web/chunk-gsm8spf8.js.gz +0 -0
- package/web/chunk-h6ygrnd0.js +0 -38
- package/web/chunk-h6ygrnd0.js.br +0 -0
- package/web/chunk-h6ygrnd0.js.gz +0 -0
- package/web/chunk-h8n9w5th.js +0 -169
- package/web/chunk-h8n9w5th.js.br +0 -0
- package/web/chunk-h8n9w5th.js.gz +0 -0
- package/web/chunk-hmdvm5pp.js +0 -2
- package/web/chunk-hmdvm5pp.js.br +0 -0
- package/web/chunk-hmdvm5pp.js.gz +0 -0
- package/web/chunk-hrntwvx8.js +0 -1
- package/web/chunk-hrntwvx8.js.br +0 -0
- package/web/chunk-hrntwvx8.js.gz +0 -0
- package/web/chunk-hrys15jh.js +0 -324
- package/web/chunk-hrys15jh.js.br +0 -0
- package/web/chunk-hrys15jh.js.gz +0 -0
- package/web/chunk-j0ng7zdq.js +0 -41
- package/web/chunk-j0ng7zdq.js.br +0 -0
- package/web/chunk-j0ng7zdq.js.gz +0 -0
- package/web/chunk-j2t5ycte.js +0 -78
- package/web/chunk-j2t5ycte.js.br +0 -0
- package/web/chunk-j2t5ycte.js.gz +0 -0
- package/web/chunk-jkjd1y3p.js +0 -3
- package/web/chunk-jkjd1y3p.js.br +0 -0
- package/web/chunk-jkjd1y3p.js.gz +0 -0
- package/web/chunk-jweahmyy.js +0 -1
- package/web/chunk-jweahmyy.js.br +0 -0
- package/web/chunk-jweahmyy.js.gz +0 -0
- package/web/chunk-k56v8k7n.js +0 -4
- package/web/chunk-k56v8k7n.js.br +0 -0
- package/web/chunk-k56v8k7n.js.gz +0 -0
- package/web/chunk-k59sk88z.js +0 -7
- package/web/chunk-k59sk88z.js.br +0 -0
- package/web/chunk-k59sk88z.js.gz +0 -0
- package/web/chunk-k75a0fpt.js +0 -62
- package/web/chunk-k75a0fpt.js.br +0 -0
- package/web/chunk-k75a0fpt.js.gz +0 -0
- package/web/chunk-kfx9q7xv.js +0 -2
- package/web/chunk-kfx9q7xv.js.br +0 -0
- package/web/chunk-kfx9q7xv.js.gz +0 -0
- package/web/chunk-ksp1gg3v.js +0 -1
- package/web/chunk-ksp1gg3v.js.br +0 -0
- package/web/chunk-ksp1gg3v.js.gz +0 -0
- package/web/chunk-kxxp1mn4.js +0 -2
- package/web/chunk-kxxp1mn4.js.br +0 -0
- package/web/chunk-kxxp1mn4.js.gz +0 -0
- package/web/chunk-mapbxzsz.js +0 -1
- package/web/chunk-mapbxzsz.js.br +0 -0
- package/web/chunk-mapbxzsz.js.gz +0 -0
- package/web/chunk-msw43fnq.js +0 -2
- package/web/chunk-msw43fnq.js.br +0 -0
- package/web/chunk-msw43fnq.js.gz +0 -0
- package/web/chunk-mzzjg4sn.js +0 -2
- package/web/chunk-mzzjg4sn.js.br +0 -0
- package/web/chunk-mzzjg4sn.js.gz +0 -0
- package/web/chunk-n1bmcj13.js +0 -2
- package/web/chunk-n1bmcj13.js.br +0 -0
- package/web/chunk-n1bmcj13.js.gz +0 -0
- package/web/chunk-n5y4ar3e.js +0 -1
- package/web/chunk-n5y4ar3e.js.br +0 -0
- package/web/chunk-n5y4ar3e.js.gz +0 -0
- package/web/chunk-n9vszqw9.js +0 -1
- package/web/chunk-n9vszqw9.js.br +0 -0
- package/web/chunk-n9vszqw9.js.gz +0 -0
- package/web/chunk-nzzcmxq8.js +0 -1
- package/web/chunk-nzzcmxq8.js.br +0 -0
- package/web/chunk-nzzcmxq8.js.gz +0 -0
- package/web/chunk-p25eppk1.js +0 -1
- package/web/chunk-p25eppk1.js.br +0 -0
- package/web/chunk-p25eppk1.js.gz +0 -0
- package/web/chunk-p9352vpw.js +0 -1
- package/web/chunk-p9352vpw.js.br +0 -0
- package/web/chunk-p9352vpw.js.gz +0 -0
- package/web/chunk-pdvm4n6f.js +0 -1
- package/web/chunk-pdvm4n6f.js.br +0 -2
- package/web/chunk-pdvm4n6f.js.gz +0 -0
- package/web/chunk-pjm2t9da.js +0 -1
- package/web/chunk-pjm2t9da.js.br +0 -0
- package/web/chunk-pjm2t9da.js.gz +0 -0
- package/web/chunk-pka3qm06.js +0 -98
- package/web/chunk-pka3qm06.js.br +0 -0
- package/web/chunk-pka3qm06.js.gz +0 -0
- package/web/chunk-pkbcbta6.js +0 -1
- package/web/chunk-pkbcbta6.js.br +0 -0
- package/web/chunk-pkbcbta6.js.gz +0 -0
- package/web/chunk-pq4vn3zh.js +0 -1
- package/web/chunk-pq4vn3zh.js.br +0 -0
- package/web/chunk-pq4vn3zh.js.gz +0 -0
- package/web/chunk-prk9ks5j.js +0 -1
- package/web/chunk-prk9ks5j.js.br +0 -0
- package/web/chunk-prk9ks5j.js.gz +0 -0
- package/web/chunk-px68tdjm.js +0 -1
- package/web/chunk-px68tdjm.js.br +0 -2
- package/web/chunk-px68tdjm.js.gz +0 -0
- package/web/chunk-px8k5edz.js +0 -24
- package/web/chunk-px8k5edz.js.br +0 -0
- package/web/chunk-px8k5edz.js.gz +0 -0
- package/web/chunk-pz4g2bem.js +0 -292
- package/web/chunk-pz4g2bem.js.br +0 -0
- package/web/chunk-pz4g2bem.js.gz +0 -0
- package/web/chunk-q0gx75nf.js +0 -55
- package/web/chunk-q0gx75nf.js.br +0 -0
- package/web/chunk-q0gx75nf.js.gz +0 -0
- package/web/chunk-q9rpxfmm.js +0 -1
- package/web/chunk-q9rpxfmm.js.br +0 -0
- package/web/chunk-q9rpxfmm.js.gz +0 -0
- package/web/chunk-qpfhs1x0.js +0 -1
- package/web/chunk-qpfhs1x0.js.br +0 -0
- package/web/chunk-qpfhs1x0.js.gz +0 -0
- package/web/chunk-qredmg6m.js +0 -1
- package/web/chunk-qredmg6m.js.br +0 -0
- package/web/chunk-qredmg6m.js.gz +0 -0
- package/web/chunk-qtc9ar2m.js +0 -2
- package/web/chunk-qtc9ar2m.js.br +0 -0
- package/web/chunk-qtc9ar2m.js.gz +0 -0
- package/web/chunk-r5dsw56r.js +0 -1
- package/web/chunk-r5dsw56r.js.br +0 -0
- package/web/chunk-r5dsw56r.js.gz +0 -0
- package/web/chunk-rkaps675.js +0 -1
- package/web/chunk-rkaps675.js.br +0 -0
- package/web/chunk-rkaps675.js.gz +0 -0
- package/web/chunk-rp87pgcp.js +0 -40
- package/web/chunk-rp87pgcp.js.br +0 -0
- package/web/chunk-rp87pgcp.js.gz +0 -0
- package/web/chunk-rs1mtd35.js +0 -2
- package/web/chunk-rs1mtd35.js.br +0 -0
- package/web/chunk-rs1mtd35.js.gz +0 -0
- package/web/chunk-s31n33g5.js +0 -2
- package/web/chunk-s31n33g5.js.br +0 -0
- package/web/chunk-s31n33g5.js.gz +0 -0
- package/web/chunk-sbcyvn42.js +0 -1
- package/web/chunk-sbcyvn42.js.br +0 -0
- package/web/chunk-sbcyvn42.js.gz +0 -0
- package/web/chunk-sew9vfwy.js +0 -1
- package/web/chunk-sew9vfwy.js.br +0 -0
- package/web/chunk-sew9vfwy.js.gz +0 -0
- package/web/chunk-sgaw26nc.js +0 -2
- package/web/chunk-sgaw26nc.js.br +0 -0
- package/web/chunk-sgaw26nc.js.gz +0 -0
- package/web/chunk-t2ak4a9d.js +0 -1
- package/web/chunk-t2ak4a9d.js.br +0 -0
- package/web/chunk-t2ak4a9d.js.gz +0 -0
- package/web/chunk-ta0e3dk6.js +0 -2
- package/web/chunk-ta0e3dk6.js.br +0 -0
- package/web/chunk-ta0e3dk6.js.gz +0 -0
- package/web/chunk-tqax5mb6.js +0 -217
- package/web/chunk-tqax5mb6.js.br +0 -0
- package/web/chunk-tqax5mb6.js.gz +0 -0
- package/web/chunk-v1wxeq38.js +0 -2
- package/web/chunk-v1wxeq38.js.br +0 -0
- package/web/chunk-v1wxeq38.js.gz +0 -0
- package/web/chunk-v3kwg4zn.js +0 -2
- package/web/chunk-v3kwg4zn.js.br +0 -0
- package/web/chunk-v3kwg4zn.js.gz +0 -0
- package/web/chunk-vcpvhkxh.js +0 -39
- package/web/chunk-vcpvhkxh.js.br +0 -0
- package/web/chunk-vcpvhkxh.js.gz +0 -0
- package/web/chunk-vg9qv3aa.js +0 -1
- package/web/chunk-vg9qv3aa.js.br +0 -0
- package/web/chunk-vg9qv3aa.js.gz +0 -0
- package/web/chunk-vwxnt3nh.js +0 -1
- package/web/chunk-vwxnt3nh.js.br +0 -0
- package/web/chunk-vwxnt3nh.js.gz +0 -0
- package/web/chunk-w1xjqhwy.js +0 -1
- package/web/chunk-w1xjqhwy.js.br +0 -2
- package/web/chunk-w1xjqhwy.js.gz +0 -0
- package/web/chunk-w3nfxvzd.js +0 -1
- package/web/chunk-w3nfxvzd.js.br +0 -0
- package/web/chunk-w3nfxvzd.js.gz +0 -0
- package/web/chunk-w7h3x3ys.js +0 -1
- package/web/chunk-w7h3x3ys.js.br +0 -0
- package/web/chunk-w7h3x3ys.js.gz +0 -0
- package/web/chunk-wb0yn3r4.js +0 -8
- package/web/chunk-wb0yn3r4.js.br +0 -0
- package/web/chunk-wb0yn3r4.js.gz +0 -0
- package/web/chunk-wff6hqjf.js +0 -1
- package/web/chunk-wff6hqjf.js.br +0 -0
- package/web/chunk-wff6hqjf.js.gz +0 -0
- package/web/chunk-whj4e4sb.js +0 -89
- package/web/chunk-whj4e4sb.js.br +0 -0
- package/web/chunk-whj4e4sb.js.gz +0 -0
- package/web/chunk-wn3kdpj0.js +0 -1
- package/web/chunk-wn3kdpj0.js.br +0 -0
- package/web/chunk-wn3kdpj0.js.gz +0 -0
- package/web/chunk-wzq3qxpb.js +0 -1
- package/web/chunk-wzq3qxpb.js.br +0 -0
- package/web/chunk-wzq3qxpb.js.gz +0 -0
- package/web/chunk-x2tezwv1.js +0 -4
- package/web/chunk-x2tezwv1.js.br +0 -0
- package/web/chunk-x2tezwv1.js.gz +0 -0
- package/web/chunk-xmajh4qe.js +0 -2
- package/web/chunk-xmajh4qe.js.br +0 -0
- package/web/chunk-xmajh4qe.js.gz +0 -0
- package/web/chunk-xz7py7yx.js +0 -1
- package/web/chunk-xz7py7yx.js.br +0 -0
- package/web/chunk-xz7py7yx.js.gz +0 -0
- package/web/chunk-y4af9gsm.js +0 -291
- package/web/chunk-y4af9gsm.js.br +0 -0
- package/web/chunk-y4af9gsm.js.gz +0 -0
- package/web/chunk-y512gr5a.js +0 -332
- package/web/chunk-y512gr5a.js.br +0 -0
- package/web/chunk-y512gr5a.js.gz +0 -0
- package/web/chunk-ywg44m2b.js +0 -2
- package/web/chunk-ywg44m2b.js.br +0 -0
- package/web/chunk-ywg44m2b.js.gz +0 -0
- package/web/chunk-zhzp4fm1.js +0 -2
- package/web/chunk-zhzp4fm1.js.br +0 -0
- package/web/chunk-zhzp4fm1.js.gz +0 -0
package/chunk-7v1sqn9k.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function Be(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 lr(e,t="|"){return e.map((r)=>_r(r)).join(t)}function Je(e,t){if(typeof t==="bigint")return t.toString();return t}class tn{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 qe(e){return new tn(e)}function rn(e){return e===null||e===void 0}function lt(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function on(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 ne(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ve(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function me(e){return Ve(e._zod.def)??e._zod.def.shape}function nn(e,t,r){Object.defineProperty(e,t,{get(){let o=r();return ne(this,t,o),o},enumerable:!0,configurable:!0})}function sn(e,t,r){if(t in e)ne(e,t,r);else e[t]=r}function ke(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)nn(e,i,()=>{let c=t._zod.def.shape[i];return o?o(c,i):c});else sn(e,i,o?o(s.value,i):s.value)}}function Wu(e,t){for(let r of Reflect.ownKeys(t)){let o=Object.getOwnPropertyDescriptor(t,r);if(!o.enumerable)continue;if(o.get)nn(e,r,()=>t[r]);else sn(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 cn(e){return JSON.stringify(e)}function an(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var fr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Oe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var un=qe(()=>{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 Pe(e){if(Oe(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(Oe(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function gr(e){if(Pe(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 ln=new Set(["string","number","symbol"]);function ye(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 _r(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function pn(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var pt=(()=>({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]}))(),zr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ku(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 ke(i,e,dt(e,t)),ue(e,ee(r,{shape:i,checks:[]}))}function dt(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 Gu(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(dt(e,t)),s={};return ke(s,e,Reflect.ownKeys(me(e)).filter((c)=>!i.has(c))),ue(e,ee(r,{shape:s,checks:[]}))}function Hu(e,t){if(!Pe(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:dn(e,t)}))}function dn(e,t){let r={};return ke(r,e,Reflect.ownKeys(me(e))),Wu(r,t),r}function Xu(e,t){if(!Pe(t))throw Error("Invalid input to safeExtend: expected a plain object");return ue(e,ee(e._zod.def,{shape:dn(e,t)}))}function Yu(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={};ke(r,e,Reflect.ownKeys(me(e))),ke(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 fn(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(dt(t,r)):void 0,a={};return ke(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 Qu(e,t,r){let o=r?new Set(dt(t,r)):void 0,n={};return ke(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 le(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 mn(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 be(e,t){return t.map((r)=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Fe(e){return typeof e==="string"?e:e?.message}function xr(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 ft(e,t,r){var o;for(let n=t;n<e.length;n++)(o=e[n]).schema??(o.schema=r)}function pe(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:Fe(e.inst?._zod.def?.error?.(e))??Fe(i?.(e))??Fe(t?.error?.(e))??Fe(r.customError?.(e))??Fe(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 el=/[\uD800-\uDBFF]/;function mt(e){let t=e.length;if(!el.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 ht(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function hn(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 Ze(...e){let[t,r,o]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:o};return{...t}}function gn(e,t){for(let r in t){let o=Object.getOwnPropertyDescriptor(t,r);if(o.get)Object.defineProperty(e,r,{...o,enumerable:!1});else tl(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 gt(e,t,r){return he(e,t,r,!1)}function zn(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 tl(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 rl(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var ur,xe=!1,ol={configurable:!0,get(){xe=!0;return}};function S(e,t,r){let o=Object.getPrototypeOf(e._zod);if(t in o&&ur!==e._zod){ur=void 0;return}ur=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,ol);let n=xe;xe=!1;try{let i=r(this);if(xe)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i});return xe=xe||n,i}catch(i){throw delete this[t],xe=xe||n,i}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function nl(e,t,r,o){let n=rl(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 il="~constantCatch";function xn(e){let t=()=>e;return t[il]=!0,t}var yn,br=Object.freeze({status:"aborted"}),yr={value:void 0,enumerable:!1},bn="captureStackTrace"in Error?Error:null;function sl(e){let t=bn;if(t){let r=t.stackTraceLimit;if(typeof r==="number"){try{t.stackTraceLimit=0}catch{return bn=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function d(e,t,r,o){let n={};function i(h){this.def=h,this.constr=f,this.traits=new Set}i.prototype=n;let s=r,c=s&&new WeakSet;function a(h,m){if(!h._zod){yr.value=new i(m);try{Object.defineProperty(h,"_zod",yr)}finally{yr.value=void 0}}else if(h._zod.traits.has(e))return;if(h._zod.traits.add(e),t(h,m),c){let v=Object.getPrototypeOf(h),b=h._zod.constr.prototype,P=v;while(P&&P!==b)P=Object.getPrototypeOf(P);let G=P??v;if(!c.has(G))c.add(G),gn(G,s)}let g=f.prototype;for(let v in g){if(!Object.prototype.hasOwnProperty.call(g,v))continue;if(!(v in h))h[v]=g[v].bind(h)}}let l=o?.Parent??Object;class p extends l{}Object.defineProperty(p,"name",{value:e});function f(h){let m=o?.Parent?sl(p):this;a(m,h);let g=m._zod.deferred;if(g){for(let b of g)b();m._zod.deferred=void 0}let v=globalThis.__zod_globalConfig?.postProcessor;if(v)v(m);return m}return Object.defineProperty(f,"init",{value:a}),Object.defineProperty(f,Symbol.hasInstance,{value:(h)=>{if(o?.Parent&&h instanceof o.Parent)return!0;return h?._zod?.traits?.has(e)}}),Object.defineProperty(f,"name",{value:e}),f}class de extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class We extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(yn=globalThis).__zod_globalConfig??(yn.__zod_globalConfig={});var X=globalThis.__zod_globalConfig;function Y(e){if(e)Object.assign(X,e);return X}function cl(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Je,2)),e.message}function al(e){this._zod.message=e}var ul={get:cl,set:al,enumerable:!0,configurable:!0},wr={value:void 0,enumerable:!1},wn=new WeakSet([Object.prototype,Error.prototype]),$n=(e,t)=>{e.name="$ZodError",wr.value=t,Object.defineProperty(e,"issues",wr),wr.value=void 0,Object.defineProperty(e,"message",ul);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=d("$ZodError",$n),kn=d("$ZodError",$n,void 0,{Parent:Error});function ll(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 $r(e,t=(r)=>r.message){let r={},o=[];for(let n of e.issues)if(n.path.length>0)ll(r,n.path[0],()=>[]).push(t(n));else o.push(t(n));return{formErrors:o,fieldErrors:r}}function Sr(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],f=l===c.length-1;if(p==="_errors"){if(f)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(f)h._errors.push(t(s));a=h,l++}}}};return o(e),r}function _t(e,t){return{callee:t?.callee??e,Err:t?.Err}}var zt=(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)=>pe(l,s,Y())));throw fr(a,i?.callee??t),a}return c.value};return t};var xt=(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)=>pe(l,s,Y())));throw fr(a,i?.callee??t),a}return c.value};return t};var Ke=(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?Pn(e,i.issues,n):{success:!0,data:i.value}},ji=Ke(kn);function Pn(e,t,r){let o;return{success:!1,get error(){if(!o)o=new e(t.map((n)=>pe(n,r,Y()))),t=void 0,r=void 0;return o},set error(n){o=n,t=void 0,r=void 0}}}var yt=(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?Pn(e,i.issues,n):{success:!0,data:i.value}};var dl=Symbol.for("zod.compile.invalid"),fl=Symbol.for("zod.compile.fallback"),kr=(e,t,r)=>{let o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==dl)return!0;if(o.definite===!0&&r===void 0)return!1}return ml(e,t,r)};function ml(e,t,r){let o=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,i;if(n)o[fl]=!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 Pr=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},Zn=(e)=>{let t=zt(e),r=(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,n,c,_t(r,s))};return r};var On=(e)=>{let t=zt(e),r=(o,n,i,s)=>t(o,n,i,_t(r,s));return r};var Rn=(e)=>{let t=xt(e),r=async(o,n,i,s)=>{let c=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,n,c,_t(r,s))};return r};var Cn=(e)=>{let t=xt(e),r=async(o,n,i,s)=>await t(o,n,i,_t(r,s));return r};var In=(e)=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ke(e)(t,r,n)};var Tn=(e)=>(t,r,o)=>Ke(e)(t,r,o);var An=(e)=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return yt(e)(t,r,n)};var Nn=(e)=>async(t,r,o)=>yt(e)(t,r,o);var jn=/^[cC][0-9a-z]{6,}$/,Ln=/^[0-9a-z]+$/,Un=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Dn=/^[0-9a-vA-V]{20}$/,Mn=/^[A-Za-z0-9]{27}$/,Fn=/^[a-zA-Z0-9_-]{21}$/;function Bn(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Jn=/^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})$/,Or=(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 Vn=/^(?:[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 hl="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Wn(){return new RegExp(hl,"u")}var Kn=/^(?:(?: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])$/,Gn=/^(([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 Hn=/^((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])$/,Xn=/^(([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])$/,Yn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Qn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;var ei=/^https?$/,ti=/^\+[1-9]\d{6,14}$/;var ri="(?:(?:\\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 gl(e){return new RegExp(`^${e}$`)}var oi=gl(ri);function Zr(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 ni(e){return new RegExp(`^${Zr(e)}$`)}function ii(e){let t=["Z"];if(e.offset)t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${Zr({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${r}|${Zr({precision:e.precision})}`:r;return new RegExp(`^${ri}T(?:${o})$`)}var si=/^[\s\S]{0,}$/;var Rr=/^-?\d+$/,Ge=/^-?\d+(?:\.\d+)?$/,ci=/^(?:true|false)$/i,ai=/^null$/i;var ui=/^[^A-Z]*$/,li=/^[^a-z]*$/;var J=d("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Cr=(e)=>{let t=e.value;return!rn(t)&&t.length!==void 0},bt={number:"number",bigint:"bigint",object:"date"},Ir=d("$ZodCheckLessThan",(e,t)=>{J.init(e,t);let r=bt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value<=t.value:o.value<t.value)return;o.issues.push({origin:bt[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})}}),Tr=d("$ZodCheckGreaterThan",(e,t)=>{J.init(e,t);let r=bt[typeof t.value];e._zod.check=(o)=>{if(t.inclusive?o.value>=t.value:o.value>t.value)return;o.issues.push({origin:bt[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})}}),pi=d("$ZodCheckMultipleOf",(e,t)=>{J.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):on(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})}}),di=d("$ZodCheckNumberFormat",(e,t)=>{J.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=pt[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 fi=d("$ZodCheckMaxLength",(e,t)=>{var r;J.init(e,t),(r=e._zod.def).when??(r.when=Cr),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>t.maximum?mt(n):i)<=t.maximum)return;let c=ht(n);o.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),mi=d("$ZodCheckMinLength",(e,t)=>{var r;J.init(e,t),(r=e._zod.def).when??(r.when=Cr),e._zod.check=(o)=>{let n=o.value,i=n.length;if((typeof n==="string"&&i>=t.minimum&&i<t.minimum*2?mt(n):i)>=t.minimum)return;let c=ht(n);o.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),hi=d("$ZodCheckLengthEquals",(e,t)=>{var r;J.init(e,t),(r=e._zod.def).when??(r.when=Cr),e._zod.check=(o)=>{let n=o.value,i=n.length,s=typeof n==="string"&&i>=t.length&&i<=t.length*2?mt(n):i;if(s===t.length)return;let c=ht(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})}}),He=d("$ZodCheckStringFormat",(e,t)=>{var r,o;if(J.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=()=>{})}),gi=d("$ZodCheckRegex",(e,t)=>{He.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})}}),_i=d("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ui),He.init(e,t)}),xi=d("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=li),He.init(e,t)}),yi=d("$ZodCheckIncludes",(e,t)=>{J.init(e,t);let r=ye(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})}}),bi=d("$ZodCheckStartsWith",(e,t)=>{J.init(e,t);let r=new RegExp(`^${ye(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})}}),vi=d("$ZodCheckEndsWith",(e,t)=>{J.init(e,t);let r=new RegExp(`.*${ye(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 wi=d("$ZodCheckOverwrite",(e,t)=>{J.init(e,t),e._zod.check=(r)=>{r.value=t.tx(r.value)}});class Ar{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 Si={major:4,minor:6,patch:7};var R=d("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Si;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=le(c),f;for(let h of a){if(h._zod.def.when){if(mn(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(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{if(await g,c.issues.length===m)return;if(ft(c.issues,m,e),!p)p=le(c,m)});else{if(c.issues.length===m)continue;if(ft(c.issues,m,e),!p)p=le(c,m)}}if(f)return f.then(()=>c);return c},s=(c,a,l)=>{if(le(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((f)=>e._zod.parse(f,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((f)=>s(f,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 gt(this,"~standard",jr(this))},set "~standard"(e){he(this,"~standard",e)}}),Li=(e,t)=>e.issues.length?{issues:e.issues.map((r)=>pe(r,t,Y()))}:{value:e.value};async function _l(e,t){let r={async:!0};return Li(await e._zod.run({value:t,issues:[]},r),r)}function jr(e){return{validate:(t)=>{let r={async:!1};try{let o=e._zod.run({value:t,issues:[]},r);if(!(o instanceof Promise))return Li(o,r)}catch(o){}return _l(e,t)},vendor:"zod",version:1}}var St=d("$ZodString",(e,t)=>{R.init(e,t),e._zod.pattern=t.pattern??si,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=d("$ZodStringFormat",(e,t)=>{He.init(e,t),St.init(e,t)}),Ui=d("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qn),T.init(e,t)}),Di=d("$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=Or(o))}else t.pattern??(t.pattern=Or());T.init(e,t)}),Mi=d("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Vn),T.init(e,t)}),Fi=1,wt=2;function Bi(e){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(e);return new URL(e),!0}catch{return!1}}function zl(e,t){if(!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t))return Bi(e)||wt;return xl(e,t)}function xl(e,t){if(!t.normalize&&t.protocol?.source===ei.source&&!/^https?:\/\//i.test(e))return Fi;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse==="function")return r.parse(e)??wt}return new URL(e)}catch{return wt}}var yl=/[\t\n\r]/g;function ki(e){return e.replace(yl,"")}function bl(e,t){return t.lastIndex=0,t.test(e.hostname)}function vl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var os=d("$ZodURL",(e,t)=>{T.init(e,t),e._zod.check=(r)=>{try{let o=r.value.trim(),n=zl(o,t);if(n===Fi){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===wt){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=ki(o);return}if(t.hostname&&!bl(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&&!vl(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:ki(o);return}catch(o){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ns=d("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Wn()),T.init(e,t)}),is=d("$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?Fn:Bn(t.length)),T.init(e,t)}),ss=d("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=jn),T.init(e,t)}),cs=d("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ln),T.init(e,t)}),as=d("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Un),T.init(e,t)}),us=d("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Dn),T.init(e,t)}),ls=d("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Mn),T.init(e,t)}),ps=d("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ii(t)),T.init(e,t)}),ds=d("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=oi),T.init(e,t)}),fs=d("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ni(t)),T.init(e,t)}),ms=d("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Jn),T.init(e,t)}),hs=d("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Kn),T.init(e,t)}),wl=/^[0-9a-fA-F:.]+$/;function gs(e){if(!wl.test(e))return!1;return Bi(`http://[${e}]`)}var _s=d("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gn),T.init(e,t),e._zod.check=(r)=>{if(!gs(r.value))r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}});var zs=d("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Hn),T.init(e,t)});function $l(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 gs(r)}var xs=d("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Xn),T.init(e,t),e._zod.check=(r)=>{if(!$l(r.value))r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function ys(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 Lr=/^[0-9a-zA-Z+/]*={0,2}$/,bs=d("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Lr),T.init(e,t),e._zod.check=(r)=>{if(ys(r.value))return;r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),kt=/^[A-Za-z0-9_-]*$/;function Sl(e){if(!kt.test(e))return!1;let t=e.replace(/[-_]/g,(o)=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return ys(r)}var vs=d("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=kt),T.init(e,t),e._zod.check=(r)=>{if(Sl(r.value))return;r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ws=d("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ti),T.init(e,t)});function kl(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 $s=d("$ZodJWT",(e,t)=>{T.init(e,t),e._zod.check=(r)=>{if(kl(r.value,t.alg))return;r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}});var Dr=d("$ZodNumber",(e,t)=>{R.init(e,t),e._zod.pattern=Ge,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}}),Ss=d("$ZodNumberFormat",(e,t)=>{di.init(e,t),Dr.init(e,t)}),ks=d("$ZodBoolean",(e,t)=>{R.init(e,t),e._zod.pattern=ci,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 Ps=d("$ZodNull",(e,t)=>{R.init(e,t),e._zod.pattern=ai,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}}),Os=d("$ZodAny",(e,t)=>{R.init(e,t),e._zod.parse=(r)=>r}),Rs=d("$ZodUnknown",(e,t)=>{R.init(e,t),e._zod.parse=(r)=>r}),Cs=d("$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 Pl(e,t){let r=xr(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 xr(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,ft(i.issues,p,e),i}}return n(i,s)}}var Zl=(e)=>Array.isArray(e)?e.length:-1;function Pi(e,t,r){if(e.issues.length)t.issues.push(...be(r,e.issues));t.value[r]=e.value}var Is=d("$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((f)=>Pi(f,o,a)));else if(Pi(p,o,a),c&&p.issues.length!==0&&le(p))break}if(s.length)return Promise.all(s).then(()=>o);return o},Pl(e,Zl)});function $t(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(...be(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 Ol=[];function Ts(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),o=r.length?r:Ol,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=pn(e.shape);return{...e,allKeys:n,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function As(e,t,r,o,n,i,s){let c=[],a=n.keySet,l=n.catchall._zod,p=l.def.type,{optin:f,optout:h}=l,m=0;for(let g in t){if(s&&r.issues.length!==m){if(le(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 v=l.run({value:t[g],issues:[]},o);if(v instanceof Promise)e.push(v.then((b)=>$t(b,r,g,t,f,h)));else $t(v,r,g,t,f,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 Rl=d("$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=qe(()=>Ts(t));S(e,"propValues",(l)=>{let p=l.def.shape,f={};for(let h in p){let m=p[h]._zod;if(m.values){if(!Object.prototype.hasOwnProperty.call(f,h))ne(f,h,new Set);for(let g of m.values)f[h].add(g);if(m.optin!==void 0)f[h].add(void 0)}}return f});let i=Oe,s=t.catchall,c,a=X.memoizer;a?.attach(e),e._zod.parse=(l,p)=>{c??(c=n.value);let f=l.value;if(!i(f))return l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l;l.value=a?a.alloc(e,l,{},p):{};let h=[],m=c.shape,g=p?.abortEarly,v=l.issues.length;for(let b of c.allKeys){if(g&&l.issues.length!==v){if(le(l,v))break;v=l.issues.length}if(b==="__proto__")continue;let P=m[b],G=P._zod.optin,ze=P._zod.optout,Se=P._zod.run({value:f[b],issues:[]},p);if(Se instanceof Promise)h.push(Se.then((N)=>$t(N,l,b,f,G,ze)));else $t(Se,l,b,f,G,ze)}if(!s)return h.length?Promise.all(h).then(()=>l):l;return As(h,f,l,p,n.value,e,g===!0)}}),Es=d("$ZodObjectJIT",(e,t)=>{Rl.init(e,t);let r=e._zod.parse,o=qe(()=>Ts(t)),n=X.memoizer,i=(m)=>{let g=o.value,v=g.symbolKeys,b=new Ar(["payload","ctx"],{shape:m,inst:e,memo:n,syms:v}),P=(N)=>`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`,G=(N,Z)=>`
|
|
7
|
-
let ${N}_ab = false;
|
|
8
|
-
for (let i = 0; i < ${N}.issues.length; i++) {
|
|
9
|
-
const iss = ${N}.issues[i];
|
|
10
|
-
iss.path = iss.path ? [${Z}, ...iss.path] : [${Z}];
|
|
11
|
-
payload.issues.push(iss);
|
|
12
|
-
if (iss.continue !== true) ${N}_ab = true;
|
|
13
|
-
}
|
|
14
|
-
if (${N}_ab && ctx && ctx.abortEarly) {
|
|
15
|
-
payload.value = newResult;
|
|
16
|
-
return payload;
|
|
17
|
-
}`;b.write("const input = payload.value;");let ze=Object.create(null),Se=0;for(let N of g.allKeys)ze[N]=`key_${Se++}`;b.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let N of g.allKeys){if(N==="__proto__")continue;let Z=ze[N],oe=typeof N==="symbol"?`syms[${v.indexOf(N)}]`:cn(N),Me=`${oe} in input`,K=m[N],fe=K?._zod?.optin,ar=fe!==void 0,en=K?._zod?.optout==="optional";if(b.write(`const ${Z} = ${P(oe)};`),ar&&en){let Vu=fe==="optional"?`${Z}_present`:`${Z}.value !== undefined || ${Z}_present`;b.write(`
|
|
18
|
-
const ${Z}_present = ${Me};
|
|
19
|
-
if (!${Z}.issues.length || ${Z}_present) {
|
|
20
|
-
if (${Z}.issues.length) {${G(Z,oe)}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (${Vu}) {
|
|
24
|
-
newResult[${oe}] = ${Z}.value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
`)}else if(!ar)b.write(`
|
|
29
|
-
const ${Z}_present = ${Me};
|
|
30
|
-
if (${Z}.issues.length) {${G(Z,oe)}
|
|
31
|
-
}
|
|
32
|
-
if (!${Z}_present && !${Z}.issues.length) {
|
|
33
|
-
payload.issues.push({
|
|
34
|
-
code: "invalid_type",
|
|
35
|
-
expected: "nonoptional",
|
|
36
|
-
input: undefined,
|
|
37
|
-
path: [${oe}]
|
|
38
|
-
});
|
|
39
|
-
if (ctx && ctx.abortEarly) {
|
|
40
|
-
payload.value = newResult;
|
|
41
|
-
return payload;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (${Z}_present) {
|
|
46
|
-
newResult[${oe}] = ${Z}.value;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
`);else if(b.write(`
|
|
50
|
-
if (${Z}.issues.length) {${G(Z,oe)}
|
|
51
|
-
}
|
|
52
|
-
`),fe==="defaulted")b.write(`newResult[${oe}] = ${Z}.value;`);else b.write(`
|
|
53
|
-
if (${Z}.value !== undefined || ${Me}) {
|
|
54
|
-
newResult[${oe}] = ${Z}.value;
|
|
55
|
-
}
|
|
56
|
-
`)}return b.write("payload.value = newResult;"),b.write("return payload;"),b.compile()},s,c=Oe,a=!X.jitless,p=a&&un.value,f=t.catchall,h;e._zod.parse=(m,g)=>{h??(h=o.value);let v=m.value;if(!c(v))return m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m;if(a&&p&&g?.async===!1&&g.jitless!==!0){if(!s)s=i(t.shape);if(m=s(m,g),!f)return m;return As([],v,m,g,h,e,g?.abortEarly===!0)}return r(m,g)}});function Oi(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)=>!le(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)=>pe(s,o,Y())))}),t}var Mr=d("$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)=>lt(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 Oi(s,o,e,n);return Promise.all(s).then((c)=>Oi(c,o,e,n))}});function Cl(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 Ns=d("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Mr.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))ne(i,l,new Set);for(let f of p)i[l].add(f)}}if(!n.def.unionFallback&&s>1)i[n.def.discriminator]?.delete(void 0);return i}),t.options.forEach((n,i)=>{let s=Ve(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw Error(`Invalid discriminated union option at index "${i}"`)});let o=qe(()=>Cl(t));e._zod.parse=(n,i)=>{let s=n.value;if(!Oe(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}}),js=d("$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])=>Ri(r,a,l));return Ri(r,i,s)}});function Er(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(Pe(e)&&Pe(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=Er(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=Er(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 Ri(e,t,r){let o=new Map,n,i=new Map,s=(l,p)=>{let f;if(l.code==="unrecognized_keys"&&!l.path?.length)n??(n=l),f=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);f=[h]}else return!1;for(let h of f){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=Er(t.value,r.value);if(!a.valid){if(le(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`)}return e.value=a.data,e}var Ls=d("$ZodRecord",(e,t)=>{R.init(e,t);let r=X.memoizer;r?.attach(e),e._zod.parse=(o,n)=>{let i=o.value;if(!Pe(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 f=t.keyType._zod.run({value:p,issues:[]},n);if(f instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(f.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map((g)=>pe(g,n,Y())),input:p,path:[p],inst:e});continue}let h=f.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(...be(p,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...be(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"&&Ge.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)=>pe(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(...be(l,g.issues));o.value[h]=g.value}));else{if(m.issues.length)o.issues.push(...be(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 Us=d("$ZodEnum",(e,t)=>{R.init(e,t);let r=Be(t.entries),o=new Set(r);e._zod.values=o,S(e,"pattern",(n)=>{let i=Be(n.def.entries).filter((s)=>ln.has(typeof s));return new RegExp(i.length?`^(${i.map((s)=>ye(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}}),Ds=d("$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"?ye(i):i?ye(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 Ms=d("$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 We(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 Ci(e,t){return e.value=t.issues.length?void 0:t.value,e}var Jr=d("$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(`^(${lt(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)=>Ci(r,i));return Ci(r,n)}return t.innerType._zod.run(r,o)}}),Fs=d("$ZodExactOptional",(e,t)=>{Jr.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)}),Bs=d("$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(`^(${lt(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)}}),qs=d("$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)=>Ii(i,t));return Ii(n,t)}});function Ii(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var Vs=d("$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)}}),Ws=d("$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)=>Ti(i,e));return Ti(n,e)}});function Ti(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 Ai(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)=>pe(n,o,Y()))},input:e.value}),e}var Ks=d("$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)=>Ai(r,i,t,o));return Ai(r,n,t,o)}});var qr=d("$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)=>vt(s,t.in,o));return vt(i,t.in,o)}let n=t.in._zod.run(r,o);if(n instanceof Promise)return n.then((i)=>vt(i,t.out,o));return vt(n,t.out,o)}});function vt(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 Gs=d("$ZodPreprocess",(e,t)=>{qr.init(e,t)}),Hs=d("$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(Ei);return Ei(n)}});function Ei(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var Qs=d("$ZodCustom",(e,t)=>{J.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)=>Ni(i,r,o,e));Ni(n,r,o,e);return}});function Ni(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(Ze(n))}}class tc extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var Wr="~memo",ec=[];function rc(e){return e!==null&&typeof e==="object"}function Vr(e){return e.map((t)=>t.path?{...t,path:t.path.slice()}:{...t})}var oc=new WeakMap,Xe=0,Ot=1,Ye=2;function Rt(e,t,r){let o=oc.get(e);if(o!==void 0)return o?Ye:Xe;if(t.has(e))return Ye;t.add(e);let n=Xe,i=(p)=>{if(n!==Ye&&p?._zod){let f=Rt(p,t,r);if(f>n)n=f}},s=(p,f)=>{let h=Xe;for(let m of Reflect.ownKeys(p)){let g=Object.getOwnPropertyDescriptor(p,m);if(f&&!g.enumerable)continue;let v=g.get?Ot:g.value?._zod?Rt(g.value,t,r):Xe;if(v>h)h=v}return h},c=(p)=>{if(p>n)n=p},a=e._zod.def,l=a.type;switch(l){case"object":{let p=Ve(a);c(p?s(p,!0):Ot),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?Rt(p,t,!1):Ot);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 f=Object.getOwnPropertyDescriptor(a,p);if(!f||f.get)continue;let h=f.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),Il(e,n)}function Il(e,t){if(t!==Ot)oc.set(e,t===Ye);return t}function Tl(e,t){let r=e.buckets.get(t);if(!r)r=new WeakMap,e.buckets.set(t,r);return r}var Pt,Zt=[],Al={alloc(e,t,r){let o=Pt;if(!o)return r;Pt=void 0;let n={value:r,issues:null};return o.set(t.value,n),Zt.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"&&El(i,n.value))throw new tc;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 P=Rt(e,new Set,!1);if(P===Xe){if(e._zod.parse=s,e._zod.run===c)e._zod.run=s;return s(a,l)}if(P===Ye||o)r=!0;else o=!0}let p=a.value;if(!rc(p))return s(a,l);let f=l[Wr];if(!f)f={buckets:new WeakMap,backEdges:void 0},l[Wr]=f;let h;if(n===l)h=i;else h=Tl(f,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(...Vr(m.issues))}else a.memo=!0,f.backEdges??(f.backEdges=new WeakSet),f.backEdges.add(m.value);return a}Pt=h;let g=Zt.length,v=s(a,l);Pt=void 0;let b=Zt.length>g?Zt.pop():void 0;if(v instanceof Promise)return v.then((P)=>{if(b)b.issues=P.issues.length?Vr(P.issues):ec;return P});if(b)b.issues=v.issues.length?Vr(v.issues):ec;return v};if(e._zod.parse=c,e._zod.run===s)e._zod.run=c})}};function Kr(){return Al}function El(e,t){let r=e[Wr]?.backEdges;return r!==void 0&&rc(t)&&r.has(t)}var Nl=()=>{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=hn(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 ${_r(i.values[0])}`;return`Invalid option: expected one of ${lr(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":""}: ${lr(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 Gr(){return{localeError:Nl()}}var nc;class ic{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 sc(){return new ic}(nc=globalThis).__zod_globalRegistry??(nc.__zod_globalRegistry=sc());var ve=globalThis.__zod_globalRegistry;function Hr(e){if(e.checks)e.checks=[...e.checks];return e}function cc(e,t){return new e(Hr({type:"string",...x(t)}))}function ac(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function uc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function lc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function Xr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function mc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function hc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function gc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function _c(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function zc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function xc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function yc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function bc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function vc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function wc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function $c(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function Sc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function kc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function Pc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function Zc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}function Ct(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function Yr(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function Qr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function eo(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function Oc(e,t){return new e(Hr({type:"number",checks:[],...x(t)}))}function Rc(e,t){return new e(Hr({type:"number",coerce:!0,checks:[],...x(t)}))}function Cc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function Ic(e,t){return new e({type:"boolean",...x(t)})}function Tc(e,t){return new e({type:"null",...x(t)})}function Ac(e){return new e({type:"any"})}function Ec(e){return new e({type:"unknown"})}function Nc(e,t){return new e({type:"never",...x(t)})}function It(e,t){return new Ir({check:"less_than",...x(t),value:e,inclusive:!1})}function Qe(e,t){return new Ir({check:"less_than",...x(t),value:e,inclusive:!0})}function Tt(e,t){return new Tr({check:"greater_than",...x(t),value:e,inclusive:!1})}function et(e,t){return new Tr({check:"greater_than",...x(t),value:e,inclusive:!0})}function At(e,t){return new pi({check:"multiple_of",...x(t),value:e})}function jt(e,t){return new fi({check:"max_length",...x(t),maximum:e})}function Ce(e,t){return new mi({check:"min_length",...x(t),minimum:e})}function Lt(e,t){return new hi({check:"length_equals",...x(t),length:e})}function to(e,t){return new gi({check:"string_format",format:"regex",...x(t),pattern:e})}function ro(e){return new _i({check:"string_format",format:"lowercase",...x(e)})}function oo(e){return new xi({check:"string_format",format:"uppercase",...x(e)})}function no(e,t){return new yi({check:"string_format",format:"includes",...x(t),includes:e})}function io(e,t){return new bi({check:"string_format",format:"starts_with",...x(t),prefix:e})}function so(e,t){return new vi({check:"string_format",format:"ends_with",...x(t),suffix:e})}function we(e){return new wi({check:"overwrite",tx:e})}function co(e){return we((t)=>t.normalize(e))}function ao(){return we((e)=>e.trim())}function uo(){return we((e)=>e.toLowerCase())}function lo(){return we((e)=>e.toUpperCase())}function po(){return we((e)=>an(e))}function jc(e,t,r){return new e({type:"array",element:t,...x(r)})}function Lc(e,t,r){let o=x(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Uc(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function Dc(e,t){let r=jl((o)=>(o.addIssue=(n)=>{if(typeof n==="string")o.issues.push(Ze(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(Ze(i))}},e(o.value,o)),t);return r}function jl(e,t){let r=new J({check:"custom",...x(t)});return r._zod.check=e,r}function tt(e,...t){for(let r of t)for(let o of Reflect.ownKeys(r))if(Object.prototype.propertyIsEnumerable.call(r,o))ne(e,o,r[o]);return e}function mo(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??ve,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 ge(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 f=e._zod.parent;if(f){if(!s.ref)s.ref=f;D(f,t,p),t.seen.get(f).isParent=!0}}let a=t.metadataRegistry.get(e);if(a)tt(s.schema,a);if(t.io==="input"&&H(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 Mc(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ho(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 f=e.external.registry.get(s[0])?.id,h=e.external.uri??((g)=>g);if(f)return{ref:h(f)};let m=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=m,{defId:m,ref:`${h("__shared")}#/${c}/${Mc(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+Mc(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 f in p)delete p[f];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 Jc(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;Jc(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 qc=new Set(["type","properties","required","additionalProperties"]),Fc=["oneOf","anyOf"];function Bc(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 fo(e){let t=[];for(let i of e){if(typeof i!=="object"||i.type!=="object")return null;for(let s in i)if(!qc.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]??Bc(l);if(p===null||p===void 0)continue;if(!c.some((f)=>JSON.stringify(f)===JSON.stringify(p)))c.push(p)}let a=c.length===1?c[0]:fo(c)??{allOf:c};ne(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=Bc(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 Ll(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of qc)if(n in e)return;let r=t.filter((n)=>Fc.some((i)=>Array.isArray(n[i]))),o=null;if(!r.length)o=fo(t);else{let n=r[0],i=Fc.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)=>fo([...s,a]));if(c.some((a)=>!a))return;o={[i]:c}}if(!o)return;delete e.allOf,tt(e,o)}function go(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},f=a.ref;if(a.ref=null,f){o(f);let m=e.seen.get(f),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 tt(l,g);if(tt(l,p),c._zod.parent===f)for(let b in l){if(b==="$ref"||b==="allOf")continue;if(!(b in p))delete l[b]}if(g.$ref&&m.def)for(let b in l){if(b==="$ref"||b==="allOf")continue;if(b in m.def&&JSON.stringify(l[b])===JSON.stringify(m.def[b]))delete l[b]}}let h=c._zod.parent;if(h&&h!==f){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())Jc(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 f=c.get(p);if(f)f.push(l);else c.set(p,[l])}for(let a of e.intersections)for(let l of c.get(a)??[])Ll(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)}tt(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;ne(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:rt(t,"input",e.processors),output:rt(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch(c){throw Error("Error converting schema to JSON.")}}function H(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 H(o.element,r);if(o.type==="set")return H(o.valueType,r);if(o.type==="lazy")return H(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 H(o.innerType,r);if(o.type==="intersection")return H(o.left,r)||H(o.right,r);if(o.type==="record"||o.type==="map")return H(o.keyType,r)||H(o.valueType,r);if(o.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return H(o.in,r)||H(o.out,r)}if(o.type==="object"){for(let n in o.shape)if(H(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(H(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(H(n,r))return!0;if(o.rest&&H(o.rest,r))return!0;return!1}return!1}var Vc=(e,t={})=>(r)=>{let o=mo({...r,processors:t});return D(e,o),ho(o,e),go(o,e)},rt=(e,t,r={})=>(o)=>{let{libraryOptions:n,target:i}=o??{},s=mo({...n??{},target:i,io:t,processors:r});return D(e,s),ho(s,e),go(s,e)};var Ie=(e,t,r)=>{if(e[t]===void 0||r>e[t])e[t]=r},Te=(e,t,r)=>{if(e[t]===void 0||r<e[t])e[t]=r},Wc=(e,t)=>{Ie(e,"minimum",t),Te(e,"maximum",t)},Xc=(e,t)=>{if(e.multipleOf??(e.multipleOf=[]),!e.multipleOf.includes(t))e.multipleOf.push(t)},Yc=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Qc=(e,t)=>{e.mime=e.mime?e.mime.filter((r)=>t.includes(r)):[...t]},oa=(e,t)=>{if(e.format=t,t.includes("int"))e.isInt=!0},Kc=(e,t)=>Ie(e,"minimum",t.minimum),Gc=(e,t)=>Te(e,"maximum",t.maximum),Hc=(e)=>(t,r)=>{oa(t,r.format);let[o,n]=e[r.format];Ie(t,"minimum",o),Te(t,"maximum",n)},Ul={greater_than:(e,t)=>Ie(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Te(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Xc(e,t.value),number_format:Hc(pt),bigint_format:Hc(zr),min_length:Kc,max_length:Gc,length_equals:(e,t)=>Wc(e,t.length),min_size:Kc,max_size:Gc,size_equals:(e,t)=>Wc(e,t.size),string_format:(e,t)=>{if(oa(e,t.format),t.pattern)Yc(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)=>Qc(e,t.mime)};function se(e){let t={},r=e._zod.def,o=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let i of o)Ul[i._zod.def.check]?.(t,i._zod.def);let n=e._zod.bag;if(n.minimum!==void 0)Ie(t,"minimum",n.minimum);if(n.exclusiveMinimum!==void 0)Ie(t,"exclusiveMinimum",n.exclusiveMinimum);if(n.maximum!==void 0)Te(t,"maximum",n.maximum);if(n.exclusiveMaximum!==void 0)Te(t,"exclusiveMaximum",n.exclusiveMaximum);if(n.multipleOf!==void 0)Xc(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)Qc(t,n.mime);for(let i of n.patterns??[])Yc(t,i);return t}var Dl={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ml=new Map([[Lr,Yn],[kt,Qn]]),na=(e)=>Ml.get(e)??e,ia=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:s,format:c,patterns:a,contentEncoding:l,laxFormat:p}=se(e);if(typeof i==="number")n.minLength=i;if(typeof s==="number")n.maxLength=s;if(c){if(n.format=Dl[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 f=[...a].map(na);if(f.length===1)n.pattern=f[0].source;else if(f.length>1)n.allOf=[...f.map((h)=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))]}},sa=(e,t,r,o)=>{let n=r,{minimum:i,maximum:s,multipleOf:c,exclusiveMaximum:a,exclusiveMinimum:l,isInt:p}=se(e);n.type=p?"integer":"number";let f=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(f)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 P of c)if(Number.isFinite(P)&&P!==0)g.add(Math.abs(P));else ge(e,t,n,o,`A multipleOf divisor of ${P} cannot be represented in JSON Schema`);let[v,...b]=g;if(v!==void 0)n.multipleOf=v;if(b.length)n.allOf=[...n.allOf??[],...b.map((P)=>({multipleOf:P}))]}},ca=(e,t,r,o)=>{r.type="boolean"};var aa=(e,t,r,o)=>{if(t.target==="openapi-3.0")r.type="string",r.nullable=!0,r.enum=[null];else r.type="null"};var ua=(e,t,r,o)=>{r.not={}},la=(e,t,r,o)=>{},pa=(e,t,r,o)=>{};var da=(e,t,r,o)=>{let n=e._zod.def,i=Be(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},fa=(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(ge(e,t,r,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s==="bigint"){if(ge(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 ma=(e,t,r,o)=>{ge(e,t,r,o,"Custom types cannot be represented in JSON Schema")};var ha=(e,t,r,o)=>{ge(e,t,r,o,"Transforms cannot be represented in JSON Schema")};var ga=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:s,maximum:c}=se(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 Ut(e){let t=e._zod.def;if(t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform"))return Ut(t.out);if(t.type==="catch")return Ut(t.innerType);return e._zod.optin}var _a=(e,t,r,o)=>{let n=r,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&ge(e,t,n,o,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let l in s)ne(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"?Ut(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"]})},za=(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},xa=(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 zo(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 v=zo(e,g,r);return v===g?t:v}for(let g of["anyOf","oneOf"]){let v=t[g];if(!Array.isArray(v))continue;let b=v.map((P)=>zo(e,P,r));if(b.some((P,G)=>P!==v[G]))t={...t,[g]:b}}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:f,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")?Ge:Rr).source;return m}var yo=new WeakMap;function Fl(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 yo.get(e)??[]){let n=e.seen.get(o),i=(n?.def??n?.schema)?.propertyNames;if(!i||i===!0||r.has(i))continue;let s=zo(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 ya=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let s=i.keyType,c=se(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 f of c)ne(n.patternProperties,na(f).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=yo.get(t);if(!p)p=[],yo.set(t,p),t.deferred.push(()=>Fl(t));p.push(e)}n.additionalProperties=D(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let a=s._zod.values,l=t.io==="input"&&Ut(i.valueType)!==void 0;if(a&&!i.partial&&!l){let p=[...a].filter((f)=>typeof f==="string"||typeof f==="number");if(p.length>0)n.required=p.map(String)}},ba=(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"}]},va=(e,t,r,o)=>{let n=e._zod.def;D(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},bo=Symbol();function wa(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 ge(t,r,o,n,"BigInt defaults cannot be represented in JSON Schema"),bo}var $a=(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=wa(n.defaultValue,e,t,r,o);if(s!==bo)r.default=s},Sa=(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=wa(n.defaultValue,e,t,r,o);if(s!==bo)r._prefault=s},ka=(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{ge(e,t,r,o,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},Pa=(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},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,r.readOnly=!0};var $o=(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 Oa=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 Xl=(e,t)=>{Sn.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);if(Oa.has(r))return;Oa.add(r),Dt(r,"format",(o)=>(n)=>Sr(o,n)),Dt(r,"flatten",(o)=>(n)=>$r(o,n)),Dt(r,"addIssue",(o)=>(n)=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Je,2)}),Dt(r,"addIssues",(o)=>(n)=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Je,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var te=d("ZodError",Xl,void 0,{Parent:Error});var Ra=zt(te),Ca=xt(te),Ia=Ke(te),Ta=yt(te),Aa=Zn(te),Ea=On(te),Na=Rn(te),ja=Cn(te),La=In(te),Ua=Tn(te),Da=An(te),Ma=Nn(te);function Ql(){if(!X.localeError)Y(Gr())}function Ft(){if(!X.memoizer)Y({memoizer:Kr()})}var A=d("ZodType",(e,t)=>(Ql(),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(Dp(e,t))},superRefine(e,t){return this.check(Mp(e,t))},overwrite(e){return this.check(we(e))},optional(){return L(this)},exactOptional(){return Zp(this)},nullable(){return Ja(this)},nullish(){return L(Ja(this))},nonoptional(e){return Ap(this,e)},array(){return _(this)},or(e){return E([this,e])},and(e){return Jt(this,e)},transform(e){return qa(this,nu(e))},default(e){return Cp(this,e)},prefault(e){return Tp(this,e)},catch(e){return Np(this,e)},pipe(e){return qa(this,e)},readonly(){return Up(this)},describe(e){let t=this.clone();return ve.add(t,{description:e}),t},meta(...e){if(e.length===0)return ve.get(this);let t=this.clone();return ve.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 gt(this,"~standard",{...jr(this),jsonSchema:{input:rt(this,"input"),output:rt(this,"output")}})},set "~standard"(e){he(this,"~standard",e)},parse:function e(t,r){return Ra(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await Ca(this,t,r,{callee:e})},safeParse(e,t){return Ia(this,e,t)},async safeParseAsync(e,t){return Ta(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){he(this,"spa",e)},validate(e,t){return kr(this,e,t)},validateAsync(e,t){return Pr(this,e,t)},encode:function e(t,r){return Aa(this,t,r,{callee:e})},decode:function e(t,r){return Ea(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await Na(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await ja(this,t,r,{callee:e})},safeEncode(e,t){return La(this,e,t)},safeDecode(e,t){return Ua(this,e,t)},async safeEncodeAsync(e,t){return Da(this,e,t)},async safeDecodeAsync(e,t){return Ma(this,e,t)},toJSONSchema(e){return Vc(this,{})(e)},get description(){return ve.get(this)?.description},get _def(){return this._zod.def}}),Va=d("_ZodString",(e,t)=>{St.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ia(e,r,o,n)},zn({format:(e)=>se(e).format??null,minLength:(e)=>se(e).minimum??null,maxLength:(e)=>se(e).maximum??null},{regex(...e){return this.check(to(...e))},includes(...e){return this.check(no(...e))},startsWith(...e){return this.check(io(...e))},endsWith(...e){return this.check(so(...e))},min(...e){return this.check(Ce(...e))},max(...e){return this.check(jt(...e))},length(...e){return this.check(Lt(...e))},nonempty(...e){return this.check(Ce(1,...e))},lowercase(e){return this.check(ro(e))},uppercase(e){return this.check(oo(e))},trim(){return this.check(ao())},normalize(...e){return this.check(co(...e))},toLowerCase(){return this.check(uo())},toUpperCase(){return this.check(lo())},slugify(){return this.check(po())}})),Wa=d("ZodString",(e,t)=>{St.init(e,t),Va.init(e,t)},{email(e){return this.check(ac(ep,e))},url(e){return this.check(Xr(Xa,e))},jwt(e){return this.check(Zc(gp,e))},emoji(e){return this.check(mc(rp,e))},guid(e){return this.check(uc(tp,e))},uuid(e){return this.check(lc(Mt,e))},uuidv4(e){return this.check(pc(Mt,e))},uuidv6(e){return this.check(dc(Mt,e))},uuidv7(e){return this.check(fc(Mt,e))},nanoid(e){return this.check(hc(op,e))},cuid(e){return this.check(gc(np,e))},cuid2(e){return this.check(_c(ip,e))},ulid(e){return this.check(zc(sp,e))},base64(e){return this.check(Sc(fp,e))},base64url(e){return this.check(kc(mp,e))},xid(e){return this.check(xc(cp,e))},ksuid(e){return this.check(yc(ap,e))},ipv4(e){return this.check(bc(up,e))},ipv6(e){return this.check(vc(lp,e))},cidrv4(e){return this.check(wc(pp,e))},cidrv6(e){return this.check($c(dp,e))},e164(e){return this.check(Pc(hp,e))},datetime(e){return this.check(Ct(Oo,e))},date(e){return this.check(Yr(Ka,e))},time(e){return this.check(Qr(Ga,e))},duration(e){return this.check(eo(Ha,e))}});function u(e){return cc(Wa,e)}var U=d("ZodStringFormat",(e,t)=>{T.init(e,t),Va.init(e,t)}),Oo=d("ZodISODateTime",(e,t)=>{ps.init(e,t),U.init(e,t)}),Ka=d("ZodISODate",(e,t)=>{ds.init(e,t),U.init(e,t)}),Ga=d("ZodISOTime",(e,t)=>{fs.init(e,t),U.init(e,t)}),Ha=d("ZodISODuration",(e,t)=>{ms.init(e,t),U.init(e,t)}),ep=d("ZodEmail",(e,t)=>{Mi.init(e,t),U.init(e,t)});var tp=d("ZodGUID",(e,t)=>{Ui.init(e,t),U.init(e,t)});var Mt=d("ZodUUID",(e,t)=>{Di.init(e,t),U.init(e,t)});var Xa=d("ZodURL",(e,t)=>{os.init(e,t),U.init(e,t)});function Ya(e){return Xr(Xa,e)}var rp=d("ZodEmoji",(e,t)=>{ns.init(e,t),U.init(e,t)});var op=d("ZodNanoID",(e,t)=>{is.init(e,t),U.init(e,t)});var np=d("ZodCUID",(e,t)=>{ss.init(e,t),U.init(e,t)});var ip=d("ZodCUID2",(e,t)=>{cs.init(e,t),U.init(e,t)});var sp=d("ZodULID",(e,t)=>{as.init(e,t),U.init(e,t)});var cp=d("ZodXID",(e,t)=>{us.init(e,t),U.init(e,t)});var ap=d("ZodKSUID",(e,t)=>{ls.init(e,t),U.init(e,t)});var up=d("ZodIPv4",(e,t)=>{hs.init(e,t),U.init(e,t)});var lp=d("ZodIPv6",(e,t)=>{_s.init(e,t),U.init(e,t)});var pp=d("ZodCIDRv4",(e,t)=>{zs.init(e,t),U.init(e,t)});var dp=d("ZodCIDRv6",(e,t)=>{xs.init(e,t),U.init(e,t)});var fp=d("ZodBase64",(e,t)=>{bs.init(e,t),U.init(e,t)});var mp=d("ZodBase64URL",(e,t)=>{vs.init(e,t),U.init(e,t)});var hp=d("ZodE164",(e,t)=>{ws.init(e,t),U.init(e,t)});var gp=d("ZodJWT",(e,t)=>{$s.init(e,t),U.init(e,t)});var Bt=d("ZodNumber",(e,t)=>{Dr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>sa(e,r,o,n),e.isFinite=!0},zn({minValue:(e)=>{let{minimum:t,exclusiveMinimum:r}=se(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:(e)=>{let{maximum:t,exclusiveMaximum:r}=se(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:(e)=>{let{isInt:t,multipleOf:r}=se(e);return!!t||!!r?.some(Number.isSafeInteger)},format:(e)=>se(e).format??null},{gt(e,t){return this.check(Tt(e,t))},gte(e,t){return this.check(et(e,t))},min(e,t){return this.check(et(e,t))},lt(e,t){return this.check(It(e,t))},lte(e,t){return this.check(Qe(e,t))},max(e,t){return this.check(Qe(e,t))},int(e){return this.check(Fa(e))},safe(e){return this.check(Fa(e))},positive(e){return this.check(Tt(0,e))},nonnegative(e){return this.check(et(0,e))},negative(e){return this.check(It(0,e))},nonpositive(e){return this.check(Qe(0,e))},multipleOf(e,t){return this.check(At(e,t))},step(e,t){return this.check(At(e,t))},finite(){return this}}));function w(e){return Oc(Bt,e)}var _p=d("ZodNumberFormat",(e,t)=>{Ss.init(e,t),Bt.init(e,t)});function Fa(e){return Cc(_p,e)}var Qa=d("ZodBoolean",(e,t)=>{ks.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ca(e,r,o,n)});function O(e){return Ic(Qa,e)}var zp=d("ZodNull",(e,t)=>{Ps.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>aa(e,r,o,n)});function eu(e){return Tc(zp,e)}var xp=d("ZodAny",(e,t)=>{Os.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>la(e,r,o,n)});function tu(){return Ac(xp)}var yp=d("ZodUnknown",(e,t)=>{Rs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pa(e,r,o,n)});function j(){return Ec(yp)}var bp=d("ZodNever",(e,t)=>{Cs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ua(e,r,o,n)});function vp(e){return Nc(bp,e)}var wp=d("ZodArray",(e,t)=>{Ft(),Is.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ga(e,r,o,n),e.element=t.element},{min(e,t){return this.check(Ce(e,t))},nonempty(e){return this.check(Ce(1,e))},max(e,t){return this.check(jt(e,t))},length(e,t){return this.check(Lt(e,t))},unwrap(){return this.element}});function _(e,t){return jc(wp,e,t)}var ru=d("ZodObject",(e,t)=>{Ft(),Es.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_a(e,r,o,n),nl(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:j()}))},loose(){return this.clone(ee(this._zod.def,{catchall:j()}))},strict(){return this.clone(ee(this._zod.def,{catchall:vp()}))},strip(){return this.clone(ee(this._zod.def,{catchall:void 0}))},extend(e){return Hu(this,e)},safeExtend(e){return Xu(this,e)},merge(e){return Yu(this,e)},pick(e){return Ku(this,e)},omit(e){return Gu(this,e)},partial(...e){return fn(iu,this,e[0])},exactPartial(...e){return fn(su,this,e[0],"exactPartial")},required(...e){return Qu(cu,this,e[0])}});function z(e,t){let r={type:"object",shape:e??{},...x(t)};return new ru(r)}function F(e,t){return new ru({type:"object",shape:e,catchall:j(),...x(t)})}var ou=d("ZodUnion",(e,t)=>{Mr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>za(e,r,o,n),e.options=t.options});function E(e,t){return new ou({type:"union",options:e,...x(t)})}var $p=d("ZodDiscriminatedUnion",(e,t)=>{ou.init(e,t),Ns.init(e,t)});function Co(e,t,r){return new $p({type:"union",options:t,discriminator:e,...x(r)})}var Sp=d("ZodIntersection",(e,t)=>{js.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xa(e,r,o,n)});function Jt(e,t){return new Sp({type:"intersection",left:e,right:t})}var Ba=d("ZodRecord",(e,t)=>{Ft(),Ls.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ya(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function C(e,t,r){if(!t||!t._zod)return new Ba({type:"record",keyType:u(),valueType:e,...x(t)});return new Ba({type:"record",keyType:e,valueType:t,...x(r)})}var Zo=d("ZodEnum",(e,t)=>{Us.init(e,t),A.init(e,t),e._zod.processJSONSchema=(o,n,i)=>da(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 Zo({...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 Zo({...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 Zo({type:"enum",entries:r,...x(t)})}var kp=d("ZodLiteral",(e,t)=>{Ds.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fa(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 kp({type:"literal",values:Array.isArray(e)?e:[e],...x(t)})}var Pp=d("ZodTransform",(e,t)=>{Ft(),Ms.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ha(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new We(e.constructor.name);r.addIssue=(i)=>{if(typeof i==="string")r.issues.push(Ze(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(Ze(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 nu(e){return new Pp({type:"transform",transform:e})}var iu=d("ZodOptional",(e,t)=>{Jr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$o(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function L(e){return new iu({type:"optional",innerType:e})}var su=d("ZodExactOptional",(e,t)=>{Fs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$o(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Zp(e){return new su({type:"optional",innerType:e})}var Op=d("ZodNullable",(e,t)=>{Bs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ba(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ja(e){return new Op({type:"nullable",innerType:e})}var Rp=d("ZodDefault",(e,t)=>{qs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$a(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Cp(e,t){return new Rp({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():gr(t)}})}var Ip=d("ZodPrefault",(e,t)=>{Vs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Sa(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Tp(e,t){return new Ip({type:"prefault",innerType:e,get defaultValue(){return typeof t==="function"?t():gr(t)}})}var cu=d("ZodNonOptional",(e,t)=>{Ws.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>va(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ap(e,t){return new cu({type:"nonoptional",innerType:e,...x(t)})}var Ep=d("ZodCatch",(e,t)=>{Ks.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ka(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Np(e,t){return new Ep({type:"catch",innerType:e,catchValue:typeof t==="function"?t:xn(t)})}var au=d("ZodPipe",(e,t)=>{qr.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pa(e,r,o,n),e.in=t.in,e.out=t.out});function qa(e,t){return new au({type:"pipe",in:e,out:t})}var jp=d("ZodPreprocess",(e,t)=>{au.init(e,t),Gs.init(e,t)}),Lp=d("ZodReadonly",(e,t)=>{Hs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Za(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Up(e){return new Lp({type:"readonly",innerType:e})}var uu=d("ZodCustom",(e,t)=>{Qs.init(e,t),A.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ma(e,r,o,n)});function lu(e,t){return Lc(uu,e??(()=>!0),t)}function Dp(e,t={}){return Uc(uu,e,t)}function Mp(e,t){return Dc(e,t)}function Io(e,t){return new jp({type:"pipe",in:nu(e),out:t})}var du={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 pu;(function(e){})(pu||(pu={}));function Bp(e){return Ct(Oo,e)}function Jp(e){return Rc(Bt,e)}var Nr="2025-11-25";var Ys=[Nr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Vt="io.modelcontextprotocol/related-task",Wt="2.0",B=lu((e)=>e!==null&&(typeof e==="object"||typeof e==="function")),hu=E([u(),w().int()]),gu=u(),Tg=F({ttl:w().optional(),pollInterval:w().optional()}),Vp=z({ttl:w().optional()}),Wp=z({taskId:u()}),No=F({progressToken:hu.optional(),[Vt]:Wp.optional()}),re=z({_meta:No.optional()}),ot=re.extend({task:Vp.optional()}),Xs=(e)=>ot.safeParse(e).success,q=z({method:u(),params:re.loose().optional()}),ce=z({_meta:No.optional()}),ae=z({method:u(),params:ce.loose().optional()}),V=F({_meta:No.optional()}),Gt=E([u(),w().int()]),_u=z({jsonrpc:y(Wt),id:Gt,...q.shape}).strict(),vn=(e)=>_u.safeParse(e).success,zu=z({jsonrpc:y(Wt),...ae.shape}).strict(),Js=(e)=>zu.safeParse(e).success,jo=z({jsonrpc:y(Wt),id:Gt,result:V}).strict(),pr=(e)=>jo.safeParse(e).success;var I;(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"})(I||(I={}));var Lo=z({jsonrpc:y(Wt),id:Gt.optional(),error:z({code:w().int(),message:u(),data:j().optional()})}).strict();var Zs=(e)=>Lo.safeParse(e).success;var Kt=E([_u,zu,jo,Lo]),Ag=E([jo,Lo]),dr=V.strict(),Kp=ce.extend({requestId:Gt.optional(),reason:u().optional()}),wo=ae.extend({method:y("notifications/cancelled"),params:Kp}),Gp=z({src:u(),mimeType:u().optional(),sizes:_(u()).optional(),theme:Q(["light","dark"]).optional()}),nt=z({icons:_(Gp).optional()}),Ee=z({name:u(),title:u().optional()}),xu=Ee.extend({...Ee.shape,...nt.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),Hp=Jt(z({applyDefaults:O().optional()}),C(u(),j())),Xp=Io((e)=>{if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.keys(e).length===0)return{form:{}}}return e},Jt(z({form:Hp.optional(),url:B.optional()}),C(u(),j()).optional())),Yp=F({list:B.optional(),cancel:B.optional(),requests:F({sampling:F({createMessage:B.optional()}).optional(),elicitation:F({create:B.optional()}).optional()}).optional()}),Qp=F({list:B.optional(),cancel:B.optional(),requests:F({tools:F({call:B.optional()}).optional()}).optional()}),ed=z({experimental:C(u(),B).optional(),sampling:z({context:B.optional(),tools:B.optional()}).optional(),elicitation:Xp.optional(),roots:z({listChanged:O().optional()}).optional(),tasks:Yp.optional(),extensions:C(u(),B).optional()}),td=re.extend({protocolVersion:u(),capabilities:ed,clientInfo:xu}),rd=q.extend({method:y("initialize"),params:td});var od=z({experimental:C(u(),B).optional(),logging:B.optional(),completions:B.optional(),prompts:z({listChanged:O().optional()}).optional(),resources:z({subscribe:O().optional(),listChanged:O().optional()}).optional(),tools:z({listChanged:O().optional()}).optional(),tasks:Qp.optional(),extensions:C(u(),B).optional()}),Wi=V.extend({protocolVersion:u(),capabilities:od,serverInfo:xu,instructions:u().optional()}),yu=ae.extend({method:y("notifications/initialized"),params:ce.optional()}),ea=(e)=>yu.safeParse(e).success,So=q.extend({method:y("ping"),params:re.optional()}),nd=z({progress:w(),total:L(w()),message:L(u())}),id=z({...ce.shape,...nd.shape,progressToken:hu}),xo=ae.extend({method:y("notifications/progress"),params:id}),sd=re.extend({cursor:gu.optional()}),it=q.extend({params:sd.optional()}),st=V.extend({nextCursor:gu.optional()}),cd=Q(["working","input_required","completed","failed","cancelled"]),at=z({taskId:u(),status:cd,ttl:E([w(),eu()]),createdAt:u(),lastUpdatedAt:u(),pollInterval:L(w()),statusMessage:L(u())}),mr=V.extend({task:at}),ad=ce.merge(at),_n=ae.extend({method:y("notifications/tasks/status"),params:ad}),vo=q.extend({method:y("tasks/get"),params:re.extend({taskId:u()})}),_o=V.merge(at),Eo=q.extend({method:y("tasks/result"),params:re.extend({taskId:u()})}),Eg=V.loose(),Ao=it.extend({method:y("tasks/list")}),To=st.extend({tasks:_(at)}),ko=q.extend({method:y("tasks/cancel"),params:re.extend({taskId:u()})}),ta=V.merge(at),bu=z({uri:u(),mimeType:L(u()),_meta:C(u(),j()).optional()}),vu=bu.extend({text:u()}),Uo=u().refine((e)=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),wu=bu.extend({blob:Uo}),ut=Q(["user","assistant"]),Ne=z({audience:_(ut).optional(),priority:w().min(0).max(1).optional(),lastModified:Bp({offset:!0}).optional()}),$u=z({...Ee.shape,...nt.shape,uri:u(),description:L(u()),mimeType:L(u()),size:L(w()),annotations:Ne.optional(),_meta:L(F({}))}),ud=z({...Ee.shape,...nt.shape,uriTemplate:u(),description:L(u()),mimeType:L(u()),annotations:Ne.optional(),_meta:L(F({}))}),ld=it.extend({method:y("resources/list")}),Hi=st.extend({resources:_($u)}),pd=it.extend({method:y("resources/templates/list")}),zi=st.extend({resourceTemplates:_(ud)}),Do=re.extend({uri:u()}),dd=Do,fd=q.extend({method:y("resources/read"),params:dd}),qi=V.extend({contents:_(E([vu,wu]))}),Gi=ae.extend({method:y("notifications/resources/list_changed"),params:ce.optional()}),md=Do,hd=q.extend({method:y("resources/subscribe"),params:md}),gd=Do,_d=q.extend({method:y("resources/unsubscribe"),params:gd}),zd=ce.extend({uri:u()}),xd=ae.extend({method:y("notifications/resources/updated"),params:zd}),yd=z({name:u(),description:L(u()),required:L(O())}),bd=z({...Ee.shape,...nt.shape,description:L(u()),arguments:L(_(yd)),_meta:L(F({}))}),vd=it.extend({method:y("prompts/list")}),Vi=st.extend({prompts:_(bd)}),wd=re.extend({name:u(),arguments:C(u(),u()).optional()}),$d=q.extend({method:y("prompts/get"),params:wd}),Mo=z({type:y("text"),text:u(),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Fo=z({type:y("image"),data:Uo,mimeType:u(),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Bo=z({type:y("audio"),data:Uo,mimeType:u(),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Sd=z({type:y("tool_use"),name:u(),id:u(),input:C(u(),j()),_meta:C(u(),j()).optional()}),kd=z({type:y("resource"),resource:E([vu,wu]),annotations:Ne.optional(),_meta:C(u(),j()).optional()}),Pd=$u.extend({type:y("resource_link")}),Jo=E([Mo,Fo,Bo,Pd,kd]),Zd=z({role:ut,content:Jo}),Ki=V.extend({description:u().optional(),messages:_(Zd)}),Qi=ae.extend({method:y("notifications/prompts/list_changed"),params:ce.optional()}),Od=z({title:u().optional(),readOnlyHint:O().optional(),destructiveHint:O().optional(),idempotentHint:O().optional(),openWorldHint:O().optional()}),Rd=z({taskSupport:Q(["required","optional","forbidden"]).optional()}),Su=z({...Ee.shape,...nt.shape,description:u().optional(),inputSchema:z({type:y("object"),properties:C(u(),B).optional(),required:_(u()).optional()}).catchall(j()),outputSchema:z({type:y("object"),properties:C(u(),B).optional(),required:_(u()).optional()}).catchall(j()).optional(),annotations:Od.optional(),execution:Rd.optional(),_meta:C(u(),j()).optional()}),Cd=it.extend({method:y("tools/list")}),Yi=st.extend({tools:_(Su)}),Nt=V.extend({content:_(Jo).default([]),structuredContent:C(u(),j()).optional(),isError:O().optional()}),Ng=Nt.or(V.extend({toolResult:j()})),Id=ot.extend({name:u(),arguments:C(u(),j()).optional()}),Td=q.extend({method:y("tools/call"),params:Id}),En=ae.extend({method:y("notifications/tools/list_changed"),params:ce.optional()}),ra=z({autoRefresh:O().default(!0),debounceMs:w().int().nonnegative().default(300)}),ku=Q(["debug","info","notice","warning","error","critical","alert","emergency"]),Ad=re.extend({level:ku}),Ed=q.extend({method:y("logging/setLevel"),params:Ad}),Nd=ce.extend({level:ku,logger:u().optional(),data:j()}),jd=ae.extend({method:y("notifications/message"),params:Nd}),Ld=z({name:u().optional()}),Ud=z({hints:_(Ld).optional(),costPriority:w().min(0).max(1).optional(),speedPriority:w().min(0).max(1).optional(),intelligencePriority:w().min(0).max(1).optional()}),Dd=z({mode:Q(["auto","required","none"]).optional()}),Md=z({type:y("tool_result"),toolUseId:u().describe("The unique identifier for the corresponding tool call."),content:_(Jo).default([]),structuredContent:z({}).loose().optional(),isError:O().optional(),_meta:C(u(),j()).optional()}),Fd=Co("type",[Mo,Fo,Bo]),qt=Co("type",[Mo,Fo,Bo,Sd,Md]),Bd=z({role:ut,content:E([qt,_(qt)]),_meta:C(u(),j()).optional()}),Jd=ot.extend({messages:_(Bd),modelPreferences:Ud.optional(),systemPrompt:u().optional(),includeContext:Q(["none","thisServer","allServers"]).optional(),temperature:w().optional(),maxTokens:w().int(),stopSequences:_(u()).optional(),metadata:B.optional(),tools:_(Su).optional(),toolChoice:Dd.optional()}),Xi=q.extend({method:y("sampling/createMessage"),params:Jd}),Ji=V.extend({model:u(),stopReason:L(Q(["endTurn","stopSequence","maxTokens"]).or(u())),role:ut,content:Fd}),Zi=V.extend({model:u(),stopReason:L(Q(["endTurn","stopSequence","maxTokens","toolUse"]).or(u())),role:ut,content:E([qt,_(qt)])}),qd=z({type:y("boolean"),title:u().optional(),description:u().optional(),default:O().optional()}),Vd=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()}),Wd=z({type:Q(["number","integer"]),title:u().optional(),description:u().optional(),minimum:w().optional(),maximum:w().optional(),default:w().optional()}),Kd=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),default:u().optional()}),Gd=z({type:y("string"),title:u().optional(),description:u().optional(),oneOf:_(z({const:u(),title:u()})),default:u().optional()}),Hd=z({type:y("string"),title:u().optional(),description:u().optional(),enum:_(u()),enumNames:_(u()).optional(),default:u().optional()}),Xd=E([Kd,Gd]),Yd=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()}),Qd=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()}),ef=E([Yd,Qd]),tf=E([Hd,Xd,ef]),rf=E([tf,qd,Vd,Wd]),of=ot.extend({mode:y("form").optional(),message:u(),requestedSchema:z({type:y("object"),properties:C(u(),rf),required:_(u()).optional()})}),nf=ot.extend({mode:y("url"),message:u(),elicitationId:u(),url:u().url()}),sf=E([of,nf]),es=q.extend({method:y("elicitation/create"),params:sf}),cf=ce.extend({elicitationId:u()}),af=ae.extend({method:y("notifications/elicitation/complete"),params:cf}),ts=V.extend({action:Q(["accept","decline","cancel"]),content:Io((e)=>e===null?void 0:e,C(u(),E([u(),w(),O(),_(u())])).optional())}),uf=z({type:y("ref/resource"),uri:u()});var lf=z({type:y("ref/prompt"),name:u()}),pf=re.extend({ref:E([lf,uf]),argument:z({name:u(),value:u()}),context:z({arguments:C(u(),u()).optional()}).optional()}),df=q.extend({method:y("completion/complete"),params:pf});var rs=V.extend({completion:F({values:_(u()).max(100),total:L(w().int()),hasMore:L(O())})}),ff=z({uri:u().startsWith("file://"),name:u().optional(),_meta:C(u(),j()).optional()}),mf=q.extend({method:y("roots/list"),params:re.optional()}),hf=V.extend({roots:_(ff)}),gf=ae.extend({method:y("notifications/roots/list_changed"),params:ce.optional()}),jg=E([So,rd,df,Ed,$d,vd,ld,pd,fd,hd,_d,Td,Cd,vo,Eo,Ao,ko]),Lg=E([wo,xo,yu,gf,_n]),Ug=E([dr,Ji,Zi,ts,hf,_o,To,mr]),Dg=E([So,Xi,es,mf,vo,Eo,Ao,ko]),Mg=E([wo,xo,jd,xd,Gi,En,Qi,_n,af]),Fg=E([dr,Wi,rs,Ki,Vi,Hi,zi,qi,Nt,Yi,_o,To,mr]);class k 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===I.UrlElicitationRequired&&r){let o=r;if(o.elicitations)return new Pu(o.elicitations,t)}return new k(e,t,r)}}class Pu extends k{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(I.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}function Ur(e){if(!e)return{};if(e instanceof Headers)return Object.fromEntries(e.entries());if(Array.isArray(e))return Object.fromEntries(e);return{...e}}function Po(e=fetch,t){if(!t)return e;return async(r,o)=>{let n={...t,...o,headers:o?.headers?{...Ur(t.headers),...Ur(o.headers)}:t.headers};return e(r,n)}}var _f=5,zf=[301,302,303,307,308];function xf(e,t){if(e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port)return!0;return e.hostname===t.hostname&&e.protocol==="http:"&&e.port===""&&t.protocol==="https:"&&t.port===""}function Zu(e,t){let r=zf.includes(e.status)?e.headers.get("location"):null;try{return r?new URL(r,t):void 0}catch{return}}function Ro(e,t,r,o,n=0){let i=Zu(o,t),s=o.status===307||o.status===308||(r?.method??"GET").toUpperCase()==="GET";if(!i||n===_f||!s)return;let c=new URL(t);if((i.username||i.password)&&(i.username!==c.username||i.password!==c.password)||!xf(c,i))return;return Promise.resolve(o.body?.cancel()).then(()=>e(i,{...r,redirect:"manual"})).then((l)=>Ro(e,i,r,l,n+1)??l)}var Ou=new WeakSet;function Fr(e){let t=(r,o)=>(e??fetch)(r,o);return Ou.add(t),t}function Et(e=fetch){if(Ou.has(e))return e;return(t,r)=>{if(r?.redirect==="error"||r?.redirect==="manual")return e(t,r);return Promise.resolve(e(t,{...r,redirect:"manual"})).then((o)=>Ro(e,t,r,o)??o)}}function Br(e,t){if(e.type==="opaqueredirect")return"Redirect not followed: this runtime does not expose the redirect target";let r=e.url||t,o=Zu(e,r);if(!o)return;if(o.username=o.password=o.search=o.hash="",o.protocol==="http:"&&new URL(r).protocol==="https:")return o.protocol="https:",`Redirect to plain http not followed; try ${o.href} instead`;return`Redirect to ${o.href} not followed`}var qo;qo=globalThis.crypto?.webcrypto??globalThis.crypto??import("crypto").then((e)=>e.webcrypto);async function yf(e){return(await qo).getRandomValues(new Uint8Array(e))}async function bf(e){let r=Math.pow(2,8)-Math.pow(2,8)%66,o="";while(o.length<e){let n=await yf(e-o.length);for(let i of n)if(i<r)o+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[i%66]}return o}async function vf(e){return await bf(e)}async function wf(e){let t=await(await qo).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Vo(e){if(!e)e=43;if(e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await vf(e),r=await wf(t);return{code_verifier:t,code_challenge:r}}var W=Ya().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:du.custom,message:"URL must be parseable",fatal:!0}),br}).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"}),Cu=F({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()}),Wo=F({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()}),$f=F({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()}),Iu=z({...$f.shape,...Wo.pick({code_challenge_methods_supported:!0}).shape}),Tu=z({access_token:u(),id_token:u().optional(),token_type:u(),expires_in:Jp().optional(),scope:u().optional(),refresh_token:u().optional(),issuer:u().optional().catch(void 0)}).strip(),Au=z({error:u(),error_description:u().optional(),error_uri:u().optional()}),Ru=W.optional().or(y("").transform(()=>{return})),Sf=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:Ru,scope:u().optional(),contacts:_(u()).optional(),tos_uri:Ru,policy_uri:u().optional(),jwks_uri:W.optional(),jwks:tu().optional(),software_id:u().optional(),software_version:u().optional(),software_statement:u().optional()}).strip(),kf=z({client_id:u(),client_secret:u().optional(),client_id_issued_at:w().optional(),client_secret_expires_at:w().optional(),issuer:u().optional().catch(void 0)}).strip(),Eu=Sf.merge(kf),Vg=z({error:u(),error_description:u().optional()}).strip(),Wg=z({token:u(),token_type_hint:u().optional()}).strip();function Nu(e){let t=typeof e==="string"?new URL(e):new URL(e.href);return t.hash="",t}function ju({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 Ht extends M{}Ht.errorCode="invalid_request";class je extends M{}je.errorCode="invalid_client";class Le extends M{}Le.errorCode="invalid_grant";class Ue extends M{}Ue.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 $e extends M{}$e.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 De extends M{}De.errorCode="invalid_client_metadata";class sr extends M{}sr.errorCode="insufficient_scope";class cr extends M{}cr.errorCode="invalid_target";var Lu={[Ht.errorCode]:Ht,[je.errorCode]:je,[Le.errorCode]:Le,[Ue.errorCode]:Ue,[Xt.errorCode]:Xt,[Yt.errorCode]:Yt,[Qt.errorCode]:Qt,[$e.errorCode]:$e,[er.errorCode]:er,[tr.errorCode]:tr,[rr.errorCode]:rr,[or.errorCode]:or,[nr.errorCode]:nr,[ir.errorCode]:ir,[De.errorCode]:De,[sr.errorCode]:sr,[cr.errorCode]:cr};class _e extends Error{constructor(e){super(e??"Unauthorized")}}function Pf(e){return["client_secret_basic","client_secret_post","none"].includes(e)}var Ko="code",Go="S256";function Zf(e,t){let r=e.client_secret!==void 0;if("token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Pf(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 Of(e,t,r,o){let{client_id:n,client_secret:i}=t;switch(e){case"client_secret_basic":Rf(n,i,r);return;case"client_secret_post":Cf(n,i,o);return;case"none":If(n,o);return;default:throw Error(`Unsupported client authentication method: ${e}`)}}function Rf(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 Cf(e,t,r){if(r.set("client_id",e),t)r.set("client_secret",t)}function If(e,t){t.set("client_id",e)}async function Du(e){let t=e instanceof Response?e.status:void 0,r=e instanceof Response?await e.text():e;try{let o=Au.parse(JSON.parse(r)),{error:n,error_description:i,error_uri:s}=o;return new(Lu[n]||$e)(i||"",s)}catch(o){let n=e instanceof Response?Br(e,e.url):void 0,i=`${t?`HTTP ${t}: `:""}${n??`Invalid OAuth error response: ${o}. Raw body: ${r}`}`;return new $e(i)}}function Tf(e,t){let[r,o]=[e,t];try{[r,o]=[new URL(e).href,new URL(t).href]}catch{}return r===o||r.endsWith("/")&&r.slice(0,-1)===o||o.endsWith("/")&&o.slice(0,-1)===r}function Yo(e,t){if(!e)return;if(typeof e.issuer!=="string")return e.issuer==null?e:{...e,issuer:void 0};return Tf(e.issuer,t)?e:void 0}var Af=Tu.omit({issuer:!0}),Ef=Eu.omit({issuer:!0});function Mu(e,t){return Error(`OAuth client information is bound to authorization server ${e.issuer} and is not presented to ${t}. Clear the stored client information, or correct \`expectedIssuer\`, if the authorization server has moved.`)}async function ct(e,t){try{return await Ho(e,t)}catch(r){if(r instanceof je||r instanceof Ue)return await e.invalidateCredentials?.("all"),await Ho(e,t);else if(r instanceof Le)return await e.invalidateCredentials?.("tokens"),await Ho(e,t);throw r}}async function Ho(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 Bu(a,{fetchFn:i}),!c)try{c=await Fu(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 K=await Ff(t,{resourceMetadataUrl:p,fetchFn:i});a=K.authorizationServerUrl,l=K.authorizationServerMetadata,c=K.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(a),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:l})}let f=String(a),h=await jf(t,e,c),m=h&&c&&!e.validateResourceURL?c.resource:h,g=o||c?.scopes_supported?.join(" ")||e.clientMetadata.scope,v=await Promise.resolve(e.clientInformation()),b=Yo(v,f),P=e.saveClientInformation!==void 0&&!!e.redirectUrl;if(v&&!b&&!P)throw Mu(v,f);let G=b?.issuer==null?b:void 0,ze=async()=>{try{if(G)await e.saveClientInformation?.({...G,issuer:f})}catch{}};if(!b){if(r!==void 0)throw Error("Existing OAuth client information is required when exchanging an authorization code");let K=l?.client_id_metadata_document_supported===!0,fe=e.clientMetadataUrl;if(fe&&!Nf(fe))throw new De(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${fe}`);if(K&&fe)b={client_id:fe,issuer:f},await e.saveClientInformation?.(b);else{if(!e.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");b={...await Wf(a,{metadata:l,clientMetadata:e.clientMetadata,scope:g,fetchFn:i}),issuer:f},await e.saveClientInformation(b)}}let Se=!e.redirectUrl;if(r!==void 0||Se){let K=await Vf(e,a,{metadata:l,resource:m,authorizationCode:r,fetchFn:i});return await ze(),await e.saveTokens({...K,issuer:f}),"AUTHORIZED"}let N=Yo(await e.tokens(),f);if(N?.refresh_token&&N.issuer==null)console.warn("[mcp-sdk] stored OAuth tokens have no 'issuer' property (saved by an earlier version, or by a provider that does not keep it) and are used as-is; make sure your OAuthClientProvider stores what saveTokens() and saveClientInformation() receive unchanged.");if(N?.refresh_token)try{let K=await qf(a,{metadata:l,clientInformation:b,refreshToken:N.refresh_token,resource:m,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await ze(),await e.saveTokens({...K,issuer:f}),"AUTHORIZED"}catch(K){if(!(K instanceof M)||K instanceof $e);else throw K}let Z=e.state?await e.state():void 0,{authorizationUrl:oe,codeVerifier:Me}=await Bf(a,{metadata:l,clientInformation:b,state:Z,redirectUrl:e.redirectUrl,scope:g,resource:m});return await e.saveCodeVerifier(Me),await e.redirectToAuthorization(oe),"REDIRECT"}function Nf(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function jf(e,t,r){let o=Nu(e);if(t.validateResourceURL)return await t.validateResourceURL(o,r?.resource);if(!r)return;if(!ju({requestedResource:o,configuredResource:r.resource}))throw Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}function hr(e){let t=e.headers.get("WWW-Authenticate");if(!t)return{};let[r,o]=t.split(" ");if(r.toLowerCase()!=="bearer"||!o)return{};let n=Xo(e,"resource_metadata")||void 0,i;if(n)try{i=new URL(n)}catch{}let s=Xo(e,"scope")||void 0,c=Xo(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:c}}function Xo(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 Fu(e,t,r=fetch){let o=await Df(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 Cu.parse(await o.json())}async function Qo(e,t,r=fetch){try{return await Et(r)(e,{headers:t})}catch(o){if(o instanceof TypeError)if(t)return Qo(e,void 0,r);else return;throw o}}function Lf(e,t="",r={}){if(t.endsWith("/"))t=t.slice(0,-1);return r.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function Uu(e,t,r=fetch){return await Qo(e,{"MCP-Protocol-Version":t},r)}function Uf(e,t){return!e||!e.ok&&e.status<500&&t!=="/"}async function Df(e,t,r,o){let n=new URL(e),i=o?.protocolVersion??Nr,s;if(o?.metadataUrl)s=new URL(o.metadataUrl);else{let a=Lf(t,n.pathname);s=new URL(a,o?.metadataServerUrl??n),s.search=n.search}let c=await Uu(s,i,r);if(!o?.metadataUrl&&Uf(c,n.pathname)){let a=new URL(`/.well-known/${t}`,n);c=await Uu(a,i,r)}return c}function Mf(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 Bu(e,{fetchFn:t=fetch,protocolVersion:r=Nr}={}){let o={"MCP-Protocol-Version":r,Accept:"application/json"},n=Mf(e);for(let{url:i,type:s}of n){let c=await Qo(i,o,t);if(!c)continue;if(!c.ok){if(await c.body?.cancel(),c.status<500)continue;throw Error(`HTTP ${c.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(s==="oauth")return Wo.parse(await c.json());else return Iu.parse(await c.json())}return}async function Ff(e,t){let r,o;try{if(r=await Fu(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 Bu(o,{fetchFn:t?.fetchFn});return{authorizationServerUrl:o,authorizationServerMetadata:n,resourceMetadata:r}}function Ju(e){return typeof e==="string"?e:e.href}async function Bf(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(Ko))throw Error(`Incompatible auth server: does not support response type ${Ko}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Go))throw Error(`Incompatible auth server: does not support code challenge method ${Go}`)}else c=new URL("/authorize",e);let a=await Vo(),{code_verifier:l,code_challenge:p}=a;if(c.searchParams.set("response_type",Ko),c.searchParams.set("client_id",r.client_id),c.searchParams.set("code_challenge",p),c.searchParams.set("code_challenge_method",Go),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",Ju(s));return{authorizationUrl:c,codeVerifier:l}}function Jf(e,t,r){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(r)})}async function qu(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",Ju(i));if(n)await n(a,r,c,t);else if(o){let p=t?.token_endpoint_auth_methods_supported??[],f=Zf(o,p);Of(f,o,a,r)}let l=await Et(s??fetch)(c,{method:"POST",headers:a,body:r});if(!l.ok)throw await Du(l);return Af.parse(await l.json())}async function qf(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 qu(e,{metadata:t,tokenRequestParams:c,clientInformation:r,addClientAuthentication:i,resource:n,fetchFn:s});return{refresh_token:o,...a}}async function Vf(e,t,{metadata:r,resource:o,authorizationCode:n,fetchFn:i}={}){let s=async()=>{let p=await e.clientInformation(),f=Yo(p,String(t));if(p&&!f)throw Mu(p,String(t));return f},c=await s(),a=e.clientMetadata.scope,l;if(e.prepareTokenRequest)l=await e.prepareTokenRequest(a);if(!l){if(!n)throw Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw Error("redirectUrl is required for authorization_code flow");let p=await e.codeVerifier();l=Jf(n,p,e.redirectUrl)}return c??(c=await s()),qu(t,{metadata:r,tokenRequestParams:l,clientInformation:c,addClientAuthentication:e.addClientAuthentication,resource:o,fetchFn:i})}async function Wf(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 Et(n??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...o!==void 0?{scope:o}:{}})});if(!s.ok)throw await Du(s);return Ef.parse(await s.json())}
|
|
59
|
-
export{ji,Nr,Ys,Vt,Xs,vn,Js,pr,I,Zs,Kt,dr,wo,Wi,ea,So,xo,mr,_n,vo,_o,Eo,Ao,To,ko,ta,Hi,zi,qi,Gi,Vi,Ki,Qi,Yi,Nt,En,ra,Xi,Ji,Zi,es,ts,rs,k,Ur,Po,Ro,Fr,Et,Br,_e,ct,hr};
|
package/chunk-8my52htr.js
DELETED
package/chunk-8vh98e46.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{H}from"./chunk-z3h9ydyr.js";import{E}from"./chunk-tbehe5ky.js";import{c}from"./chunk-sqbnt2t1.js";var d=c(E());var t=c(E());import{exec as w}from"child_process";import{promisify as P}from"util";var p=c(H()),f=(r,e,o)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let l=new Date;if(new Date(e.Expiration)<l)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let s=e.AccountId;if(!s&&o?.[r]?.aws_account_id)s=o[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...s&&{accountId:s}};return p.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n};var u=async(r,e,o)=>{let s=e[r];if(e[r]){let n=s.credential_process;if(n!==void 0){let l=P(t.externalDataInterceptor?.getTokenRecord?.().exec??w);try{let{stdout:i}=await l(n),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return f(r,a,e)}catch(i){throw new t.CredentialsProviderError(i.message,{logger:o})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:o})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:o})};var m=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let o=await d.parseKnownFiles(r);return u(d.getProfileName({profile:r.profile??e?.profile}),o,r.logger)};export{m as fromProcess};
|
package/chunk-92mpgche.js
DELETED
package/chunk-9vacevyf.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dr}from"./chunk-sqbnt2t1.js";var Qr={};Dr(Qr,{Activity:()=>Y,Children:()=>U,Component:()=>k,Fragment:()=>b,Profiler:()=>q,PureComponent:()=>G,StrictMode:()=>z,Suspense:()=>K,ViewTransition:()=>B,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Yr,__COMPILER_RUNTIME:()=>V,addTransitionType:()=>W,cache:()=>X,cacheSignal:()=>Q,cloneElement:()=>Z,createContext:()=>ni,createElement:()=>O,createRef:()=>J,forwardRef:()=>F,isValidElement:()=>ee,lazy:()=>te,memo:()=>re,startTransition:()=>ne,unstable_useCacheRefresh:()=>oe,use:()=>ue,useActionState:()=>se,useCallback:()=>ie,useContext:()=>oi,useDebugValue:()=>fe,useDeferredValue:()=>ce,useEffect:()=>ii,useEffectEvent:()=>pe,useId:()=>ae,useImperativeHandle:()=>le,useInsertionEffect:()=>ye,useLayoutEffect:()=>_e,useMemo:()=>Ee,useOptimistic:()=>ve,useReducer:()=>de,useRef:()=>si,useState:()=>Qn,useSyncExternalStore:()=>ai,useTransition:()=>ge,version:()=>ci},{Activity:(rt)=>Y=rt,Children:(rt)=>U=rt,Component:(rt)=>k=rt,Fragment:(rt)=>b=rt,Profiler:(rt)=>q=rt,PureComponent:(rt)=>G=rt,StrictMode:(rt)=>z=rt,Suspense:(rt)=>K=rt,ViewTransition:(rt)=>B=rt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(rt)=>Yr=rt,__COMPILER_RUNTIME:(rt)=>V=rt,addTransitionType:(rt)=>W=rt,cache:(rt)=>X=rt,cacheSignal:(rt)=>Q=rt,cloneElement:(rt)=>Z=rt,createContext:(rt)=>ni=rt,createElement:(rt)=>O=rt,createRef:(rt)=>J=rt,forwardRef:(rt)=>F=rt,isValidElement:(rt)=>ee=rt,lazy:(rt)=>te=rt,memo:(rt)=>re=rt,startTransition:(rt)=>ne=rt,unstable_useCacheRefresh:(rt)=>oe=rt,use:(rt)=>ue=rt,useActionState:(rt)=>se=rt,useCallback:(rt)=>ie=rt,useContext:(rt)=>oi=rt,useDebugValue:(rt)=>fe=rt,useDeferredValue:(rt)=>ce=rt,useEffect:(rt)=>ii=rt,useEffectEvent:(rt)=>pe=rt,useId:(rt)=>ae=rt,useImperativeHandle:(rt)=>le=rt,useInsertionEffect:(rt)=>ye=rt,useLayoutEffect:(rt)=>_e=rt,useMemo:(rt)=>Ee=rt,useOptimistic:(rt)=>ve=rt,useReducer:(rt)=>de=rt,useRef:(rt)=>si=rt,useState:(rt)=>Qn=rt,useSyncExternalStore:(rt)=>ai=rt,useTransition:(rt)=>ge=rt,version:(rt)=>ci=rt});var Yn={};Dr(Yn,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>li,browser:()=>Re,createPortal:()=>xe,flushSync:()=>jt,preconnect:()=>Se,prefetchDNS:()=>Oe,preinit:()=>Ce,preinitModule:()=>Ae,preload:()=>Pe,preloadModule:()=>he,requestFormReset:()=>Ne,unstable_batchedUpdates:()=>we,useFormState:()=>He,useFormStatus:()=>Ie,version:()=>Le},{});var T=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),be=Symbol.for("react.context"),qe=Symbol.for("react.forward_ref"),Ge=Symbol.for("react.suspense"),ze=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),Ke=Symbol.for("react.activity"),Be=Symbol.for("react.view_transition"),C=Symbol.iterator;function Ve(e){if(e===null||typeof e!=="object")return null;return e=C&&e[C]||e["@@iterator"],typeof e==="function"?e:null}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,I={};function y(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L(){}L.prototype=y.prototype;function m(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}var R=m.prototype=new L;R.constructor=m;H(R,y.prototype);R.isPureReactComponent=!0;var A=Array.isArray;function g(){}var s={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function x(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function We(e,t){return x(e.type,t,e.props)}function S(e){return typeof e==="object"&&e!==null&&e.$$typeof===T}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var P=/\/+/g;function d(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function Qe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(g,g):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var u=typeof e;if(u==="undefined"||u==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case T:case Me:i=!0;break;case N:return i=e._init,l(i(e._payload),t,r,n,o)}}if(i)return o=o(e),i=n===""?"."+d(e,0):n,A(o)?(r="",i!=null&&(r=i.replace(P,"$&/")+"/"),l(o,t,r,"",function(De){return De})):o!=null&&(S(o)&&(o=We(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+i)),t.push(o)),1;i=0;var p=n===""?".":n+":";if(A(e))for(var c=0;c<e.length;c++)n=e[c],u=p+d(n,c),i+=l(n,t,r,u,o);else if(c=Ve(e),typeof c==="function")for(e=c.call(e),c=0;!(n=e.next()).done;)n=n.value,u=p+d(n,c++),i+=l(n,t,r,u,o);else if(u==="object"){if(typeof e.then==="function")return l(Qe(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function E(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(u){return t.call(r,u,o++)}),n}function Ze(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n)},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var h=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)};function D(e){var t=s.T,r={};r.types=t!==null?t.types:null,s.T=r;try{var n=e(),o=s.S;o!==null&&o(r,n),typeof n==="object"&&n!==null&&typeof n.then==="function"&&n.then(g,h)}catch(u){h(u)}finally{t!==null&&r.types!==null&&(t.types=r.types),s.T=t}}function M(e){var t=s.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else D(M.bind(null,e))}var Je={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};var Y=Ke,U=Je,k=y,b=$e,q=Ue,G=m,z=Ye,K=Ge,B=Be,Yr=s,V={__proto__:null,c:function(e){return s.H.useMemoCache(e)}},W=M,X=function(e){return function(){return e.apply(null,arguments)}},Q=function(){return null},Z=function(e,t,r){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var n=H({},e.props),o=e.key;if(t!=null)for(u in t.key!==void 0&&(o=""+t.key),t)!j.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(n[u]=t[u]);var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){for(var i=Array(u),p=0;p<u;p++)i[p]=arguments[p+2];n.children=i}return x(e.type,o,n)},ni=function(e){return e={$$typeof:be,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ke,_context:e},e},O=function(e,t,r){var n,o={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)j.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)o[n]===void 0&&(o[n]=i[n]);return x(e,u,o)},J=function(){return{current:null}},F=function(e){return{$$typeof:qe,render:e}},ee=S,te=function(e){return{$$typeof:N,_payload:{_status:-1,_result:e},_init:Ze}},re=function(e,t){return{$$typeof:ze,type:e,compare:t===void 0?null:t}},ne=D,oe=function(){return s.H.useCacheRefresh()},ue=function(e){return s.H.use(e)},se=function(e,t,r){return s.H.useActionState(e,t,r)},ie=function(e,t){return s.H.useCallback(e,t)},oi=function(e){return s.H.useContext(e)},fe=function(){},ce=function(e,t){return s.H.useDeferredValue(e,t)},ii=function(e,t){return s.H.useEffect(e,t)},pe=function(e){return s.H.useEffectEvent(e)},ae=function(){return s.H.useId()},le=function(e,t,r){return s.H.useImperativeHandle(e,t,r)},ye=function(e,t){return s.H.useInsertionEffect(e,t)},_e=function(e,t){return s.H.useLayoutEffect(e,t)},Ee=function(e,t){return s.H.useMemo(e,t)},ve=function(e,t){return s.H.useOptimistic(e,t)},de=function(e,t,r){return s.H.useReducer(e,t,r)},si=function(e){return s.H.useRef(e)},Qn=function(e){return s.H.useState(e)},ai=function(e,t,r){return s.H.useSyncExternalStore(e,t,r)},ge=function(){return s.H.useTransition()},ci="19.3.1";function je(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(je)}catch(e){console.error(e)}}function me(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var f={d:{f:a,r:function(){throw Error(me(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},Fe=Symbol.for("react.portal"),et=Symbol.for("react.recoverable"),Te=Symbol.for("react.optimistic_key");function tt(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:n==null?null:n===Te?Te:""+n,children:e,containerInfo:t,implementation:r}}var _=Yr;function v(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var li=f,Re=function(e){return{$$typeof:et,_reason:e}},xe=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(me(299));return tt(e,t,null,r)},jt=function(e){var t=_.T,r=f.p;try{if(_.T=null,f.p=2,e)return e()}finally{_.T=t,f.p=r,f.d.f()}},Se=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,f.d.C(e,t))},Oe=function(e){typeof e==="string"&&f.d.D(e)},Ce=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin),o=typeof t.integrity==="string"?t.integrity:void 0,u=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;r==="style"?f.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:u}):r==="script"&&f.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:u,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},Ae=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var r=v(t.as,t.crossOrigin);f.d.M(e,{crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&f.d.M(e)},Pe=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin);f.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},he=function(e,t){if(typeof e==="string")if(t){var r=v(t.as,t.crossOrigin);f.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else f.d.m(e)},Ne=function(e){f.d.r(e)},we=function(e,t){return e(t)},He=function(e,t,r){return _.H.useFormState(e,t,r)},Ie=function(){return _.H.useHostTransitionStatus()},Le="19.3.1";je();
|
|
3
|
-
export{Qr,Yr,ni,O,oi,ii,si,Qn,ai,ci,li,jt,Yn};
|
package/chunk-9y44m27k.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{V}from"./chunk-2fmsw1c6.js";import{wn}from"./chunk-csed8fsv.js";import{Tt}from"./chunk-vr6eej6b.js";import{le}from"./chunk-zz9rj82y.js";import{Ae,xe,re,Te}from"./chunk-7mafj833.js";import{v}from"./chunk-fsekbhqb.js";import{J}from"./chunk-9nkb5q43.js";import{G,Xe,me,ue,oe,Y}from"./chunk-e67wqhzh.js";import{W}from"./chunk-ndt4jvh1.js";var C=9,j=4000,N=(t,e,n)=>{let r=new W,o=ue(e,t.compat?.supportsMidConvoSystemMessages);return(async()=>{let s=U(t);try{let l=n?.apiKey;if(!l)throw Error(`No API key for provider: ${t.provider}`);let f=D(),u=Te(o.messages,t,(d)=>f(d)),a=ee(t,o,u,n),i=await n?.onPayload?.(a,t);if(i!==void 0)a=i;let c=await K(t,a,l,n);if(r.push({type:"start",partial:s}),await ne(t,s,r,c,n?.onProviderStreamEvent),n?.signal?.aborted)throw Error("Request was aborted");if(s.stopReason==="pending")throw Error("Mistral stream ended without a finish reason");if(s.stopReason==="aborted"||s.stopReason==="error")throw Error(s.errorMessage||"An unknown error occurred");r.push({type:"done",reason:s.stopReason,message:s}),r.end()}catch(l){for(let f of s.content)delete f.partialArgs;s.stopReason=n?.signal?.aborted?"aborted":"error",s.errorMessage=B(l),r.push({type:"error",reason:s.stopReason,error:s}),r.end()}})(),r},Ie=(t,e,n)=>{let r=n?.apiKey;if(!r)throw Error(`No API key for provider: ${t.provider}`);let o={...re(t,e,n,r),toolChoice:n?.toolChoice},s=n?.reasoning?Y(t,n.reasoning):void 0,l=s==="off"?void 0:s,f=t.reasoning?t.thinkingLevelMap:void 0,u=f?l?f[l]??"high":f.off??void 0:void 0;return N(t,e,{...o,promptMode:t.reasoning&&!f&&l?"reasoning":void 0,reasoningEffort:u})};function U(t){return{role:"assistant",content:[],api:t.api,provider:t.provider,model:t.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()}}function D(){let t=new Map,e=new Map;return(n)=>{let r=t.get(n);if(r)return r;let o=0;while(!0){let s=E(n,o),l=e.get(s);if(!l||l===n)return t.set(n,s),e.set(s,n),s;o++}}}function E(t,e){let n=t.replace(/[^a-zA-Z0-9]/g,"");if(e===0&&n.length===C)return n;let r=n||t,o=e===0?r:`${r}:${e}`;return Tt(o).replace(/[^a-zA-Z0-9]/g,"").slice(0,C)}function B(t){if(t instanceof Error){let e=t,n=typeof e.statusCode==="number"?e.statusCode:void 0,r=typeof e.body==="string"?e.body.trim():void 0;if(n!==void 0&&r)return`Mistral API error (${n}): ${z(r,j)}`;if(n!==void 0)return`Mistral API error (${n}): ${t.message}`;return t.message}return H(t)}function z(t,e){if(t.length<=e)return t;return`${t.slice(0,e)}... [truncated ${t.length-e} chars]`}function H(t){try{let e=JSON.stringify(t);return e===void 0?String(t):e}catch{return String(t)}}async function K(t,e,n,r){let o=new URL(t.baseUrl);o.pathname=`${o.pathname.replace(/\/+$/u,"")}/`;let s=new URL("v1/chat/completions",o),l=q(t,n,r),f=r?.timeoutMs??60000,u=AbortSignal.timeout(f),a=wn([r?.signal,u]),i;try{i=await(r?.fetch??globalThis.fetch)(s,{method:"POST",headers:l,body:JSON.stringify(F(e)),signal:a.signal})}catch(c){if(u.aborted&&!r?.signal?.aborted)throw Error(`Mistral response headers timed out after ${f}ms`);throw c}finally{a.cleanup()}if(await r?.onResponse?.({status:i.status,headers:J(i.headers)},t),!i.ok){let c=await i.text();throw new P(i.status,c,i.statusText)}if(!i.body)throw Error("Mistral response has no body");return Q(i.body,r?.signal)}class P extends Error{statusCode;body;constructor(t,e,n){super(n||`Request failed with status ${t}`);this.name="MistralHttpError",this.statusCode=t,this.body=e}}function q(t,e,n){let r=new Headers({"User-Agent":le(),accept:"text/event-stream",authorization:`Bearer ${e}`,"content-type":"application/json"});R(r,t.headers),R(r,n?.headers);let o=S(t.headers,"x-affinity")||S(n?.headers,"x-affinity");if(O(n)&&!o)r.set("x-affinity",n.sessionId);return r}function R(t,e){if(!e)return;for(let[n,r]of Object.entries(e))if(r===null)t.delete(n);else t.set(n,r)}function S(t,e){return!!t&&Object.keys(t).some((n)=>n.toLowerCase()===e)}function F(t){let e={...t};for(let[r,o]of[["topP","top_p"],["maxTokens","max_tokens"],["randomSeed","random_seed"],["responseFormat","response_format"],["toolChoice","tool_choice"],["presencePenalty","presence_penalty"],["frequencyPenalty","frequency_penalty"],["parallelToolCalls","parallel_tool_calls"],["reasoningEffort","reasoning_effort"],["promptMode","prompt_mode"],["promptCacheKey","prompt_cache_key"],["safePrompt","safe_prompt"]])_(e,r,o);e.messages=t.messages.map((r)=>Z(r));let n=e.response_format;if(M(n)){let r={...n};_(r,"jsonSchema","json_schema");let o=r.json_schema;if(M(o)){let s={...o};_(s,"schemaDefinition","schema"),r.json_schema=s}e.response_format=r}return e}function Z(t){let e={...t};if(_(e,"toolCalls","tool_calls"),_(e,"toolCallId","tool_call_id"),Array.isArray(t.content))e.content=t.content.map((n)=>X(n));return e}function X(t){let e={...t};for(let[n,r]of[["imageUrl","image_url"],["documentUrl","document_url"],["documentName","document_name"],["fileId","file_id"],["referenceIds","reference_ids"],["inputAudio","input_audio"]])_(e,n,r);return e}function _(t,e,n){if(!(e in t))return;t[n]=t[e],delete t[e]}function M(t){return typeof t==="object"&&t!==null&&!Array.isArray(t)}var k=Symbol("mistral-stream-done");async function*Q(t,e){let n=t.getReader(),r=new TextDecoder,o="",s=()=>{n.cancel().catch(()=>{})};e?.addEventListener("abort",s,{once:!0});try{while(!0){if(e?.aborted)throw e.reason;let{done:l,value:f}=await n.read();if(e?.aborted)throw e.reason;o+=l?r.decode():r.decode(f,{stream:!0});let u=A(o);while(u){let a=I(o.slice(0,u.index));if(o=o.slice(u.index+u.length),a===k)return;if(a)yield a;u=A(o)}if(l)break}if(o.trim()){let l=I(o);if(l!==k&&l)yield l}}finally{e?.removeEventListener("abort",s);try{await n.cancel()}catch{}try{n.releaseLock()}catch{}}}function A(t){let e=/\r\n\r\n|\r\n\r|\r\n\n|\r\r\n|\n\r\n|\r\r|\n\r|\n\n/u.exec(t);return e?.index===void 0?void 0:{index:e.index,length:e[0].length}}function I(t){let e=t.split(/\r\n|\r|\n/u).filter((r)=>r.startsWith("data:")).map((r)=>r.slice(5).trimStart()).join(`
|
|
3
|
-
`).trim();if(!e)return;if(e==="[DONE]")return k;let n=JSON.parse(e);if(!M(n)||!Array.isArray(n.choices))throw Error("Invalid Mistral streaming event");return{data:n}}function ee(t,e,n,r){let o={model:t.id,stream:!0,messages:ae(n,t.input.includes("image"))},s=me(e.messages);if(s.length>0)o.tools=se(s);if(r?.temperature!==void 0)o.temperature=r.temperature;if(r?.maxTokens!==void 0)o.maxTokens=r.maxTokens;if(r?.toolChoice)o.toolChoice=ce(r.toolChoice);if(r?.promptMode)o.promptMode=r.promptMode;if(r?.reasoningEffort)o.reasoningEffort=r.reasoningEffort;if(O(r))o.promptCacheKey=r.sessionId;return o}function O(t){return t?.cacheRetention!=="none"&&!!t?.sessionId}function te(t,e){let n=t,r=n.promptTokensDetails?.cachedTokens??n.prompt_tokens_details?.cached_tokens??n.promptTokenDetails?.cachedTokens??n.prompt_token_details?.cached_tokens??n.numCachedTokens??n.num_cached_tokens??0,o=typeof r==="number"&&Number.isFinite(r)?r:0;return Math.min(e,Math.max(0,o))}async function ne(t,e,n,r,o){let s=null,l=e.content,f=()=>l.length-1,u=new Map,a=(i)=>{if(!i)return;if(i.type==="text"){n.push({type:"text_end",contentIndex:f(),content:i.text,partial:e});return}if(i.type==="thinking")n.push({type:"thinking_end",contentIndex:f(),content:i.thinking,partial:e})};for await(let i of r){let c=i.data;if(await o?.(c,t),e.responseId||=c.id,c.usage){let p=c.usage.prompt_tokens||0,h=te(c.usage,p);e.usage.input=Math.max(0,p-h),e.usage.output=c.usage.completion_tokens||0,e.usage.cacheRead=h,e.usage.cacheWrite=0,e.usage.totalTokens=c.usage.total_tokens||e.usage.input+e.usage.output+e.usage.cacheRead+e.usage.cacheWrite,oe(t,e.usage)}let d=c.choices[0];if(!d)continue;if(d.finish_reason){e.rawStopReason=d.finish_reason;let p=fe(d.finish_reason);if(e.stopReason=p.stopReason,p.errorMessage)e.errorMessage=p.errorMessage}let y=d.delta;if(y.content!==null&&y.content!==void 0){let p=typeof y.content==="string"?[y.content]:y.content;for(let h of p){if(typeof h==="string"){let m=v(h);if(!m)continue;if(!s||s.type!=="text")a(s),s={type:"text",text:""},e.content.push(s),n.push({type:"text_start",contentIndex:f(),partial:e});s.text+=m,n.push({type:"text_delta",contentIndex:f(),delta:m,partial:e});continue}if(h.type==="thinking"){let m=(h.thinking??[]).map((g)=>g.text??"").filter((g)=>g.length>0).join(""),x=v(m);if(!x)continue;if(!s||s.type!=="thinking")a(s),s={type:"thinking",thinking:""},e.content.push(s),n.push({type:"thinking_start",contentIndex:f(),partial:e});s.thinking+=x,n.push({type:"thinking_delta",contentIndex:f(),delta:x,partial:e});continue}if(h.type==="text"){let m=v(h.text??"");if(!m)continue;if(!s||s.type!=="text")a(s),s={type:"text",text:""},e.content.push(s),n.push({type:"text_start",contentIndex:f(),partial:e});s.text+=m,n.push({type:"text_delta",contentIndex:f(),delta:m,partial:e})}}}let L=y.tool_calls||[];for(let p of L){if(s)a(s),s=null;let h=p.id&&p.id!=="null"?p.id:E(`toolcall:${p.index??0}`,0),m=p.index??h,x=u.get(m),g;if(x!==void 0){let T=e.content[x];if(T?.type==="toolCall")g=T}if(!g)g={type:"toolCall",id:h,name:p.function.name,arguments:{},partialArgs:""},e.content.push(g),u.set(m,e.content.length-1),n.push({type:"toolcall_start",contentIndex:e.content.length-1,partial:e});let b=typeof p.function.arguments==="string"?p.function.arguments:JSON.stringify(p.function.arguments||{});g.partialArgs=(g.partialArgs||"")+b,g.arguments=V(g.partialArgs),n.push({type:"toolcall_delta",contentIndex:u.get(m),delta:b,partial:e})}}a(s);for(let i of u.values()){let c=e.content[i];if(c.type!=="toolCall")continue;let d=c;d.arguments=V(d.partialArgs),delete d.partialArgs,n.push({type:"toolcall_end",contentIndex:i,toolCall:d,partial:e})}}function se(t){return t.map((e)=>{let n=xe(e,!0);return{type:"function",function:{name:e.name,description:e.description,parameters:w(Ae(e,n)),strict:n??!1}}})}function w(t){if(Array.isArray(t))return t.map((e)=>w(e));if(t&&typeof t==="object"){let e={};for(let[n,r]of Object.entries(t))e[n]=w(r);return e}return t}function ae(t,e){let n=[];for(let[r,o]of t.entries()){if(o.role==="system"){let a=r===0?G(o):Xe(o);if(a.length>0)n.push({role:"system",content:v(a)});continue}if(o.role==="user"){if(typeof o.content==="string"){n.push({role:"user",content:v(o.content)});continue}let a=o.content.some((c)=>c.type==="image"),i=o.content.filter((c)=>c.type==="text"||e).map((c)=>{if(c.type==="text")return{type:"text",text:v(c.text)};return{type:"image_url",imageUrl:`data:${c.mimeType};base64,${c.data}`}});if(i.length>0){n.push({role:"user",content:i});continue}if(a&&!e)n.push({role:"user",content:"(image omitted: model does not support images)"});continue}if(o.role==="assistant"){let a=[],i=[];for(let d of o.content){if(d.type==="text"){if(d.text.trim().length>0)a.push({type:"text",text:v(d.text)});continue}if(d.type==="thinking"){if(d.thinking.trim().length>0)a.push({type:"thinking",thinking:[{type:"text",text:v(d.thinking)}]});continue}i.push({id:d.id,type:"function",function:{name:d.name,arguments:JSON.stringify(d.arguments||{})},index:0})}let c={role:"assistant",prefix:!1};if(a.length>0)c.content=a;if(i.length>0)c.toolCalls=i;if(a.length>0||i.length>0)n.push(c);continue}let s=[],l=o.content.filter((a)=>a.type==="text").map((a)=>a.type==="text"?v(a.text):"").join(`
|
|
4
|
-
`),f=o.content.some((a)=>a.type==="image"),u=ie(l,f,e,o.isError);s.push({type:"text",text:u});for(let a of o.content){if(!e)continue;if(a.type!=="image")continue;s.push({type:"image_url",imageUrl:`data:${a.mimeType};base64,${a.data}`})}n.push({role:"tool",toolCallId:o.toolCallId,name:o.toolName,content:s})}return n}function ie(t,e,n,r){let o=t.trim(),s=r?"[tool error] ":"";if(o.length>0)return`${s}${o}${e&&!n?`
|
|
5
|
-
[tool image omitted: model does not support images]`:""}`;if(e){if(n)return r?"[tool error] (see attached image)":"(see attached image)";return r?"[tool error] (image omitted: model does not support images)":"(image omitted: model does not support images)"}return r?"[tool error] (no tool output)":"(no tool output)"}function ce(t){if(!t)return;if(t==="auto"||t==="none"||t==="any"||t==="required")return t;return{type:"function",function:{name:t.function.name}}}function fe(t){if(t===null)return{stopReason:"stop"};switch(t){case"stop":return{stopReason:"stop"};case"length":case"model_length":return{stopReason:"length"};case"tool_calls":return{stopReason:"toolUse"};case"error":return{stopReason:"error",errorMessage:"Provider stopped with: error (server error)"};default:return{stopReason:"error",errorMessage:`Provider stopped with: ${t}`}}}export{N as stream,Ie as streamSimple};
|
package/chunk-a5wv2shs.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{u}from"./chunk-sqbnt2t1.js";var n=null;function c(e){if(typeof process>"u"||!process.versions?.bun||Object.keys(process.env).length>0)return;if(n===null){n=new Map;try{let{readFileSync:t}=u("fs"),s=t("/proc/self/environ","utf-8");for(let r of s.split("\x00")){let o=r.indexOf("=");if(o>0)n.set(r.slice(0,o),r.slice(o+1))}}catch{}}return n.get(e)}function A(e,t){return t?.[e]||(typeof process<"u"?process.env[e]:void 0)||c(e)||void 0}
|
|
3
|
-
export{A};
|
package/chunk-a78qhb4t.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{be,rt,Nn,Un}from"./chunk-ezq0fnz6.js";import{Q,te}from"./chunk-tnay319j.js";var o="OpenAI Decisions",a=128;function f(r){let t=[r.criteria.true?`True means: ${r.criteria.true}`:"",r.criteria.false?`False means: ${r.criteria.false}`:""].filter(Boolean);return t.length>0?`${r.instructions}
|
|
3
|
-
|
|
4
|
-
${t.join(`
|
|
5
|
-
`)}`:r.instructions}function u(r,t){if(t.type==="choice")return{type:"choice",name:r,instructions:t.instructions,choices:Object.entries(t.criteria).map(([e,i])=>i?{value:e,description:i}:{value:e})};if(t.type==="score")return{type:"score",name:r,instructions:t.instructions,levels:t.criteria.map((e)=>({label:e}))};return{type:"predicate",name:r,instructions:f(t)}}function y(r){let t=JSON.stringify(r.state),e=r.images??[];if(e.length===0)return t;if(e.length>a)throw Error(`${o} accepts at most ${a} images, got ${e.length}`);return[{role:"user",content:[{type:"input_text",text:t},...e.map((i)=>({type:"input_image",image_url:`data:${i.mimeType};base64,${i.data}`}))]}]}function b(r,t){if(!Array.isArray(r))throw Error(`${o} returned invalid probabilities for ${t}`);return Object.fromEntries(r.map((e)=>{if(!be(e)||typeof e.value!=="string")throw Error(`${o} returned invalid probabilities for ${t}`);return[e.value,rt(o,e.probability,`probability for ${t}.${e.value}`)]}))}function l(r,t,e){if(e.type==="refusal")throw Error(`${o} refused to answer ${r}`);if(t.type==="choice"){if(e.type!=="choice"||typeof e.choice!=="string")throw Error(`${o} did not return a choice answer for ${r}`);return{type:"choice",choice:e.choice,probabilities:b(e.probabilities,r),confidence:rt(o,e.confidence,`confidence for ${r}`)}}if(t.type==="score"){if(e.type!=="score")throw Error(`${o} did not return a score answer for ${r}`);return{type:"score",score:rt(o,e.score,`score for ${r}`),confidence:rt(o,e.confidence,`confidence for ${r}`)}}if(e.type!=="predicate")throw Error(`${o} did not return a predicate answer for ${r}`);return{type:"bool",probability:rt(o,e.probability,`probability for ${r}`)}}function w(r,t){if(!Array.isArray(r))throw Error(`${o} returned an unexpected response`);let e=new Map;for(let i of r)if(be(i)&&typeof i.name==="string")e.set(i.name,i);return Object.fromEntries(Object.entries(t.questions).map(([i,n])=>{let s=e.get(i);if(!s)throw Error(`${o} did not return an answer for ${i}`);return[i,l(i,n,s)]}))}var h=[504];function d(r){if(r.status===504)return`${o} error (504): the request timed out at the gateway. Very large inputs (above roughly 600K tokens) currently exceed its time limit.`;return te(Q(r),`${o} error`)}var E=async(r,t,e)=>{let i={api:r.api,provider:r.provider,model:r.id,answers:{},stopReason:"stop",timestamp:Date.now()};try{if(r.api!=="openai-decisions")throw Error(`Unsupported classifier API: ${r.api}`);let n=await Nn(o,new URL("decisions",`${r.baseUrl.replace(/\/+$/u,"")}/`),r,{model:r.id,input:y(t),questions:Object.entries(t.questions).map(([c,p])=>u(c,p))},e,h);if(!be(n))throw Error(`${o} returned an unexpected response`);let s=Un(n.usage,r);if(s)i.usage=s;return i.answers=w(n.answers,t),i}catch(n){return i.answers={},i.stopReason=e?.signal?.aborted?"aborted":"error",i.errorMessage=d(n),i}};export{E as classify};
|
package/chunk-axsxx67j.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var A=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],I=["content-type","cache-control","allow"];function p(e){let r=e.path;if(!r?.startsWith("/api/")||/[\\\r\n#]/.test(r))throw Error("request path must start with /api/");let n=new URL(r,"http://basalt.internal");if(n.origin!=="http://basalt.internal"||!n.pathname.startsWith("/api/"))throw Error("request path must stay within /api/");let o=e.method??"GET";if(!A.includes(o))throw Error("Unsupported request method");if(e.body!==void 0&&(!e.body||typeof e.body!=="object"||Array.isArray(e.body)))throw Error("request body must be a JSON object");if(e.body!==void 0&&(o==="GET"||o==="HEAD"))throw Error("GET and HEAD requests cannot have a body");let s=e.timeoutMs??1e4;if(!Number.isSafeInteger(s)||s<1||s>60000)throw Error("timeoutMs must be an integer between 1 and 60000");return{url:n,method:o,timeoutMs:s}}function g(e){let r={};for(let n of I){let o=e.headers.get(n);if(o)r[n]=o.slice(0,500)}return r}async function M(e,r){let n=e.getReader();r(()=>n.cancel());let o=[],s=0,i=!1;while(!0){let t=await n.read();if(t.done)break;let d=20480-s;if(o.push(t.value.subarray(0,d)),s+=Math.min(t.value.length,d),t.value.length>d){i=!0,await n.cancel();break}}let u=new Uint8Array(s),c=0;for(let t of o)u.set(t,c),c+=t.length;return{text:new TextDecoder().decode(u,{stream:i}),truncated:i}}async function qr(e,r,n){let{url:o,method:s,timeoutMs:i}=p(r),u=e.http;if(!u)throw Error("HTTP API is not attached; start the Basalt server first");let c=new AbortController,t=n?AbortSignal.any([n,c.signal]):c.signal;t.throwIfAborted();let d,b=()=>{d?.().catch(()=>{})},E=async()=>{let h=r.body!==void 0,a=await u.request(new Request(o.toString(),{method:s,headers:h?{"content-type":"application/json"}:void 0,body:h?JSON.stringify(r.body):void 0,signal:t}));if(t.aborted)throw await a.body?.cancel(),Error("API request cancelled");let m=a.body?await M(a.body,(T)=>{d=T}):{text:"",truncated:!1};return{status:a.status,headers:g(a),body:m.text,truncated:m.truncated}},f,l,y=new Promise((h,a)=>{if(l=()=>{a(Error("API request cancelled")),b()},t.addEventListener("abort",l,{once:!0}),t.aborted)l()}),w=new Promise((h,a)=>{f=setTimeout(()=>{a(Error(`API request timed out after ${i}ms`)),c.abort(),b()},i)});try{return await Promise.race([E(),y,w])}finally{if(clearTimeout(f),l)t.removeEventListener("abort",l)}}
|
|
3
|
-
export{qr};
|
package/chunk-b49fzzzn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fr,$r,jr,Wr,Hr,Pn,Rn,gr,Cn,In,Mn,On,Ln,Dn}from"./chunk-519eek65.js";import{le}from"./chunk-zz9rj82y.js";import{Q,te}from"./chunk-tnay319j.js";import{re}from"./chunk-7mafj833.js";import{v}from"./chunk-fsekbhqb.js";import{ke}from"./chunk-9nkb5q43.js";import{G,ve,me,Je,oe,Y}from"./chunk-e67wqhzh.js";import{W}from"./chunk-ndt4jvh1.js";var b=0,y=(n,a,t)=>{let o=new W,g=Je(a);return(async()=>{let e={role:"assistant",content:[],api:"google-generative-ai",provider:n.provider,model:n.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{if(t?.fetch&&t.fetch!==globalThis.fetch)throw Error("Custom fetch is not supported by the Google Generative AI adapter");let l=t?.apiKey;if(!l)throw Error(`No API key for provider: ${n.provider}`);let c=w(n,l,t?.headers),h=T(n,g,t),k=await t?.onPayload?.(h,n);if(k!==void 0)h=k;let p=await Dn(()=>c.models.generateContentStream(h),t);o.push({type:"start",partial:e});let i=null,f=e.content,u=()=>f.length-1;for await(let s of p){await t?.onProviderStreamEvent?.(s,n),e.responseId||=s.responseId;let m=s.candidates?.[0];if(m?.content?.parts)for(let r of m.content.parts){if(r.text!==void 0){let d=Rn(r);if(!i||d&&i.type!=="thinking"||!d&&i.type!=="text"){if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:f.length-1,content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(d)i={type:"thinking",thinking:"",thinkingSignature:void 0},e.content.push(i),o.push({type:"thinking_start",contentIndex:u(),partial:e});else i={type:"text",text:""},e.content.push(i),o.push({type:"text_start",contentIndex:u(),partial:e})}if(i.type==="thinking")i.thinking+=r.text,i.thinkingSignature=gr(i.thinkingSignature,r.thoughtSignature),o.push({type:"thinking_delta",contentIndex:u(),delta:r.text,partial:e});else i.text+=r.text,i.textSignature=gr(i.textSignature,r.thoughtSignature),o.push({type:"text_delta",contentIndex:u(),delta:r.text,partial:e})}if(r.functionCall){if(i){if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});i=null}let d=r.functionCall.id,C={type:"toolCall",id:!d||e.content.some((x)=>x.type==="toolCall"&&x.id===d)?`${r.functionCall.name}_${Date.now()}_${++b}`:d,name:r.functionCall.name||"",arguments:r.functionCall.args??{},...r.thoughtSignature&&{thoughtSignature:r.thoughtSignature}};e.content.push(C),o.push({type:"toolcall_start",contentIndex:u(),partial:e}),o.push({type:"toolcall_delta",contentIndex:u(),delta:JSON.stringify(C.arguments),partial:e}),o.push({type:"toolcall_end",contentIndex:u(),toolCall:C,partial:e})}}if(m?.finishReason){if(e.rawStopReason=m.finishReason,e.stopReason=Ln(m.finishReason),e.content.some((r)=>r.type==="toolCall")&&e.stopReason==="stop")e.stopReason="toolUse"}if(s.usageMetadata)e.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},oe(n,e.usage)}if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(t?.signal?.aborted)throw Error("Request was aborted");if(e.stopReason==="pending")throw Error("Google stream ended without a finish reason");if(e.stopReason==="aborted"||e.stopReason==="error"){let s=e.rawStopReason?`Provider stopped with: ${e.rawStopReason}`:"An unknown error occurred";throw Error(s)}o.push({type:"done",reason:e.stopReason,message:e}),o.end()}catch(l){for(let c of e.content)if("index"in c)delete c.index;e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=te(Q(l)),o.push({type:"error",reason:e.stopReason,error:e}),o.end()}})(),o},q=(n,a,t)=>{let o=t?.apiKey;if(!o)throw Error(`No API key for provider: ${n.provider}`);let g={...re(n,a,t,o),toolChoice:t?.toolChoice};if(!t?.reasoning)return y(n,a,{...g,thinking:{enabled:!1}});let e=Y(n,t.reasoning);if(e==="off")return y(n,a,{...g,thinking:{enabled:!1}});let l=$r(n,e);if(jr(n))return y(n,a,{...g,thinking:{enabled:!0,level:Wr(l)}});return y(n,a,{...g,thinking:{enabled:!0,budgetTokens:S(n,l,t.thinkingBudgets)}})};function w(n,a,t){let o={};if(n.baseUrl)o.baseUrl=n.baseUrl,o.apiVersion="";let g=ke({"User-Agent":le(),...n.headers,...t});if(g)o.headers=g;return new fr({apiKey:a,httpOptions:Object.keys(o).length>0?o:void 0})}function T(n,a,t={}){let o=Cn(n,a),g=ve(a.messages),e=me(a.messages),l={};if(t.temperature!==void 0)l.temperature=t.temperature;if(t.maxTokens!==void 0)l.maxOutputTokens=t.maxTokens;let c=Mn(n.id),h=e.length>0?On(e,t.toolChoice,c):void 0,k=g?G(g):"",p={...Object.keys(l).length>0&&l,...k&&{systemInstruction:v(k)},...e.length>0&&{tools:In(e,!1,c)},...h!==void 0&&{toolConfig:{functionCallingConfig:{mode:h}}}};if(t.thinking?.enabled&&n.reasoning){let f={includeThoughts:!0};if(t.thinking.level!==void 0)f.thinkingLevel=Hr(t.thinking.level);else if(t.thinking.budgetTokens!==void 0)f.thinkingBudget=t.thinking.budgetTokens;p.thinkingConfig=f}else if(n.reasoning&&t.thinking&&!t.thinking.enabled)p.thinkingConfig=Pn(n);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:n.id,contents:o,config:p}}function S(n,a,t){if(t?.[a]!==void 0)return t[a];if(n.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[a];if(n.id.includes("2.5-flash-lite"))return{minimal:512,low:2048,medium:8192,high:24576}[a];if(n.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[a];return-1}export{y as stream,q as streamSimple};
|
package/chunk-bc8awbnt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{x}from"./chunk-ers9s2c4.js";import{ge}from"./chunk-2h2mvrw2.js";import{Q,te}from"./chunk-tnay319j.js";import{v}from"./chunk-fsekbhqb.js";import{J,ke}from"./chunk-9nkb5q43.js";var P=async(e,s,t)=>{let a={api:e.api,provider:e.provider,model:e.id,output:[],stopReason:"stop",timestamp:Date.now()};try{let r=t?.apiKey;if(!r)throw Error(`No API key for provider: ${e.provider}`);let c=y(e,r,t?.headers,t?.fetch),n=R(e,s),i=await t?.onPayload?.(n,e);if(i!==void 0)n=i;let o={...t?.signal?{signal:t.signal}:{},...t?.timeoutMs!==void 0?{timeout:t.timeoutMs}:{},maxRetries:0},{data:f,response:g}=await ge(()=>c.chat.completions.create(n,o).withResponse(),{maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,signal:t?.signal});await t?.onResponse?.({status:g.status,headers:J(g.headers)},e);let u=f;if(a.responseId=u.id,u.usage)a.usage=_(u.usage,e);let p=u.choices[0];if(p){let m=p.message.content;if(typeof m==="string"&&m.length>0)a.output.push({type:"text",text:m});for(let d of p.message.images??[]){let l=typeof d.image_url==="string"?d.image_url:d.image_url?.url;if(!l?.startsWith("data:"))continue;let h=l.match(/^data:([^;]+);base64,(.+)$/);if(!h)continue;a.output.push({type:"image",mimeType:h[1],data:h[2]})}}return a}catch(r){return a.stopReason=t?.signal?.aborted?"aborted":"error",a.errorMessage=te(Q(r)),a}};function y(e,s,t,a){return new x({apiKey:s,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:a,defaultHeaders:ke({...e.headers,...t})})}function R(e,s){let t=s.input.map((a)=>{if(a.type==="text")return{type:"text",text:v(a.text)};return{type:"image_url",image_url:{url:`data:${a.mimeType};base64,${a.data}`}}});return{model:e.id,messages:[{role:"user",content:t}],stream:!1,modalities:e.output.includes("text")?["image","text"]:["image"]}}function _(e,s){let t=e.prompt_tokens||0,a=e.prompt_tokens_details?.cached_tokens||0,r=e.prompt_tokens_details?.cache_write_tokens||0,c=r>0?Math.max(0,a-r):a,n=Math.max(0,t-c-r),i=e.completion_tokens||0,o={input:n,output:i,cacheRead:c,cacheWrite:r,totalTokens:n+i+c+r,cost:{input:s.cost.input/1e6*n,output:s.cost.output/1e6*i,cacheRead:s.cost.cacheRead/1e6*c,cacheWrite:s.cost.cacheWrite/1e6*r,total:0}};return o.cost.total=o.cost.input+o.cost.output+o.cost.cacheRead+o.cost.cacheWrite,o}export{P as generateImages};
|
package/chunk-crxs0n0r.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{qr}from"./chunk-axsxx67j.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 ti(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 qr(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 rc(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 ti(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{ti,rc};
|
package/chunk-csed8fsv.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function wn(i){let e=i.filter((n)=>n!==void 0);if(e.length===0)return{cleanup:()=>{}};if(e.length===1)return{signal:e[0],cleanup:()=>{}};let r=new AbortController,o=[],s=(n)=>{if(!r.signal.aborted)r.abort(n.reason)};for(let n of e){if(n.aborted){s(n);break}let t=()=>s(n);n.addEventListener("abort",t,{once:!0}),o.push({signal:n,listener:t})}return{signal:r.signal,cleanup:()=>{for(let{signal:n,listener:t}of o)n.removeEventListener("abort",t)}}}
|
|
3
|
-
export{wn};
|
package/chunk-cspx3bz9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tn}from"./chunk-rbq2gsar.js";import{be}from"./chunk-ezq0fnz6.js";var s="Cloudflare Workers AI";function n(r){if(Array.isArray(r)){let e=r.map((t)=>be(t)&&typeof t.message==="string"?t.message:void 0).filter((t)=>t!==void 0);if(e.length>0)return`${s} error: ${e.join("; ")}`}return`${s} request failed`}var o={api:"cloudflare-workers-ai-system-one",label:s,url:(r)=>new URL("run",`${r.baseUrl.replace(/\/+$/u,"")}/`),payload:(r,e)=>({model:r.id,input:e}),output:(r)=>{if(!be(r))throw Error(`${s} returned an unexpected response`);if(r.success===!1)throw Error(n(r.errors));let e=r.result;if(!be(e))throw Error(`${s} returned an unexpected response`);if("answers"in e)return e;if(e.state!=="Completed")throw Error(`${s} run did not complete (state: ${String(e.state)})`);if(!be(e.result))throw Error(`${s} returned an unexpected response`);return e.result}},i=(r,e,t)=>Tn(o,r,e,t);export{i as classify};
|