@bkm016/basalt 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunk-02kyx0dt.js +3 -0
- package/chunk-19nje7ny.js +5 -0
- package/chunk-1jtnjzrz.js +3 -0
- package/chunk-1rt7fvft.js +51 -0
- package/chunk-23qfxx3v.js +3 -0
- package/chunk-28dpfw91.js +20 -0
- package/chunk-2bz3h7k7.js +18 -0
- package/chunk-2etdp9zt.js +3 -0
- package/chunk-3bc88p88.js +2 -0
- package/chunk-3bqs901a.js +3 -0
- package/chunk-412mm63g.js +3 -0
- package/chunk-4kg028qe.js +3 -0
- package/chunk-4ry04733.js +2 -0
- package/chunk-4zvzk6m5.js +25 -0
- package/chunk-5ngmwd2s.js +3 -0
- package/chunk-5yzts6r0.js +3 -0
- package/chunk-6bvjnr88.js +3 -0
- package/chunk-76jjaj1p.js +7 -0
- package/chunk-792xwgne.js +2 -0
- package/chunk-7ph88zkj.js +3 -0
- package/chunk-7t89zqqx.js +8 -0
- package/chunk-80vdhw6b.js +2 -0
- package/chunk-89aqq5v0.js +59 -0
- package/chunk-8bcc3rqc.js +2 -0
- package/chunk-8bvjjs3r.js +3 -0
- package/chunk-97531m3c.js +2 -0
- package/chunk-9b4ssdy4.js +3 -0
- package/chunk-9map5c1b.js +12 -0
- package/chunk-a0ycrvgz.js +2 -0
- package/chunk-ah2ttnaa.js +2 -0
- package/chunk-awe58cxg.js +3175 -0
- package/chunk-b3ss17r8.js +547 -0
- package/chunk-b5ph3ffy.js +39 -0
- package/chunk-bkabw9yr.js +3 -0
- package/chunk-cz9r99b6.js +2 -0
- package/chunk-d57kcznk.js +16 -0
- package/chunk-ebmmdfq3.js +2 -0
- package/chunk-etf8mj2z.js +2 -0
- package/chunk-fkgx9eab.js +2 -0
- package/chunk-fmvs5wd0.js +11 -0
- package/chunk-fpksd95h.js +3 -0
- package/chunk-hj1zcq3p.js +13 -0
- package/chunk-hnqtkgcq.js +3 -0
- package/chunk-hrxkr8a8.js +3 -0
- package/chunk-jaat2z8t.js +117 -0
- package/chunk-jkc887x8.js +2 -0
- package/chunk-jnas3anm.js +3 -0
- package/chunk-k3p05x7q.js +2 -0
- package/chunk-k6fqtjt8.js +3 -0
- package/chunk-kh4b25x0.js +12 -0
- package/chunk-kn8p9hm4.js +3 -0
- package/chunk-kxznfjhk.js +2 -0
- package/chunk-ma4nhnnj.js +3 -0
- package/chunk-n09zsaws.js +60 -0
- package/chunk-nb7c0e4a.js +10 -0
- package/chunk-pvbaf50c.js +7 -0
- package/chunk-pzg6f8rv.js +3 -0
- package/chunk-q7scf6rq.js +5 -0
- package/chunk-qc0d97yy.js +9 -0
- package/chunk-qn316bye.js +3 -0
- package/chunk-rapgtezp.js +3 -0
- package/chunk-rbz68jdh.js +2 -0
- package/chunk-rkq3zqph.js +3 -0
- package/chunk-rva3kxc4.js +3 -0
- package/chunk-s8ce8wwb.js +5 -0
- package/chunk-srmxyfvj.js +4 -0
- package/chunk-ss48r7hh.js +2 -0
- package/chunk-sxrwwyp7.js +3 -0
- package/chunk-tb3tj3ct.js +2 -0
- package/chunk-trf8d8md.js +2 -0
- package/chunk-v312dzv1.js +2 -0
- package/chunk-v9pc3ad7.js +3 -0
- package/chunk-vq3b921g.js +2 -0
- package/chunk-w8arnzsm.js +10 -0
- package/chunk-wa3w6q66.js +2 -0
- package/chunk-wyaep3eb.js +103 -0
- package/chunk-x31xqemq.js +3 -0
- package/chunk-x4nt43pv.js +2 -0
- package/chunk-xjr4j102.js +31 -0
- package/chunk-xp5p6tsp.js +286 -0
- package/chunk-xtzxv389.js +3 -0
- package/chunk-y91ea95f.js +7 -0
- package/chunk-yyeq63ns.js +2 -0
- package/chunk-z1hbxv39.js +2 -0
- package/chunk-zej3kgxg.js +5 -0
- package/chunk-zkhn196x.js +25 -0
- package/chunk-zztar24h.js +8 -0
- package/compiled.js +13 -13
- package/package.json +1 -1
- package/ui-test-worker.js +58 -57
- package/web/chunk-0qmwgbg8.js +1 -0
- package/web/chunk-0qmwgbg8.js.br +0 -0
- package/web/chunk-0qmwgbg8.js.gz +0 -0
- package/web/chunk-0vavwwh2.js +2 -0
- package/web/chunk-0vavwwh2.js.br +0 -0
- package/web/chunk-0vavwwh2.js.gz +0 -0
- package/web/chunk-0vmbj6hc.js +89 -0
- package/web/chunk-0vmbj6hc.js.br +0 -0
- package/web/chunk-0vmbj6hc.js.gz +0 -0
- package/web/chunk-17qjx34e.js +1 -0
- package/web/chunk-17qjx34e.js.br +0 -0
- package/web/chunk-17qjx34e.js.gz +0 -0
- package/web/chunk-1mkzfr1m.js +2 -0
- package/web/chunk-1mkzfr1m.js.br +0 -0
- package/web/chunk-1mkzfr1m.js.gz +0 -0
- package/web/chunk-1v45hcve.js +1 -0
- package/web/chunk-1v45hcve.js.br +0 -0
- package/web/chunk-1v45hcve.js.gz +0 -0
- package/web/chunk-1vewct29.js +78 -0
- package/web/chunk-1vewct29.js.br +0 -0
- package/web/chunk-1vewct29.js.gz +0 -0
- package/web/chunk-2hz3atj2.js +1 -0
- package/web/chunk-2hz3atj2.js.br +0 -0
- package/web/chunk-2hz3atj2.js.gz +0 -0
- package/web/chunk-3c66z204.js +1 -0
- package/web/chunk-3c66z204.js.br +0 -0
- package/web/chunk-3c66z204.js.gz +0 -0
- package/web/chunk-3ctk7p8b.js +200 -0
- package/web/chunk-3ctk7p8b.js.br +0 -0
- package/web/chunk-3ctk7p8b.js.gz +0 -0
- package/web/chunk-3rnbw3ds.js +2 -0
- package/web/chunk-3rnbw3ds.js.br +0 -0
- package/web/chunk-3rnbw3ds.js.gz +0 -0
- package/web/chunk-3t6c1rn7.js +2 -0
- package/web/chunk-3t6c1rn7.js.br +0 -0
- package/web/chunk-3t6c1rn7.js.gz +0 -0
- package/web/chunk-48f75wpj.js +1 -0
- package/web/chunk-48f75wpj.js.br +0 -0
- package/web/chunk-48f75wpj.js.gz +0 -0
- package/web/chunk-4sr7g3z6.js +70 -0
- package/web/chunk-4sr7g3z6.js.br +0 -0
- package/web/chunk-4sr7g3z6.js.gz +0 -0
- package/web/chunk-54kxhs8a.js +1 -0
- package/web/chunk-54kxhs8a.js.br +0 -0
- package/web/chunk-54kxhs8a.js.gz +0 -0
- package/web/chunk-5cbw7v9g.js +324 -0
- package/web/chunk-5cbw7v9g.js.br +0 -0
- package/web/chunk-5cbw7v9g.js.gz +0 -0
- package/web/chunk-5kxhdpsw.js +99 -0
- package/web/chunk-5kxhdpsw.js.br +0 -0
- package/web/chunk-5kxhdpsw.js.gz +0 -0
- package/web/chunk-5s16b1h5.js +2 -0
- package/web/chunk-5s16b1h5.js.br +0 -0
- package/web/chunk-5s16b1h5.js.gz +0 -0
- package/web/chunk-5z2f4vfh.js +1 -0
- package/web/chunk-5z2f4vfh.js.br +0 -0
- package/web/chunk-5z2f4vfh.js.gz +0 -0
- package/web/chunk-664zwasq.js +217 -0
- package/web/chunk-664zwasq.js.br +0 -0
- package/web/chunk-664zwasq.js.gz +0 -0
- package/web/chunk-6hgxmv17.js +1 -0
- package/web/chunk-6hgxmv17.js.br +0 -0
- package/web/chunk-6hgxmv17.js.gz +0 -0
- package/web/chunk-6wesgn4j.js +332 -0
- package/web/chunk-6wesgn4j.js.br +0 -0
- package/web/chunk-6wesgn4j.js.gz +0 -0
- package/web/chunk-6xnzhe0e.js +12 -0
- package/web/chunk-6xnzhe0e.js.br +0 -0
- package/web/chunk-6xnzhe0e.js.gz +0 -0
- package/web/chunk-73effb3e.js +1 -0
- package/web/chunk-73effb3e.js.br +0 -0
- package/web/chunk-73effb3e.js.gz +0 -0
- package/web/chunk-744jv40n.js +7 -0
- package/web/chunk-744jv40n.js.br +0 -0
- package/web/chunk-744jv40n.js.gz +0 -0
- package/web/chunk-74x21fpx.js +23 -0
- package/web/chunk-74x21fpx.js.br +0 -0
- package/web/chunk-74x21fpx.js.gz +0 -0
- package/web/chunk-75jp6b07.js +1 -0
- package/web/chunk-75jp6b07.js.br +0 -0
- package/web/chunk-75jp6b07.js.gz +0 -0
- package/web/chunk-776d411a.js +1143 -0
- package/web/chunk-776d411a.js.br +0 -0
- package/web/chunk-776d411a.js.gz +0 -0
- package/web/chunk-77fdf0t8.js +1 -0
- package/web/chunk-77fdf0t8.js.br +0 -0
- package/web/chunk-77fdf0t8.js.gz +0 -0
- package/web/chunk-85cyf9df.js +1 -0
- package/web/chunk-85cyf9df.js.br +0 -0
- package/web/chunk-85cyf9df.js.gz +0 -0
- package/web/chunk-8kxc78xp.js +4 -0
- package/web/chunk-8kxc78xp.js.br +0 -0
- package/web/chunk-8kxc78xp.js.gz +0 -0
- package/web/chunk-9j7v0e4v.js +2 -0
- package/web/chunk-9j7v0e4v.js.br +0 -0
- package/web/chunk-9j7v0e4v.js.gz +0 -0
- package/web/chunk-9kfxbebp.js +2 -0
- package/web/chunk-9kfxbebp.js.br +1 -0
- package/web/chunk-9kfxbebp.js.gz +0 -0
- package/web/chunk-b1x8wmyp.js +1 -0
- package/web/chunk-b1x8wmyp.js.br +2 -0
- package/web/chunk-b1x8wmyp.js.gz +0 -0
- package/web/chunk-bpy0qc5f.js +1 -0
- package/web/chunk-bpy0qc5f.js.br +0 -0
- package/web/chunk-bpy0qc5f.js.gz +0 -0
- package/web/chunk-brsvdef4.js +1 -0
- package/web/chunk-brsvdef4.js.br +0 -0
- package/web/chunk-brsvdef4.js.gz +0 -0
- package/web/chunk-bs8vnwtv.js +106 -0
- package/web/chunk-bs8vnwtv.js.br +0 -0
- package/web/chunk-bs8vnwtv.js.gz +0 -0
- package/web/chunk-cd3hhgn9.js +2 -0
- package/web/chunk-cd3hhgn9.js.br +0 -0
- package/web/chunk-cd3hhgn9.js.gz +0 -0
- package/web/chunk-ckpx6ky8.js +2 -0
- package/web/chunk-ckpx6ky8.js.br +0 -0
- package/web/chunk-ckpx6ky8.js.gz +0 -0
- package/web/chunk-cn4846p5.js +140 -0
- package/web/chunk-cn4846p5.js.br +0 -0
- package/web/chunk-cn4846p5.js.gz +0 -0
- package/web/chunk-cngcze57.js +84 -0
- package/web/chunk-cngcze57.js.br +0 -0
- package/web/chunk-cngcze57.js.gz +0 -0
- package/web/chunk-csg9anab.js +62 -0
- package/web/chunk-csg9anab.js.br +0 -0
- package/web/chunk-csg9anab.js.gz +0 -0
- package/web/chunk-ct98jt0b.js +2 -0
- package/web/chunk-ct98jt0b.js.br +0 -0
- package/web/chunk-ct98jt0b.js.gz +0 -0
- package/web/chunk-d67p0nr5.js +8 -0
- package/web/chunk-d67p0nr5.js.br +0 -0
- package/web/chunk-d67p0nr5.js.gz +0 -0
- package/web/chunk-dfv95z6w.js +1 -0
- package/web/chunk-dfv95z6w.js.br +0 -0
- package/web/chunk-dfv95z6w.js.gz +0 -0
- package/web/chunk-dqynqkew.js +3 -0
- package/web/chunk-dqynqkew.js.br +0 -0
- package/web/chunk-dqynqkew.js.gz +0 -0
- package/web/chunk-drn8wj2p.js +41 -0
- package/web/chunk-drn8wj2p.js.br +0 -0
- package/web/chunk-drn8wj2p.js.gz +0 -0
- package/web/chunk-e0r89rgm.js +2 -0
- package/web/chunk-e0r89rgm.js.br +0 -0
- package/web/chunk-e0r89rgm.js.gz +0 -0
- package/web/chunk-e6ffgm2z.js +89 -0
- package/web/chunk-e6ffgm2z.js.br +0 -0
- package/web/chunk-e6ffgm2z.js.gz +0 -0
- package/web/chunk-ebphre6k.js +292 -0
- package/web/chunk-ebphre6k.js.br +0 -0
- package/web/chunk-ebphre6k.js.gz +0 -0
- package/web/chunk-edeebkv0.js +2 -0
- package/web/chunk-edeebkv0.js.br +0 -0
- package/web/chunk-edeebkv0.js.gz +0 -0
- package/web/chunk-edkvcg8g.js +1 -0
- package/web/chunk-edkvcg8g.js.br +0 -0
- package/web/chunk-edkvcg8g.js.gz +0 -0
- package/web/chunk-evt920fg.js +142 -0
- package/web/chunk-evt920fg.js.br +0 -0
- package/web/chunk-evt920fg.js.gz +0 -0
- package/web/chunk-ezehzx5e.js +1 -0
- package/web/chunk-ezehzx5e.js.br +2 -0
- package/web/chunk-ezehzx5e.js.gz +0 -0
- package/web/chunk-f020aqdg.js +38 -0
- package/web/chunk-f020aqdg.js.br +0 -0
- package/web/chunk-f020aqdg.js.gz +0 -0
- package/web/chunk-f5a5x6be.js +1 -0
- package/web/chunk-f5a5x6be.js.br +0 -0
- package/web/chunk-f5a5x6be.js.gz +0 -0
- package/web/chunk-f9rv8b13.js +1 -0
- package/web/chunk-f9rv8b13.js.br +0 -0
- package/web/chunk-f9rv8b13.js.gz +0 -0
- package/web/chunk-fkmw2m49.js +1 -0
- package/web/chunk-fkmw2m49.js.br +0 -0
- package/web/chunk-fkmw2m49.js.gz +0 -0
- package/web/chunk-fn0hha9d.js +2 -0
- package/web/chunk-fn0hha9d.js.br +0 -0
- package/web/chunk-fn0hha9d.js.gz +0 -0
- package/web/chunk-fp5ny5dy.js +4 -0
- package/web/chunk-fp5ny5dy.js.br +0 -0
- package/web/chunk-fp5ny5dy.js.gz +0 -0
- package/web/chunk-fwckng4e.js +34 -0
- package/web/chunk-fwckng4e.js.br +0 -0
- package/web/chunk-fwckng4e.js.gz +0 -0
- package/web/chunk-g7yyp4ks.js +2 -0
- package/web/chunk-g7yyp4ks.js.br +0 -0
- package/web/chunk-g7yyp4ks.js.gz +0 -0
- package/web/chunk-gbhkp5f4.js +1 -0
- package/web/chunk-gbhkp5f4.js.br +2 -0
- package/web/chunk-gbhkp5f4.js.gz +0 -0
- package/web/chunk-ghz85g7f.js +1 -0
- package/web/chunk-ghz85g7f.js.br +0 -0
- package/web/chunk-ghz85g7f.js.gz +0 -0
- package/web/chunk-gpjdkgxz.js +2 -0
- package/web/chunk-gpjdkgxz.js.br +0 -0
- package/web/chunk-gpjdkgxz.js.gz +0 -0
- package/web/chunk-h3d8gb7m.js +1 -0
- package/web/chunk-h3d8gb7m.js.br +0 -0
- package/web/chunk-h3d8gb7m.js.gz +0 -0
- package/web/chunk-h47k4j7f.js +1 -0
- package/web/chunk-h47k4j7f.js.br +0 -0
- package/web/chunk-h47k4j7f.js.gz +0 -0
- package/web/chunk-h702ns45.js +1 -0
- package/web/chunk-h702ns45.js.br +0 -0
- package/web/chunk-h702ns45.js.gz +0 -0
- package/web/chunk-j3tjbge9.js +1 -0
- package/web/chunk-j3tjbge9.js.br +0 -0
- package/web/chunk-j3tjbge9.js.gz +0 -0
- package/web/chunk-j91f1v68.js +2 -0
- package/web/chunk-j91f1v68.js.br +0 -0
- package/web/chunk-j91f1v68.js.gz +0 -0
- package/web/chunk-jd82z5gg.js +1 -0
- package/web/chunk-jd82z5gg.js.br +0 -0
- package/web/chunk-jd82z5gg.js.gz +0 -0
- package/web/chunk-jmksme0n.js +2 -0
- package/web/chunk-jmksme0n.js.br +0 -0
- package/web/chunk-jmksme0n.js.gz +0 -0
- package/web/chunk-jz0wjyzp.js +7 -0
- package/web/chunk-jz0wjyzp.js.br +0 -0
- package/web/chunk-jz0wjyzp.js.gz +0 -0
- package/web/chunk-ka8jrbr5.js +55 -0
- package/web/chunk-ka8jrbr5.js.br +0 -0
- package/web/chunk-ka8jrbr5.js.gz +0 -0
- package/web/chunk-m770h1wv.js +2 -0
- package/web/chunk-m770h1wv.js.br +0 -0
- package/web/chunk-m770h1wv.js.gz +0 -0
- package/web/chunk-mfsdyw6v.js +2 -0
- package/web/chunk-mfsdyw6v.js.br +0 -0
- package/web/chunk-mfsdyw6v.js.gz +0 -0
- package/web/chunk-mvmpr9bn.js +1 -0
- package/web/chunk-mvmpr9bn.js.br +0 -0
- package/web/chunk-mvmpr9bn.js.gz +0 -0
- package/web/chunk-mx1e3jgh.js +1 -0
- package/web/chunk-mx1e3jgh.js.br +0 -0
- package/web/chunk-mx1e3jgh.js.gz +0 -0
- package/web/chunk-my4zxtxx.js +2 -0
- package/web/chunk-my4zxtxx.js.br +0 -0
- package/web/chunk-my4zxtxx.js.gz +0 -0
- package/web/chunk-n7nx158t.js +1 -0
- package/web/chunk-n7nx158t.js.br +0 -0
- package/web/chunk-n7nx158t.js.gz +0 -0
- package/web/chunk-na88frn3.js +1 -0
- package/web/chunk-na88frn3.js.br +0 -0
- package/web/chunk-na88frn3.js.gz +0 -0
- package/web/chunk-nbncq48b.js +1 -0
- package/web/chunk-nbncq48b.js.br +0 -0
- package/web/chunk-nbncq48b.js.gz +0 -0
- package/web/chunk-nyydkfyf.js +1 -0
- package/web/chunk-nyydkfyf.js.br +0 -0
- package/web/chunk-nyydkfyf.js.gz +0 -0
- package/web/chunk-nz06k08x.js +39 -0
- package/web/chunk-nz06k08x.js.br +0 -0
- package/web/chunk-nz06k08x.js.gz +0 -0
- package/web/chunk-p62swsj6.js +139 -0
- package/web/chunk-p62swsj6.js.br +0 -0
- package/web/chunk-p62swsj6.js.gz +0 -0
- package/web/chunk-pajjgx94.js +169 -0
- package/web/chunk-pajjgx94.js.br +0 -0
- package/web/chunk-pajjgx94.js.gz +0 -0
- package/web/chunk-phdpzq61.js +370 -0
- package/web/chunk-phdpzq61.js.br +0 -0
- package/web/chunk-phdpzq61.js.gz +0 -0
- package/web/chunk-pj9r4ha1.js +2 -0
- package/web/chunk-pj9r4ha1.js.br +0 -0
- package/web/chunk-pj9r4ha1.js.gz +0 -0
- package/web/chunk-pqvre6md.js +24 -0
- package/web/chunk-pqvre6md.js.br +0 -0
- package/web/chunk-pqvre6md.js.gz +0 -0
- package/web/chunk-pvq527d1.js +303 -0
- package/web/chunk-pvq527d1.js.br +0 -0
- package/web/chunk-pvq527d1.js.gz +0 -0
- package/web/chunk-pzbqpfpj.js +24 -0
- package/web/chunk-pzbqpfpj.js.br +0 -0
- package/web/chunk-pzbqpfpj.js.gz +0 -0
- package/web/chunk-q3v1563q.js +2 -0
- package/web/chunk-q3v1563q.js.br +0 -0
- package/web/chunk-q3v1563q.js.gz +0 -0
- package/web/chunk-q6vt7t8d.js +2 -0
- package/web/chunk-q6vt7t8d.js.br +0 -0
- package/web/chunk-q6vt7t8d.js.gz +0 -0
- package/web/chunk-q990zhg4.js +1 -0
- package/web/chunk-q990zhg4.js.br +0 -0
- package/web/chunk-q990zhg4.js.gz +0 -0
- package/web/chunk-qed51xj9.js +2 -0
- package/web/chunk-qed51xj9.js.br +0 -0
- package/web/chunk-qed51xj9.js.gz +0 -0
- package/web/chunk-r9m8jh7x.js +2 -0
- package/web/chunk-r9m8jh7x.js.br +0 -0
- package/web/chunk-r9m8jh7x.js.gz +0 -0
- package/web/chunk-rjax57j0.js +40 -0
- package/web/chunk-rjax57j0.js.br +0 -0
- package/web/chunk-rjax57j0.js.gz +0 -0
- package/web/chunk-s00tks2b.js +98 -0
- package/web/chunk-s00tks2b.js.br +0 -0
- package/web/chunk-s00tks2b.js.gz +0 -0
- package/web/chunk-s3symq0h.js +1 -0
- package/web/chunk-s3symq0h.js.br +0 -0
- package/web/chunk-s3symq0h.js.gz +0 -0
- package/web/chunk-sh2d0212.js +1 -0
- package/web/chunk-sh2d0212.js.br +0 -0
- package/web/chunk-sh2d0212.js.gz +0 -0
- package/web/chunk-t8ksmf3z.js +2 -0
- package/web/chunk-t8ksmf3z.js.br +0 -0
- package/web/chunk-t8ksmf3z.js.gz +0 -0
- package/web/chunk-te4ab7ee.css +1 -0
- package/web/chunk-te4ab7ee.css.br +0 -0
- package/web/chunk-te4ab7ee.css.gz +0 -0
- package/web/chunk-tjhxbt15.js +1 -0
- package/web/chunk-tjhxbt15.js.br +0 -0
- package/web/chunk-tjhxbt15.js.gz +0 -0
- package/web/chunk-tqr5maem.js +291 -0
- package/web/chunk-tqr5maem.js.br +0 -0
- package/web/chunk-tqr5maem.js.gz +0 -0
- package/web/chunk-tt3vgkx6.js +7 -0
- package/web/chunk-tt3vgkx6.js.br +0 -0
- package/web/chunk-tt3vgkx6.js.gz +0 -0
- package/web/chunk-v56w6y8n.js +2 -0
- package/web/chunk-v56w6y8n.js.br +0 -0
- package/web/chunk-v56w6y8n.js.gz +0 -0
- package/web/chunk-v65dz9y5.js +1 -0
- package/web/chunk-v65dz9y5.js.br +0 -0
- package/web/chunk-v65dz9y5.js.gz +0 -0
- package/web/chunk-vaspzebe.js +1 -0
- package/web/chunk-vaspzebe.js.br +0 -0
- package/web/chunk-vaspzebe.js.gz +0 -0
- package/web/chunk-ve5dccwy.js +1 -0
- package/web/chunk-ve5dccwy.js.br +0 -0
- package/web/chunk-ve5dccwy.js.gz +0 -0
- package/web/chunk-vsxzq4nb.js +1 -0
- package/web/chunk-vsxzq4nb.js.br +0 -0
- package/web/chunk-vsxzq4nb.js.gz +0 -0
- package/web/chunk-vvn66f2x.js +16 -0
- package/web/chunk-vvn66f2x.js.br +0 -0
- package/web/chunk-vvn66f2x.js.gz +0 -0
- package/web/chunk-vvqey05d.js +1 -0
- package/web/chunk-vvqey05d.js.br +2 -0
- package/web/chunk-vvqey05d.js.gz +0 -0
- package/web/chunk-w6ajcbm8.js +1 -0
- package/web/chunk-w6ajcbm8.js.br +0 -0
- package/web/chunk-w6ajcbm8.js.gz +0 -0
- package/web/chunk-w6p6dy3k.js +2 -0
- package/web/chunk-w6p6dy3k.js.br +0 -0
- package/web/chunk-w6p6dy3k.js.gz +0 -0
- package/web/chunk-wy1k8vz2.js +1 -0
- package/web/chunk-wy1k8vz2.js.br +0 -0
- package/web/chunk-wy1k8vz2.js.gz +0 -0
- package/web/chunk-wzgv2gv2.js +120 -0
- package/web/chunk-wzgv2gv2.js.br +0 -0
- package/web/chunk-wzgv2gv2.js.gz +0 -0
- package/web/chunk-x78hqhxv.js +1 -0
- package/web/chunk-x78hqhxv.js.br +2 -0
- package/web/chunk-x78hqhxv.js.gz +0 -0
- package/web/chunk-x7mw8704.js +36 -0
- package/web/chunk-x7mw8704.js.br +0 -0
- package/web/chunk-x7mw8704.js.gz +0 -0
- package/web/chunk-x85z35es.js +2 -0
- package/web/chunk-x85z35es.js.br +0 -0
- package/web/chunk-x85z35es.js.gz +0 -0
- package/web/chunk-xbrhmxd8.js +214 -0
- package/web/chunk-xbrhmxd8.js.br +0 -0
- package/web/chunk-xbrhmxd8.js.gz +0 -0
- package/web/chunk-xjpqg11m.js +1 -0
- package/web/chunk-xjpqg11m.js.br +0 -0
- package/web/chunk-xjpqg11m.js.gz +0 -0
- package/web/chunk-xkqekh81.js +2 -0
- package/web/chunk-xkqekh81.js.br +0 -0
- package/web/chunk-xkqekh81.js.gz +0 -0
- package/web/chunk-y2x9v76f.js +2 -0
- package/web/chunk-y2x9v76f.js.br +0 -0
- package/web/chunk-y2x9v76f.js.gz +0 -0
- package/web/chunk-y48mj5d7.js +1 -0
- package/web/chunk-y48mj5d7.js.br +0 -0
- package/web/chunk-y48mj5d7.js.gz +0 -0
- package/web/chunk-ykc1rttf.js +1 -0
- package/web/chunk-ykc1rttf.js.br +0 -0
- package/web/chunk-ykc1rttf.js.gz +0 -0
- package/web/chunk-yyw0rdyy.js +1 -0
- package/web/chunk-yyw0rdyy.js.br +0 -0
- package/web/chunk-yyw0rdyy.js.gz +0 -0
- package/web/chunk-yzyrc28t.js +30 -0
- package/web/chunk-yzyrc28t.js.br +0 -0
- package/web/chunk-yzyrc28t.js.gz +0 -0
- package/web/chunk-z7j6wnn3.js +2 -0
- package/web/chunk-z7j6wnn3.js.br +0 -0
- package/web/chunk-z7j6wnn3.js.gz +0 -0
- package/web/chunk-z8fgdsx5.js +1 -0
- package/web/chunk-z8fgdsx5.js.br +0 -0
- package/web/chunk-z8fgdsx5.js.gz +0 -0
- package/web/chunk-zcjdarjr.js +1 -0
- package/web/chunk-zcjdarjr.js.br +0 -0
- package/web/chunk-zcjdarjr.js.gz +0 -0
- package/web/explorer-ttd27vzr.png +0 -0
- package/web/finder-aynbqpvz.png +0 -0
- package/web/idea-c8rwk1e2.png +0 -0
- package/web/index.html +3 -13
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/web/manifest-g1mfa85c.webmanifest +35 -0
- package/web/manifest-g1mfa85c.webmanifest.br +0 -0
- package/web/manifest-g1mfa85c.webmanifest.gz +0 -0
- package/web/manifest.webmanifest +2 -2
- package/web/manifest.webmanifest.br +0 -0
- package/web/manifest.webmanifest.gz +0 -0
- package/web/sw.js +36 -17
- package/web/sw.js.br +0 -0
- package/web/sw.js.gz +0 -0
- package/web/vscode-33qgcrqp.png +0 -0
- package/worker.js +1 -1
- package/chunk-082x3g29.js +0 -3
- package/chunk-0aaf270z.js +0 -3
- package/chunk-0dqv9x0y.js +0 -51
- package/chunk-0ns02fzq.js +0 -2
- package/chunk-0y13kfpt.js +0 -5
- package/chunk-1753m6xk.js +0 -4179
- package/chunk-24ae99b6.js +0 -5
- package/chunk-2cp8why4.js +0 -2
- package/chunk-3bdzn4h2.js +0 -2
- package/chunk-48m0w8xg.js +0 -2
- package/chunk-4pr7ykh0.js +0 -2
- package/chunk-4qtw5cga.js +0 -12
- package/chunk-4yqge35f.js +0 -3
- package/chunk-65rd9zn4.js +0 -3
- package/chunk-67ehvv4n.js +0 -44
- package/chunk-6wm62kte.js +0 -18
- package/chunk-6zkggkdm.js +0 -13
- package/chunk-78ferdza.js +0 -3
- package/chunk-794r8w6m.js +0 -2
- package/chunk-7azn0brs.js +0 -7
- package/chunk-7wh4n0yg.js +0 -2
- package/chunk-7z0wh161.js +0 -25
- package/chunk-95aqrqnh.js +0 -2
- package/chunk-9nkb5q43.js +0 -3
- package/chunk-a0zcps2d.js +0 -2
- package/chunk-a23pv6tv.js +0 -3
- package/chunk-adb2nbxk.js +0 -2
- package/chunk-as2ty5w5.js +0 -3
- package/chunk-b84y794v.js +0 -3
- package/chunk-bh80e336.js +0 -3
- package/chunk-c6azecvs.js +0 -3
- package/chunk-cc8h8mz9.js +0 -2
- package/chunk-cdb6caq7.js +0 -3
- package/chunk-cjdbsa9s.js +0 -3
- package/chunk-cnqgtmwm.js +0 -10
- package/chunk-cwn9vs1a.js +0 -3
- package/chunk-cxybp3fn.js +0 -8
- package/chunk-dea2htm4.js +0 -2
- package/chunk-e01wravf.js +0 -12
- package/chunk-f0pz8pvb.js +0 -5
- package/chunk-fsekbhqb.js +0 -3
- package/chunk-fvmrsrmq.js +0 -3
- package/chunk-fwdhn0gw.js +0 -7
- package/chunk-h7x8g57v.js +0 -9
- package/chunk-h8qhy3px.js +0 -39
- package/chunk-hsvchrh3.js +0 -7
- package/chunk-j1peg724.js +0 -504
- package/chunk-j2cse817.js +0 -63
- package/chunk-j3jzgw98.js +0 -31
- package/chunk-jmzdtefg.js +0 -2
- package/chunk-k0e6n6yy.js +0 -3
- package/chunk-mb2jqd5z.js +0 -3
- package/chunk-nbgtqpay.js +0 -3
- package/chunk-prfczhpq.js +0 -10
- package/chunk-pv25a7sw.js +0 -2
- package/chunk-q8m2x20d.js +0 -286
- package/chunk-qnkxeh37.js +0 -3
- package/chunk-qvfrv3rb.js +0 -59
- package/chunk-r14x07ez.js +0 -2
- package/chunk-r1kah65k.js +0 -2
- package/chunk-r6pt44wk.js +0 -60
- package/chunk-rhkw8ygf.js +0 -3
- package/chunk-rvqeb7gr.js +0 -3
- package/chunk-rwa7mfwa.js +0 -2
- package/chunk-sj46f002.js +0 -2
- package/chunk-sp89jja7.js +0 -3
- package/chunk-sss5x2ak.js +0 -2
- package/chunk-szn4y5mx.js +0 -25
- package/chunk-t05q9ksf.js +0 -2
- package/chunk-tb66q678.js +0 -11
- package/chunk-tej75y8n.js +0 -2
- package/chunk-tmfr2ym8.js +0 -4
- package/chunk-tnay319j.js +0 -3
- package/chunk-txwheg1n.js +0 -2
- package/chunk-ve6n38r4.js +0 -16
- package/chunk-vfa49qcy.js +0 -3
- package/chunk-wcy1r6vv.js +0 -2
- package/chunk-wj6am3ag.js +0 -3
- package/chunk-x0afp8wt.js +0 -3
- package/chunk-xe627eyp.js +0 -20
- package/chunk-y18ey7s9.js +0 -8
- package/chunk-y9r7tt53.js +0 -3
- package/chunk-yq20v3va.js +0 -3
- package/chunk-yyg4ygv7.js +0 -2
- package/chunk-z2zhr4e5.js +0 -3
- package/chunk-zdtg52xn.js +0 -2
- package/chunk-zrhdrkdb.js +0 -5
- package/web/chunk-0d0fwb7b.js +0 -2
- package/web/chunk-0d0fwb7b.js.br +0 -0
- package/web/chunk-0d0fwb7b.js.gz +0 -0
- package/web/chunk-0jm4zyrt.js +0 -1
- package/web/chunk-0jm4zyrt.js.br +0 -0
- package/web/chunk-0jm4zyrt.js.gz +0 -0
- package/web/chunk-0pp7dzx1.js +0 -1
- package/web/chunk-0pp7dzx1.js.br +0 -0
- package/web/chunk-0pp7dzx1.js.gz +0 -0
- package/web/chunk-0w73jp4n.js +0 -1
- package/web/chunk-0w73jp4n.js.br +0 -0
- package/web/chunk-0w73jp4n.js.gz +0 -0
- package/web/chunk-1416f30c.js +0 -2
- package/web/chunk-1416f30c.js.br +0 -0
- package/web/chunk-1416f30c.js.gz +0 -0
- package/web/chunk-18wyawez.js +0 -30
- package/web/chunk-18wyawez.js.br +0 -0
- package/web/chunk-18wyawez.js.gz +0 -0
- package/web/chunk-19ew9re5.js +0 -1
- package/web/chunk-19ew9re5.js.br +0 -0
- package/web/chunk-19ew9re5.js.gz +0 -0
- package/web/chunk-1mdtr9wk.js +0 -8
- package/web/chunk-1mdtr9wk.js.br +0 -1
- package/web/chunk-1mdtr9wk.js.gz +0 -0
- package/web/chunk-1p4egv85.js +0 -1
- package/web/chunk-1p4egv85.js.br +0 -0
- package/web/chunk-1p4egv85.js.gz +0 -0
- package/web/chunk-1x61dvvr.js +0 -2
- package/web/chunk-1x61dvvr.js.br +0 -0
- package/web/chunk-1x61dvvr.js.gz +0 -0
- package/web/chunk-241n0y1h.js +0 -1
- package/web/chunk-241n0y1h.js.br +0 -0
- package/web/chunk-241n0y1h.js.gz +0 -0
- package/web/chunk-26sgnzb2.js +0 -1
- package/web/chunk-26sgnzb2.js.br +0 -0
- package/web/chunk-26sgnzb2.js.gz +0 -0
- package/web/chunk-2p77pefd.js +0 -1
- package/web/chunk-2p77pefd.js.br +0 -0
- package/web/chunk-2p77pefd.js.gz +0 -0
- package/web/chunk-2ppe5znq.js +0 -1
- package/web/chunk-2ppe5znq.js.br +0 -0
- package/web/chunk-2ppe5znq.js.gz +0 -0
- package/web/chunk-2qzr943m.js +0 -2
- package/web/chunk-2qzr943m.js.br +0 -0
- package/web/chunk-2qzr943m.js.gz +0 -0
- package/web/chunk-32k44660.js +0 -214
- package/web/chunk-32k44660.js.br +0 -0
- package/web/chunk-32k44660.js.gz +0 -0
- package/web/chunk-33zb5a76.js +0 -2
- package/web/chunk-33zb5a76.js.br +0 -0
- package/web/chunk-33zb5a76.js.gz +0 -0
- package/web/chunk-38bzkv9k.js +0 -7
- package/web/chunk-38bzkv9k.js.br +0 -0
- package/web/chunk-38bzkv9k.js.gz +0 -0
- package/web/chunk-42ytz496.js +0 -1
- package/web/chunk-42ytz496.js.br +0 -0
- package/web/chunk-42ytz496.js.gz +0 -0
- package/web/chunk-4749rrqv.js +0 -55
- package/web/chunk-4749rrqv.js.br +0 -0
- package/web/chunk-4749rrqv.js.gz +0 -0
- package/web/chunk-4d57cnh5.js +0 -40
- package/web/chunk-4d57cnh5.js.br +0 -0
- package/web/chunk-4d57cnh5.js.gz +0 -0
- package/web/chunk-4gh3hcrc.js +0 -1
- package/web/chunk-4gh3hcrc.js.br +0 -0
- package/web/chunk-4gh3hcrc.js.gz +0 -0
- package/web/chunk-4hg08mj3.js +0 -1
- package/web/chunk-4hg08mj3.js.br +0 -0
- package/web/chunk-4hg08mj3.js.gz +0 -0
- package/web/chunk-4rra9tt7.js +0 -78
- package/web/chunk-4rra9tt7.js.br +0 -0
- package/web/chunk-4rra9tt7.js.gz +0 -0
- package/web/chunk-572kjbne.js +0 -89
- package/web/chunk-572kjbne.js.br +0 -0
- package/web/chunk-572kjbne.js.gz +0 -0
- package/web/chunk-5hqe3cct.js +0 -98
- package/web/chunk-5hqe3cct.js.br +0 -0
- package/web/chunk-5hqe3cct.js.gz +0 -0
- package/web/chunk-5k4vdcwk.js +0 -24
- package/web/chunk-5k4vdcwk.js.br +0 -0
- package/web/chunk-5k4vdcwk.js.gz +0 -0
- package/web/chunk-5z44jbdc.js +0 -1
- package/web/chunk-5z44jbdc.js.br +0 -0
- package/web/chunk-5z44jbdc.js.gz +0 -0
- package/web/chunk-600x58nm.js +0 -1143
- package/web/chunk-600x58nm.js.br +0 -0
- package/web/chunk-600x58nm.js.gz +0 -0
- package/web/chunk-61djfs0t.js +0 -140
- package/web/chunk-61djfs0t.js.br +0 -0
- package/web/chunk-61djfs0t.js.gz +0 -0
- package/web/chunk-6j4jdvtd.js +0 -1
- package/web/chunk-6j4jdvtd.js.br +0 -0
- package/web/chunk-6j4jdvtd.js.gz +0 -0
- package/web/chunk-74ymgabb.js +0 -2
- package/web/chunk-74ymgabb.js.br +0 -0
- package/web/chunk-74ymgabb.js.gz +0 -0
- package/web/chunk-768vchz5.js +0 -169
- package/web/chunk-768vchz5.js.br +0 -0
- package/web/chunk-768vchz5.js.gz +0 -0
- package/web/chunk-7f87paxe.js +0 -36
- package/web/chunk-7f87paxe.js.br +0 -0
- package/web/chunk-7f87paxe.js.gz +0 -0
- package/web/chunk-7ns0kj87.js +0 -2
- package/web/chunk-7ns0kj87.js.br +0 -0
- package/web/chunk-7ns0kj87.js.gz +0 -0
- package/web/chunk-7vpk9y00.js +0 -1
- package/web/chunk-7vpk9y00.js.br +0 -0
- package/web/chunk-7vpk9y00.js.gz +0 -0
- package/web/chunk-89mc1vj3.js +0 -1
- package/web/chunk-89mc1vj3.js.br +0 -0
- package/web/chunk-89mc1vj3.js.gz +0 -0
- package/web/chunk-8wgpesrk.js +0 -139
- package/web/chunk-8wgpesrk.js.br +0 -0
- package/web/chunk-8wgpesrk.js.gz +0 -0
- package/web/chunk-9nh1aeqs.js +0 -303
- package/web/chunk-9nh1aeqs.js.br +0 -0
- package/web/chunk-9nh1aeqs.js.gz +0 -0
- package/web/chunk-9pgq2ax4.js +0 -1
- package/web/chunk-9pgq2ax4.js.br +0 -0
- package/web/chunk-9pgq2ax4.js.gz +0 -0
- package/web/chunk-9tfs2dg1.js +0 -1
- package/web/chunk-9tfs2dg1.js.br +0 -0
- package/web/chunk-9tfs2dg1.js.gz +0 -0
- package/web/chunk-9wemd2wn.js +0 -41
- package/web/chunk-9wemd2wn.js.br +0 -0
- package/web/chunk-9wemd2wn.js.gz +0 -0
- package/web/chunk-9wsz2j8n.js +0 -1
- package/web/chunk-9wsz2j8n.js.br +0 -0
- package/web/chunk-9wsz2j8n.js.gz +0 -0
- package/web/chunk-9wzvqpre.js +0 -2
- package/web/chunk-9wzvqpre.js.br +0 -0
- package/web/chunk-9wzvqpre.js.gz +0 -0
- package/web/chunk-a48wgrb1.js +0 -1
- package/web/chunk-a48wgrb1.js.br +0 -2
- package/web/chunk-a48wgrb1.js.gz +0 -0
- package/web/chunk-ah8e1y9j.js +0 -4
- package/web/chunk-ah8e1y9j.js.br +0 -0
- package/web/chunk-ah8e1y9j.js.gz +0 -0
- package/web/chunk-amsr9cg2.js +0 -1
- package/web/chunk-amsr9cg2.js.br +0 -0
- package/web/chunk-amsr9cg2.js.gz +0 -0
- package/web/chunk-aps2c5t2.js +0 -16
- package/web/chunk-aps2c5t2.js.br +0 -0
- package/web/chunk-aps2c5t2.js.gz +0 -0
- package/web/chunk-avfynf6y.js +0 -1
- package/web/chunk-avfynf6y.js.br +0 -0
- package/web/chunk-avfynf6y.js.gz +0 -0
- package/web/chunk-b5zrttcx.js +0 -2
- package/web/chunk-b5zrttcx.js.br +0 -0
- package/web/chunk-b5zrttcx.js.gz +0 -0
- package/web/chunk-bvvf024a.js +0 -24
- package/web/chunk-bvvf024a.js.br +0 -0
- package/web/chunk-bvvf024a.js.gz +0 -0
- package/web/chunk-by2dphx7.js +0 -200
- package/web/chunk-by2dphx7.js.br +0 -0
- package/web/chunk-by2dphx7.js.gz +0 -0
- package/web/chunk-c0sc2yy1.js +0 -1
- package/web/chunk-c0sc2yy1.js.br +0 -0
- package/web/chunk-c0sc2yy1.js.gz +0 -0
- package/web/chunk-c612n2pw.js +0 -2
- package/web/chunk-c612n2pw.js.br +0 -0
- package/web/chunk-c612n2pw.js.gz +0 -0
- package/web/chunk-c91rk85x.js +0 -2
- package/web/chunk-c91rk85x.js.br +0 -0
- package/web/chunk-c91rk85x.js.gz +0 -0
- package/web/chunk-catm30vp.js +0 -2
- package/web/chunk-catm30vp.js.br +0 -0
- package/web/chunk-catm30vp.js.gz +0 -0
- package/web/chunk-cbdxzddd.js +0 -142
- package/web/chunk-cbdxzddd.js.br +0 -0
- package/web/chunk-cbdxzddd.js.gz +0 -0
- package/web/chunk-cng693ts.js +0 -2
- package/web/chunk-cng693ts.js.br +0 -0
- package/web/chunk-cng693ts.js.gz +0 -0
- package/web/chunk-d5vcma5a.js +0 -89
- package/web/chunk-d5vcma5a.js.br +0 -0
- package/web/chunk-d5vcma5a.js.gz +0 -0
- package/web/chunk-d6d9cp71.js +0 -1
- package/web/chunk-d6d9cp71.js.br +0 -2
- package/web/chunk-d6d9cp71.js.gz +0 -0
- package/web/chunk-dsghhcew.js +0 -1
- package/web/chunk-dsghhcew.js.br +0 -0
- package/web/chunk-dsghhcew.js.gz +0 -0
- package/web/chunk-dt2e6evf.js +0 -1
- package/web/chunk-dt2e6evf.js.br +0 -0
- package/web/chunk-dt2e6evf.js.gz +0 -0
- package/web/chunk-dxrsmcah.js +0 -1
- package/web/chunk-dxrsmcah.js.br +0 -0
- package/web/chunk-dxrsmcah.js.gz +0 -0
- package/web/chunk-ent5zx24.js +0 -1
- package/web/chunk-ent5zx24.js.br +0 -2
- package/web/chunk-ent5zx24.js.gz +0 -0
- package/web/chunk-f4n1q3mf.js +0 -1
- package/web/chunk-f4n1q3mf.js.br +0 -0
- package/web/chunk-f4n1q3mf.js.gz +0 -0
- package/web/chunk-fdfrv6bc.js +0 -1
- package/web/chunk-fdfrv6bc.js.br +0 -2
- package/web/chunk-fdfrv6bc.js.gz +0 -0
- package/web/chunk-fh44xz70.js +0 -1
- package/web/chunk-fh44xz70.js.br +0 -0
- package/web/chunk-fh44xz70.js.gz +0 -0
- package/web/chunk-fkbp72gk.js +0 -1
- package/web/chunk-fkbp72gk.js.br +0 -0
- package/web/chunk-fkbp72gk.js.gz +0 -0
- package/web/chunk-fzkjgwzq.js +0 -4
- package/web/chunk-fzkjgwzq.js.br +0 -0
- package/web/chunk-fzkjgwzq.js.gz +0 -0
- package/web/chunk-gf2gznsb.js +0 -38
- package/web/chunk-gf2gznsb.js.br +0 -0
- package/web/chunk-gf2gznsb.js.gz +0 -0
- package/web/chunk-gne1ybac.js +0 -2
- package/web/chunk-gne1ybac.js.br +0 -0
- package/web/chunk-gne1ybac.js.gz +0 -0
- package/web/chunk-gws1fj71.js +0 -106
- package/web/chunk-gws1fj71.js.br +0 -0
- package/web/chunk-gws1fj71.js.gz +0 -0
- package/web/chunk-h4m88fg8.js +0 -2
- package/web/chunk-h4m88fg8.js.br +0 -0
- package/web/chunk-h4m88fg8.js.gz +0 -0
- package/web/chunk-h4vk09kd.js +0 -2
- package/web/chunk-h4vk09kd.js.br +0 -0
- package/web/chunk-h4vk09kd.js.gz +0 -0
- package/web/chunk-h6wzjfj2.js +0 -34
- package/web/chunk-h6wzjfj2.js.br +0 -0
- package/web/chunk-h6wzjfj2.js.gz +0 -0
- package/web/chunk-hajg1p0h.js +0 -7
- package/web/chunk-hajg1p0h.js.br +0 -0
- package/web/chunk-hajg1p0h.js.gz +0 -0
- package/web/chunk-hhmd6qrc.js +0 -2
- package/web/chunk-hhmd6qrc.js.br +0 -0
- package/web/chunk-hhmd6qrc.js.gz +0 -0
- package/web/chunk-hya0fh1r.js +0 -1
- package/web/chunk-hya0fh1r.js.br +0 -0
- package/web/chunk-hya0fh1r.js.gz +0 -0
- package/web/chunk-j469ky77.js +0 -1
- package/web/chunk-j469ky77.js.br +0 -0
- package/web/chunk-j469ky77.js.gz +0 -0
- package/web/chunk-j6ymcm3h.js +0 -2
- package/web/chunk-j6ymcm3h.js.br +0 -0
- package/web/chunk-j6ymcm3h.js.gz +0 -0
- package/web/chunk-j79z6bta.js +0 -21
- package/web/chunk-j79z6bta.js.br +0 -0
- package/web/chunk-j79z6bta.js.gz +0 -0
- package/web/chunk-jbxc5y3z.js +0 -12
- package/web/chunk-jbxc5y3z.js.br +0 -0
- package/web/chunk-jbxc5y3z.js.gz +0 -0
- package/web/chunk-jcc187d7.js +0 -1
- package/web/chunk-jcc187d7.js.br +0 -0
- package/web/chunk-jcc187d7.js.gz +0 -0
- package/web/chunk-jjvpdxhd.js +0 -2
- package/web/chunk-jjvpdxhd.js.br +0 -0
- package/web/chunk-jjvpdxhd.js.gz +0 -0
- package/web/chunk-jrh3mwmy.js +0 -2
- package/web/chunk-jrh3mwmy.js.br +0 -0
- package/web/chunk-jrh3mwmy.js.gz +0 -0
- package/web/chunk-jv3pgdp0.js +0 -1
- package/web/chunk-jv3pgdp0.js.br +0 -2
- package/web/chunk-jv3pgdp0.js.gz +0 -0
- package/web/chunk-ksxjhezb.js +0 -1
- package/web/chunk-ksxjhezb.js.br +0 -0
- package/web/chunk-ksxjhezb.js.gz +0 -0
- package/web/chunk-ktnd8t40.js +0 -2
- package/web/chunk-ktnd8t40.js.br +0 -0
- package/web/chunk-ktnd8t40.js.gz +0 -0
- package/web/chunk-mgwv3dp0.js +0 -1
- package/web/chunk-mgwv3dp0.js.br +0 -0
- package/web/chunk-mgwv3dp0.js.gz +0 -0
- package/web/chunk-mtjdfgjj.js +0 -2
- package/web/chunk-mtjdfgjj.js.br +0 -0
- package/web/chunk-mtjdfgjj.js.gz +0 -0
- package/web/chunk-mzkaanwd.js +0 -2
- package/web/chunk-mzkaanwd.js.br +0 -0
- package/web/chunk-mzkaanwd.js.gz +0 -0
- package/web/chunk-n22pg5xy.js +0 -1
- package/web/chunk-n22pg5xy.js.br +0 -0
- package/web/chunk-n22pg5xy.js.gz +0 -0
- package/web/chunk-n58ezsfb.js +0 -2
- package/web/chunk-n58ezsfb.js.br +0 -0
- package/web/chunk-n58ezsfb.js.gz +0 -0
- package/web/chunk-nhx74teq.js +0 -3
- package/web/chunk-nhx74teq.js.br +0 -0
- package/web/chunk-nhx74teq.js.gz +0 -0
- package/web/chunk-njjsgwfw.js +0 -2
- package/web/chunk-njjsgwfw.js.br +0 -0
- package/web/chunk-njjsgwfw.js.gz +0 -0
- package/web/chunk-nwhqcbnr.js +0 -1
- package/web/chunk-nwhqcbnr.js.br +0 -0
- package/web/chunk-nwhqcbnr.js.gz +0 -0
- package/web/chunk-pnghaajd.js +0 -70
- package/web/chunk-pnghaajd.js.br +0 -0
- package/web/chunk-pnghaajd.js.gz +0 -0
- package/web/chunk-pqfn8x7v.js +0 -1
- package/web/chunk-pqfn8x7v.js.br +0 -0
- package/web/chunk-pqfn8x7v.js.gz +0 -0
- package/web/chunk-ptk0jnyx.js +0 -1
- package/web/chunk-ptk0jnyx.js.br +0 -0
- package/web/chunk-ptk0jnyx.js.gz +0 -0
- package/web/chunk-pv7e5g4k.js +0 -370
- package/web/chunk-pv7e5g4k.js.br +0 -0
- package/web/chunk-pv7e5g4k.js.gz +0 -0
- package/web/chunk-pxnh5qgn.js +0 -2
- package/web/chunk-pxnh5qgn.js.br +0 -0
- package/web/chunk-pxnh5qgn.js.gz +0 -0
- package/web/chunk-q6eq5y2t.js +0 -1
- package/web/chunk-q6eq5y2t.js.br +0 -2
- package/web/chunk-q6eq5y2t.js.gz +0 -0
- package/web/chunk-qdwg9n1d.js +0 -1
- package/web/chunk-qdwg9n1d.js.br +0 -0
- package/web/chunk-qdwg9n1d.js.gz +0 -0
- package/web/chunk-qp42gtvd.js +0 -1
- package/web/chunk-qp42gtvd.js.br +0 -0
- package/web/chunk-qp42gtvd.js.gz +0 -0
- package/web/chunk-qzdw8vdp.js +0 -1
- package/web/chunk-qzdw8vdp.js.br +0 -0
- package/web/chunk-qzdw8vdp.js.gz +0 -0
- package/web/chunk-r571ywxq.js +0 -1
- package/web/chunk-r571ywxq.js.br +0 -0
- package/web/chunk-r571ywxq.js.gz +0 -0
- package/web/chunk-r9fx4cjw.js +0 -1
- package/web/chunk-r9fx4cjw.js.br +0 -0
- package/web/chunk-r9fx4cjw.js.gz +0 -0
- package/web/chunk-rhvq3c1c.js +0 -1
- package/web/chunk-rhvq3c1c.js.br +0 -0
- package/web/chunk-rhvq3c1c.js.gz +0 -0
- package/web/chunk-rjay9w1t.js +0 -1
- package/web/chunk-rjay9w1t.js.br +0 -0
- package/web/chunk-rjay9w1t.js.gz +0 -0
- package/web/chunk-rpvdnc3p.js +0 -1
- package/web/chunk-rpvdnc3p.js.br +0 -0
- package/web/chunk-rpvdnc3p.js.gz +0 -0
- package/web/chunk-rrfr4wyt.js +0 -62
- package/web/chunk-rrfr4wyt.js.br +0 -0
- package/web/chunk-rrfr4wyt.js.gz +0 -0
- package/web/chunk-rvngywg9.js +0 -2
- package/web/chunk-rvngywg9.js.br +0 -0
- package/web/chunk-rvngywg9.js.gz +0 -0
- package/web/chunk-rw7d025r.js +0 -84
- package/web/chunk-rw7d025r.js.br +0 -0
- package/web/chunk-rw7d025r.js.gz +0 -0
- package/web/chunk-s1g8acth.js +0 -324
- package/web/chunk-s1g8acth.js.br +0 -0
- package/web/chunk-s1g8acth.js.gz +0 -0
- package/web/chunk-s8572njv.js +0 -2
- package/web/chunk-s8572njv.js.br +0 -1
- package/web/chunk-s8572njv.js.gz +0 -0
- package/web/chunk-sb57e1m9.css +0 -1
- package/web/chunk-sb57e1m9.css.br +0 -0
- package/web/chunk-sb57e1m9.css.gz +0 -0
- package/web/chunk-sn3h5adt.js +0 -2
- package/web/chunk-sn3h5adt.js.br +0 -0
- package/web/chunk-sn3h5adt.js.gz +0 -0
- package/web/chunk-tb2v18q8.js +0 -2
- package/web/chunk-tb2v18q8.js.br +0 -0
- package/web/chunk-tb2v18q8.js.gz +0 -0
- package/web/chunk-tetbyky0.js +0 -39
- package/web/chunk-tetbyky0.js.br +0 -0
- package/web/chunk-tetbyky0.js.gz +0 -0
- package/web/chunk-tqvctvsv.js +0 -1
- package/web/chunk-tqvctvsv.js.br +0 -0
- package/web/chunk-tqvctvsv.js.gz +0 -0
- package/web/chunk-v9mj2pxz.js +0 -1
- package/web/chunk-v9mj2pxz.js.br +0 -0
- package/web/chunk-v9mj2pxz.js.gz +0 -0
- package/web/chunk-vkhah4nd.js +0 -2
- package/web/chunk-vkhah4nd.js.br +0 -0
- package/web/chunk-vkhah4nd.js.gz +0 -0
- package/web/chunk-vpnh7wmw.js +0 -1
- package/web/chunk-vpnh7wmw.js.br +0 -0
- package/web/chunk-vpnh7wmw.js.gz +0 -0
- package/web/chunk-w1qe2x5p.js +0 -217
- package/web/chunk-w1qe2x5p.js.br +0 -0
- package/web/chunk-w1qe2x5p.js.gz +0 -0
- package/web/chunk-werh47fw.js +0 -99
- package/web/chunk-werh47fw.js.br +0 -0
- package/web/chunk-werh47fw.js.gz +0 -0
- package/web/chunk-wfmf0dc8.js +0 -1
- package/web/chunk-wfmf0dc8.js.br +0 -0
- package/web/chunk-wfmf0dc8.js.gz +0 -0
- package/web/chunk-wna4vqp6.js +0 -1
- package/web/chunk-wna4vqp6.js.br +0 -0
- package/web/chunk-wna4vqp6.js.gz +0 -0
- package/web/chunk-wwhq09nf.js +0 -1
- package/web/chunk-wwhq09nf.js.br +0 -0
- package/web/chunk-wwhq09nf.js.gz +0 -0
- package/web/chunk-x6va53y6.js +0 -291
- package/web/chunk-x6va53y6.js.br +0 -0
- package/web/chunk-x6va53y6.js.gz +0 -0
- package/web/chunk-xefyzr9s.js +0 -120
- package/web/chunk-xefyzr9s.js.br +0 -0
- package/web/chunk-xefyzr9s.js.gz +0 -0
- package/web/chunk-xj1w9054.js +0 -2
- package/web/chunk-xj1w9054.js.br +0 -0
- package/web/chunk-xj1w9054.js.gz +0 -0
- package/web/chunk-xtb3xhxk.js +0 -2
- package/web/chunk-xtb3xhxk.js.br +0 -2
- package/web/chunk-xtb3xhxk.js.gz +0 -0
- package/web/chunk-y1eeptks.js +0 -2
- package/web/chunk-y1eeptks.js.br +0 -0
- package/web/chunk-y1eeptks.js.gz +0 -0
- package/web/chunk-y7z6zmvp.js +0 -292
- package/web/chunk-y7z6zmvp.js.br +0 -0
- package/web/chunk-y7z6zmvp.js.gz +0 -0
- package/web/chunk-yj8tkncg.js +0 -7
- package/web/chunk-yj8tkncg.js.br +0 -0
- package/web/chunk-yj8tkncg.js.gz +0 -0
- package/web/chunk-z0m2d74w.js +0 -1
- package/web/chunk-z0m2d74w.js.br +0 -0
- package/web/chunk-z0m2d74w.js.gz +0 -0
- package/web/chunk-z30kqv40.js +0 -1
- package/web/chunk-z30kqv40.js.br +0 -0
- package/web/chunk-z30kqv40.js.gz +0 -0
- package/web/chunk-z3a96d42.js +0 -332
- package/web/chunk-z3a96d42.js.br +0 -0
- package/web/chunk-z3a96d42.js.gz +0 -0
- package/web/manifest-txf6vfbq.webmanifest +0 -35
- package/web/manifest-txf6vfbq.webmanifest.br +0 -0
- package/web/manifest-txf6vfbq.webmanifest.gz +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function Ie(e){let t=Object.values(e).filter((i)=>typeof i==="number");return Object.entries(e).filter(([i,s])=>t.indexOf(+i)===-1).map(([i,s])=>s)}function Ut(e,t="|"){return e.map((o)=>Bt(o)).join(t)}function Te(e,t){if(typeof t==="bigint")return t.toString();return t}class uo{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 Ee(e){return new uo(e)}function lo(e){return e===null||e===void 0}function Ye(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function po(e,t){let o=e/t,i=Math.round(o),s=4*Number.EPSILON*Math.max(Math.abs(o),1);if(Math.abs(o-i)<s)return 0;return o-i}function Q(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function Ae(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function ue(e){return Ae(e._zod.def)??e._zod.def.shape}function fo(e,t,o){Object.defineProperty(e,t,{get(){let i=o();return Q(this,t,i),i},enumerable:!0,configurable:!0})}function mo(e,t,o){if(t in e)Q(e,t,o);else e[t]=o}function ze(e,t,o,i){let s=ue(t);for(let u of o){let p=Object.getOwnPropertyDescriptor(s,u);if(!p.enumerable)continue;if(p.get)fo(e,u,()=>{let f=t._zod.def.shape[u];return i?i(f,u):f});else mo(e,u,i?i(p.value,u):p.value)}}function Ga(e,t){for(let o of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,o);if(!i.enumerable)continue;if(i.get)fo(e,o,()=>t[o]);else mo(e,o,i.value)}}function V(...e){let t={};for(let o of e){let i=Object.getOwnPropertyDescriptors(o);Object.assign(t,i)}return Object.defineProperties({},t)}function ho(e){return JSON.stringify(e)}function go(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Ft="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function be(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var _o=Ee(()=>{if(B.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function _e(e){if(be(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;if(typeof t!=="function")return!0;let o=t.prototype;if(be(o)===!1)return!1;if(Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)return!1;return!0}function Jt(e){if(_e(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 xo=new Set(["string","number","symbol"]);function de(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ne(e,t,o){let i=new e._zod.constr(t??e._zod.def);if(!t||o?.parent)i._zod.parent=e;return i}function v(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 Bt(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function bo(e){return Object.keys(e).filter((t)=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Qe=(()=>({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]}))(),qt={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Wa(e,t){let o=e._zod.def,i=o.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let u={};return ze(u,e,et(e,t)),ne(e,V(o,{shape:u,checks:[]}))}function et(e,t){let o=ue(e),i=[];for(let s of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(o,s)?.enumerable)throw Error(`Unrecognized key: "${String(s)}"`);if(t[s])i.push(s)}return i}function Xa(e,t){let o=e._zod.def,i=o.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let u=new Set(et(e,t)),p={};return ze(p,e,Reflect.ownKeys(ue(e)).filter((f)=>!u.has(f))),ne(e,V(o,{shape:p,checks:[]}))}function Ha(e,t){if(!_e(t))throw Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let s=ue(e);for(let u of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(s,u)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ne(e,V(e._zod.def,{shape:yo(e,t)}))}function yo(e,t){let o={};return ze(o,e,Reflect.ownKeys(ue(e))),Ga(o,t),o}function Ya(e,t){if(!_e(t))throw Error("Invalid input to safeExtend: expected a plain object");return ne(e,V(e._zod.def,{shape:yo(e,t)}))}function Qa(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 o={};ze(o,e,Reflect.ownKeys(ue(e))),ze(o,t,Reflect.ownKeys(ue(t)));let i=V(e._zod.def,{shape:o,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ne(e,i)}function vo(e,t,o,i="partial"){let u=t._zod.def.checks;if(u&&u.length>0)throw Error(`.${i}() cannot be used on object schemas containing refinements`);let f=o?new Set(et(t,o)):void 0,d={};return ze(d,t,Reflect.ownKeys(ue(t)),e&&((m,h)=>f&&!f.has(h)?m:new e({type:"optional",innerType:m}))),ne(t,V(t._zod.def,{shape:d,checks:[]}))}function eu(e,t,o){let i=o?new Set(et(t,o)):void 0,s={};return ze(s,t,Reflect.ownKeys(ue(t)),(u,p)=>i&&!i.has(p)?u:new e({type:"nonoptional",innerType:u})),ne(t,V(t._zod.def,{shape:s}))}function se(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function So(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function me(e,t){return t.map((o)=>{var i;return(i=o).path??(i.path=[]),o.path.unshift(e),o})}function Oe(e){return typeof e==="string"?e:e?.message}function Kt(e){let t=[];for(let o of e??[]){let i=o._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let s=i.maximum??i.length??i.size;if(s>=0)t.push([s,o])}return t}function tt(e,t,o){var i;for(let s=t;s<e.length;s++)(i=e[s]).schema??(i.schema=o)}function ce(e,t,o){var i;let s=e.inst?._zod?.traits;if(s?.has("$ZodType"))if(s.has("$ZodCheck"))(i=e).schema??(i.schema=e.inst);else e.schema=e.inst;let u=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,p=e.message?e.message:Oe(e.inst?._zod.def?.error?.(e))??Oe(u?.(e))??Oe(t?.error?.(e))??Oe(o.customError?.(e))??Oe(o.localeError?.(e))??"Invalid input",f={};for(let d of Object.keys(e)){if(d==="inst"||d==="schema"||d==="continue"||d==="input"||d==="__proto__")continue;f[d]=e[d]}if(f.path??(f.path=[]),f.message=p,t?.reportInput)f.input=e.input;return f}var tu=/[\uD800-\uDBFF]/;function rt(e){let t=e.length;if(!tu.test(e))return t;let o=t;for(let i=0;i<t-1;i++)if((e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320)o--,i++;return o}function ot(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function ko(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 o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}function xe(...e){let[t,o,i]=e;if(typeof t==="string")return{message:t,code:"custom",input:o,inst:i};return{...t}}function wo(e,t){for(let o in t){let i=Object.getOwnPropertyDescriptor(t,o);if(i.get)Object.defineProperty(e,o,{...i,enumerable:!1});else ru(e,o,i.value)}}function le(e,t,o,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:o}),o}function nt(e,t,o){return le(e,t,o,!1)}function Po(e,t){for(let o in e){let i=e[o];Object.defineProperty(t,o,{configurable:!0,enumerable:!0,get(){return le(this,o,i(this))},set(s){le(this,o,s)}})}return t}function ru(e,t,o){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?o:le(this,t,o.bind(this))},set(i){le(this,t,i)}})}function ou(e,t){let o=Object.getPrototypeOf(e);return t in o?void 0:o}var Lt,fe=!1,nu={configurable:!0,get(){fe=!0;return}};function P(e,t,o){let i=Object.getPrototypeOf(e._zod);if(t in i&&Lt!==e._zod){Lt=void 0;return}Lt=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,nu);let s=fe;fe=!1;try{let u=o(this);if(fe)delete this[t];else Object.defineProperty(this,t,{configurable:!0,writable:!0,value:u});return fe=fe||s,u}catch(u){throw delete this[t],fe=fe||s,u}},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s})}})}function iu(e,t,o,i){let s=ou(e,t);if(!s)return;Object.defineProperty(s,t,{configurable:!0,get(){let u={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,u),u.value=o(this),Object.defineProperty(this,t,u),u.value},set(u){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:u})}})}var su="~constantCatch";function Zo(e){let t=()=>e;return t[su]=!0,t}var Oo,un=Object.freeze({status:"aborted"}),Vt={value:void 0,enumerable:!1},Io="captureStackTrace"in Error?Error:null;function cu(e){let t=Io;if(t){let o=t.stackTraceLimit;if(typeof o==="number"){try{t.stackTraceLimit=0}catch{return Io=null,new e}try{return new e}finally{t.stackTraceLimit=o}}}return new e}function g(e,t,o,i){let s={};function u(x){this.def=x,this.constr=z,this.traits=new Set}u.prototype=s;let p=o,f=p&&new WeakSet;function d(x,_){if(!x._zod){Vt.value=new u(_);try{Object.defineProperty(x,"_zod",Vt)}finally{Vt.value=void 0}}else if(x._zod.traits.has(e))return;if(x._zod.traits.add(e),t(x,_),f){let S=Object.getPrototypeOf(x),w=x._zod.constr.prototype,Z=S;while(Z&&Z!==w)Z=Object.getPrototypeOf(Z);let Y=Z??S;if(!f.has(Y))f.add(Y),wo(Y,p)}let b=z.prototype;for(let S in b){if(!Object.prototype.hasOwnProperty.call(b,S))continue;if(!(S in x))x[S]=b[S].bind(x)}}let m=i?.Parent??Object;class h extends m{}Object.defineProperty(h,"name",{value:e});function z(x){let _=i?.Parent?cu(h):this;d(_,x);let b=_._zod.deferred;if(b){for(let w of b)w();_._zod.deferred=void 0}let S=globalThis.__zod_globalConfig?.postProcessor;if(S)S(_);return _}return Object.defineProperty(z,"init",{value:d}),Object.defineProperty(z,Symbol.hasInstance,{value:(x)=>{if(i?.Parent&&x instanceof i.Parent)return!0;return x?._zod?.traits?.has(e)}}),Object.defineProperty(z,"name",{value:e}),z}class ae extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ce extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`);this.name="ZodEncodeError"}}(Oo=globalThis).__zod_globalConfig??(Oo.__zod_globalConfig={});var B=globalThis.__zod_globalConfig;function q(e){if(e)Object.assign(B,e);return B}function au(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Te,2)),e.message}function uu(e){this._zod.message=e}var lu={get:au,set:uu,enumerable:!0,configurable:!0},Wt={value:void 0,enumerable:!1},Ro=new WeakSet([Object.prototype,Error.prototype]),To=(e,t)=>{e.name="$ZodError",Wt.value=t,Object.defineProperty(e,"issues",Wt),Wt.value=void 0,Object.defineProperty(e,"message",lu);let o=Object.getPrototypeOf(e);if(!Ro.has(o))Ro.add(o),Object.defineProperty(o,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}})},Eo=g("$ZodError",To),Ao=g("$ZodError",To,void 0,{Parent:Error});function pu(e,t,o){if(!Object.prototype.hasOwnProperty.call(e,t))if(t==="__proto__")Object.defineProperty(e,t,{value:o(),writable:!0,enumerable:!0,configurable:!0});else e[t]=o();return e[t]}function Xt(e,t=(o)=>o.message){let o={},i=[];for(let s of e.issues)if(s.path.length>0)pu(o,s.path[0],()=>[]).push(t(s));else i.push(t(s));return{formErrors:i,fieldErrors:o}}function Ht(e,t=(o)=>o.message){let o={_errors:[]},i=(s,u=[])=>{for(let p of s.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map((f)=>i({issues:f},[...u,...p.path]));else if(p.code==="invalid_key")i({issues:p.issues},[...u,...p.path]);else if(p.code==="invalid_element")i({issues:p.issues},[...u,...p.path]);else{let f=[...u,...p.path];if(f.length===0)o._errors.push(t(p));else{let d=o,m=0;while(m<f.length){let h=f[m],z=m===f.length-1;if(h==="_errors"){if(z)d._errors.push(t(p));m++;continue}if(!Object.prototype.hasOwnProperty.call(d,h))Object.defineProperty(d,h,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let x=d[h];if(z)x._errors.push(t(p));d=x,m++}}}};return i(e),o}function it(e,t){return{callee:t?.callee??e,Err:t?.Err}}var st=(e)=>{let t=(o,i,s,u)=>{let p=s?{...s,async:!1}:{async:!1},f=o._zod.run({value:i,issues:[]},p);if(f instanceof Promise)throw new ae;if(f.issues.length){let d=new(u?.Err??e)(f.issues.map((m)=>ce(m,p,q())));throw Ft(d,u?.callee??t),d}return f.value};return t};var ct=(e)=>{let t=async(o,i,s,u)=>{let p=s?{...s,async:!0}:{async:!0},f=o._zod.run({value:i,issues:[]},p);if(f instanceof Promise)f=await f;if(f.issues.length){let d=new(u?.Err??e)(f.issues.map((m)=>ce(m,p,q())));throw Ft(d,u?.callee??t),d}return f.value};return t};var Ne=(e)=>(t,o,i)=>{let s=i?{...i,async:!1}:{async:!1},u=t._zod.run({value:o,issues:[]},s);if(u instanceof Promise)throw new ae;return u.issues.length?Co(e,u.issues,s):{success:!0,data:u.value}},na=Ne(Ao);function Co(e,t,o){let i;return{success:!1,get error(){if(!i)i=new e(t.map((s)=>ce(s,o,q()))),t=void 0,o=void 0;return i},set error(s){i=s,t=void 0,o=void 0}}}var at=(e)=>async(t,o,i)=>{let s=i?{...i,async:!0}:{async:!0},u=t._zod.run({value:o,issues:[]},s);if(u instanceof Promise)u=await u;return u.issues.length?Co(e,u.issues,s):{success:!0,data:u.value}};var du=Symbol.for("zod.compile.invalid"),mu=Symbol.for("zod.compile.fallback"),Yt=(e,t,o)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==du)return!0;if(i.definite===!0&&o===void 0)return!1}return hu(e,t,o)};function hu(e,t,o){let i=o?{...o,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},s=e._zod.bag.fallbackRun,u;if(s)i[mu]=!0,u=s({value:t,issues:[]},i);else u=e._zod.run({value:t,issues:[]},i);if(u instanceof Promise)throw new ae;return u.issues.length===0}var Qt=async(e,t,o)=>{let i=o?{...o,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},s=e._zod.run({value:t,issues:[]},i);if(s instanceof Promise)s=await s;return s.issues.length===0},No=(e)=>{let t=st(e),o=(i,s,u,p)=>{let f=u?{...u,direction:"backward"}:{direction:"backward"};return t(i,s,f,it(o,p))};return o};var Do=(e)=>{let t=st(e),o=(i,s,u,p)=>t(i,s,u,it(o,p));return o};var Lo=(e)=>{let t=ct(e),o=async(i,s,u,p)=>{let f=u?{...u,direction:"backward"}:{direction:"backward"};return await t(i,s,f,it(o,p))};return o};var Mo=(e)=>{let t=ct(e),o=async(i,s,u,p)=>await t(i,s,u,it(o,p));return o};var Uo=(e)=>(t,o,i)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return Ne(e)(t,o,s)};var Fo=(e)=>(t,o,i)=>Ne(e)(t,o,i);var Jo=(e)=>async(t,o,i)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return at(e)(t,o,s)};var Bo=(e)=>async(t,o,i)=>at(e)(t,o,i);var Ko=/^[cC][0-9a-z]{6,}$/,Vo=/^[0-9a-z]+$/,Go=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Xo=/^[0-9a-vA-V]{20}$/,Yo=/^[A-Za-z0-9]{27}$/,Qo=/^[a-zA-Z0-9_-]{21}$/;function en(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var tn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var rn=/^([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})$/,tr=(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 on=/^(?:[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 gu="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function nn(){return new RegExp(gu,"u")}var sn=/^(?:(?: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])$/,cn=/^(([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 an=/^((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])$/,ln=/^(([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])$/,pn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;var dn=/^https?$/,mn=/^\+[1-9]\d{6,14}$/;var hn="(?:(?:\\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 zu(e){return new RegExp(`^${e}$`)}var gn=zu(hn);function er(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 zn(e){return new RegExp(`^${er(e)}$`)}function _n(e){let t=["Z"];if(e.offset)t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${er({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${o}|${er({precision:e.precision})}`:o;return new RegExp(`^${hn}T(?:${i})$`)}var xn=/^[\s\S]{0,}$/;var ir=/^-?\d+$/,je=/^-?\d+(?:\.\d+)?$/,bn=/^(?:true|false)$/i,yn=/^null$/i;var vn=/^[^A-Z]*$/,$n=/^[^a-z]*$/;var M=g("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])});var sr=(e)=>{let t=e.value;return!lo(t)&&t.length!==void 0},ut={number:"number",bigint:"bigint",object:"date"},cr=g("$ZodCheckLessThan",(e,t)=>{M.init(e,t);let o=ut[typeof t.value];e._zod.check=(i)=>{if(t.inclusive?i.value<=t.value:i.value<t.value)return;i.issues.push({origin:ut[typeof i.value]??o,code:"too_big",maximum:typeof t.value==="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ar=g("$ZodCheckGreaterThan",(e,t)=>{M.init(e,t);let o=ut[typeof t.value];e._zod.check=(i)=>{if(t.inclusive?i.value>=t.value:i.value>t.value)return;i.issues.push({origin:ut[typeof i.value]??o,code:"too_small",minimum:typeof t.value==="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Sn=g("$ZodCheckMultipleOf",(e,t)=>{M.init(e,t),e._zod.check=(o)=>{if(typeof o.value!==typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof o.value==="bigint"?t.value!==BigInt(0)&&o.value%t.value===BigInt(0):po(o.value,t.value)===0)return;o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),kn=g("$ZodCheckNumberFormat",(e,t)=>{M.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),i=o?"int":"number",[s,u]=Qe[t.format];e._zod.check=(p)=>{let f=p.value;if(o){if(!Number.isInteger(f)){p.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){if(f>0)p.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});else p.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}if(f<s)p.issues.push({origin:"number",input:f,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort});if(f>u)p.issues.push({origin:"number",input:f,code:"too_big",maximum:u,inclusive:!0,inst:e,continue:!t.abort})}});var wn=g("$ZodCheckMaxLength",(e,t)=>{var o;M.init(e,t),(o=e._zod.def).when??(o.when=sr),e._zod.check=(i)=>{let s=i.value,u=s.length;if((typeof s==="string"&&u>t.maximum?rt(s):u)<=t.maximum)return;let f=ot(s);i.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Pn=g("$ZodCheckMinLength",(e,t)=>{var o;M.init(e,t),(o=e._zod.def).when??(o.when=sr),e._zod.check=(i)=>{let s=i.value,u=s.length;if((typeof s==="string"&&u>=t.minimum&&u<t.minimum*2?rt(s):u)>=t.minimum)return;let f=ot(s);i.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Zn=g("$ZodCheckLengthEquals",(e,t)=>{var o;M.init(e,t),(o=e._zod.def).when??(o.when=sr),e._zod.check=(i)=>{let s=i.value,u=s.length,p=typeof s==="string"&&u>=t.length&&u<=t.length*2?rt(s):u;if(p===t.length)return;let f=ot(s),d=p>t.length;i.issues.push({origin:f,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),De=g("$ZodCheckStringFormat",(e,t)=>{var o,i;if(M.init(e,t),t.pattern)(o=e._zod).check??(o.check=(s)=>{if(t.pattern.lastIndex=0,t.pattern.test(s.value))return;s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(i=e._zod).check??(i.check=()=>{})}),On=g("$ZodCheckRegex",(e,t)=>{De.init(e,t),e._zod.check=(o)=>{if(t.pattern.lastIndex=0,t.pattern.test(o.value))return;o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),In=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vn),De.init(e,t)}),Rn=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=$n),De.init(e,t)}),Tn=g("$ZodCheckIncludes",(e,t)=>{M.init(e,t);let o=de(t.includes),i=new RegExp(typeof t.position==="number"?`^.{${t.position},}${o}`:o);t.pattern=i,e._zod.check=(s)=>{if(s.value.includes(t.includes,t.position))return;s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),En=g("$ZodCheckStartsWith",(e,t)=>{M.init(e,t);let o=new RegExp(`^${de(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.check=(i)=>{if(i.value.startsWith(t.prefix))return;i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),An=g("$ZodCheckEndsWith",(e,t)=>{M.init(e,t);let o=new RegExp(`.*${de(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.check=(i)=>{if(i.value.endsWith(t.suffix))return;i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});var Cn=g("$ZodCheckOverwrite",(e,t)=>{M.init(e,t),e._zod.check=(o)=>{o.value=t.tx(o.value)}});class ur{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 o=e.split(`
|
|
3
|
+
`).filter((u)=>u),i=Math.min(...o.map((u)=>u.length-u.trimStart().length)),s=o.map((u)=>u.slice(i)).map((u)=>" ".repeat(this.indent*2)+u);for(let u of s)this.content.push(u)}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 Dn={major:4,minor:6,patch:7};var O=g("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Dn;let i=e._zod.def.checks,s=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let u of s)for(let p of u._zod.onattach)p(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let u=(f,d,m)=>{if(f.memo)return f;let h=se(f),z;for(let x of d){if(x._zod.def.when){if(So(f))continue;if(!x._zod.def.when(f))continue}else if(h)continue;let _=f.issues.length,b=x._zod.check(f);if(b instanceof Promise&&m?.async===!1)throw new ae;if(z||b instanceof Promise)z=(z??Promise.resolve()).then(async()=>{if(await b,f.issues.length===_)return;if(tt(f.issues,_,e),!h)h=se(f,_)});else{if(f.issues.length===_)continue;if(tt(f.issues,_,e),!h)h=se(f,_)}}if(z)return z.then(()=>f);return f},p=(f,d,m)=>{if(se(f))return f.aborted=!0,f;let h=u(d,s,m);if(h instanceof Promise){if(m.async===!1)throw new ae;return h.then((z)=>e._zod.parse(z,m))}return e._zod.parse(h,m)};e._zod.run=(f,d)=>{if(d.skipChecks)return e._zod.parse(f,d);if(d.direction==="backward"){let h=e._zod.parse({value:f.value,issues:[]},{...d,skipChecks:!0});if(h instanceof Promise)return h.then((z)=>p(z,f,d));return p(h,f,d)}let m=e._zod.parse(f,d);if(m instanceof Promise){if(d.async===!1)throw new ae;return m.then((h)=>u(h,s,d))}return u(m,s,d)}}},{get "~standard"(){return nt(this,"~standard",pr(this))},set "~standard"(e){le(this,"~standard",e)}}),Xn=(e,t)=>e.issues.length?{issues:e.issues.map((o)=>ce(o,t,q()))}:{value:e.value};async function _u(e,t){let o={async:!0};return Xn(await e._zod.run({value:t,issues:[]},o),o)}function pr(e){return{validate:(t)=>{let o={async:!1};try{let i=e._zod.run({value:t,issues:[]},o);if(!(i instanceof Promise))return Xn(i,o)}catch(i){}return _u(e,t)},vendor:"zod",version:1}}var dt=g("$ZodString",(e,t)=>{O.init(e,t),e._zod.pattern=t.pattern??xn,e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=String(o.value)}catch(s){}if(typeof o.value==="string")return o;return o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),T=g("$ZodStringFormat",(e,t)=>{De.init(e,t),dt.init(e,t)}),Hn=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rn),T.init(e,t)}),Yn=g("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tr(i))}else t.pattern??(t.pattern=tr());T.init(e,t)}),Qn=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=on),T.init(e,t)}),ei=1,pt=2;function ti(e){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(e);return new URL(e),!0}catch{return!1}}function xu(e,t){if(!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t))return ti(e)||pt;return bu(e,t)}function bu(e,t){if(!t.normalize&&t.protocol?.source===dn.source&&!/^https?:\/\//i.test(e))return ei;try{if(typeof URL<"u"){let o=URL;if(typeof o.parse==="function")return o.parse(e)??pt}return new URL(e)}catch{return pt}}var yu=/[\t\n\r]/g;function Ln(e){return e.replace(yu,"")}function vu(e,t){return t.lastIndex=0,t.test(e.hostname)}function $u(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var ri=g("$ZodURL",(e,t)=>{T.init(e,t),e._zod.check=(o)=>{try{let i=o.value.trim(),s=xu(i,t);if(s===ei){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!t.abort});return}if(s===pt){o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort});return}if(s===!0){o.value=Ln(i);return}if(t.hostname&&!vu(s,t.hostname))o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort});if(t.protocol&&!$u(s,t.protocol))o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort});o.value=t.normalize?s.href:Ln(i);return}catch(i){o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),oi=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=nn()),T.init(e,t)}),ni=g("$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?Qo:en(t.length)),T.init(e,t)}),ii=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ko),T.init(e,t)}),si=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Vo),T.init(e,t)}),ci=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Go),T.init(e,t)}),ai=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Xo),T.init(e,t)}),ui=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Yo),T.init(e,t)}),li=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_n(t)),T.init(e,t)}),pi=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=gn),T.init(e,t)}),fi=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=zn(t)),T.init(e,t)}),di=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tn),T.init(e,t)}),mi=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=sn),T.init(e,t)}),Su=/^[0-9a-fA-F:.]+$/;function hi(e){if(!Su.test(e))return!1;return ti(`http://[${e}]`)}var gi=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=cn),T.init(e,t),e._zod.check=(o)=>{if(!hi(o.value))o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}});var zi=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=an),T.init(e,t)});function ku(e){let t=e.split("/");if(t.length!==2)return!1;let[o,i]=t;if(!i)return!1;let s=Number(i);if(`${s}`!==i)return!1;if(s<0||s>128)return!1;return hi(o)}var _i=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ln),T.init(e,t),e._zod.check=(o)=>{if(!ku(o.value))o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}});function xi(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 dr=/^[0-9a-zA-Z+/]*={0,2}$/,bi=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=dr),T.init(e,t),e._zod.check=(o)=>{if(xi(o.value))return;o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}}),mt=/^[A-Za-z0-9_-]*$/;function wu(e){if(!mt.test(e))return!1;let t=e.replace(/[-_]/g,(i)=>i==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return xi(o)}var yi=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=mt),T.init(e,t),e._zod.check=(o)=>{if(wu(o.value))return;o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),vi=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=mn),T.init(e,t)});function Pu(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[i]=o;if(!i)return!1;let s=JSON.parse(atob(i));if("typ"in s&&s?.typ!=="JWT")return!1;if(!s.alg)return!1;if(t&&(!("alg"in s)||s.alg!==t))return!1;return!0}catch{return!1}}var $i=g("$ZodJWT",(e,t)=>{T.init(e,t),e._zod.check=(o)=>{if(Pu(o.value,t.alg))return;o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}});var mr=g("$ZodNumber",(e,t)=>{O.init(e,t),e._zod.pattern=je,e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=Number(o.value)}catch(p){}let s=o.value;if(typeof s==="number"&&!Number.isNaN(s)&&Number.isFinite(s))return o;let u=typeof s==="number"?Number.isNaN(s)?"NaN":!Number.isFinite(s)?String(s):void 0:void 0;return o.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...u?{received:u}:{}}),o}}),Si=g("$ZodNumberFormat",(e,t)=>{kn.init(e,t),mr.init(e,t)}),ki=g("$ZodBoolean",(e,t)=>{O.init(e,t),e._zod.pattern=bn,e._zod.parse=(o,i)=>{if(t.coerce)try{o.value=Boolean(o.value)}catch(u){}let s=o.value;if(typeof s==="boolean")return o;return o.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),o}});var wi=g("$ZodNull",(e,t)=>{O.init(e,t),e._zod.pattern=yn,e._zod.values=new Set([null]),e._zod.parse=(o,i)=>{let s=o.value;if(s===null)return o;return o.issues.push({expected:"null",code:"invalid_type",input:s,inst:e}),o}}),Pi=g("$ZodAny",(e,t)=>{O.init(e,t),e._zod.parse=(o)=>o}),Zi=g("$ZodUnknown",(e,t)=>{O.init(e,t),e._zod.parse=(o)=>o}),Oi=g("$ZodNever",(e,t)=>{O.init(e,t),e._zod.parse=(o,i)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)});function Zu(e,t){let o=Kt(e._zod.def.checks);if(!o.length)return;let i=Math.min(...o.map((u)=>u[0])),s=e._zod.parse;e._zod.parse=(u,p)=>{let f=t(u.value);if(f>i&&!p?.skipChecks&&p?.direction!=="backward"){for(let[d,m]of Kt(e._zod.def.checks))if(f>d&&m._zod.def.when(u)){let h=u.issues.length;return m._zod.check(u),u.issues[h].continue=!1,tt(u.issues,h,e),u}}return s(u,p)}}var Ou=(e)=>Array.isArray(e)?e.length:-1;function Mn(e,t,o){if(e.issues.length)t.issues.push(...me(o,e.issues));t.value[o]=e.value}var Ii=g("$ZodArray",(e,t)=>{O.init(e,t);let o=B.memoizer;o?.attach(e),e._zod.parse=(i,s)=>{let u=i.value;if(!Array.isArray(u))return i.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),i;i.value=o?o.alloc(e,i,Array(u.length),s):Array(u.length);let p=[],f=s?.abortEarly;for(let d=0;d<u.length;d++){let m=u[d],h=t.element._zod.run({value:m,issues:[]},s);if(h instanceof Promise)p.push(h.then((z)=>Mn(z,i,d)));else if(Mn(h,i,d),f&&h.issues.length!==0&&se(h))break}if(p.length)return Promise.all(p).then(()=>i);return i},Zu(e,Ou)});function ft(e,t,o,i,s,u){let p=o in i,f=u==="optional";if(!p&&f&&s==="optional")return;if(e.issues.length){if(s!==void 0&&f&&!p)return;t.issues.push(...me(o,e.issues))}if(!p&&s===void 0){if(!e.issues.length)t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}if(e.value===void 0){if(p||s==="defaulted"&&!f)t.value[o]=void 0}else t.value[o]=e.value}var Iu=[];function Ri(e){let t=Object.keys(e.shape),o=Object.getOwnPropertySymbols(e.shape),i=o.length?o:Iu,s=i.length?[...t,...i]:t;for(let p of s)if(!e.shape?.[p]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(p)}": expected a Zod schema`);let u=bo(e.shape);return{...e,allKeys:s,symbolKeys:i,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(u)}}function Ti(e,t,o,i,s,u,p){let f=[],d=s.keySet,m=s.catchall._zod,h=m.def.type,{optin:z,optout:x}=m,_=0;for(let b in t){if(p&&o.issues.length!==_){if(se(o,_))break;_=o.issues.length}if(d.has(b))continue;if(b==="__proto__"){if(h==="never")f.push(b);continue}if(h==="never"){f.push(b);continue}let S=m.run({value:t[b],issues:[]},i);if(S instanceof Promise)e.push(S.then((w)=>ft(w,o,b,t,z,x)));else ft(S,o,b,t,z,x)}if(f.length)o.issues.push({code:"unrecognized_keys",keys:f,input:t,inst:u,continue:!0});if(!e.length)return o;return Promise.all(e).then(()=>o)}var Ru=g("$ZodObject",(e,t)=>{O.init(e,t);let o=Object.getOwnPropertyDescriptor(t,"shape"),i=o?.get?o.get.raw:t.shape??{};if(i){let m=()=>{let h={...i};return Object.defineProperty(t,"shape",{value:h}),m.raw=h,h};m.raw=i,Object.defineProperty(t,"shape",{get:m})}let s=Ee(()=>Ri(t));P(e,"propValues",(m)=>{let h=m.def.shape,z={};for(let x in h){let _=h[x]._zod;if(_.values){if(!Object.prototype.hasOwnProperty.call(z,x))Q(z,x,new Set);for(let b of _.values)z[x].add(b);if(_.optin!==void 0)z[x].add(void 0)}}return z});let u=be,p=t.catchall,f,d=B.memoizer;d?.attach(e),e._zod.parse=(m,h)=>{f??(f=s.value);let z=m.value;if(!u(z))return m.issues.push({expected:"object",code:"invalid_type",input:z,inst:e}),m;m.value=d?d.alloc(e,m,{},h):{};let x=[],_=f.shape,b=h?.abortEarly,S=m.issues.length;for(let w of f.allKeys){if(b&&m.issues.length!==S){if(se(m,S))break;S=m.issues.length}if(w==="__proto__")continue;let Z=_[w],Y=Z._zod.optin,Pe=Z._zod.optout,Ze=Z._zod.run({value:z[w],issues:[]},h);if(Ze instanceof Promise)x.push(Ze.then((j)=>ft(j,m,w,z,Y,Pe)));else ft(Ze,m,w,z,Y,Pe)}if(!p)return x.length?Promise.all(x).then(()=>m):m;return Ti(x,z,m,h,s.value,e,b===!0)}}),Ei=g("$ZodObjectJIT",(e,t)=>{Ru.init(e,t);let o=e._zod.parse,i=Ee(()=>Ri(t)),s=B.memoizer,u=(_)=>{let b=i.value,S=b.symbolKeys,w=new ur(["payload","ctx"],{shape:_,inst:e,memo:s,syms:S}),Z=(j)=>`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`,Y=(j,I)=>`
|
|
7
|
+
let ${j}_ab = false;
|
|
8
|
+
for (let i = 0; i < ${j}.issues.length; i++) {
|
|
9
|
+
const iss = ${j}.issues[i];
|
|
10
|
+
iss.path = iss.path ? [${I}, ...iss.path] : [${I}];
|
|
11
|
+
payload.issues.push(iss);
|
|
12
|
+
if (iss.continue !== true) ${j}_ab = true;
|
|
13
|
+
}
|
|
14
|
+
if (${j}_ab && ctx && ctx.abortEarly) {
|
|
15
|
+
payload.value = newResult;
|
|
16
|
+
return payload;
|
|
17
|
+
}`;w.write("const input = payload.value;");let Pe=Object.create(null),Ze=0;for(let j of b.allKeys)Pe[j]=`key_${Ze++}`;w.write(s?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let j of b.allKeys){if(j==="__proto__")continue;let I=Pe[j],ie=typeof j==="symbol"?`syms[${S.indexOf(j)}]`:ho(j),jt=`${ie} in input`,co=_[j],Dt=co?._zod?.optin,ao=Dt!==void 0,Ka=co?._zod?.optout==="optional";if(w.write(`const ${I} = ${Z(ie)};`),ao&&Ka){let Va=Dt==="optional"?`${I}_present`:`${I}.value !== undefined || ${I}_present`;w.write(`
|
|
18
|
+
const ${I}_present = ${jt};
|
|
19
|
+
if (!${I}.issues.length || ${I}_present) {
|
|
20
|
+
if (${I}.issues.length) {${Y(I,ie)}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (${Va}) {
|
|
24
|
+
newResult[${ie}] = ${I}.value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
`)}else if(!ao)w.write(`
|
|
29
|
+
const ${I}_present = ${jt};
|
|
30
|
+
if (${I}.issues.length) {${Y(I,ie)}
|
|
31
|
+
}
|
|
32
|
+
if (!${I}_present && !${I}.issues.length) {
|
|
33
|
+
payload.issues.push({
|
|
34
|
+
code: "invalid_type",
|
|
35
|
+
expected: "nonoptional",
|
|
36
|
+
input: undefined,
|
|
37
|
+
path: [${ie}]
|
|
38
|
+
});
|
|
39
|
+
if (ctx && ctx.abortEarly) {
|
|
40
|
+
payload.value = newResult;
|
|
41
|
+
return payload;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (${I}_present) {
|
|
46
|
+
newResult[${ie}] = ${I}.value;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
`);else if(w.write(`
|
|
50
|
+
if (${I}.issues.length) {${Y(I,ie)}
|
|
51
|
+
}
|
|
52
|
+
`),Dt==="defaulted")w.write(`newResult[${ie}] = ${I}.value;`);else w.write(`
|
|
53
|
+
if (${I}.value !== undefined || ${jt}) {
|
|
54
|
+
newResult[${ie}] = ${I}.value;
|
|
55
|
+
}
|
|
56
|
+
`)}return w.write("payload.value = newResult;"),w.write("return payload;"),w.compile()},p,f=be,d=!B.jitless,h=d&&_o.value,z=t.catchall,x;e._zod.parse=(_,b)=>{x??(x=i.value);let S=_.value;if(!f(S))return _.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),_;if(d&&h&&b?.async===!1&&b.jitless!==!0){if(!p)p=u(t.shape);if(_=p(_,b),!z)return _;return Ti([],S,_,b,x,e,b?.abortEarly===!0)}return o(_,b)}});function Un(e,t,o,i){for(let u of e)if(u.issues.length===0)return t.value=u.value,t;let s=e.filter((u)=>!se(u));if(s.length===1)return t.value=s[0].value,s[0];return t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map((u)=>u.issues.map((p)=>ce(p,i,q())))}),t}var hr=g("$ZodUnion",(e,t)=>{O.init(e,t),P(e,"optin",(i)=>i.def.options.some((s)=>s._zod.optin==="defaulted")?"defaulted":i.def.options.some((s)=>s._zod.optin!==void 0)?"optional":void 0),P(e,"optout",(i)=>i.def.options.some((s)=>s._zod.optout==="optional")?"optional":void 0),P(e,"values",(i)=>{if(i.def.options.every((s)=>s._zod.values))return new Set(i.def.options.flatMap((s)=>Array.from(s._zod.values)));return}),P(e,"pattern",(i)=>{if(i.def.options.every((s)=>s._zod.pattern)){let s=i.def.options.map((u)=>u._zod.pattern);return new RegExp(`^(${s.map((u)=>Ye(u.source)).join("|")})$`)}return});let o=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,s)=>{if(o)return o(i,s);let u=!1,p=[];for(let f of t.options){let d=f._zod.run({value:i.value,issues:[]},s);if(d instanceof Promise)p.push(d),u=!0;else{if(d.issues.length===0)return d;p.push(d)}}if(!u)return Un(p,i,e,s);return Promise.all(p).then((f)=>Un(f,i,e,s))}});function Tu(e){let t=new Map;for(let o of e.options){let i=o._zod.propValues?.[e.discriminator];if(!i||i.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let s of i)if(t.has(s)){if(s!==void 0)throw Error(`Duplicate discriminator value "${String(s)}"`);t.set(s,null)}else t.set(s,o)}return t}var Ai=g("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,hr.init(e,t);let o=e._zod.parse;P(e,"propValues",(s)=>{let u={},p=0;for(let f of s.def.options){let d=f._zod.propValues;if(!d||Object.keys(d).length===0)throw Error(`Invalid discriminated union option at index "${s.def.options.indexOf(f)}"`);if(d[s.def.discriminator]?.has(void 0))p++;for(let[m,h]of Object.entries(d)){if(!Object.prototype.hasOwnProperty.call(u,m))Q(u,m,new Set);for(let z of h)u[m].add(z)}}if(!s.def.unionFallback&&p>1)u[s.def.discriminator]?.delete(void 0);return u}),t.options.forEach((s,u)=>{let p=Ae(s._zod.def);if(p&&!Object.prototype.hasOwnProperty.call(p,t.discriminator))throw Error(`Invalid discriminated union option at index "${u}"`)});let i=Ee(()=>Tu(t));e._zod.parse=(s,u)=>{let p=s.value;if(!be(p))return s.issues.push({code:"invalid_type",expected:"object",input:p,inst:e}),s;let f=p?.[t.discriminator],d=i.value.get(f);if(d&&(f!==void 0||u.direction!=="backward"))return d._zod.run(s,u);if(t.unionFallback||u.direction==="backward")return o(s,u);return s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()).filter((m)=>i.value.get(m)!==null),input:p,path:[t.discriminator],inst:e}),s}}),Ci=g("$ZodIntersection",(e,t)=>{O.init(e,t),e._zod.parse=(o,i)=>{let s=o.value,u=t.left._zod.run({value:s,issues:[]},i),p=t.right._zod.run({value:s,issues:[]},i);if(u instanceof Promise||p instanceof Promise)return Promise.all([u,p]).then(([d,m])=>Fn(o,d,m));return Fn(o,u,p)}});function lr(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(_e(e)&&_e(t)){let o=Object.keys(t),i=Object.keys(e).filter((u)=>o.indexOf(u)!==-1),s={...e,...t};if(Object.prototype.hasOwnProperty.call(s,"__proto__"))delete s.__proto__;for(let u of i){if(u==="__proto__")continue;let p=lr(e[u],t[u]);if(!p.valid)return{valid:!1,mergeErrorPath:[u,...p.mergeErrorPath]};s[u]=p.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let o=[];for(let i=0;i<e.length;i++){let s=e[i],u=t[i],p=lr(s,u);if(!p.valid)return{valid:!1,mergeErrorPath:[i,...p.mergeErrorPath]};o.push(p.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function Fn(e,t,o){let i=new Map,s,u=new Map,p=(m,h)=>{let z;if(m.code==="unrecognized_keys"&&!m.path?.length)s??(s=m),z=m.keys;else if(m.code==="invalid_key"&&m.origin==="record"&&m.path?.length===1){let x=String(m.path[0]);if(!u.has(x))u.set(x,m);z=[x]}else return!1;for(let x of z){if(!i.has(x))i.set(x,{});i.get(x)[h]=!0}return!0};for(let m of t.issues)if(!p(m,"l"))e.issues.push(m);for(let m of o.issues)if(!p(m,"r"))e.issues.push(m);let f=[...i].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(f.length){let m=s?f.filter((h)=>s.keys.includes(h)):[];if(m.length)e.issues.push({...s,keys:m});for(let h of f)if(!m.includes(h)&&u.has(h))e.issues.push(u.get(h))}let d=lr(t.value,o.value);if(!d.valid){if(se(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`)}return e.value=d.data,e}var Ni=g("$ZodRecord",(e,t)=>{O.init(e,t);let o=B.memoizer;o?.attach(e),e._zod.parse=(i,s)=>{let u=i.value;if(!_e(u))return i.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),i;let p=[],f=t.keyType._zod.values;if(f&&!t.partial){i.value=o?o.alloc(e,i,{},s):{};let d=new Set;for(let h of f)if(typeof h==="string"||typeof h==="number"||typeof h==="symbol"){if(d.add(typeof h==="number"?h.toString():h),h==="__proto__")continue;let z=t.keyType._zod.run({value:h,issues:[]},s);if(z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(z.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:z.issues.map((b)=>ce(b,s,q())),input:h,path:[h],inst:e});continue}let x=z.value;if(x==="__proto__")continue;let _=t.valueType._zod.run({value:u[h],issues:[]},s);if(_ instanceof Promise)p.push(_.then((b)=>{if(b.issues.length)i.issues.push(...me(h,b.issues));i.value[x]=b.value}));else{if(_.issues.length)i.issues.push(...me(h,_.issues));i.value[x]=_.value}}let m;for(let h in u)if(!d.has(h))if(t.mode==="loose"){if(h==="__proto__")continue;i.value[h]=u[h]}else m=m??[],m.push(h);if(m&&m.length>0)i.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:m,continue:!0})}else{i.value=o?o.alloc(e,i,{},s):{};let d;for(let m of Reflect.ownKeys(u)){if(m==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(u,m))continue;let h=t.keyType._zod.run({value:m,issues:[]},s);if(h instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof m==="string"&&je.test(m)&&h.issues.length){let b=t.keyType._zod.run({value:Number(m),issues:[]},s);if(b instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(b.issues.length===0)h=b}if(h.issues.length){if(t.mode==="loose")i.value[m]=u[m];else if(f)d=d??[],d.push(m);else i.issues.push({code:"invalid_key",origin:"record",issues:h.issues.map((b)=>ce(b,s,q())),input:m,path:[m],inst:e});continue}let x=h.value;if(x==="__proto__")continue;let _=t.valueType._zod.run({value:u[m],issues:[]},s);if(_ instanceof Promise)p.push(_.then((b)=>{if(b.issues.length)i.issues.push(...me(m,b.issues));i.value[x]=b.value}));else{if(_.issues.length)i.issues.push(...me(m,_.issues));i.value[x]=_.value}}if(d&&d.length>0)i.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:d,continue:!0})}if(p.length)return Promise.all(p).then(()=>i);return i}});var ji=g("$ZodEnum",(e,t)=>{O.init(e,t);let o=Ie(t.entries),i=new Set(o);e._zod.values=i,P(e,"pattern",(s)=>{let u=Ie(s.def.entries).filter((p)=>xo.has(typeof p));return new RegExp(u.length?`^(${u.map((p)=>de(p.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(s,u)=>{let p=s.value;if(i.has(p))return s;return s.issues.push({code:"invalid_value",values:o,input:p,inst:e}),s}}),Di=g("$ZodLiteral",(e,t)=>{O.init(e,t);let o=new Set(t.values);e._zod.values=o,P(e,"pattern",(i)=>{let s=i.def.values;return new RegExp(s.length?`^(${s.map((u)=>typeof u==="string"?de(u):u?de(u.toString()):String(u)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,s)=>{let u=i.value;if(o.has(u))return i;return i.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),i}});var Li=g("$ZodTransform",(e,t)=>{O.init(e,t),e._zod.optin="optional",B.memoizer?.guard(e),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Ce(e.constructor.name);let s=t.transform(o.value,o);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then((p)=>(o.value=p,o));if(s instanceof Promise)throw new ae;return o.value=s,o}});function Jn(e,t){return e.value=t.issues.length?void 0:t.value,e}var zr=g("$ZodOptional",(e,t)=>{O.init(e,t),P(e,"optin",(o)=>o.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",P(e,"values",(o)=>{let i=o.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),P(e,"pattern",(o)=>{let i=o.def.innerType._zod.pattern;return i?new RegExp(`^(${Ye(i.source)})?$`):void 0}),e._zod.parse=(o,i)=>{if(o.value===void 0){if(t.innerType._zod.optin!=="defaulted")return o;let s=t.innerType._zod.run({value:o.value,issues:[]},i);if(s instanceof Promise)return s.then((u)=>Jn(o,u));return Jn(o,s)}return t.innerType._zod.run(o,i)}}),Mi=g("$ZodExactOptional",(e,t)=>{zr.init(e,t),P(e,"values",(o)=>o.def.innerType._zod.values),P(e,"pattern",(o)=>o.def.innerType._zod.pattern),e._zod.parse=(o,i)=>t.innerType._zod.run(o,i)}),Ui=g("$ZodNullable",(e,t)=>{O.init(e,t),P(e,"optin",(o)=>o.def.innerType._zod.optin),P(e,"optout",(o)=>o.def.innerType._zod.optout),P(e,"pattern",(o)=>{let i=o.def.innerType._zod.pattern;return i?new RegExp(`^(${Ye(i.source)}|null)$`):void 0}),P(e,"values",(o)=>o.def.innerType._zod.values?new Set([...o.def.innerType._zod.values,null]):void 0),e._zod.parse=(o,i)=>{if(o.value===null)return o;return t.innerType._zod.run(o,i)}}),Fi=g("$ZodDefault",(e,t)=>{O.init(e,t),e._zod.optin="defaulted",P(e,"values",(o)=>o.def.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);if(o.value===void 0)return o.value=t.defaultValue,o;let s=t.innerType._zod.run(o,i);if(s instanceof Promise)return s.then((u)=>Bn(u,t));return Bn(s,t)}});function Bn(e,t){if(e.value===void 0)e.value=t.defaultValue;return e}var Ji=g("$ZodPrefault",(e,t)=>{O.init(e,t),e._zod.optin="defaulted",P(e,"values",(o)=>o.def.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);if(o.value===void 0)o.value=t.defaultValue;return t.innerType._zod.run(o,i)}}),Bi=g("$ZodNonOptional",(e,t)=>{O.init(e,t),P(e,"values",(o)=>{let i=o.def.innerType._zod.values;return i?new Set([...i].filter((s)=>s!==void 0)):void 0}),e._zod.parse=(o,i)=>{let s=t.innerType._zod.run(o,i);if(s instanceof Promise)return s.then((u)=>qn(u,e));return qn(s,e)}});function qn(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 Kn(e,t,o,i){if(!t.issues.length){if(e.value=t.value,t.memo)e.memo=!0;return e}return e.value=o.catchValue({...t,value:e.value,error:{issues:t.issues.map((s)=>ce(s,i,q()))},input:e.value}),e}var qi=g("$ZodCatch",(e,t)=>{O.init(e,t),P(e,"optin",(o)=>o.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),P(e,"optout",(o)=>o.def.innerType._zod.optout),P(e,"values",(o)=>o.def.innerType._zod.values),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);let s=t.innerType._zod.run({value:o.value,issues:[]},i);if(s instanceof Promise)return s.then((u)=>Kn(o,u,t,i));return Kn(o,s,t,i)}});var _r=g("$ZodPipe",(e,t)=>{O.init(e,t),P(e,"values",(o)=>o.def.in._zod.values),P(e,"optin",(o)=>o.def.in._zod.optin),P(e,"optout",(o)=>o.def.out._zod.optout),P(e,"propValues",(o)=>o.def.in._zod.propValues),e._zod.parse=(o,i)=>{if(i.direction==="backward"){let u=t.out._zod.run(o,i);if(u instanceof Promise)return u.then((p)=>lt(p,t.in,i));return lt(u,t.in,i)}let s=t.in._zod.run(o,i);if(s instanceof Promise)return s.then((u)=>lt(u,t.out,i));return lt(s,t.out,i)}});function lt(e,t,o){if(e.issues.some((i)=>i.code!=="unrecognized_keys"))return e.aborted=!0,e;return t._zod.run({value:e.value,issues:e.issues},o)}var Ki=g("$ZodPreprocess",(e,t)=>{_r.init(e,t)}),Vi=g("$ZodReadonly",(e,t)=>{O.init(e,t),P(e,"propValues",(o)=>o.def.innerType._zod.propValues),P(e,"values",(o)=>o.def.innerType._zod.values),P(e,"optin",(o)=>o.def.innerType?._zod?.optin),P(e,"optout",(o)=>o.def.innerType?._zod?.optout),e._zod.parse=(o,i)=>{if(i.direction==="backward")return t.innerType._zod.run(o,i);let s=t.innerType._zod.run(o,i);if(s instanceof Promise)return s.then(Vn);return Vn(s)}});function Vn(e){if(!e.memo)e.value=Object.freeze(e.value);return e}var Gi=g("$ZodCustom",(e,t)=>{M.init(e,t),O.init(e,t),e._zod.parse=(o,i)=>o,e._zod.check=(o)=>{let i=o.value,s=t.fn(i);if(s instanceof Promise)return s.then((u)=>Gn(u,o,i,e));Gn(s,o,i,e);return}});function Gn(e,t,o,i){if(!e){let s={code:"custom",input:o,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};if(i._zod.def.params)s.params=i._zod.def.params;t.issues.push(xe(s))}}class Xi extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}}var br="~memo",Wi=[];function Hi(e){return e!==null&&typeof e==="object"}function xr(e){return e.map((t)=>t.path?{...t,path:t.path.slice()}:{...t})}var Yi=new WeakMap,Le=0,zt=1,Me=2;function _t(e,t,o){let i=Yi.get(e);if(i!==void 0)return i?Me:Le;if(t.has(e))return Me;t.add(e);let s=Le,u=(h)=>{if(s!==Me&&h?._zod){let z=_t(h,t,o);if(z>s)s=z}},p=(h,z)=>{let x=Le;for(let _ of Reflect.ownKeys(h)){let b=Object.getOwnPropertyDescriptor(h,_);if(z&&!b.enumerable)continue;let S=b.get?zt:b.value?._zod?_t(b.value,t,o):Le;if(S>x)x=S}return x},f=(h)=>{if(h>s)s=h},d=e._zod.def,m=d.type;switch(m){case"object":{let h=Ae(d);f(h?p(h,!0):zt),u(d.catchall);break}case"array":u(d.element);break;case"tuple":for(let h of d.items)u(h);u(d.rest);break;case"record":case"map":u(d.keyType),u(d.valueType);break;case"set":u(d.valueType);break;case"union":for(let h of d.options)u(h);break;case"intersection":u(d.left),u(d.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":u(d.innerType);break;case"pipe":u(d.in),u(d.out);break;case"function":u(d.input),u(d.output);break;case"lazy":{let h=d._cachedInner??(o?e._zod.innerType:void 0);f(h?_t(h,t,!1):zt);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 h in d){let z=Object.getOwnPropertyDescriptor(d,h);if(!z||z.get)continue;let x=z.value;if(!x||typeof x!=="object")continue;if(x._zod)u(x);else if(Array.isArray(x))for(let _ of x)u(_)}}return t.delete(e),Eu(e,s)}function Eu(e,t){if(t!==zt)Yi.set(e,t===Me);return t}function Au(e,t){let o=e.buckets.get(t);if(!o)o=new WeakMap,e.buckets.set(t,o);return o}var ht,gt=[],Cu={alloc(e,t,o){let i=ht;if(!i)return o;ht=void 0;let s={value:o,issues:null};return i.set(t.value,s),gt.push(s),o},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let o=e._zod.parse,i=(s,u)=>{if(u.direction!=="backward"&&Nu(u,s.value))throw new Xi;return o(s,u)};if(e._zod.parse=i,e._zod.run===o)e._zod.run=i})},attach(e){var t;let o,i=!1,s,u;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let p=e._zod.parse,f=(d,m)=>{if(o===void 0){let Z=_t(e,new Set,!1);if(Z===Le){if(e._zod.parse=p,e._zod.run===f)e._zod.run=p;return p(d,m)}if(Z===Me||i)o=!0;else i=!0}let h=d.value;if(!Hi(h))return p(d,m);let z=m[br];if(!z)z={buckets:new WeakMap,backEdges:void 0},m[br]=z;let x;if(s===m)x=u;else x=Au(z,e),s=m,u=x;let _=x.get(h);if(_){if(d.value=_.value,_.issues){if(_.issues.length)d.issues.push(...xr(_.issues))}else d.memo=!0,z.backEdges??(z.backEdges=new WeakSet),z.backEdges.add(_.value);return d}ht=x;let b=gt.length,S=p(d,m);ht=void 0;let w=gt.length>b?gt.pop():void 0;if(S instanceof Promise)return S.then((Z)=>{if(w)w.issues=Z.issues.length?xr(Z.issues):Wi;return Z});if(w)w.issues=S.issues.length?xr(S.issues):Wi;return S};if(e._zod.parse=f,e._zod.run===p)e._zod.run=f})}};function yr(){return Cu}function Nu(e,t){let o=e[br]?.backEdges;return o!==void 0&&Hi(t)&&o.has(t)}var ju=()=>{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(u){return e[u]??null}let o={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"},i={nan:"NaN"};function s(u,p){if(u==="number"&&typeof p==="number"&&!Number.isFinite(p))return String(p);return i[u]??u}return(u)=>{switch(u.code){case"invalid_type":{let p=s(u.expected),f=ko(u.input),d=s(f,u.input);return`Invalid input: expected ${p}, received ${d}`}case"invalid_value":if(u.values.length===1)return`Invalid input: expected ${Bt(u.values[0])}`;return`Invalid option: expected one of ${Ut(u.values,"|")}`;case"too_big":{let p=u.exact?"exactly ":u.inclusive?"<=":"<",f=t(u.origin);if(f)return`Too big: expected ${u.origin??"value"} to have ${p}${u.maximum.toString()} ${f.unit??"elements"}`;return`Too big: expected ${u.origin??"value"} to be ${p}${u.maximum.toString()}`}case"too_small":{let p=u.exact?"exactly ":u.inclusive?">=":">",f=t(u.origin);if(f)return`Too small: expected ${u.origin} to have ${p}${u.minimum.toString()} ${f.unit}`;return`Too small: expected ${u.origin} to be ${p}${u.minimum.toString()}`}case"invalid_format":{let p=u;if(p.format==="starts_with")return`Invalid string: must start with "${p.prefix}"`;if(p.format==="ends_with")return`Invalid string: must end with "${p.suffix}"`;if(p.format==="includes")return`Invalid string: must include "${p.includes}"`;if(p.format==="regex")return`Invalid string: must match pattern ${p.pattern}`;return`Invalid ${o[p.format]??u.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${u.divisor}`;case"unrecognized_keys":return`Unrecognized key${u.keys.length>1?"s":""}: ${Ut(u.keys,", ")}`;case"invalid_key":return`Invalid key in ${u.origin}`;case"invalid_union":if(u.options&&Array.isArray(u.options)&&u.options.length>0)return`Invalid discriminator value. Expected ${u.options.map((f)=>`'${f}'`).join(" | ")}`;if(u.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${u.origin}`;default:return"Invalid input"}}};function vr(){return{localeError:ju()}}var Qi;class es{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let o=t[0];if(this._map.set(e,o),o&&typeof o==="object"&&"id"in o)this._idmap.set(o.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 o={...this.get(t)??{}};delete o.id;let i={...o,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function fs(){return new es}(Qi=globalThis).__zod_globalRegistry??(Qi.__zod_globalRegistry=fs());var he=globalThis.__zod_globalRegistry;function $r(e){if(e.checks)e.checks=[...e.checks];return e}function ms(e,t){return new e($r({type:"string",...v(t)}))}function hs(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...v(t)})}function gs(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...v(t)})}function zs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...v(t)})}function _s(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...v(t)})}function xs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...v(t)})}function bs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...v(t)})}function Sr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...v(t)})}function ys(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...v(t)})}function vs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...v(t)})}function $s(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...v(t)})}function Ss(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...v(t)})}function ks(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...v(t)})}function ws(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...v(t)})}function Ps(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...v(t)})}function Zs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...v(t)})}function Os(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...v(t)})}function Is(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...v(t)})}function Rs(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...v(t)})}function Ts(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...v(t)})}function Es(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...v(t)})}function As(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...v(t)})}function Cs(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...v(t)})}function xt(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...v(t)})}function kr(e,t){return new e({type:"string",format:"date",check:"string_format",...v(t)})}function wr(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...v(t)})}function Pr(e,t){return new e({type:"string",format:"duration",check:"string_format",...v(t)})}function Ns(e,t){return new e($r({type:"number",checks:[],...v(t)}))}function kc(e,t){return new e($r({type:"number",coerce:!0,checks:[],...v(t)}))}function js(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...v(t)})}function Ds(e,t){return new e({type:"boolean",...v(t)})}function Ls(e,t){return new e({type:"null",...v(t)})}function Ms(e){return new e({type:"any"})}function Us(e){return new e({type:"unknown"})}function Fs(e,t){return new e({type:"never",...v(t)})}function bt(e,t){return new cr({check:"less_than",...v(t),value:e,inclusive:!1})}function Ue(e,t){return new cr({check:"less_than",...v(t),value:e,inclusive:!0})}function yt(e,t){return new ar({check:"greater_than",...v(t),value:e,inclusive:!1})}function Fe(e,t){return new ar({check:"greater_than",...v(t),value:e,inclusive:!0})}function vt(e,t){return new Sn({check:"multiple_of",...v(t),value:e})}function $t(e,t){return new wn({check:"max_length",...v(t),maximum:e})}function ve(e,t){return new Pn({check:"min_length",...v(t),minimum:e})}function St(e,t){return new Zn({check:"length_equals",...v(t),length:e})}function Zr(e,t){return new On({check:"string_format",format:"regex",...v(t),pattern:e})}function Or(e){return new In({check:"string_format",format:"lowercase",...v(e)})}function Ir(e){return new Rn({check:"string_format",format:"uppercase",...v(e)})}function Rr(e,t){return new Tn({check:"string_format",format:"includes",...v(t),includes:e})}function Tr(e,t){return new En({check:"string_format",format:"starts_with",...v(t),prefix:e})}function Er(e,t){return new An({check:"string_format",format:"ends_with",...v(t),suffix:e})}function ge(e){return new Cn({check:"overwrite",tx:e})}function Ar(e){return ge((t)=>t.normalize(e))}function Cr(){return ge((e)=>e.trim())}function Nr(){return ge((e)=>e.toLowerCase())}function jr(){return ge((e)=>e.toUpperCase())}function Dr(){return ge((e)=>go(e))}function Js(e,t,o){return new e({type:"array",element:t,...v(o)})}function Bs(e,t,o){let i=v(o);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function qs(e,t,o){return new e({type:"custom",check:"custom",fn:t,...v(o)})}function Ks(e,t){let o=Du((i)=>(i.addIssue=(s)=>{if(typeof s==="string")i.issues.push(xe(s,i.value,o._zod.def));else{let u=s;if(u.fatal)u.continue=!1;if(u.code??(u.code="custom"),!("input"in u))u.input=i.value;u.inst??(u.inst=o),u.continue??(u.continue=!o._zod.def.abort),i.issues.push(xe(u))}},e(i.value,i)),t);return o}function Du(e,t){let o=new M({check:"custom",...v(t)});return o._zod.check=e,o}function Je(e,...t){for(let o of t)for(let i of Reflect.ownKeys(o))if(Object.prototype.propertyIsEnumerable.call(o,i))Q(e,i,o[i]);return e}function Mr(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??he,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 pe(e,t,o,i,s){let u=typeof t.unrepresentable==="function"?t.unrepresentable({zodSchema:e,path:i.path,message:s}):t.unrepresentable;if(u==="any")return!1;if(u===void 0||u==="throw")throw Error(s);return Object.assign(o,u),!0}function N(e,t,o={path:[],schemaPath:[]}){var i;let s=e._zod.def,u=t.seen.get(e);if(u){if(u.count++,o.schemaPath.includes(e))u.cycle=o.path;return u.schema}let p={schema:{},count:1,cycle:void 0,path:o.path};t.seen.set(e,p),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let f=e._zod.toJSONSchema?.();if(f)p.schema=f;else{let h={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,p.schema,h);else{let x=p.schema,_=t.processors[s.type];if(!_)throw Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);_(e,t,x,h)}let z=e._zod.parent;if(z){if(!p.ref)p.ref=z;N(z,t,h),t.seen.get(z).isParent=!0}}let d=t.metadataRegistry.get(e);if(d)Je(p.schema,d);if(t.io==="input"&&J(e))delete p.schema.examples,delete p.schema.default;if(t.io==="input"&&"_prefault"in p.schema)(i=p.schema).default??(i.default=p.schema._prefault);return delete p.schema._prefault,t.seen.get(e).schema}function Vs(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Jr(e,t){let o=e.seen.get(t);if(!o)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let p of e.seen.entries()){let f=e.metadataRegistry.get(p[0])?.id;if(f){let d=i.get(f);if(d&&d!==p[0])throw Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(f,p[0])}}let s=(p)=>{let f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let z=e.external.registry.get(p[0])?.id,x=e.external.uri??((b)=>b);if(z)return{ref:x(z)};let _=p[1].defId??p[1].schema.id??`schema${e.counter++}`;return p[1].defId=_,{defId:_,ref:`${x("__shared")}#/${f}/${Vs(_)}`}}let d="#",m=`${d}/${f}/`;if(p[1]===o&&!p[1].schema.id)return{ref:d};let h=p[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:m+Vs(h)}},u=(p)=>{if(p[1].schema.$ref)return;let f=p[1],{ref:d,defId:m}=s(p);if(f.def={...f.schema},m)f.defId=m;let h=f.schema;for(let z in h)delete h[z];h.$ref=d};if(e.cycles==="throw")for(let p of e.seen.entries()){let f=p[1];if(f.cycle)throw Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
|
|
57
|
+
|
|
58
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let p of e.seen.entries()){let f=p[1];if(t===p[0]){u(p);continue}if(e.external){let m=e.external.registry.get(p[0])?.id;if(t!==p[0]&&m){u(p);continue}}if(e.metadataRegistry.get(p[0])?.id){u(p);continue}if(f.cycle){u(p);continue}if(f.count>1){if(e.reused==="ref")u(p)}}if(e.external)e.sharedDefsExtractedFor=e.external}function Xs(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let o=[];for(let i of t){if(!i||typeof i!=="object")return;Xs(i);let s=Object.keys(i);if(s.length!==1||s[0]!=="type")return;let u=i.type;for(let p of Array.isArray(u)?u:[u]){if(typeof p!=="string")return;if(!o.includes(p))o.push(p)}}delete e.anyOf,e.type=o.length===1?o[0]:o}var Hs=new Set(["type","properties","required","additionalProperties"]),Gs=["oneOf","anyOf"];function Ws(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 Lr(e){let t=[];for(let u of e){if(typeof u!=="object"||u.type!=="object")return null;for(let p in u)if(!Hs.has(p))return null;t.push(u)}let o={},i=new Set;for(let u of t){for(let p in u.properties){if(Object.prototype.hasOwnProperty.call(o,p))continue;let f=[];for(let m of t){let h=m.properties?.[p]??Ws(m);if(h===null||h===void 0)continue;if(!f.some((z)=>JSON.stringify(z)===JSON.stringify(h)))f.push(h)}let d=f.length===1?f[0]:Lr(f)??{allOf:f};Q(o,p,d)}for(let p of u.required??[])i.add(p)}let s={type:"object",properties:o};if(i.size)s.required=[...i];if(t.every((u)=>u.additionalProperties===!1))s.additionalProperties=!1;else{let u=[];for(let p of t){let f=Ws(p);if(f&&!u.some((d)=>JSON.stringify(d)===JSON.stringify(f)))u.push(f)}if(u.length===1)s.additionalProperties=u[0];else if(u.length>1)s.additionalProperties={allOf:u}}return s}function Lu(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let s of Hs)if(s in e)return;let o=t.filter((s)=>Gs.some((u)=>Array.isArray(s[u]))),i=null;if(!o.length)i=Lr(t);else{let s=o[0],u=Gs.find((d)=>Array.isArray(s[d]));if(Object.keys(s).length!==1)return;let p=t.filter((d)=>d!==s),f=s[u].map((d)=>Lr([...p,d]));if(f.some((d)=>!d))return;i={[u]:f}}if(!i)return;delete e.allOf,Je(e,i)}function Br(e,t){let o=e.seen.get(t);if(!o)throw Error("Unprocessed schema. This is a bug in Zod.");let i=(f)=>{let d=e.seen.get(f);if(d.ref===null)return;let m=d.def??d.schema,h={...m},z=d.ref;if(d.ref=null,z){i(z);let _=e.seen.get(z),b=_.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"))m.allOf=m.allOf??[],m.allOf.push(b);else Je(m,b);if(Je(m,h),f._zod.parent===z)for(let w in m){if(w==="$ref"||w==="allOf")continue;if(!(w in h))delete m[w]}if(b.$ref&&_.def)for(let w in m){if(w==="$ref"||w==="allOf")continue;if(w in _.def&&JSON.stringify(m[w])===JSON.stringify(_.def[w]))delete m[w]}}let x=f._zod.parent;if(x&&x!==z){i(x);let _=e.seen.get(x);if(_?.schema.$ref){if(m.$ref=_.schema.$ref,_.def)for(let b in m){if(b==="$ref"||b==="allOf")continue;if(b in _.def&&JSON.stringify(m[b])===JSON.stringify(_.def[b]))delete m[b]}}}e.override({zodSchema:f,jsonSchema:m,path:d.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let f of[...e.seen.entries()].reverse())i(f[0]);if(e.target!=="openapi-3.0")for(let f of e.seen.entries())Xs(f[1].def??f[1].schema);for(let f of e.deferred)f();if(e.intersections.length){let f=new Map;for(let d of e.seen.values())for(let m of[d.schema,d.def]){let h=m?.allOf;if(!Array.isArray(h))continue;let z=f.get(h);if(z)z.push(m);else f.set(h,[m])}for(let d of e.intersections)for(let m of f.get(d)??[])Lu(m)}}let s={};if(e.target==="draft-2020-12")s.$schema="https://json-schema.org/draft/2020-12/schema";else if(e.target==="draft-07")s.$schema="http://json-schema.org/draft-07/schema#";else if(e.target==="draft-04")s.$schema="http://json-schema.org/draft-04/schema#";else if(e.target==="openapi-3.0");if(e.external?.uri){let f=e.external.registry.get(t)?.id;if(!f)throw Error("Schema is missing an `id` property");s.$id=e.external.uri(f)}Je(s,o.defId?o.schema:o.def??o.schema);let u=e.metadataRegistry.get(t)?.id;if(u!==void 0&&s.id===u)delete s.id;let p=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let f of e.seen.entries()){let d=f[1];if(d.def&&d.defId){if(d.def.id===d.defId)delete d.def.id;Q(p,d.defId,d.def)}}if(e.external)e.sharedEmitDoneFor=e.external;if(e.external);else if(Object.keys(p).length>0)if(e.target==="draft-2020-12")s.$defs=p;else s.definitions=p;try{let f=JSON.parse(JSON.stringify(s));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:Be(t,"input",e.processors),output:Be(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch(f){throw Error("Error converting schema to JSON.")}}function J(e,t){let o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return J(i.element,o);if(i.type==="set")return J(i.valueType,o);if(i.type==="lazy")return J(i.getter(),o);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return J(i.innerType,o);if(i.type==="intersection")return J(i.left,o)||J(i.right,o);if(i.type==="record"||i.type==="map")return J(i.keyType,o)||J(i.valueType,o);if(i.type==="pipe"){if(e._zod.traits.has("$ZodCodec"))return!0;return J(i.in,o)||J(i.out,o)}if(i.type==="object"){for(let s in i.shape)if(J(i.shape[s],o))return!0;return!1}if(i.type==="union"){for(let s of i.options)if(J(s,o))return!0;return!1}if(i.type==="tuple"){for(let s of i.items)if(J(s,o))return!0;if(i.rest&&J(i.rest,o))return!0;return!1}return!1}var Ys=(e,t={})=>(o)=>{let i=Mr({...o,processors:t});return N(e,i),Jr(i,e),Br(i,e)},Be=(e,t,o={})=>(i)=>{let{libraryOptions:s,target:u}=i??{},p=Mr({...s??{},target:u,io:t,processors:o});return N(e,p),Jr(p,e),Br(p,e)};var $e=(e,t,o)=>{if(e[t]===void 0||o>e[t])e[t]=o},Se=(e,t,o)=>{if(e[t]===void 0||o<e[t])e[t]=o},Qs=(e,t)=>{$e(e,"minimum",t),Se(e,"maximum",t)},oc=(e,t)=>{if(e.multipleOf??(e.multipleOf=[]),!e.multipleOf.includes(t))e.multipleOf.push(t)},nc=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},ic=(e,t)=>{e.mime=e.mime?e.mime.filter((o)=>t.includes(o)):[...t]},sc=(e,t)=>{if(e.format=t,t.includes("int"))e.isInt=!0},ec=(e,t)=>$e(e,"minimum",t.minimum),tc=(e,t)=>Se(e,"maximum",t.maximum),rc=(e)=>(t,o)=>{sc(t,o.format);let[i,s]=e[o.format];$e(t,"minimum",i),Se(t,"maximum",s)},Mu={greater_than:(e,t)=>$e(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Se(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>oc(e,t.value),number_format:rc(Qe),bigint_format:rc(qt),min_length:ec,max_length:tc,length_equals:(e,t)=>Qs(e,t.length),min_size:ec,max_size:tc,size_equals:(e,t)=>Qs(e,t.size),string_format:(e,t)=>{if(sc(e,t.format),t.pattern)nc(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)=>ic(e,t.mime)};function te(e){let t={},o=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...o.checks??[]]:o.checks??[];for(let u of i)Mu[u._zod.def.check]?.(t,u._zod.def);let s=e._zod.bag;if(s.minimum!==void 0)$e(t,"minimum",s.minimum);if(s.exclusiveMinimum!==void 0)$e(t,"exclusiveMinimum",s.exclusiveMinimum);if(s.maximum!==void 0)Se(t,"maximum",s.maximum);if(s.exclusiveMaximum!==void 0)Se(t,"exclusiveMaximum",s.exclusiveMaximum);if(s.multipleOf!==void 0)oc(t,s.multipleOf);if(s.format!==void 0){if(t.format??(t.format=s.format),s.format.includes("int"))t.isInt=!0}if(s.mime)ic(t,s.mime);for(let u of s.patterns??[])nc(t,u);return t}var Uu={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Fu=new Map([[dr,pn],[mt,fn]]),cc=(e)=>Fu.get(e)??e,ac=(e,t,o,i)=>{let s=o;s.type="string";let{minimum:u,maximum:p,format:f,patterns:d,contentEncoding:m,laxFormat:h}=te(e);if(typeof u==="number")s.minLength=u;if(typeof p==="number")s.maxLength=p;if(f){if(s.format=Uu[f]??f,s.format==="")delete s.format;if(f==="time"||h)delete s.format}if(m)s.contentEncoding=m;if(d&&d.size>0){let z=[...d].map(cc);if(z.length===1)s.pattern=z[0].source;else if(z.length>1)s.allOf=[...z.map((x)=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:x.source}))]}},uc=(e,t,o,i)=>{let s=o,{minimum:u,maximum:p,multipleOf:f,exclusiveMaximum:d,exclusiveMinimum:m,isInt:h}=te(e);s.type=h?"integer":"number";let z=typeof m==="number"&&m>=(u??Number.NEGATIVE_INFINITY),x=typeof d==="number"&&d<=(p??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";if(z)if(_)s.minimum=m,s.exclusiveMinimum=!0;else s.exclusiveMinimum=m;else if(typeof u==="number")s.minimum=u;if(x)if(_)s.maximum=d,s.exclusiveMaximum=!0;else s.exclusiveMaximum=d;else if(typeof p==="number")s.maximum=p;if(f){let b=new Set;for(let Z of f)if(Number.isFinite(Z)&&Z!==0)b.add(Math.abs(Z));else pe(e,t,s,i,`A multipleOf divisor of ${Z} cannot be represented in JSON Schema`);let[S,...w]=b;if(S!==void 0)s.multipleOf=S;if(w.length)s.allOf=[...s.allOf??[],...w.map((Z)=>({multipleOf:Z}))]}},lc=(e,t,o,i)=>{o.type="boolean"};var pc=(e,t,o,i)=>{if(t.target==="openapi-3.0")o.type="string",o.nullable=!0,o.enum=[null];else o.type="null"};var fc=(e,t,o,i)=>{o.not={}},dc=(e,t,o,i)=>{},mc=(e,t,o,i)=>{};var hc=(e,t,o,i)=>{let s=e._zod.def,u=Ie(s.entries);if(u.length===0){o.not={};return}if(u.every((p)=>typeof p==="number"))o.type="number";if(u.every((p)=>typeof p==="string"))o.type="string";o.enum=u},gc=(e,t,o,i)=>{let s=e._zod.def;if(s.values.length===0){o.not={};return}let u=[];for(let p of s.values)if(p===void 0){if(pe(e,t,o,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof p==="bigint"){if(pe(e,t,o,i,"BigInt literals cannot be represented in JSON Schema"))return;u.push(Number(p))}else u.push(p);if(u.length===0);else if(u.length===1){let p=u[0];if(o.type=p===null?"null":typeof p,t.target==="draft-04"||t.target==="openapi-3.0")o.enum=[p];else o.const=p}else{if(u.every((p)=>typeof p==="number"))o.type="number";if(u.every((p)=>typeof p==="string"))o.type="string";if(u.every((p)=>typeof p==="boolean"))o.type="boolean";if(u.every((p)=>p===null))o.type="null";o.enum=u}};var zc=(e,t,o,i)=>{pe(e,t,o,i,"Custom types cannot be represented in JSON Schema")};var _c=(e,t,o,i)=>{pe(e,t,o,i,"Transforms cannot be represented in JSON Schema")};var xc=(e,t,o,i)=>{let s=o,u=e._zod.def,{minimum:p,maximum:f}=te(e);if(typeof p==="number")s.minItems=p;if(typeof f==="number")s.maxItems=f;s.type="array",s.items=N(u.element,t,{...i,path:[...i.path,"items"]})};function wt(e){let t=e._zod.def;if(t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform"))return wt(t.out);if(t.type==="catch")return wt(t.innerType);return e._zod.optin}var bc=(e,t,o,i)=>{let s=o,u=e._zod.def,p=u.shape;if(Object.getOwnPropertySymbols(p).length&&pe(e,t,s,i,"Symbol keys cannot be represented in JSON Schema"))return;s.type="object",s.properties={};for(let m in p)Q(s.properties,m,N(p[m],t,{...i,path:[...i.path,"properties",m]}));let d=[];for(let m of Object.keys(p)){let h=u.shape[m];if(t.io==="input"?wt(h)===void 0:h._zod.optout===void 0)d.push(m)}if(d.length>0)s.required=d;if(u.catchall?._zod.def.type==="never")s.additionalProperties=!1;else if(!u.catchall){if(t.io==="output")s.additionalProperties=!1}else if(u.catchall)s.additionalProperties=N(u.catchall,t,{...i,path:[...i.path,"additionalProperties"]})},yc=(e,t,o,i)=>{let s=e._zod.def,u=s.inclusive===!1,p=s.options.map((f,d)=>N(f,t,{...i,path:[...i.path,u?"oneOf":"anyOf",d]}));if(u)o.oneOf=p;else o.anyOf=p},vc=(e,t,o,i)=>{let s=e._zod.def,u=N(s.left,t,{...i,path:[...i.path,"allOf",0]}),p=N(s.right,t,{...i,path:[...i.path,"allOf",1]}),f=(m)=>("allOf"in m)&&Object.keys(m).length===1,d=[...f(u)?u.allOf:[u],...f(p)?p.allOf:[p]];o.allOf=d,t.intersections.push(d)};function qr(e,t,o){if(t.$ref){if(o.has(t))return t;o.add(t);let b=e.get(t)?.def;if(!b)return t;let S=qr(e,b,o);return S===b?t:S}for(let b of["anyOf","oneOf"]){let S=t[b];if(!Array.isArray(S))continue;let w=S.map((Z)=>qr(e,Z,o));if(w.some((Z,Y)=>Z!==S[Y]))t={...t,[b]:w}}let i=Array.isArray(t.type)?t.type:[t.type],s=!i.includes("string")&&i.some((b)=>b==="number"||b==="integer"),u=t.enum??(t.const!==void 0?[t.const]:void 0);if(!s&&!u?.some((b)=>typeof b==="number"))return t;let{minimum:p,maximum:f,exclusiveMinimum:d,exclusiveMaximum:m,multipleOf:h,format:z,id:x,..._}=t;if(_.enum)_.enum=_.enum.map((b)=>typeof b==="number"?String(b):b);else if(typeof _.const==="number")_.const=String(_.const);if(!s)return _;if(_.type="string",!u)_.pattern=(i.includes("number")?je:ir).source;return _}var Kr=new WeakMap;function Ju(e){let t=new Map;for(let i of e.seen.values())if(i.def&&!t.has(i.schema))t.set(i.schema,i);let o=new Map;for(let i of Kr.get(e)??[]){let s=e.seen.get(i),u=(s?.def??s?.schema)?.propertyNames;if(!u||u===!0||o.has(u))continue;let p=qr(t,u,new Set);if(p!==u)o.set(u,p)}if(!o.size)return;for(let i of e.seen.values())for(let s of[i.schema,i.def]){let u=s&&o.get(s.propertyNames);if(u)s.propertyNames=u}}var $c=(e,t,o,i)=>{let s=o,u=e._zod.def;s.type="object";let p=u.keyType,f=te(p).patterns;if(u.mode==="loose"&&f&&f.size>0){let h=N(u.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});s.patternProperties={};for(let z of f)Q(s.patternProperties,cc(z).source,h)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){s.propertyNames=N(u.keyType,t,{...i,path:[...i.path,"propertyNames"]});let h=Kr.get(t);if(!h)h=[],Kr.set(t,h),t.deferred.push(()=>Ju(t));h.push(e)}s.additionalProperties=N(u.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let d=p._zod.values,m=t.io==="input"&&wt(u.valueType)!==void 0;if(d&&!u.partial&&!m){let h=[...d].filter((z)=>typeof z==="string"||typeof z==="number");if(h.length>0)s.required=h.map(String)}},Sc=(e,t,o,i)=>{let s=e._zod.def,u=N(s.innerType,t,i),p=t.seen.get(e);if(t.target==="openapi-3.0")p.ref=s.innerType,o.nullable=!0;else o.anyOf=[u,{type:"null"}]},wc=(e,t,o,i)=>{let s=e._zod.def;N(s.innerType,t,i);let u=t.seen.get(e);u.ref=s.innerType},Vr=Symbol();function Zc(e,t,o,i,s){let u=!1,p=JSON.stringify(e,(f,d)=>{if(typeof d!=="bigint")return d;return u=!0,null});if(!u)return JSON.parse(p);return pe(t,o,i,s,"BigInt defaults cannot be represented in JSON Schema"),Vr}var Tc=(e,t,o,i)=>{let s=e._zod.def;N(s.innerType,t,i);let u=t.seen.get(e);u.ref=s.innerType;let p=Zc(s.defaultValue,e,t,o,i);if(p!==Vr)o.default=p},Ec=(e,t,o,i)=>{let s=e._zod.def;N(s.innerType,t,i);let u=t.seen.get(e);if(u.ref=s.innerType,t.io!=="input")return;let p=Zc(s.defaultValue,e,t,o,i);if(p!==Vr)o._prefault=p},Ac=(e,t,o,i)=>{let s=e._zod.def;N(s.innerType,t,i);let u=t.seen.get(e);u.ref=s.innerType;let p;try{p=s.catchValue(void 0)}catch{pe(e,t,o,i,"Dynamic catch values are not supported in JSON Schema");return}o.default=p},Nc=(e,t,o,i)=>{let s=e._zod.def,u=s.in._zod.traits.has("$ZodTransform"),p=t.io==="input"?u?s.out:s.in:s.out;N(p,t,i);let f=t.seen.get(e);f.ref=p},jc=(e,t,o,i)=>{let s=e._zod.def;N(s.innerType,t,i);let u=t.seen.get(e);u.ref=s.innerType,o.readOnly=!0};var Gr=(e,t,o,i)=>{let s=e._zod.def;N(s.innerType,t,i);let u=t.seen.get(e);u.ref=s.innerType};var Dc=new WeakSet([Object.prototype,Error.prototype]);function Zt(e,t,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=o(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var Yu=(e,t)=>{Eo.init(e,t),e.name="ZodError";let o=Object.getPrototypeOf(e);if(Dc.has(o))return;Dc.add(o),Zt(o,"format",(i)=>(s)=>Ht(i,s)),Zt(o,"flatten",(i)=>(s)=>Xt(i,s)),Zt(o,"addIssue",(i)=>(s)=>{i.issues.push(s),i.message=JSON.stringify(i.issues,Te,2)}),Zt(o,"addIssues",(i)=>(s)=>{i.issues.push(...s),i.message=JSON.stringify(i.issues,Te,2)}),Object.defineProperty(o,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})};var W=g("ZodError",Yu,void 0,{Parent:Error});var Uc=st(W),Fc=ct(W),Jc=Ne(W),Bc=at(W),qc=No(W),Kc=Do(W),Vc=Lo(W),Gc=Mo(W),Wc=Uo(W),Xc=Fo(W),Hc=Jo(W),Yc=Bo(W);function el(){if(!B.localeError)q(vr())}function Tt(){if(!B.memoizer)q({memoizer:yr()})}var E=g("ZodType",(e,t)=>(el(),O.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(V(t,{checks:[...t.checks??[],...e.map((o)=>typeof o==="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ne(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Jl(e,t))},superRefine(e,t){return this.check(Bl(e,t))},overwrite(e){return this.check(ge(e))},optional(){return A(this)},exactOptional(){return Rl(this)},nullable(){return ea(this)},nullish(){return A(ea(this))},nonoptional(e){return jl(this,e)},array(){return y(this)},or(e){return k([this,e])},and(e){return Pt(this,e)},transform(e){return ta(this,Pa(e))},default(e){return Al(this,e)},prefault(e){return Nl(this,e)},catch(e){return Ll(this,e)},pipe(e){return ta(this,e)},readonly(){return Fl(this)},describe(e){let t=this.clone();return he.add(t,{description:e}),t},meta(...e){if(e.length===0)return he.get(this);let t=this.clone();return he.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 nt(this,"~standard",{...pr(this),jsonSchema:{input:Be(this,"input"),output:Be(this,"output")}})},set "~standard"(e){le(this,"~standard",e)},parse:function e(t,o){return Uc(this,t,o,{callee:e})},parseAsync:async function e(t,o){return await Fc(this,t,o,{callee:e})},safeParse(e,t){return Jc(this,e,t)},async safeParseAsync(e,t){return Bc(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){le(this,"spa",e)},validate(e,t){return Yt(this,e,t)},validateAsync(e,t){return Qt(this,e,t)},encode:function e(t,o){return qc(this,t,o,{callee:e})},decode:function e(t,o){return Kc(this,t,o,{callee:e})},encodeAsync:async function e(t,o){return await Vc(this,t,o,{callee:e})},decodeAsync:async function e(t,o){return await Gc(this,t,o,{callee:e})},safeEncode(e,t){return Wc(this,e,t)},safeDecode(e,t){return Xc(this,e,t)},async safeEncodeAsync(e,t){return Hc(this,e,t)},async safeDecodeAsync(e,t){return Yc(this,e,t)},toJSONSchema(e){return Ys(this,{})(e)},get description(){return he.get(this)?.description},get _def(){return this._zod.def}}),ra=g("_ZodString",(e,t)=>{dt.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>ac(e,o,i,s)},Po({format:(e)=>te(e).format??null,minLength:(e)=>te(e).minimum??null,maxLength:(e)=>te(e).maximum??null},{regex(...e){return this.check(Zr(...e))},includes(...e){return this.check(Rr(...e))},startsWith(...e){return this.check(Tr(...e))},endsWith(...e){return this.check(Er(...e))},min(...e){return this.check(ve(...e))},max(...e){return this.check($t(...e))},length(...e){return this.check(St(...e))},nonempty(...e){return this.check(ve(1,...e))},lowercase(e){return this.check(Or(e))},uppercase(e){return this.check(Ir(e))},trim(){return this.check(Cr())},normalize(...e){return this.check(Ar(...e))},toLowerCase(){return this.check(Nr())},toUpperCase(){return this.check(jr())},slugify(){return this.check(Dr())}})),tl=g("ZodString",(e,t)=>{dt.init(e,t),ra.init(e,t)},{email(e){return this.check(hs(rl,e))},url(e){return this.check(Sr(va,e))},jwt(e){return this.check(Cs(_l,e))},emoji(e){return this.check(ys(nl,e))},guid(e){return this.check(gs(ol,e))},uuid(e){return this.check(zs(Ot,e))},uuidv4(e){return this.check(_s(Ot,e))},uuidv6(e){return this.check(xs(Ot,e))},uuidv7(e){return this.check(bs(Ot,e))},nanoid(e){return this.check(vs(il,e))},cuid(e){return this.check($s(sl,e))},cuid2(e){return this.check(Ss(cl,e))},ulid(e){return this.check(ks(al,e))},base64(e){return this.check(Ts(hl,e))},base64url(e){return this.check(Es(gl,e))},xid(e){return this.check(ws(ul,e))},ksuid(e){return this.check(Ps(ll,e))},ipv4(e){return this.check(Zs(pl,e))},ipv6(e){return this.check(Os(fl,e))},cidrv4(e){return this.check(Is(dl,e))},cidrv6(e){return this.check(Rs(ml,e))},e164(e){return this.check(As(zl,e))},datetime(e){return this.check(xt(Xr,e))},date(e){return this.check(kr(za,e))},time(e){return this.check(wr(_a,e))},duration(e){return this.check(Pr(xa,e))}});function r(e){return ms(tl,e)}var C=g("ZodStringFormat",(e,t)=>{T.init(e,t),ra.init(e,t)}),Xr=g("ZodISODateTime",(e,t)=>{li.init(e,t),C.init(e,t)}),za=g("ZodISODate",(e,t)=>{pi.init(e,t),C.init(e,t)}),_a=g("ZodISOTime",(e,t)=>{fi.init(e,t),C.init(e,t)}),xa=g("ZodISODuration",(e,t)=>{di.init(e,t),C.init(e,t)}),rl=g("ZodEmail",(e,t)=>{Qn.init(e,t),C.init(e,t)});var ol=g("ZodGUID",(e,t)=>{Hn.init(e,t),C.init(e,t)});var Ot=g("ZodUUID",(e,t)=>{Yn.init(e,t),C.init(e,t)});var va=g("ZodURL",(e,t)=>{ri.init(e,t),C.init(e,t)});function zo(e){return Sr(va,e)}var nl=g("ZodEmoji",(e,t)=>{oi.init(e,t),C.init(e,t)});var il=g("ZodNanoID",(e,t)=>{ni.init(e,t),C.init(e,t)});var sl=g("ZodCUID",(e,t)=>{ii.init(e,t),C.init(e,t)});var cl=g("ZodCUID2",(e,t)=>{si.init(e,t),C.init(e,t)});var al=g("ZodULID",(e,t)=>{ci.init(e,t),C.init(e,t)});var ul=g("ZodXID",(e,t)=>{ai.init(e,t),C.init(e,t)});var ll=g("ZodKSUID",(e,t)=>{ui.init(e,t),C.init(e,t)});var pl=g("ZodIPv4",(e,t)=>{mi.init(e,t),C.init(e,t)});var fl=g("ZodIPv6",(e,t)=>{gi.init(e,t),C.init(e,t)});var dl=g("ZodCIDRv4",(e,t)=>{zi.init(e,t),C.init(e,t)});var ml=g("ZodCIDRv6",(e,t)=>{_i.init(e,t),C.init(e,t)});var hl=g("ZodBase64",(e,t)=>{bi.init(e,t),C.init(e,t)});var gl=g("ZodBase64URL",(e,t)=>{yi.init(e,t),C.init(e,t)});var zl=g("ZodE164",(e,t)=>{vi.init(e,t),C.init(e,t)});var _l=g("ZodJWT",(e,t)=>{$i.init(e,t),C.init(e,t)});var ts=g("ZodNumber",(e,t)=>{mr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>uc(e,o,i,s),e.isFinite=!0},Po({minValue:(e)=>{let{minimum:t,exclusiveMinimum:o}=te(e);return Math.max(t??Number.NEGATIVE_INFINITY,o??Number.NEGATIVE_INFINITY)},maxValue:(e)=>{let{maximum:t,exclusiveMaximum:o}=te(e);return Math.min(t??Number.POSITIVE_INFINITY,o??Number.POSITIVE_INFINITY)},isInt:(e)=>{let{isInt:t,multipleOf:o}=te(e);return!!t||!!o?.some(Number.isSafeInteger)},format:(e)=>te(e).format??null},{gt(e,t){return this.check(yt(e,t))},gte(e,t){return this.check(Fe(e,t))},min(e,t){return this.check(Fe(e,t))},lt(e,t){return this.check(bt(e,t))},lte(e,t){return this.check(Ue(e,t))},max(e,t){return this.check(Ue(e,t))},int(e){return this.check(kt(e))},safe(e){return this.check(kt(e))},positive(e){return this.check(yt(0,e))},nonnegative(e){return this.check(Fe(0,e))},negative(e){return this.check(bt(0,e))},nonpositive(e){return this.check(Ue(0,e))},multipleOf(e,t){return this.check(vt(e,t))},step(e,t){return this.check(vt(e,t))},finite(){return this}}));function G(e){return Ns(ts,e)}var xl=g("ZodNumberFormat",(e,t)=>{Si.init(e,t),ts.init(e,t)});function kt(e){return js(xl,e)}var bl=g("ZodBoolean",(e,t)=>{ki.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>lc(e,o,i,s)});function H(e){return Ds(bl,e)}var yl=g("ZodNull",(e,t)=>{wi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>pc(e,o,i,s)});function $a(e){return Ls(yl,e)}var vl=g("ZodAny",(e,t)=>{Pi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>dc(e,o,i,s)});function Pc(){return Ms(vl)}var $l=g("ZodUnknown",(e,t)=>{Zi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>mc(e,o,i,s)});function a(){return Us($l)}var Sl=g("ZodNever",(e,t)=>{Oi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>fc(e,o,i,s)});function kl(e){return Fs(Sl,e)}var wl=g("ZodArray",(e,t)=>{Tt(),Ii.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>xc(e,o,i,s),e.element=t.element},{min(e,t){return this.check(ve(e,t))},nonempty(e){return this.check(ve(1,e))},max(e,t){return this.check($t(e,t))},length(e,t){return this.check(St(e,t))},unwrap(){return this.element}});function y(e,t){return Js(wl,e,t)}var Sa=g("ZodObject",(e,t)=>{Tt(),Ei.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>bc(e,o,i,s),iu(e,"shape",(o)=>o._zod.def.shape,!1)},{keyof(){return K(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(V(this._zod.def,{catchall:e}))},passthrough(){return this.clone(V(this._zod.def,{catchall:a()}))},loose(){return this.clone(V(this._zod.def,{catchall:a()}))},strict(){return this.clone(V(this._zod.def,{catchall:kl()}))},strip(){return this.clone(V(this._zod.def,{catchall:void 0}))},extend(e){return Ha(this,e)},safeExtend(e){return Ya(this,e)},merge(e){return Qa(this,e)},pick(e){return Wa(this,e)},omit(e){return Xa(this,e)},partial(...e){return vo(Za,this,e[0])},exactPartial(...e){return vo(Oa,this,e[0],"exactPartial")},required(...e){return eu(Ia,this,e[0])}});function n(e,t){let o={type:"object",shape:e??{},...v(t)};return new Sa(o)}function Re(e,t){return new Sa({type:"object",shape:e,catchall:a(),...v(t)})}var ka=g("ZodUnion",(e,t)=>{hr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>yc(e,o,i,s),e.options=t.options});function k(e,t){return new ka({type:"union",options:e,...v(t)})}var Pl=g("ZodDiscriminatedUnion",(e,t)=>{ka.init(e,t),Ai.init(e,t)});function Hr(e,t,o){return new Pl({type:"union",options:t,discriminator:e,...v(o)})}var Zl=g("ZodIntersection",(e,t)=>{Ci.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>vc(e,o,i,s)});function Pt(e,t){return new Zl({type:"intersection",left:e,right:t})}var Qc=g("ZodRecord",(e,t)=>{Tt(),Ni.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>$c(e,o,i,s),e.keyType=t.keyType,e.valueType=t.valueType});function l(e,t,o){if(!t||!t._zod)return new Qc({type:"record",keyType:r(),valueType:e,...v(t)});return new Qc({type:"record",keyType:e,valueType:t,...v(o)})}var Wr=g("ZodEnum",(e,t)=>{ji.init(e,t),E.init(e,t),e._zod.processJSONSchema=(i,s,u)=>hc(e,i,s,u),e.enum=t.entries,e.options=[...e._zod.values];let o=new Set(Object.keys(t.entries));e.extract=(i,s)=>{let u={};for(let p of i)if(o.has(p))u[p]=t.entries[p];else throw Error(`Key ${p} not found in enum`);return new Wr({...t,checks:[],...v(s),entries:u})},e.exclude=(i,s)=>{let u={...t.entries};for(let p of i)if(o.has(p))delete u[p];else throw Error(`Key ${p} not found in enum`);return new Wr({...t,checks:[],...v(s),entries:u})}});function K(e,t){let o=Array.isArray(e)?Object.fromEntries(e.map((i)=>[i,i])):e;return new Wr({type:"enum",entries:o,...v(t)})}var Ol=g("ZodLiteral",(e,t)=>{Di.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>gc(e,o,i,s),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 c(e,t){return new Ol({type:"literal",values:Array.isArray(e)?e:[e],...v(t)})}var Il=g("ZodTransform",(e,t)=>{Tt(),Li.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>_c(e,o,i,s),e._zod.parse=(o,i)=>{if(i.direction==="backward")throw new Ce(e.constructor.name);o.addIssue=(u)=>{if(typeof u==="string")o.issues.push(xe(u,o.value,t));else{let p=u;if(p.fatal)p.continue=!1;if(p.code??(p.code="custom"),!("input"in p))p.input=o.value;p.inst??(p.inst=e),o.issues.push(xe(p))}};let s=t.transform(o.value,o);if(s instanceof Promise)return s.then((u)=>(o.value=u,o));return o.value=s,o}});function Pa(e){return new Il({type:"transform",transform:e})}var Za=g("ZodOptional",(e,t)=>{zr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Gr(e,o,i,s),e.unwrap=()=>e._zod.def.innerType});function A(e){return new Za({type:"optional",innerType:e})}var Oa=g("ZodExactOptional",(e,t)=>{Mi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Gr(e,o,i,s),e.unwrap=()=>e._zod.def.innerType});function Rl(e){return new Oa({type:"optional",innerType:e})}var Tl=g("ZodNullable",(e,t)=>{Ui.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Sc(e,o,i,s),e.unwrap=()=>e._zod.def.innerType});function ea(e){return new Tl({type:"nullable",innerType:e})}var El=g("ZodDefault",(e,t)=>{Fi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Tc(e,o,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Al(e,t){return new El({type:"default",innerType:e,get defaultValue(){return typeof t==="function"?t():Jt(t)}})}var Cl=g("ZodPrefault",(e,t)=>{Ji.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Ec(e,o,i,s),e.unwrap=()=>e._zod.def.innerType});function Nl(e,t){return new Cl({type:"prefault",innerType:e,get defaultValue(){return typeof t==="function"?t():Jt(t)}})}var Ia=g("ZodNonOptional",(e,t)=>{Bi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>wc(e,o,i,s),e.unwrap=()=>e._zod.def.innerType});function jl(e,t){return new Ia({type:"nonoptional",innerType:e,...v(t)})}var Dl=g("ZodCatch",(e,t)=>{qi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Ac(e,o,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ll(e,t){return new Dl({type:"catch",innerType:e,catchValue:typeof t==="function"?t:Zo(t)})}var Ra=g("ZodPipe",(e,t)=>{_r.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>Nc(e,o,i,s),e.in=t.in,e.out=t.out});function ta(e,t){return new Ra({type:"pipe",in:e,out:t})}var Ml=g("ZodPreprocess",(e,t)=>{Ra.init(e,t),Ki.init(e,t)}),Ul=g("ZodReadonly",(e,t)=>{Vi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>jc(e,o,i,s),e.unwrap=()=>e._zod.def.innerType});function Fl(e){return new Ul({type:"readonly",innerType:e})}var Ta=g("ZodCustom",(e,t)=>{Gi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(o,i,s)=>zc(e,o,i,s)});function Ea(e,t){return Bs(Ta,e??(()=>!0),t)}function Jl(e,t={}){return qs(Ta,e,t)}function Bl(e,t){return Ks(e,t)}function $o(e,t){return new Ml({type:"pipe",in:Pa(e),out:t})}function ql(e){return xt(Xr,e)}var rr="2025-11-25",Rc="2025-03-26",fr=[rr,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],Ur="io.modelcontextprotocol/related-task",At="2.0",L=Ea((e)=>e!==null&&(typeof e==="object"||typeof e==="function")),Ca=k([r(),G().int()]),Na=r(),Vm=Re({ttl:G().optional(),pollInterval:G().optional()}),Kl=n({ttl:G().optional()}),Vl=n({taskId:r()}),Yr=Re({progressToken:Ca.optional(),[Ur]:Vl.optional()}),X=n({_meta:Yr.optional()}),Ke=X.extend({task:Kl.optional()}),Cc=(e)=>Ke.safeParse(e).success,U=n({method:r(),params:X.loose().optional()}),re=n({_meta:Yr.optional()}),oe=n({method:r(),params:re.loose().optional()}),F=Re({_meta:Yr.optional()}),Nt=k([r(),G().int()]),ja=n({jsonrpc:c(At),id:Nt,...U.shape}).strict(),Rt=(e)=>ja.safeParse(e).success,Da=n({jsonrpc:c(At),...oe.shape}).strict(),Ic=(e)=>Da.safeParse(e).success,Qr=n({jsonrpc:c(At),id:Nt,result:F}).strict(),Ct=(e)=>Qr.safeParse(e).success;var D;(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"})(D||(D={}));var eo=n({jsonrpc:c(At),id:Nt.optional(),error:n({code:G().int(),message:r(),data:a().optional()})}).strict();var jn=(e)=>eo.safeParse(e).success;var It=k([ja,Da,Qr,eo]),Gm=k([Qr,eo]),nr=F.strict(),Gl=re.extend({requestId:Nt.optional(),reason:r().optional()}),rs=oe.extend({method:c("notifications/cancelled"),params:Gl}),Wl=n({src:r(),mimeType:r().optional(),sizes:y(r()).optional(),theme:K(["light","dark"]).optional()}),Ve=n({icons:y(Wl).optional()}),ke=n({name:r(),title:r().optional()}),La=ke.extend({...ke.shape,...Ve.shape,version:r(),websiteUrl:r().optional(),description:r().optional()}),Xl=Pt(n({applyDefaults:H().optional()}),l(r(),a())),Hl=$o((e)=>{if(e&&typeof e==="object"&&!Array.isArray(e)){if(Object.keys(e).length===0)return{form:{}}}return e},Pt(n({form:Xl.optional(),url:L.optional()}),l(r(),a()).optional())),Yl=Re({list:L.optional(),cancel:L.optional(),requests:Re({sampling:Re({createMessage:L.optional()}).optional(),elicitation:Re({create:L.optional()}).optional()}).optional()}),Ql=Re({list:L.optional(),cancel:L.optional(),requests:Re({tools:Re({call:L.optional()}).optional()}).optional()}),ep=n({experimental:l(r(),L).optional(),sampling:n({context:L.optional(),tools:L.optional()}).optional(),elicitation:Hl.optional(),roots:n({listChanged:H().optional()}).optional(),tasks:Yl.optional(),extensions:l(r(),L).optional()}),tp=X.extend({protocolVersion:r(),capabilities:ep,clientInfo:La}),ns=U.extend({method:c("initialize"),params:tp}),oa=(e)=>ns.safeParse(e).success,rp=n({experimental:l(r(),L).optional(),logging:L.optional(),completions:L.optional(),prompts:n({listChanged:H().optional()}).optional(),resources:n({subscribe:H().optional(),listChanged:H().optional()}).optional(),tools:n({listChanged:H().optional()}).optional(),tasks:Ql.optional(),extensions:l(r(),L).optional()}),ia=F.extend({protocolVersion:r(),capabilities:rp,serverInfo:La,instructions:r().optional()}),os=oe.extend({method:c("notifications/initialized"),params:re.optional()}),Mc=(e)=>os.safeParse(e).success,is=U.extend({method:c("ping"),params:X.optional()}),op=n({progress:G(),total:A(G()),message:A(r())}),np=n({...re.shape,...op.shape,progressToken:Ca}),ss=oe.extend({method:c("notifications/progress"),params:np}),ip=X.extend({cursor:Na.optional()}),Ge=U.extend({params:ip.optional()}),We=F.extend({nextCursor:Na.optional()}),sp=K(["working","input_required","completed","failed","cancelled"]),Xe=n({taskId:r(),status:sp,ttl:k([G(),$a()]),createdAt:r(),lastUpdatedAt:r(),pollInterval:A(G()),statusMessage:A(r())}),or=F.extend({task:Xe}),cp=re.merge(Xe),jo=oe.extend({method:c("notifications/tasks/status"),params:cp}),as=U.extend({method:c("tasks/get"),params:X.extend({taskId:r()})}),cs=F.merge(Xe),ls=U.extend({method:c("tasks/result"),params:X.extend({taskId:r()})}),Wm=F.loose(),us=Ge.extend({method:c("tasks/list")}),ps=We.extend({tasks:y(Xe)}),ds=U.extend({method:c("tasks/cancel"),params:X.extend({taskId:r()})}),Oc=F.merge(Xe),Ma=n({uri:r(),mimeType:A(r()),_meta:l(r(),a()).optional()}),Ua=Ma.extend({text:r()}),to=r().refine((e)=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Fa=Ma.extend({blob:to}),He=K(["user","assistant"]),we=n({audience:y(He).optional(),priority:G().min(0).max(1).optional(),lastModified:ql({offset:!0}).optional()}),Ja=n({...ke.shape,...Ve.shape,uri:r(),description:A(r()),mimeType:A(r()),size:A(G()),annotations:we.optional(),_meta:A(Re({}))}),ap=n({...ke.shape,...Ve.shape,uriTemplate:r(),description:A(r()),mimeType:A(r()),annotations:we.optional(),_meta:A(Re({}))}),up=Ge.extend({method:c("resources/list")}),sa=We.extend({resources:y(Ja)}),lp=Ge.extend({method:c("resources/templates/list")}),aa=We.extend({resourceTemplates:y(ap)}),ro=X.extend({uri:r()}),pp=ro,fp=U.extend({method:c("resources/read"),params:pp}),ca=F.extend({contents:y(k([Ua,Fa]))}),la=oe.extend({method:c("notifications/resources/list_changed"),params:re.optional()}),dp=ro,mp=U.extend({method:c("resources/subscribe"),params:dp}),hp=ro,gp=U.extend({method:c("resources/unsubscribe"),params:hp}),zp=re.extend({uri:r()}),_p=oe.extend({method:c("notifications/resources/updated"),params:zp}),xp=n({name:r(),description:A(r()),required:A(H())}),bp=n({...ke.shape,...Ve.shape,description:A(r()),arguments:A(y(xp)),_meta:A(Re({}))}),yp=Ge.extend({method:c("prompts/list")}),ua=We.extend({prompts:y(bp)}),vp=X.extend({name:r(),arguments:l(r(),r()).optional()}),$p=U.extend({method:c("prompts/get"),params:vp}),oo=n({type:c("text"),text:r(),annotations:we.optional(),_meta:l(r(),a()).optional()}),no=n({type:c("image"),data:to,mimeType:r(),annotations:we.optional(),_meta:l(r(),a()).optional()}),io=n({type:c("audio"),data:to,mimeType:r(),annotations:we.optional(),_meta:l(r(),a()).optional()}),Sp=n({type:c("tool_use"),name:r(),id:r(),input:l(r(),a()),_meta:l(r(),a()).optional()}),kp=n({type:c("resource"),resource:k([Ua,Fa]),annotations:we.optional(),_meta:l(r(),a()).optional()}),wp=Ja.extend({type:c("resource_link")}),so=k([oo,no,io,wp,kp]),Pp=n({role:He,content:so}),pa=F.extend({description:r().optional(),messages:y(Pp)}),da=oe.extend({method:c("notifications/prompts/list_changed"),params:re.optional()}),Zp=n({title:r().optional(),readOnlyHint:H().optional(),destructiveHint:H().optional(),idempotentHint:H().optional(),openWorldHint:H().optional()}),Op=n({taskSupport:K(["required","optional","forbidden"]).optional()}),Ba=n({...ke.shape,...Ve.shape,description:r().optional(),inputSchema:n({type:c("object"),properties:l(r(),L).optional(),required:y(r()).optional()}).catchall(a()),outputSchema:n({type:c("object"),properties:l(r(),L).optional(),required:y(r()).optional()}).catchall(a()).optional(),annotations:Zp.optional(),execution:Op.optional(),_meta:l(r(),a()).optional()}),ma=Ge.extend({method:c("tools/list")}),ha=We.extend({tools:y(Ba)}),Mt=F.extend({content:y(so).default([]),structuredContent:l(r(),a()).optional(),isError:H().optional()}),Xm=Mt.or(F.extend({toolResult:a()})),Ip=Ke.extend({name:r(),arguments:l(r(),a()).optional()}),Wo=U.extend({method:c("tools/call"),params:Ip}),Ho=oe.extend({method:c("notifications/tools/list_changed"),params:re.optional()}),Lc=n({autoRefresh:H().default(!0),debounceMs:G().int().nonnegative().default(300)}),qo=K(["debug","info","notice","warning","error","critical","alert","emergency"]),Rp=X.extend({level:qo}),fa=U.extend({method:c("logging/setLevel"),params:Rp}),Tp=re.extend({level:qo,logger:r().optional(),data:a()}),Ep=oe.extend({method:c("notifications/message"),params:Tp}),Ap=n({name:r().optional()}),Cp=n({hints:y(Ap).optional(),costPriority:G().min(0).max(1).optional(),speedPriority:G().min(0).max(1).optional(),intelligencePriority:G().min(0).max(1).optional()}),Np=n({mode:K(["auto","required","none"]).optional()}),jp=n({type:c("tool_result"),toolUseId:r().describe("The unique identifier for the corresponding tool call."),content:y(so).default([]),structuredContent:n({}).loose().optional(),isError:H().optional(),_meta:l(r(),a()).optional()}),Dp=Hr("type",[oo,no,io]),Et=Hr("type",[oo,no,io,Sp,jp]),Lp=n({role:He,content:k([Et,y(Et)]),_meta:l(r(),a()).optional()}),Mp=Ke.extend({messages:y(Lp),modelPreferences:Cp.optional(),systemPrompt:r().optional(),includeContext:K(["none","thisServer","allServers"]).optional(),temperature:G().optional(),maxTokens:G().int(),stopSequences:y(r()).optional(),metadata:L.optional(),tools:y(Ba).optional(),toolChoice:Np.optional()}),ga=U.extend({method:c("sampling/createMessage"),params:Mp}),Fr=F.extend({model:r(),stopReason:A(K(["endTurn","stopSequence","maxTokens"]).or(r())),role:He,content:Dp}),Wn=F.extend({model:r(),stopReason:A(K(["endTurn","stopSequence","maxTokens","toolUse"]).or(r())),role:He,content:k([Et,y(Et)])}),Up=n({type:c("boolean"),title:r().optional(),description:r().optional(),default:H().optional()}),Fp=n({type:c("string"),title:r().optional(),description:r().optional(),minLength:G().optional(),maxLength:G().optional(),format:K(["email","uri","date","date-time"]).optional(),default:r().optional()}),Jp=n({type:K(["number","integer"]),title:r().optional(),description:r().optional(),minimum:G().optional(),maximum:G().optional(),default:G().optional()}),Bp=n({type:c("string"),title:r().optional(),description:r().optional(),enum:y(r()),default:r().optional()}),qp=n({type:c("string"),title:r().optional(),description:r().optional(),oneOf:y(n({const:r(),title:r()})),default:r().optional()}),Kp=n({type:c("string"),title:r().optional(),description:r().optional(),enum:y(r()),enumNames:y(r()).optional(),default:r().optional()}),Vp=k([Bp,qp]),Gp=n({type:c("array"),title:r().optional(),description:r().optional(),minItems:G().optional(),maxItems:G().optional(),items:n({type:c("string"),enum:y(r())}),default:y(r()).optional()}),Wp=n({type:c("array"),title:r().optional(),description:r().optional(),minItems:G().optional(),maxItems:G().optional(),items:n({anyOf:y(n({const:r(),title:r()}))}),default:y(r()).optional()}),Xp=k([Gp,Wp]),Hp=k([Kp,Vp,Xp]),Yp=k([Hp,Up,Fp,Jp]),Qp=Ke.extend({mode:c("form").optional(),message:r(),requestedSchema:n({type:c("object"),properties:l(r(),Yp),required:y(r()).optional()})}),ef=Ke.extend({mode:c("url"),message:r(),elicitationId:r(),url:r().url()}),tf=k([Qp,ef]),ya=U.extend({method:c("elicitation/create"),params:tf}),rf=re.extend({elicitationId:r()}),of=oe.extend({method:c("notifications/elicitation/complete"),params:rf}),gr=F.extend({action:K(["accept","decline","cancel"]),content:$o((e)=>e===null?void 0:e,l(r(),k([r(),G(),H(),y(r())])).optional())}),nf=n({type:c("ref/resource"),uri:r()});var sf=n({type:c("ref/prompt"),name:r()}),cf=X.extend({ref:k([sf,nf]),argument:n({name:r(),value:r()}),context:n({arguments:l(r(),r()).optional()}).optional()}),af=U.extend({method:c("completion/complete"),params:cf});var ba=F.extend({completion:Re({values:y(r()).max(100),total:A(G().int()),hasMore:A(H())})}),uf=n({uri:r().startsWith("file://"),name:r().optional(),_meta:l(r(),a()).optional()}),lf=U.extend({method:c("roots/list"),params:X.optional()}),wa=F.extend({roots:y(uf)}),pf=oe.extend({method:c("notifications/roots/list_changed"),params:re.optional()}),Hm=k([is,ns,af,fa,$p,yp,up,lp,fp,mp,gp,Wo,ma,as,ls,us,ds]),Ym=k([rs,ss,os,pf,jo]),Qm=k([nr,Fr,Wn,gr,wa,cs,ps,or]),eh=k([is,ga,ya,lf,as,ls,us,ds]),th=k([rs,ss,Ep,_p,la,Ho,da,jo,of]),rh=k([nr,ia,ba,pa,ua,sa,aa,ca,Mt,ha,cs,ps,or]);class R extends Error{constructor(e,t,o){super(`MCP error ${e}: ${t}`);this.code=e,this.data=o,this.name="McpError"}static fromError(e,t,o){if(e===D.UrlElicitationRequired&&o){let i=o;if(i.elicitations)return new qa(i.elicitations,t)}return new R(e,t,o)}}class qa extends R{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(D.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}
|
|
59
|
+
export{un,na,kc,r,zo,ts,G,kt,H,Pc,a,y,n,Re,k,Pt,l,c,$o,rr,Rc,fr,Ur,Cc,Rt,Ic,Ct,D,jn,It,nr,rs,ns,oa,ia,os,Mc,is,ss,or,jo,as,cs,ls,us,ps,ds,Oc,sa,aa,ca,la,ua,pa,da,ma,ha,Mt,Wo,Ho,Lc,qo,fa,ga,Fr,Wn,ya,gr,ba,wa,R};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{vt,sr}from"./chunk-28dpfw91.js";import{_t}from"./chunk-zej3kgxg.js";import{Ot,Ze,Z}from"./chunk-fmvs5wd0.js";import{qe,fe,M,Ge,ge,Gt,oe}from"./chunk-2bz3h7k7.js";var{awsEndpointFunctions:W,emitWarningIfUnsupportedVersion:Q,createDefaultUserAgentProvider:Y,NODE_APP_ID_CONFIG_OPTIONS:J,getAwsRegionExtensionConfiguration:X,resolveAwsRegionExtensionConfiguration:ee,resolveUserAgentConfig:te,resolveHostHeaderConfig:se,getUserAgentPlugin:ne,getHostHeaderPlugin:re,getLoggerPlugin:ie,getRecursionDetectionPlugin:ae}=Z(),{NoAuthSigner:ce,getHttpAuthSchemeEndpointRuleSetPlugin:ue,DefaultIdentityProviderConfig:de,getHttpSigningPlugin:pe}=Ze(),{normalizeProvider:b,getSmithyContext:le,ServiceException:he,NoOpLogger:me,emitWarningIfUnsupportedVersion:Se,loadConfigsForDefaultMode:_e,getDefaultExtensionConfiguration:Ee,resolveDefaultRuntimeConfig:Pe,Client:ve,makeBuilder:Re,createAggregatedClient:xe}=fe(),{Command:_s}=fe();var{resolveDefaultsModeConfig:Ce,loadConfig:a,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Ie,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:ye,NODE_REGION_CONFIG_OPTIONS:Ae,NODE_REGION_CONFIG_FILE_OPTIONS:Oe,resolveRegionConfig:we}=M(),{BinaryDecisionDiagram:Te,EndpointCache:Ne,decideEndpoint:De,customEndpointFunctions:ke,resolveEndpointConfig:be,getEndpointPlugin:Fe}=Ge(),{parseUrl:$e,getHttpHandlerExtensionConfiguration:He,resolveHttpHandlerRuntimeConfig:Ue,getContentLengthPlugin:Me}=oe(),{DEFAULT_RETRY_MODE:ze,NODE_RETRY_MODE_CONFIG_OPTIONS:je,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Le,resolveRetryConfig:Ke,getRetryPlugin:Ve}=Ot(),{TypeRegistry:F,getSchemaSerdePlugin:Be}=qe(),{resolveAwsSdkSigV4Config:We,AwsSdkSigV4Signer:Qe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ye}=vt(),{toUtf8:Je,fromUtf8:Xe,toBase64:et,fromBase64:tt,calculateBodyLength:st}=ge(),{streamCollector:ot,NodeHttpHandler:nt}=_t(),{AwsRestJsonProtocol:rt}=sr(),{Sha256:it}=Gt(),at=async(e,t,s)=>({operation:le(t).operation,region:await b(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ct(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function ut(e){return{schemeId:"smithy.api#noAuth"}}var dt=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(ut());break}default:t.push(ct(e))}return t},pt=(e)=>{let t=We(e);return Object.assign(t,{authSchemePreference:b(e.authSchemePreference??[])})},lt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),ht={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},gt="3.997.47",mt={version:gt},p="ref",c=-1,g=!0,w="isSet",q="PartitionResult",m="booleanEquals",v="getAttr",T={[p]:"Endpoint"},R={[p]:q},d={},N=[{[p]:"Region"}],D={conditions:[[w,[T]],[w,N],["aws.partition",N,q],[m,[{[p]:"UseFIPS"},g]],[m,[{[p]:"UseDualStack"},g]],[m,[{fn:v,argv:[R,"supportsDualStack"]},g]],[m,[{fn:v,argv:[R,"supportsFIPS"]},g]],["stringEquals",[{fn:v,argv:[R,"name"]},"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[T,d],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",d],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",d],[c,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",d],[c,"Invalid Configuration: Missing Region"]]},St=2,n=1e8,Et=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]),ft=Te.from(Et,St,D.conditions,D.results),Pt=new Ne({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Rt=(e,t={})=>Pt.get(e,()=>De(ft,{endpointParams:e,logger:t.logger}));ke.aws=W;class u extends he{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e);Object.setPrototypeOf(this,u.prototype)}}class x extends u{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,x.prototype)}}class C extends u{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype)}}class I extends u{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype)}}class y extends u{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype)}}var xt="AccessTokenType",Ct="GetRoleCredentials",It="GetRoleCredentialsRequest",yt="GetRoleCredentialsResponse",At="InvalidRequestException",wt="RoleCredentials",Tt="ResourceNotFoundException",Nt="SecretAccessKeyType",Dt="SessionTokenType",kt="TooManyRequestsException",bt="UnauthorizedException",Ft="accountId",qt="accessKeyId",$t="accessToken",Ht="account_id",S="client",_="error",Ut="expiration",Mt="http",E="httpError",zt="httpHeader",k="httpQuery",f="message",jt="roleCredentials",Lt="roleName",Kt="role_name",H="smithy.ts.sdk.synthetic.com.amazonaws.sso",Vt="secretAccessKey",Bt="sessionToken",Wt="x-amz-sso_bearer_token",r="com.amazonaws.sso",U=new F(H),Qt=[-3,H,"SSOServiceException",0,[],[]];U.registerError(Qt,u);var l=new F(r),Yt=[-3,r,At,{[_]:S,[E]:400},[f],[0]];l.registerError(Yt,x);var Jt=[-3,r,Tt,{[_]:S,[E]:404},[f],[0]];l.registerError(Jt,C);var Xt=[-3,r,kt,{[_]:S,[E]:429},[f],[0]];l.registerError(Xt,I);var Zt=[-3,r,bt,{[_]:S,[E]:401},[f],[0]];l.registerError(Zt,y);var es=[U,l],ts=[0,r,xt,8,0],ss=[0,r,Nt,8,0],os=[0,r,Dt,8,0],ns=[3,r,It,0,[Lt,Ft,$t],[[0,{[k]:Kt}],[0,{[k]:Ht}],[()=>ts,{[zt]:Wt}]],3],rs=[3,r,yt,0,[jt],[[()=>is,0]]],is=[3,r,wt,0,[qt,Vt,Bt,Ut],[0,[()=>ss,0],[()=>os,0],1]],as=[9,r,Ct,{[Mt]:["GET","/federation/credentials",200]},()=>ns,()=>rs],cs=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??tt,base64Encoder:e?.base64Encoder??et,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Rt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??dt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Qe},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ce}],logger:e?.logger??new me,protocol:e?.protocol??rt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:es,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",sha256:e?.sha256??it,urlParser:e?.urlParser??$e,utf8Decoder:e?.utf8Decoder??Xe,utf8Encoder:e?.utf8Encoder??Je}),us=(e)=>{Se(process.version);let t=Ce(e),s=()=>t().then(_e),i=cs(e);Q(process.version);let o={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??a(Ye,o),bodyLengthChecker:e?.bodyLengthChecker??st,defaultUserAgentProvider:e?.defaultUserAgentProvider??Y({serviceId:i.serviceId,clientVersion:mt.version}),maxAttempts:e?.maxAttempts??a(Le,e),region:e?.region??a(Ae,{...Oe,...o}),requestHandler:nt.create(e?.requestHandler??s),retryMode:e?.retryMode??a({...je,default:async()=>(await s()).retryMode||ze},e),streamCollector:e?.streamCollector??ot,useDualstackEndpoint:e?.useDualstackEndpoint??a(ye,o),useFipsEndpoint:e?.useFipsEndpoint??a(Ie,o),userAgentAppId:e?.userAgentAppId??a(J,o)}},ds=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(o){let h=t.findIndex((P)=>P.schemeId===o.schemeId);if(h===-1)t.push(o);else t.splice(h,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){s=o},httpAuthSchemeProvider(){return s},setCredentials(o){i=o},credentials(){return i}}},ps=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ls=(e,t)=>{let s=Object.assign(X(e),Ee(e),He(e),ds(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,ee(s),Pe(s),Ue(s),ps(s))};class A extends ve{config;constructor(...[e]){let t=us(e||{});super(t);this.initConfig=t;let s=lt(t),i=te(s),o=Ke(i),h=we(o),P=se(h),L=be(P),K=pt(L),V=ls(K,e?.extensions||[]);this.config=V,this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(ne(this.config)),this.middlewareStack.use(Ve(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(ue(this.config,{httpAuthSchemeParametersProvider:at,identityProviderConfigProvider:async(B)=>new de({"aws.auth#sigv4":B.credentials})})),this.middlewareStack.use(pe(this.config))}destroy(){super.destroy()}}var hs=Re(ht,"SWBPortalService","SSOClient",Fe),gs={},ms=(e,t,s,i)=>[];class O extends hs(gs,ms,"GetRoleCredentials",as){}var Ss={GetRoleCredentialsCommand:O};class G extends A{}xe(Ss,G);var z=O;var j=A;export{z as GetRoleCredentialsCommand,j as SSOClient};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function r(e){let t=e[e.length-1];return t&&t.role!=="user"?"agent":"user"}function kr(e){return e.some((t)=>{if(t.role==="user"&&Array.isArray(t.content))return t.content.some((n)=>n.type==="image");if(t.role==="toolResult"&&Array.isArray(t.content))return t.content.some((n)=>n.type==="image");return!1})}function Pr(e){let t={"X-Initiator":r(e.messages),"Openai-Intent":"conversation-edits"};if(e.hasImages)t["Copilot-Vision-Request"]="true";return t}
|
|
3
|
+
export{kr,Pr};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{jr,yn,bn,wn,Sn,ro,no,Wr,oo,io,so,ao,co,lo}from"./chunk-b5ph3ffy.js";import{Se}from"./chunk-412mm63g.js";import{se,pe}from"./chunk-pzg6f8rv.js";import{de}from"./chunk-qn316bye.js";import{C}from"./chunk-bkabw9yr.js";import{Ue}from"./chunk-fpksd95h.js";import{re,Me,_e,ht,he,ae}from"./chunk-kh4b25x0.js";import{J}from"./chunk-23qfxx3v.js";var w=0,y=(n,a,t)=>{let o=new J,g=ht(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=T(n,l,t?.headers),h=S(n,g,t),k=await t?.onPayload?.(h,n);if(k!==void 0)h=k;let p=await lo(()=>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=no(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=Wr(i.thinkingSignature,r.thoughtSignature),o.push({type:"thinking_delta",contentIndex:u(),delta:r.text,partial:e});else i.text+=r.text,i.textSignature=Wr(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,x={type:"toolCall",id:!d||e.content.some((b)=>b.type==="toolCall"&&b.id===d)?`${r.functionCall.name}_${Date.now()}_${++w}`:d,name:r.functionCall.name||"",arguments:r.functionCall.args??{},...r.thoughtSignature&&{thoughtSignature:r.thoughtSignature}};e.content.push(x),o.push({type:"toolcall_start",contentIndex:u(),partial:e}),o.push({type:"toolcall_delta",contentIndex:u(),delta:JSON.stringify(x.arguments),partial:e}),o.push({type:"toolcall_end",contentIndex:u(),toolCall:x,partial:e})}}if(m?.finishReason){if(e.rawStopReason=m.finishReason,e.stopReason=co(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}},he(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=pe(se(l)),o.push({type:"error",reason:e.stopReason,error:e}),o.end()}})(),o},K=(n,a,t)=>{let o=t?.apiKey;if(!o)throw Error(`No API key for provider: ${n.provider}`);let g={...de(n,a,t,o),toolChoice:t?.toolChoice};if(!t?.reasoning)return y(n,a,{...g,thinking:{enabled:!1}});let e=ae(n,t.reasoning);if(e==="off")return y(n,a,{...g,thinking:{enabled:!1}});let l=yn(n,e);if(bn(n))return y(n,a,{...g,thinking:{enabled:!0,level:wn(l)}});return y(n,a,{...g,thinking:{enabled:!0,budgetTokens:I(n,l,t.thinkingBudgets)}})};function T(n,a,t){let o={};if(n.baseUrl)o.baseUrl=n.baseUrl,o.apiVersion="";let g=Ue({"User-Agent":Se(),...n.headers,...t});if(g)o.headers=g;return new jr({apiKey:a,httpOptions:Object.keys(o).length>0?o:void 0})}function S(n,a,t={}){let o=oo(n,a),g=Me(a.messages),e=_e(a.messages),l={};if(t.temperature!==void 0)l.temperature=t.temperature;if(t.maxTokens!==void 0)l.maxOutputTokens=t.maxTokens;let c=so(n.id),h=e.length>0?ao(e,t.toolChoice,c):void 0,k=g?re(g):"",p={...Object.keys(l).length>0&&l,...k&&{systemInstruction:C(k)},...e.length>0&&{tools:io(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=Sn(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=ro(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 I(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,K as streamSimple};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{O}from"./chunk-ma4nhnnj.js";var a={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function p(e,r){let o=e.toLowerCase(),t=e.toUpperCase();return r?.[o]||r?.[t]||O(o)||O(t)||""}function f(e){if(e instanceof URL)return e;try{return new URL(e)}catch{return}}function u(e){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e}function l(e){let r=e.trim().toLowerCase();if(!r)return;if(r.startsWith("[")){let t=r.indexOf("]");if(t!==-1){let n=r.slice(1,t),c=r.slice(t+1);if(c.startsWith(":")){let s=Number.parseInt(c.slice(1),10);return{host:n,port:Number.isNaN(s)?0:s}}return{host:n,port:0}}}if(r.includes(":")&&r.split(":").length>2)return{host:r,port:0};let o=r.lastIndexOf(":");if(o!==-1&&o===r.indexOf(":")){let t=r.slice(0,o),n=Number.parseInt(r.slice(o+1),10);if(!Number.isNaN(n))return{host:t,port:n}}return{host:r,port:0}}function d(e,r,o){let t=p("no_proxy",o).toLowerCase();if(!t)return!0;if(t==="*")return!1;let n=u(e.toLowerCase());return t.split(/[,\s]/).every((c)=>{let s=l(c);if(!s)return!0;if(s.port&&s.port!==r)return!0;let i=u(s.host);if(i.startsWith("*."))i=i.slice(2);else if(i.startsWith(".")||i.startsWith("*"))i=i.slice(1);if(!i)return!0;if(n===i)return!1;if(n.endsWith(`.${i}`))return!1;return!0})}function h(e,r){let o=f(e);if(!o?.protocol||!o.host)return"";let t=o.protocol.split(":",1)[0],n=u(o.hostname||o.host.replace(/:\d*$/,"")),c=Number.parseInt(o.port,10)||a[t]||0;if(!d(n,c,r))return"";let s=p(`${t}_proxy`,r)||p("all_proxy",r);if(s&&!s.includes("://"))s=`${t}://${s}`;return s}var x="Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL.";function yo(e,r){let o=h(e,r);if(!o)return;let t;try{t=new URL(o)}catch(n){throw Error(`Invalid proxy URL ${JSON.stringify(o)}: ${n instanceof Error?n.message:String(n)}`)}if(t.protocol!=="http:"&&t.protocol!=="https:")throw Error(`${x} Got ${t.protocol}`);return t}
|
|
3
|
+
export{yo};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ne}from"./chunk-19nje7ny.js";import{Qt}from"./chunk-3bqs901a.js";import{De,wo,So,Ie,En,Ne}from"./chunk-qn316bye.js";import{C}from"./chunk-bkabw9yr.js";import{re,mt,xe,He,he}from"./chunk-kh4b25x0.js";function j(a,o){let l={v:1,id:a};if(o)l.phase=o;return JSON.stringify(l)}function E(a){if(!a)return;if(a.startsWith("{"))try{let o=JSON.parse(a);if(o.v===1&&typeof o.id==="string"){if(o.phase==="commentary"||o.phase==="final_answer")return{id:o.id,phase:o.phase};return{id:o.id}}}catch{}return{id:a}}function N(a,o){let l=o.filter((c)=>c.type==="text").map((c)=>c.text).join(`
|
|
3
|
+
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return C(u?l:d.length>0?"(see attached image)":"(no tool output)");let p=[];if(u)p.push({type:"input_text",text:C(l)});for(let c of d)p.push({type:"input_image",detail:"auto",image_url:`data:${c.mimeType};base64,${c.data}`});return p}function cr(a,o,l,d){let u=xe(o,d?.supportsMidConvoSystemMessages),p=[],c=(n)=>{let s=n.replace(/[^a-zA-Z0-9_-]/g,"_");return(s.length>64?s.slice(0,64):s).replace(/_+$/,"")},S=(n)=>{let s=`fc_${Qt(n)}`;return s.length>64?s.slice(0,64):s},x=(n,s,i)=>{if(!l.has(a.provider))return c(n);if(!n.includes("|"))return c(n);let[r,g]=n.split("|"),h=c(r),y=i.provider!==a.provider||i.api!==a.api?S(g):c(g);if(!y.startsWith("fc_"))y=c(`fc_${y}`);return`${h}|${y}`},m=Ne(u.messages,a,x),k=He(u.messages,(d?.supportsAdditionalTools??!1)||(d?.supportsToolSearch??!1)),T=(n,s)=>{let i=k.anchorsAdditions?n.toolsAdded??[]:[];if(i.length===0)return;if(d?.supportsAdditionalTools){p.push({type:"additional_tools",role:"developer",tools:Kt(i,d.toolOptions)});return}if(!d?.supportsToolSearch)return;let r=i.map((h)=>h.name),g=`pi_tool_load_${Qt(`${s}:${r.join(",")}`)}`;p.push({type:"tool_search_call",call_id:g,execution:"client",status:"completed",arguments:{query:r.join(" "),limit:r.length}}),p.push({type:"tool_search_output",call_id:g,execution:"client",status:"completed",tools:Kt(i,{...d.toolOptions,toolSearchResult:!0})})},R=d?.includeSystemPrompt??!0,w=a.compat,M=a.reasoning&&w?.supportsDeveloperRole!==!1?"developer":"system",t=0,e=0;for(let n of m){let s=e++===0&&n.role==="system";if(n.role==="system"){if(!s)T(n,`system:${t}`);if(!s||R){let i=s?re(n):mt(n);if(i.length>0)p.push({role:M,content:C(i)})}}else if(n.role==="user")if(typeof n.content==="string")p.push({role:"user",content:[{type:"input_text",text:C(n.content)}]});else{let i=n.content.map((r)=>{if(r.type==="text")return{type:"input_text",text:C(r.text)};return{type:"input_image",detail:"auto",image_url:`data:${r.mimeType};base64,${r.data}`}});if(i.length===0)continue;p.push({role:"user",content:i})}else if(n.role==="assistant"){let i=[],r=n,g=r.provider===a.provider&&r.api===a.api,h=g&&r.model===a.id,P=g&&r.model!==a.id,y=0;for(let I of n.content)if(I.type==="thinking"){if(I.thinkingSignature){let f=JSON.parse(I.thinkingSignature);i.push(f)}}else if(I.type==="text"){let f=I,b=E(f.textSignature),J=y===0?`msg_pi_${t}`:`msg_pi_${t}_${y}`;y++;let _=b?.id;if(!_)_=J;else if(_.length>64)_=`msg_${Qt(_)}`;i.push({type:"message",role:"assistant",content:[{type:"output_text",text:C(f.text),annotations:[]}],status:"completed",id:_,phase:b?.phase})}else if(I.type==="toolCall"){let f=I,[b,J]=f.id.split("|"),_=d?.grammarToolInputProperties?.get(f.name),v=J,A=_===void 0?"fc_":"ctc_";if(P||!v?.startsWith(A))v=void 0;if(_!==void 0)i.push({type:"custom_tool_call",id:v,call_id:b,name:f.name,input:C(wo(f.name,f.arguments,_)),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}});else i.push({type:"function_call",id:v,call_id:b,name:f.name,arguments:JSON.stringify(f.arguments),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}})}if(i.length===0)continue;p.push(...i)}else if(n.role==="toolResult"){let[i]=n.toolCallId.split("|"),r=N(a,n.content);if(d?.grammarToolInputProperties?.has(n.toolName))p.push({type:"custom_tool_call_output",call_id:i,output:r});else p.push({type:"function_call_output",call_id:i,output:r})}if(!s)t++}return p}function Kt(a,o){let l=o?.strict===void 0?!1:o.strict,d=o?.supportsStrictMode??!0,u=o?.supportsOpenAIGrammarTools??!1;return a.map((p)=>{let c=En(p,u);if(c)return{type:"custom",name:p.name,description:p.description,format:{type:"grammar",syntax:c.format,definition:c.definition},...o?.toolSearchResult?{defer_loading:!0}:{}};let x=Ie(p,d)??l,m={type:"function",name:p.name,description:p.description,parameters:De(p,x===!0),...o?.toolSearchResult?{defer_loading:!0}:{}};if(d)m.strict=x;return m})}function z(a){let o=a.customInput?.property;if(o===void 0)return"";let l=a.arguments[o];return typeof l==="string"?l:""}function O(a,o,l){let d=a.customInput;if(!d)return;let u=So(d.jsonBuffer,d.property,o,l);return a.arguments={[d.property]:o},u}async function lr(a,o,l,d,u){let p=!1,c=new Map,S=new Map,x=(t)=>{if(t.type==="message"&&t.phase==="final_answer")o.stopReason="stop"},m=(t,e)=>{let n=c.get(t);return n?.type===e?n:void 0},k=(t,e)=>{if(e===void 0)return;l.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:o})},T=(t,e)=>{if(e.type==="reasoning"){let n={type:"thinking",thinking:""};o.content.push(n);let s={type:"thinking",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"thinking_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="message"){x(e);let n={type:"text",text:""};o.content.push(n);let s={type:"text",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"text_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="function_call"){let n={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};o.content.push(n);let s={type:"toolCall",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"toolcall_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="custom_tool_call"){let n=u?.grammarToolInputProperties?.get(e.name)??"input",s=e.input||"",i={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[n]:s},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:n,jsonBuffer:{input:"",started:!1,closed:!1}}};o.content.push(i);let r={type:"toolCall",block:i,contentIndex:o.content.length-1};return c.set(t,r),l.push({type:"toolcall_start",contentIndex:r.contentIndex,partial:o}),r}return},R=(t,e)=>c.get(t)??T(t,e),w=(t)=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let n=S.get(e.id);if(!n?.thinkingSignature)continue;let s=JSON.parse(n.thinkingSignature);if(s.encrypted_content)continue;n.thinkingSignature=JSON.stringify({...s,encrypted_content:e.encrypted_content})}},M=(t)=>{if(p=!0,w(t.output??[]),t?.id)o.responseId=t.id;if(t?.usage){let r=t.usage.input_tokens_details,g=r?.cached_tokens||0,h=r?.cache_write_tokens||0;o.usage={input:Math.max(0,(t.usage.input_tokens||0)-g-h),output:t.usage.output_tokens||0,cacheRead:g,cacheWrite:h,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(he(d,o.usage),u?.applyServiceTierPricing){let r=u.resolveServiceTier?u.resolveServiceTier(t?.service_tier,u.serviceTier):t?.service_tier??u.serviceTier;u.applyServiceTierPricing(o.usage,r)}let e=t?.status,n=t?.incomplete_details,s=typeof n?.reason==="string"?n.reason:void 0;o.rawStopReason=s?`${e}.${s}`:e;let i=W(e,s);if(o.stopReason=i.stopReason,i.errorMessage===void 0)delete o.errorMessage;else o.errorMessage=i.errorMessage;if(o.content.some((r)=>r.type==="toolCall")&&o.stopReason==="stop")o.stopReason="toolUse"};for await(let t of a)if(await u?.onProviderStreamEvent?.(t,d),t.type==="response.created")o.responseId=t.response.id;else if(t.type==="response.output_item.added")T(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.reasoning_summary_part.done"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
|
|
4
|
+
|
|
5
|
+
`,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
|
|
6
|
+
|
|
7
|
+
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=ne(e.block.partialJson),k(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let n=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=ne(e.block.partialJson),t.arguments.startsWith(n)){let s=t.arguments.slice(n.length);if(s.length>0)k(e,s)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,z(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;x(e);let n=R(t.output_index,e);if(e.type==="reasoning"&&n?.type==="thinking"){let s=e.summary?.map((r)=>r.text).join(`
|
|
8
|
+
|
|
9
|
+
`)||"",i=e.content?.map((r)=>r.text).join(`
|
|
10
|
+
|
|
11
|
+
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),S.set(e.id,n.block),l.push({type:"thinking_end",contentIndex:n.contentIndex,content:n.block.thinking,partial:o}),c.delete(t.output_index)}else if(e.type==="message"&&n?.type==="text")n.block.text=e.content?.map((s)=>s.type==="output_text"?s.text:s.refusal).join("")||"",n.block.textSignature=j(e.id,e.phase??void 0),l.push({type:"text_end",contentIndex:n.contentIndex,content:n.block.text,partial:o}),c.delete(t.output_index);else if(e.type==="function_call"&&n?.type==="toolCall"&&n.block.partialJson!==void 0){if(n.block.arguments=ne(e.arguments||n.block.partialJson||"{}"),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.partialJson,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}else if(e.type==="custom_tool_call"&&n?.type==="toolCall"&&n.block.customInput){if(k(n,O(n.block,e.input??z(n.block),!0)),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.customInput,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}}else if(t.type==="response.completed"||t.type==="response.incomplete")M(t.response);else if(t.type==="error")throw Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");else if(t.type==="response.failed"){p=!0,o.rawStopReason=t.response?.status;let e=t.response?.error,n=t.response?.incomplete_details,s=e?`${e.code||"unknown"}: ${e.message||"no message"}`:n?.reason?`incomplete: ${n.reason}`:"Unknown error (no error details in response)";throw Error(s)}if(!p)throw Error("OpenAI Responses stream ended before a terminal response event");if(o.stopReason==="toolUse")for(let t of o.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function W(a,o){if(!a)return{stopReason:"stop"};switch(a){case"completed":return{stopReason:"stop"};case"incomplete":if(o==="max_output_tokens")return{stopReason:"length"};return{stopReason:"error",errorMessage:o?`Response incomplete: ${o}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:throw Error(`Unhandled stop reason: ${a}`)}}
|
|
12
|
+
export{cr,Kt,lr};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ka,vt,sr}from"./chunk-28dpfw91.js";import{_t}from"./chunk-zej3kgxg.js";import{Ot,Ze,Z}from"./chunk-fmvs5wd0.js";import{qe,fe,M,Ge,ge,Gt,oe}from"./chunk-2bz3h7k7.js";import{o}from"./chunk-5ngmwd2s.js";var me=o(function(xt){var{SignatureV4:Ct,signatureV4aContainer:ue}=ka(),b={CrtSignerV4:null},le="X-Amz-S3session-Token".toLowerCase();class Q extends Ct{async signWithCredentials(e,t,s){let r=de(t);e.headers[le]=t.sessionToken;let n=this;return pe(n,r),n.signRequest(e,s??{})}async presignWithCredentials(e,t,s){let r=de(t);return delete e.headers[le],e.headers["X-Amz-S3session-Token"]=t.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=t.sessionToken,pe(this,r),this.presign(e,s)}}function de(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function pe(e,t){let s=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=s,Promise.resolve(t))}class he{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof b.CrtSignerV4==="function")return"crt";else if(typeof ue.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new Q(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,s={}){if(s.signingRegion==="*"){let r=this.getSigv4aSigner(),n=b.CrtSignerV4;if(n&&r instanceof n)return r.signWithCredentials(e,t,s);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,s)}async presign(e,t={}){if(t.signingRegion==="*"){let s=this.getSigv4aSigner(),r=b.CrtSignerV4;if(r&&s instanceof r)return s.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,s={}){if(s.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,s)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=b.CrtSignerV4,t=ue.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}xt.SignatureV4MultiRegion=he;xt.SignatureV4SignWithCredentials=Q;xt.signatureV4CrtContainer=b});var{awsEndpointFunctions:bt,emitWarningIfUnsupportedVersion:$t,createDefaultUserAgentProvider:Nt,NODE_APP_ID_CONFIG_OPTIONS:Wt,getAwsRegionExtensionConfiguration:Ht,resolveAwsRegionExtensionConfiguration:Ut,resolveUserAgentConfig:qt,resolveHostHeaderConfig:Ft,getUserAgentPlugin:Vt,getHostHeaderPlugin:Lt,getLoggerPlugin:Kt,getRecursionDetectionPlugin:Mt,setCredentialFeature:X,stsRegionDefaultResolver:jt}=Z(),{NoAuthSigner:Re,getHttpAuthSchemeEndpointRuleSetPlugin:zt,DefaultIdentityProviderConfig:Yt,getHttpSigningPlugin:Qt}=Ze(),{normalizeProvider:Ce,getSmithyContext:_e,ServiceException:Bt,NoOpLogger:Jt,emitWarningIfUnsupportedVersion:Xt,loadConfigsForDefaultMode:Zt,getDefaultExtensionConfiguration:es,resolveDefaultRuntimeConfig:ts,Client:xe,makeBuilder:ss,createAggregatedClient:ns}=fe(),{Command:os}=fe();var ro=os,io=xe;var{resolveDefaultsModeConfig:rs,loadConfig:y,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:is,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:as,NODE_REGION_CONFIG_OPTIONS:cs,NODE_REGION_CONFIG_FILE_OPTIONS:us,resolveRegionConfig:ls}=M(),{BinaryDecisionDiagram:ds,EndpointCache:gs,decideEndpoint:ps,customEndpointFunctions:hs,resolveParams:ms,resolveEndpointConfig:Ss,getEndpointPlugin:vs}=Ge(),{parseUrl:fs,getHttpHandlerExtensionConfiguration:Ps,resolveHttpHandlerRuntimeConfig:ys,getContentLengthPlugin:Es}=oe(),{DEFAULT_RETRY_MODE:As,NODE_RETRY_MODE_CONFIG_OPTIONS:Is,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ws,resolveRetryConfig:Rs,getRetryPlugin:Cs}=Ot(),{TypeRegistry:Te,getSchemaSerdePlugin:_s}=qe(),{resolveAwsSdkSigV4Config:xs,resolveAwsSdkSigV4AConfig:Ts,AwsSdkSigV4Signer:ke,AwsSdkSigV4ASigner:De,NODE_SIGV4A_CONFIG_OPTIONS:ks,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ds}=vt(),{SignatureV4MultiRegion:be}=me(),{toUtf8:bs,fromUtf8:Os,toBase64:$s,fromBase64:Ns,calculateBodyLength:Ws}=ge(),{streamCollector:Hs,NodeHttpHandler:Us}=_t(),{AwsQueryProtocol:qs}=sr(),{Sha256:Fs}=Gt(),D="ref",I=-1,O=!0,Se="isSet",Oe="PartitionResult",N="booleanEquals",l="stringEquals",B="getAttr",ve="us-east-1",Pe="sigv4",ye="sts",Ee="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ae={[D]:"Endpoint"},d={[D]:"Region"},J={[D]:Oe},k={},Ie=[d],we={conditions:[[Se,[Ae]],[Se,Ie],["aws.partition",Ie,Oe],[N,[{[D]:"UseFIPS"},O]],[N,[{[D]:"UseDualStack"},O]],[l,[d,"aws-global"]],[N,[{[D]:"UseGlobalEndpoint"},O]],[l,[d,"eu-central-1"]],[N,[{fn:B,argv:[J,"supportsDualStack"]},O]],[N,[{fn:B,argv:[J,"supportsFIPS"]},O]],[l,[d,"ap-south-1"]],[l,[d,"eu-north-1"]],[l,[d,"eu-west-1"]],[l,[d,"eu-west-2"]],[l,[d,"eu-west-3"]],[l,[d,"sa-east-1"]],[l,[d,ve]],[l,[d,"us-east-2"]],[l,[d,"us-west-2"]],[l,[d,"us-west-1"]],[l,[d,"ca-central-1"]],[l,[d,"ap-southeast-1"]],[l,[d,"ap-northeast-1"]],[l,[d,"ap-southeast-2"]],[l,[{fn:B,argv:[J,"name"]},"aws-us-gov"]]],results:[[I],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:ye,signingRegion:ve}]}],[Ee,{authSchemes:[{name:Pe,signingName:ye,signingRegion:"{Region}"}]}],[I,"Invalid Configuration: FIPS and custom endpoint are not supported"],[I,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ae,k],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",k],[I,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",k],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",k],[I,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",k],[I,"DualStack is enabled but this partition does not support DualStack"],[Ee,k],[I,"Invalid Configuration: Missing Region"]]},Vs=2,i=1e8,Ls=new Int32Array([-1,1,-1,0,30,3,1,4,i+14,2,5,i+14,3,25,6,4,24,7,5,i+1,8,6,9,i+13,7,i+1,10,10,i+1,11,11,i+1,12,12,i+1,13,13,i+1,14,14,i+1,15,15,i+1,16,16,i+1,17,17,i+1,18,18,i+1,19,19,i+1,20,20,i+1,21,21,i+1,22,22,i+1,23,23,i+1,i+2,8,i+11,i+12,4,28,26,9,27,i+10,24,i+8,i+9,8,29,i+7,9,i+6,i+7,3,i+3,31,4,i+4,i+5]),Ks=ds.from(Ls,Vs,we.conditions,we.results),Ms=new gs({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),$e=(e,t={})=>Ms.get(e,()=>ps(Ks,{endpointParams:e,logger:t.logger}));hs.aws=bt;var js=(e)=>async(t,s,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,r),u=_e(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!u)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let a=await ms(r,{getEndpointParameterInstructions:u},t);return Object.assign(n,a)},zs=async(e,t,s)=>({operation:_e(t).operation,region:await Ce(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Gs=js(zs);function Ne(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function ee(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function We(e){return{schemeId:"smithy.api#noAuth"}}var Ys=(e,t,s)=>(n)=>{let a=e(n).properties?.authSchemes;if(!a)return t(n);let g=[];for(let S of a){let{name:p,properties:v={},...A}=S,f=p.toLowerCase();if(p!==f)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${f}'`);let m;if(f==="sigv4a"){m="aws.auth#sigv4a";let G=a.find((Y)=>{let ce=Y.name.toLowerCase();return ce!=="sigv4a"&&ce.startsWith("sigv4")});if(be.sigv4aDependency()==="none"&&G)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let T=s[m];if(!T)throw Error(`Could not find HttpAuthOption create function for '${m}'`);let P=T(n);P.schemeId=m,P.signingProperties={...P.signingProperties||{},...A,...v},g.push(P)}return g},Qs=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(We()),t.push(ee(e));break}default:t.push(Ne(e)),t.push(ee(e))}return t},Bs=Ys($e,Qs,{"aws.auth#sigv4":Ne,"aws.auth#sigv4a":ee,"smithy.api#noAuth":We}),Js=(e)=>{let t=xs(e),s=Ts(t);return Object.assign(s,{authSchemePreference:Ce(e.authSchemePreference??[])})},Xs=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Zs={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},en="3.997.47",tn={version:en};class h extends Bt{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}class H extends h{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype)}}class U extends h{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype)}}class q extends h{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class F extends h{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class V extends h{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype)}}class L extends h{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}class K extends h{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype)}}var sn="Arn",nn="AccessKeyId",on="AssumeRole",rn="AssumedRoleId",an="AssumeRoleRequest",cn="AssumeRoleResponse",te="AssumedRoleUser",un="AssumeRoleWithWebIdentity",ln="AssumeRoleWithWebIdentityRequest",dn="AssumeRoleWithWebIdentityResponse",gn="Audience",se="Credentials",pn="ContextAssertion",He="DurationSeconds",hn="Expiration",mn="ExternalId",Sn="ExpiredTokenException",vn="IDPCommunicationErrorException",fn="IDPRejectedClaimException",Pn="InvalidIdentityTokenException",yn="Key",En="MalformedPolicyDocumentException",Ue="MinimumSessionTokenSize",Fe="Policy",Ve="PolicyArns",An="ProviderArn",In="ProvidedContexts",wn="ProvidedContextsListType",Rn="ProvidedContext",Cn="PolicyDescriptorType",_n="ProviderId",Le="PackedPolicySize",xn="PackedPolicyTooLargeException",Tn="Provider",Ke="RoleArn",kn="RegionDisabledException",Me="RoleSessionName",Dn="SecretAccessKey",bn="SubjectFromWebIdentityToken",ne="SourceIdentity",On="SerialNumber",$n="SessionToken",je="SessionTokenSize",ze="SessionTokenUtilization",Nn="Tags",Wn="TokenCode",Hn="TransitiveTagKeys",Un="Tag",qn="Value",Fn="WebIdentityToken",Vn="arn",Ln="accessKeySecretType",w="awsQueryError",R="client",Kn="clientTokenType",C="error",_="httpError",x="message",Mn="policyDescriptorListType",Ye="smithy.ts.sdk.synthetic.com.amazonaws.sts",jn="tagListType",c="com.amazonaws.sts",Qe=new Te(Ye),Be=[-3,Ye,"STSServiceException",0,[],[]];Qe.registerError(Be,h);var E=new Te(c),Je=[-3,c,Sn,{[w]:["ExpiredTokenException",400],[C]:R,[_]:400},[x],[0]];E.registerError(Je,H);var Xe=[-3,c,vn,{[w]:["IDPCommunicationError",400],[C]:R,[_]:400},[x],[0]];E.registerError(Xe,K);var et=[-3,c,fn,{[w]:["IDPRejectedClaim",403],[C]:R,[_]:403},[x],[0]];E.registerError(et,V);var tt=[-3,c,Pn,{[w]:["InvalidIdentityToken",400],[C]:R,[_]:400},[x],[0]];E.registerError(tt,L);var st=[-3,c,En,{[w]:["MalformedPolicyDocument",400],[C]:R,[_]:400},[x],[0]];E.registerError(st,U);var nt=[-3,c,xn,{[w]:["PackedPolicyTooLarge",400],[C]:R,[_]:400},[x],[0]];E.registerError(nt,q);var ot=[-3,c,kn,{[w]:["RegionDisabledException",403],[C]:R,[_]:403},[x],[0]];E.registerError(ot,F);var rt=[Qe,E],zn=[0,c,Ln,8,0],Gn=[0,c,Kn,8,0],re=[3,c,te,0,[rn,sn],[0,0],2],it=[3,c,an,0,[Ke,Me,Ve,Fe,He,Nn,Hn,mn,On,Wn,ne,In,Ue],[0,0,()=>pt,0,1,()=>Qn,64,0,0,0,0,()=>Yn,1],2],at=[3,c,cn,0,[se,te,Le,ne,ze,je],[[()=>ie,0],()=>re,1,0,1,1]],ct=[3,c,ln,0,[Ke,Me,Fn,_n,Ve,Fe,He,Ue],[0,0,[()=>Gn,0],0,()=>pt,0,1,1],3],ut=[3,c,dn,0,[se,bn,te,Le,Tn,gn,ne,ze,je],[[()=>ie,0],0,()=>re,1,0,0,0,1,1]],ie=[3,c,se,0,[nn,Dn,$n,hn],[0,[()=>zn,0],0,4],4],lt=[3,c,Cn,0,[Vn],[0]],dt=[3,c,Rn,0,[An,pn],[0,0]],gt=[3,c,Un,0,[yn,qn],[0,0],2],pt=[1,c,Mn,0,()=>lt],Yn=[1,c,wn,0,()=>dt],Qn=[1,c,jn,0,()=>gt],ht=[9,c,on,0,()=>it,()=>at],mt=[9,c,un,0,()=>ct,()=>ut],Bn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Ns,base64Encoder:e?.base64Encoder??$s,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??$e,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Bs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ke},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new De},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Re}],logger:e?.logger??new Jt,protocol:e?.protocol??qs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:rt,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??Fs,signerConstructor:e?.signerConstructor??be,urlParser:e?.urlParser??fs,utf8Decoder:e?.utf8Decoder??Os,utf8Encoder:e?.utf8Encoder??bs}),Jn=(e)=>{Xt(process.version);let t=rs(e),s=()=>t().then(Zt),r=Bn(e);$t(process.version);let n={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??y(Ds,n),bodyLengthChecker:e?.bodyLengthChecker??Ws,defaultUserAgentProvider:e?.defaultUserAgentProvider??Nt({serviceId:r.serviceId,clientVersion:tn.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new ke},{schemeId:"aws.auth#sigv4a",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4a"),signer:new De},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Re}],maxAttempts:e?.maxAttempts??y(ws,e),region:e?.region??y(cs,{...us,...n}),requestHandler:Us.create(e?.requestHandler??s),retryMode:e?.retryMode??y({...Is,default:async()=>(await s()).retryMode||As},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??y(ks,n),streamCollector:e?.streamCollector??Hs,useDualstackEndpoint:e?.useDualstackEndpoint??y(as,n),useFipsEndpoint:e?.useFipsEndpoint??y(is,n),userAgentAppId:e?.userAgentAppId??y(Wt,n)}},Xn=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:r}=e;return{setHttpAuthScheme(n){let u=t.findIndex((a)=>a.schemeId===n.schemeId);if(u===-1)t.push(n);else t.splice(u,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){r=n},credentials(){return r}}},Zn=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),eo=(e,t)=>{let s=Object.assign(Ht(e),es(e),Ps(e),Xn(e));return t.forEach((r)=>r.configure(s)),Object.assign(e,Ut(s),ts(s),ys(s),Zn(s))};class W extends xe{config;constructor(...[e]){let t=Jn(e||{});super(t);this.initConfig=t;let s=Xs(t),r=qt(s),n=Rs(r),u=ls(n),a=Ft(u),g=Ss(a),S=Js(g),p=eo(S,e?.extensions||[]);this.config=p,this.middlewareStack.use(_s(this.config)),this.middlewareStack.use(Vt(this.config)),this.middlewareStack.use(Cs(this.config)),this.middlewareStack.use(Es(this.config)),this.middlewareStack.use(Lt(this.config)),this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(zt(this.config,{httpAuthSchemeParametersProvider:Gs,identityProviderConfigProvider:async(v)=>new Yt({"aws.auth#sigv4":v.credentials,"aws.auth#sigv4a":v.credentials})})),this.middlewareStack.use(Qt(this.config))}destroy(){super.destroy()}}var St=ss(Zs,"AWSSecurityTokenServiceV20110615","STSClient",vs),ft={},Pt=(e,t,s,r)=>[];class j extends St(ft,Pt,"AssumeRole",ht){}class z extends St(ft,Pt,"AssumeRoleWithWebIdentity",mt){}var to={AssumeRoleCommand:j,AssumeRoleWithWebIdentityCommand:z};class ae extends W{}ns(to,ae);var yt=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Et=async(e,t,s,r={})=>{let n=typeof e==="function"?await e():e,u=typeof t==="function"?await t():t,a="",g=n??u??(a=await jt(r)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${u} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),g},so=(e,t)=>{let s,r;return async(n,u)=>{if(r=n,!s){let{logger:v=e?.parentClientConfig?.logger,profile:A=e?.parentClientConfig?.profile,region:f,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:T,userAgentAppId:P=e?.parentClientConfig?.userAgentAppId}=e,G=await Et(f,e?.parentClientConfig?.region,T,{logger:v,profile:A}),Y=!At(m);s=new t({...e,userAgentAppId:P,profile:A,credentialDefaultProvider:()=>async()=>r,region:G,requestHandler:Y?m:void 0,logger:v})}let{Credentials:a,AssumedRoleUser:g}=await s.send(new j(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`);let S=yt(g),p={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...S&&{accountId:S}};return X(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},no=(e,t)=>{let s;return async(r)=>{if(!s){let{logger:S=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:v,requestHandler:A=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,T=await Et(v,e?.parentClientConfig?.region,f,{logger:S,profile:p}),P=!At(A);s=new t({...e,userAgentAppId:m,profile:p,region:T,requestHandler:P?A:void 0,logger:S})}let{Credentials:n,AssumedRoleUser:u}=await s.send(new z(r));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);let a=yt(u),g={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};if(a)X(g,"RESOLVED_ACCOUNT_ID","T");return X(g,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),g}},At=(e)=>e?.metadata?.handlerProtocol==="h2",It=(e,t)=>{if(!t)return e;else return class extends e{constructor(r){super(r);for(let n of t)this.middlewareStack.use(n)}}},wt=(e={},t)=>so(e,It(W,t)),Rt=(e={},t)=>no(e,It(W,t)),oo=(e)=>(t)=>e({roleAssumer:wt(t),roleAssumerWithWebIdentity:Rt(t),...t});var ao=ht,co=j,uo=it,lo=at,go=mt,po=z,ho=ct,mo=ut,So=re,vo=ie,fo=H,Po=Je,yo=K,Eo=Xe,Ao=V,Io=et,wo=L,Ro=tt,Co=U,_o=st,xo=q,To=nt,ko=lt,Do=dt,bo=F,Oo=ot,$o=ae,No=W,Wo=h,Ho=Be,Uo=gt,qo=oo,Fo=rt,Vo=wt,Lo=Rt;export{ro as $Command,io as __Client,ao as AssumeRole$,co as AssumeRoleCommand,uo as AssumeRoleRequest$,lo as AssumeRoleResponse$,go as AssumeRoleWithWebIdentity$,po as AssumeRoleWithWebIdentityCommand,ho as AssumeRoleWithWebIdentityRequest$,mo as AssumeRoleWithWebIdentityResponse$,So as AssumedRoleUser$,vo as Credentials$,fo as ExpiredTokenException,Po as ExpiredTokenException$,yo as IDPCommunicationErrorException,Eo as IDPCommunicationErrorException$,Ao as IDPRejectedClaimException,Io as IDPRejectedClaimException$,wo as InvalidIdentityTokenException,Ro as InvalidIdentityTokenException$,Co as MalformedPolicyDocumentException,_o as MalformedPolicyDocumentException$,xo as PackedPolicyTooLargeException,To as PackedPolicyTooLargeException$,ko as PolicyDescriptorType$,Do as ProvidedContext$,bo as RegionDisabledException,Oo as RegionDisabledException$,$o as STS,No as STSClient,Wo as STSServiceException,Ho as STSServiceException$,Uo as Tag$,qo as decorateDefaultCredentialProvider,Fo as errorTypeRegistries,Vo as getDefaultRoleAssumer,Lo as getDefaultRoleAssumerWithWebIdentity};
|