@bkm016/basalt 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/chunk-082x3g29.js +3 -0
- package/chunk-0aaf270z.js +3 -0
- package/chunk-0dqv9x0y.js +51 -0
- package/chunk-0ns02fzq.js +2 -0
- package/chunk-0y13kfpt.js +5 -0
- package/chunk-1753m6xk.js +4179 -0
- package/chunk-24ae99b6.js +5 -0
- package/chunk-2cp8why4.js +2 -0
- package/chunk-3bdzn4h2.js +2 -0
- package/chunk-48m0w8xg.js +2 -0
- package/chunk-4pr7ykh0.js +2 -0
- package/chunk-4qtw5cga.js +12 -0
- package/chunk-4yqge35f.js +3 -0
- package/chunk-65rd9zn4.js +3 -0
- package/chunk-67ehvv4n.js +44 -0
- package/chunk-6wm62kte.js +18 -0
- package/chunk-6zkggkdm.js +13 -0
- package/chunk-78ferdza.js +3 -0
- package/chunk-794r8w6m.js +2 -0
- package/chunk-7azn0brs.js +7 -0
- package/chunk-7wh4n0yg.js +2 -0
- package/chunk-7z0wh161.js +25 -0
- package/chunk-95aqrqnh.js +2 -0
- package/chunk-a0zcps2d.js +2 -0
- package/chunk-a23pv6tv.js +3 -0
- package/chunk-adb2nbxk.js +2 -0
- package/chunk-as2ty5w5.js +3 -0
- package/chunk-b84y794v.js +3 -0
- package/chunk-bh80e336.js +3 -0
- package/chunk-c6azecvs.js +3 -0
- package/chunk-cc8h8mz9.js +2 -0
- package/chunk-cdb6caq7.js +3 -0
- package/chunk-cjdbsa9s.js +3 -0
- package/chunk-cnqgtmwm.js +10 -0
- package/chunk-cwn9vs1a.js +3 -0
- package/chunk-cxybp3fn.js +8 -0
- package/chunk-dea2htm4.js +2 -0
- package/chunk-e01wravf.js +12 -0
- package/chunk-f0pz8pvb.js +5 -0
- package/chunk-fvmrsrmq.js +3 -0
- package/chunk-fwdhn0gw.js +7 -0
- package/chunk-h7x8g57v.js +9 -0
- package/chunk-h8qhy3px.js +39 -0
- package/chunk-hsvchrh3.js +7 -0
- package/chunk-j1peg724.js +504 -0
- package/chunk-j2cse817.js +63 -0
- package/chunk-j3jzgw98.js +31 -0
- package/chunk-jmzdtefg.js +2 -0
- package/chunk-k0e6n6yy.js +3 -0
- package/chunk-mb2jqd5z.js +3 -0
- package/chunk-nbgtqpay.js +3 -0
- package/chunk-prfczhpq.js +10 -0
- package/chunk-pv25a7sw.js +2 -0
- package/chunk-q8m2x20d.js +286 -0
- package/chunk-qnkxeh37.js +3 -0
- package/chunk-qvfrv3rb.js +59 -0
- package/chunk-r14x07ez.js +2 -0
- package/chunk-r1kah65k.js +2 -0
- package/chunk-r6pt44wk.js +60 -0
- package/chunk-rhkw8ygf.js +3 -0
- package/chunk-rvqeb7gr.js +3 -0
- package/chunk-rwa7mfwa.js +2 -0
- package/chunk-sj46f002.js +2 -0
- package/chunk-sp89jja7.js +3 -0
- package/chunk-sss5x2ak.js +2 -0
- package/chunk-szn4y5mx.js +25 -0
- package/chunk-t05q9ksf.js +2 -0
- package/chunk-tb66q678.js +11 -0
- package/chunk-tej75y8n.js +2 -0
- package/chunk-tmfr2ym8.js +4 -0
- package/chunk-txwheg1n.js +2 -0
- package/chunk-ve6n38r4.js +16 -0
- package/chunk-vfa49qcy.js +3 -0
- package/chunk-wcy1r6vv.js +2 -0
- package/chunk-wj6am3ag.js +3 -0
- package/chunk-x0afp8wt.js +3 -0
- package/chunk-xe627eyp.js +20 -0
- package/chunk-y18ey7s9.js +8 -0
- package/chunk-y9r7tt53.js +3 -0
- package/chunk-yq20v3va.js +3 -0
- package/chunk-yyg4ygv7.js +2 -0
- package/chunk-z2zhr4e5.js +3 -0
- package/chunk-zdtg52xn.js +2 -0
- package/chunk-zrhdrkdb.js +5 -0
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +33 -33
- package/web/chunk-0d0fwb7b.js +2 -0
- package/web/chunk-0d0fwb7b.js.br +0 -0
- package/web/chunk-0d0fwb7b.js.gz +0 -0
- package/web/chunk-0jm4zyrt.js +1 -0
- package/web/chunk-0jm4zyrt.js.br +0 -0
- package/web/chunk-0jm4zyrt.js.gz +0 -0
- package/web/chunk-0pp7dzx1.js +1 -0
- package/web/chunk-0pp7dzx1.js.br +0 -0
- package/web/chunk-0pp7dzx1.js.gz +0 -0
- package/web/chunk-0w73jp4n.js +1 -0
- package/web/chunk-0w73jp4n.js.br +0 -0
- package/web/chunk-0w73jp4n.js.gz +0 -0
- package/web/chunk-1416f30c.js +2 -0
- package/web/chunk-1416f30c.js.br +0 -0
- package/web/chunk-1416f30c.js.gz +0 -0
- package/web/chunk-18wyawez.js +30 -0
- package/web/chunk-18wyawez.js.br +0 -0
- package/web/chunk-18wyawez.js.gz +0 -0
- package/web/chunk-19ew9re5.js +1 -0
- package/web/chunk-19ew9re5.js.br +0 -0
- package/web/chunk-19ew9re5.js.gz +0 -0
- package/web/chunk-1mdtr9wk.js +8 -0
- package/web/chunk-1mdtr9wk.js.br +1 -0
- package/web/chunk-1mdtr9wk.js.gz +0 -0
- package/web/chunk-1p4egv85.js +1 -0
- package/web/chunk-1p4egv85.js.br +0 -0
- package/web/chunk-1p4egv85.js.gz +0 -0
- package/web/chunk-1x61dvvr.js +2 -0
- package/web/chunk-1x61dvvr.js.br +0 -0
- package/web/chunk-1x61dvvr.js.gz +0 -0
- package/web/chunk-241n0y1h.js +1 -0
- package/web/chunk-241n0y1h.js.br +0 -0
- package/web/chunk-241n0y1h.js.gz +0 -0
- package/web/chunk-26sgnzb2.js +1 -0
- package/web/chunk-26sgnzb2.js.br +0 -0
- package/web/chunk-26sgnzb2.js.gz +0 -0
- package/web/chunk-2p77pefd.js +1 -0
- package/web/chunk-2p77pefd.js.br +0 -0
- package/web/chunk-2p77pefd.js.gz +0 -0
- package/web/chunk-2ppe5znq.js +1 -0
- package/web/chunk-2ppe5znq.js.br +0 -0
- package/web/chunk-2ppe5znq.js.gz +0 -0
- package/web/chunk-2qzr943m.js +2 -0
- package/web/chunk-2qzr943m.js.br +0 -0
- package/web/chunk-2qzr943m.js.gz +0 -0
- package/web/chunk-32k44660.js +214 -0
- package/web/chunk-32k44660.js.br +0 -0
- package/web/chunk-32k44660.js.gz +0 -0
- package/web/chunk-33zb5a76.js +2 -0
- package/web/chunk-33zb5a76.js.br +0 -0
- package/web/chunk-33zb5a76.js.gz +0 -0
- package/web/chunk-38bzkv9k.js +7 -0
- package/web/chunk-38bzkv9k.js.br +0 -0
- package/web/chunk-38bzkv9k.js.gz +0 -0
- package/web/chunk-42ytz496.js +1 -0
- package/web/chunk-42ytz496.js.br +0 -0
- package/web/chunk-42ytz496.js.gz +0 -0
- package/web/chunk-4749rrqv.js +55 -0
- package/web/chunk-4749rrqv.js.br +0 -0
- package/web/chunk-4749rrqv.js.gz +0 -0
- package/web/chunk-4d57cnh5.js +40 -0
- package/web/chunk-4d57cnh5.js.br +0 -0
- package/web/chunk-4d57cnh5.js.gz +0 -0
- package/web/chunk-4gh3hcrc.js +1 -0
- package/web/chunk-4gh3hcrc.js.br +0 -0
- package/web/chunk-4gh3hcrc.js.gz +0 -0
- package/web/chunk-4hg08mj3.js +1 -0
- package/web/chunk-4hg08mj3.js.br +0 -0
- package/web/chunk-4hg08mj3.js.gz +0 -0
- package/web/chunk-4rra9tt7.js +78 -0
- package/web/chunk-4rra9tt7.js.br +0 -0
- package/web/chunk-4rra9tt7.js.gz +0 -0
- package/web/chunk-572kjbne.js +89 -0
- package/web/chunk-572kjbne.js.br +0 -0
- package/web/chunk-572kjbne.js.gz +0 -0
- package/web/chunk-5hqe3cct.js +98 -0
- package/web/chunk-5hqe3cct.js.br +0 -0
- package/web/chunk-5hqe3cct.js.gz +0 -0
- package/web/chunk-5k4vdcwk.js +24 -0
- package/web/chunk-5k4vdcwk.js.br +0 -0
- package/web/chunk-5k4vdcwk.js.gz +0 -0
- package/web/chunk-5z44jbdc.js +1 -0
- package/web/chunk-5z44jbdc.js.br +0 -0
- package/web/chunk-5z44jbdc.js.gz +0 -0
- package/web/chunk-600x58nm.js +1143 -0
- package/web/chunk-600x58nm.js.br +0 -0
- package/web/chunk-600x58nm.js.gz +0 -0
- package/web/chunk-61djfs0t.js +140 -0
- package/web/chunk-61djfs0t.js.br +0 -0
- package/web/chunk-61djfs0t.js.gz +0 -0
- package/web/chunk-6j4jdvtd.js +1 -0
- package/web/chunk-6j4jdvtd.js.br +0 -0
- package/web/chunk-6j4jdvtd.js.gz +0 -0
- package/web/chunk-74ymgabb.js +2 -0
- package/web/chunk-74ymgabb.js.br +0 -0
- package/web/chunk-74ymgabb.js.gz +0 -0
- package/web/chunk-768vchz5.js +169 -0
- package/web/chunk-768vchz5.js.br +0 -0
- package/web/chunk-768vchz5.js.gz +0 -0
- package/web/chunk-7f87paxe.js +36 -0
- package/web/chunk-7f87paxe.js.br +0 -0
- package/web/chunk-7f87paxe.js.gz +0 -0
- package/web/chunk-7ns0kj87.js +2 -0
- package/web/chunk-7ns0kj87.js.br +0 -0
- package/web/chunk-7ns0kj87.js.gz +0 -0
- package/web/chunk-7vpk9y00.js +1 -0
- package/web/chunk-7vpk9y00.js.br +0 -0
- package/web/chunk-7vpk9y00.js.gz +0 -0
- package/web/chunk-89mc1vj3.js +1 -0
- package/web/chunk-89mc1vj3.js.br +0 -0
- package/web/chunk-89mc1vj3.js.gz +0 -0
- package/web/chunk-8wgpesrk.js +139 -0
- package/web/chunk-8wgpesrk.js.br +0 -0
- package/web/chunk-8wgpesrk.js.gz +0 -0
- package/web/chunk-9nh1aeqs.js +303 -0
- package/web/chunk-9nh1aeqs.js.br +0 -0
- package/web/chunk-9nh1aeqs.js.gz +0 -0
- package/web/chunk-9pgq2ax4.js +1 -0
- package/web/chunk-9pgq2ax4.js.br +0 -0
- package/web/chunk-9pgq2ax4.js.gz +0 -0
- package/web/chunk-9tfs2dg1.js +1 -0
- package/web/chunk-9tfs2dg1.js.br +0 -0
- package/web/chunk-9tfs2dg1.js.gz +0 -0
- package/web/chunk-9wemd2wn.js +41 -0
- package/web/chunk-9wemd2wn.js.br +0 -0
- package/web/chunk-9wemd2wn.js.gz +0 -0
- package/web/chunk-9wsz2j8n.js +1 -0
- package/web/chunk-9wsz2j8n.js.br +0 -0
- package/web/chunk-9wsz2j8n.js.gz +0 -0
- package/web/chunk-9wzvqpre.js +2 -0
- package/web/chunk-9wzvqpre.js.br +0 -0
- package/web/chunk-9wzvqpre.js.gz +0 -0
- package/web/chunk-a48wgrb1.js +1 -0
- package/web/chunk-a48wgrb1.js.br +2 -0
- package/web/chunk-a48wgrb1.js.gz +0 -0
- package/web/chunk-a67d8w1k.js +14 -0
- package/web/chunk-a67d8w1k.js.br +0 -0
- package/web/chunk-a67d8w1k.js.gz +0 -0
- package/web/chunk-ah8e1y9j.js +4 -0
- package/web/chunk-ah8e1y9j.js.br +0 -0
- package/web/chunk-ah8e1y9j.js.gz +0 -0
- package/web/chunk-amsr9cg2.js +1 -0
- package/web/chunk-amsr9cg2.js.br +0 -0
- package/web/chunk-amsr9cg2.js.gz +0 -0
- package/web/chunk-aps2c5t2.js +16 -0
- package/web/chunk-aps2c5t2.js.br +0 -0
- package/web/chunk-aps2c5t2.js.gz +0 -0
- package/web/chunk-avfynf6y.js +1 -0
- package/web/chunk-avfynf6y.js.br +0 -0
- package/web/chunk-avfynf6y.js.gz +0 -0
- package/web/chunk-b5zrttcx.js +2 -0
- package/web/chunk-b5zrttcx.js.br +0 -0
- package/web/chunk-b5zrttcx.js.gz +0 -0
- package/web/chunk-bvvf024a.js +24 -0
- package/web/chunk-bvvf024a.js.br +0 -0
- package/web/chunk-bvvf024a.js.gz +0 -0
- package/web/chunk-by2dphx7.js +200 -0
- package/web/chunk-by2dphx7.js.br +0 -0
- package/web/chunk-by2dphx7.js.gz +0 -0
- package/web/chunk-c0sc2yy1.js +1 -0
- package/web/chunk-c0sc2yy1.js.br +0 -0
- package/web/chunk-c0sc2yy1.js.gz +0 -0
- package/web/chunk-c612n2pw.js +2 -0
- package/web/chunk-c612n2pw.js.br +0 -0
- package/web/chunk-c612n2pw.js.gz +0 -0
- package/web/chunk-c91rk85x.js +2 -0
- package/web/chunk-c91rk85x.js.br +0 -0
- package/web/chunk-c91rk85x.js.gz +0 -0
- package/web/chunk-catm30vp.js +2 -0
- package/web/chunk-catm30vp.js.br +0 -0
- package/web/chunk-catm30vp.js.gz +0 -0
- package/web/chunk-cbdxzddd.js +142 -0
- package/web/chunk-cbdxzddd.js.br +0 -0
- package/web/chunk-cbdxzddd.js.gz +0 -0
- package/web/chunk-cng693ts.js +2 -0
- package/web/chunk-cng693ts.js.br +0 -0
- package/web/chunk-cng693ts.js.gz +0 -0
- package/web/chunk-d5vcma5a.js +89 -0
- package/web/chunk-d5vcma5a.js.br +0 -0
- package/web/chunk-d5vcma5a.js.gz +0 -0
- package/web/chunk-d6d9cp71.js +1 -0
- package/web/chunk-d6d9cp71.js.br +2 -0
- package/web/chunk-d6d9cp71.js.gz +0 -0
- package/web/chunk-dsghhcew.js +1 -0
- package/web/chunk-dsghhcew.js.br +0 -0
- package/web/chunk-dsghhcew.js.gz +0 -0
- package/web/chunk-dt2e6evf.js +1 -0
- package/web/chunk-dt2e6evf.js.br +0 -0
- package/web/chunk-dt2e6evf.js.gz +0 -0
- package/web/chunk-dxrsmcah.js +1 -0
- package/web/chunk-dxrsmcah.js.br +0 -0
- package/web/chunk-dxrsmcah.js.gz +0 -0
- package/web/chunk-ent5zx24.js +1 -0
- package/web/chunk-ent5zx24.js.br +2 -0
- package/web/chunk-ent5zx24.js.gz +0 -0
- package/web/chunk-f4n1q3mf.js +1 -0
- package/web/chunk-f4n1q3mf.js.br +0 -0
- package/web/chunk-f4n1q3mf.js.gz +0 -0
- package/web/chunk-fdfrv6bc.js +1 -0
- package/web/chunk-fdfrv6bc.js.br +2 -0
- package/web/chunk-fdfrv6bc.js.gz +0 -0
- package/web/chunk-fh44xz70.js +1 -0
- package/web/chunk-fh44xz70.js.br +0 -0
- package/web/chunk-fh44xz70.js.gz +0 -0
- package/web/chunk-fkbp72gk.js +1 -0
- package/web/chunk-fkbp72gk.js.br +0 -0
- package/web/chunk-fkbp72gk.js.gz +0 -0
- package/web/chunk-fzkjgwzq.js +4 -0
- package/web/chunk-fzkjgwzq.js.br +0 -0
- package/web/chunk-fzkjgwzq.js.gz +0 -0
- package/web/chunk-gf2gznsb.js +38 -0
- package/web/chunk-gf2gznsb.js.br +0 -0
- package/web/chunk-gf2gznsb.js.gz +0 -0
- package/web/chunk-gne1ybac.js +2 -0
- package/web/chunk-gne1ybac.js.br +0 -0
- package/web/chunk-gne1ybac.js.gz +0 -0
- package/web/chunk-gws1fj71.js +106 -0
- package/web/chunk-gws1fj71.js.br +0 -0
- package/web/chunk-gws1fj71.js.gz +0 -0
- package/web/chunk-h4m88fg8.js +2 -0
- package/web/chunk-h4m88fg8.js.br +0 -0
- package/web/chunk-h4m88fg8.js.gz +0 -0
- package/web/chunk-h4vk09kd.js +2 -0
- package/web/chunk-h4vk09kd.js.br +0 -0
- package/web/chunk-h4vk09kd.js.gz +0 -0
- package/web/chunk-h6wzjfj2.js +34 -0
- package/web/chunk-h6wzjfj2.js.br +0 -0
- package/web/chunk-h6wzjfj2.js.gz +0 -0
- package/web/chunk-hajg1p0h.js +7 -0
- package/web/chunk-hajg1p0h.js.br +0 -0
- package/web/chunk-hajg1p0h.js.gz +0 -0
- package/web/chunk-hhmd6qrc.js +2 -0
- package/web/chunk-hhmd6qrc.js.br +0 -0
- package/web/chunk-hhmd6qrc.js.gz +0 -0
- package/web/chunk-hya0fh1r.js +1 -0
- package/web/chunk-hya0fh1r.js.br +0 -0
- package/web/chunk-hya0fh1r.js.gz +0 -0
- package/web/chunk-j469ky77.js +1 -0
- package/web/chunk-j469ky77.js.br +0 -0
- package/web/chunk-j469ky77.js.gz +0 -0
- package/web/chunk-j6ymcm3h.js +2 -0
- package/web/chunk-j6ymcm3h.js.br +0 -0
- package/web/chunk-j6ymcm3h.js.gz +0 -0
- package/web/chunk-j79z6bta.js +21 -0
- package/web/chunk-j79z6bta.js.br +0 -0
- package/web/chunk-j79z6bta.js.gz +0 -0
- package/web/chunk-jbxc5y3z.js +12 -0
- package/web/chunk-jbxc5y3z.js.br +0 -0
- package/web/chunk-jbxc5y3z.js.gz +0 -0
- package/web/chunk-jcc187d7.js +1 -0
- package/web/chunk-jcc187d7.js.br +0 -0
- package/web/chunk-jcc187d7.js.gz +0 -0
- package/web/chunk-jjvpdxhd.js +2 -0
- package/web/chunk-jjvpdxhd.js.br +0 -0
- package/web/chunk-jjvpdxhd.js.gz +0 -0
- package/web/chunk-jrh3mwmy.js +2 -0
- package/web/chunk-jrh3mwmy.js.br +0 -0
- package/web/chunk-jrh3mwmy.js.gz +0 -0
- package/web/chunk-jv3pgdp0.js +1 -0
- package/web/chunk-jv3pgdp0.js.br +2 -0
- package/web/chunk-jv3pgdp0.js.gz +0 -0
- package/web/chunk-ksxjhezb.js +1 -0
- package/web/chunk-ksxjhezb.js.br +0 -0
- package/web/chunk-ksxjhezb.js.gz +0 -0
- package/web/chunk-ktnd8t40.js +2 -0
- package/web/chunk-ktnd8t40.js.br +0 -0
- package/web/chunk-ktnd8t40.js.gz +0 -0
- package/web/chunk-mgwv3dp0.js +1 -0
- package/web/chunk-mgwv3dp0.js.br +0 -0
- package/web/chunk-mgwv3dp0.js.gz +0 -0
- package/web/chunk-mtjdfgjj.js +2 -0
- package/web/chunk-mtjdfgjj.js.br +0 -0
- package/web/chunk-mtjdfgjj.js.gz +0 -0
- package/web/chunk-mzkaanwd.js +2 -0
- package/web/chunk-mzkaanwd.js.br +0 -0
- package/web/chunk-mzkaanwd.js.gz +0 -0
- package/web/chunk-n22pg5xy.js +1 -0
- package/web/chunk-n22pg5xy.js.br +0 -0
- package/web/chunk-n22pg5xy.js.gz +0 -0
- package/web/chunk-n58ezsfb.js +2 -0
- package/web/chunk-n58ezsfb.js.br +0 -0
- package/web/chunk-n58ezsfb.js.gz +0 -0
- package/web/chunk-nhx74teq.js +3 -0
- package/web/chunk-nhx74teq.js.br +0 -0
- package/web/chunk-nhx74teq.js.gz +0 -0
- package/web/chunk-njjsgwfw.js +2 -0
- package/web/chunk-njjsgwfw.js.br +0 -0
- package/web/chunk-njjsgwfw.js.gz +0 -0
- package/web/chunk-nwhqcbnr.js +1 -0
- package/web/chunk-nwhqcbnr.js.br +0 -0
- package/web/chunk-nwhqcbnr.js.gz +0 -0
- package/web/chunk-pnghaajd.js +70 -0
- package/web/chunk-pnghaajd.js.br +0 -0
- package/web/chunk-pnghaajd.js.gz +0 -0
- package/web/chunk-pqfn8x7v.js +1 -0
- package/web/chunk-pqfn8x7v.js.br +0 -0
- package/web/chunk-pqfn8x7v.js.gz +0 -0
- package/web/chunk-ptk0jnyx.js +1 -0
- package/web/chunk-ptk0jnyx.js.br +0 -0
- package/web/chunk-ptk0jnyx.js.gz +0 -0
- package/web/chunk-pv7e5g4k.js +370 -0
- package/web/chunk-pv7e5g4k.js.br +0 -0
- package/web/chunk-pv7e5g4k.js.gz +0 -0
- package/web/chunk-pxnh5qgn.js +2 -0
- package/web/chunk-pxnh5qgn.js.br +0 -0
- package/web/chunk-pxnh5qgn.js.gz +0 -0
- package/web/chunk-q6eq5y2t.js +1 -0
- package/web/chunk-q6eq5y2t.js.br +2 -0
- package/web/chunk-q6eq5y2t.js.gz +0 -0
- package/web/chunk-qdwg9n1d.js +1 -0
- package/web/chunk-qdwg9n1d.js.br +0 -0
- package/web/chunk-qdwg9n1d.js.gz +0 -0
- package/web/chunk-qp42gtvd.js +1 -0
- package/web/chunk-qp42gtvd.js.br +0 -0
- package/web/chunk-qp42gtvd.js.gz +0 -0
- package/web/chunk-qzdw8vdp.js +1 -0
- package/web/chunk-qzdw8vdp.js.br +0 -0
- package/web/chunk-qzdw8vdp.js.gz +0 -0
- package/web/chunk-r571ywxq.js +1 -0
- package/web/chunk-r571ywxq.js.br +0 -0
- package/web/chunk-r571ywxq.js.gz +0 -0
- package/web/chunk-r9fx4cjw.js +1 -0
- package/web/chunk-r9fx4cjw.js.br +0 -0
- package/web/chunk-r9fx4cjw.js.gz +0 -0
- package/web/chunk-rhvq3c1c.js +1 -0
- package/web/chunk-rhvq3c1c.js.br +0 -0
- package/web/chunk-rhvq3c1c.js.gz +0 -0
- package/web/chunk-rjay9w1t.js +1 -0
- package/web/chunk-rjay9w1t.js.br +0 -0
- package/web/chunk-rjay9w1t.js.gz +0 -0
- package/web/chunk-rpvdnc3p.js +1 -0
- package/web/chunk-rpvdnc3p.js.br +0 -0
- package/web/chunk-rpvdnc3p.js.gz +0 -0
- package/web/chunk-rrfr4wyt.js +62 -0
- package/web/chunk-rrfr4wyt.js.br +0 -0
- package/web/chunk-rrfr4wyt.js.gz +0 -0
- package/web/chunk-rvngywg9.js +2 -0
- package/web/chunk-rvngywg9.js.br +0 -0
- package/web/chunk-rvngywg9.js.gz +0 -0
- package/web/chunk-rw7d025r.js +84 -0
- package/web/chunk-rw7d025r.js.br +0 -0
- package/web/chunk-rw7d025r.js.gz +0 -0
- package/web/chunk-s1g8acth.js +324 -0
- package/web/chunk-s1g8acth.js.br +0 -0
- package/web/chunk-s1g8acth.js.gz +0 -0
- package/web/chunk-s8572njv.js +2 -0
- package/web/chunk-s8572njv.js.br +1 -0
- package/web/chunk-s8572njv.js.gz +0 -0
- package/web/chunk-sb57e1m9.css +1 -0
- package/web/chunk-sb57e1m9.css.br +0 -0
- package/web/chunk-sb57e1m9.css.gz +0 -0
- package/web/chunk-sn3h5adt.js +2 -0
- package/web/chunk-sn3h5adt.js.br +0 -0
- package/web/chunk-sn3h5adt.js.gz +0 -0
- package/web/chunk-tb2v18q8.js +2 -0
- package/web/chunk-tb2v18q8.js.br +0 -0
- package/web/chunk-tb2v18q8.js.gz +0 -0
- package/web/chunk-tetbyky0.js +39 -0
- package/web/chunk-tetbyky0.js.br +0 -0
- package/web/chunk-tetbyky0.js.gz +0 -0
- package/web/chunk-tqvctvsv.js +1 -0
- package/web/chunk-tqvctvsv.js.br +0 -0
- package/web/chunk-tqvctvsv.js.gz +0 -0
- package/web/chunk-v9mj2pxz.js +1 -0
- package/web/chunk-v9mj2pxz.js.br +0 -0
- package/web/chunk-v9mj2pxz.js.gz +0 -0
- package/web/chunk-vkhah4nd.js +2 -0
- package/web/chunk-vkhah4nd.js.br +0 -0
- package/web/chunk-vkhah4nd.js.gz +0 -0
- package/web/chunk-vpnh7wmw.js +1 -0
- package/web/chunk-vpnh7wmw.js.br +0 -0
- package/web/chunk-vpnh7wmw.js.gz +0 -0
- package/web/chunk-w1qe2x5p.js +217 -0
- package/web/chunk-w1qe2x5p.js.br +0 -0
- package/web/chunk-w1qe2x5p.js.gz +0 -0
- package/web/chunk-werh47fw.js +99 -0
- package/web/chunk-werh47fw.js.br +0 -0
- package/web/chunk-werh47fw.js.gz +0 -0
- package/web/chunk-wfmf0dc8.js +1 -0
- package/web/chunk-wfmf0dc8.js.br +0 -0
- package/web/chunk-wfmf0dc8.js.gz +0 -0
- package/web/chunk-wna4vqp6.js +1 -0
- package/web/chunk-wna4vqp6.js.br +0 -0
- package/web/chunk-wna4vqp6.js.gz +0 -0
- package/web/chunk-wwhq09nf.js +1 -0
- package/web/chunk-wwhq09nf.js.br +0 -0
- package/web/chunk-wwhq09nf.js.gz +0 -0
- package/web/chunk-x6va53y6.js +291 -0
- package/web/chunk-x6va53y6.js.br +0 -0
- package/web/chunk-x6va53y6.js.gz +0 -0
- package/web/chunk-xefyzr9s.js +120 -0
- package/web/chunk-xefyzr9s.js.br +0 -0
- package/web/chunk-xefyzr9s.js.gz +0 -0
- package/web/chunk-xj1w9054.js +2 -0
- package/web/chunk-xj1w9054.js.br +0 -0
- package/web/chunk-xj1w9054.js.gz +0 -0
- package/web/chunk-xtb3xhxk.js +2 -0
- package/web/chunk-xtb3xhxk.js.br +2 -0
- package/web/chunk-xtb3xhxk.js.gz +0 -0
- package/web/chunk-y1eeptks.js +2 -0
- package/web/chunk-y1eeptks.js.br +0 -0
- package/web/chunk-y1eeptks.js.gz +0 -0
- package/web/chunk-y7z6zmvp.js +292 -0
- package/web/chunk-y7z6zmvp.js.br +0 -0
- package/web/chunk-y7z6zmvp.js.gz +0 -0
- package/web/chunk-yj8tkncg.js +7 -0
- package/web/chunk-yj8tkncg.js.br +0 -0
- package/web/chunk-yj8tkncg.js.gz +0 -0
- package/web/chunk-z0m2d74w.js +1 -0
- package/web/chunk-z0m2d74w.js.br +0 -0
- package/web/chunk-z0m2d74w.js.gz +0 -0
- package/web/chunk-z30kqv40.js +1 -0
- package/web/chunk-z30kqv40.js.br +0 -0
- package/web/chunk-z30kqv40.js.gz +0 -0
- package/web/chunk-z3a96d42.js +332 -0
- package/web/chunk-z3a96d42.js.br +0 -0
- package/web/chunk-z3a96d42.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-10y5hvt2.js +0 -2
- package/chunk-22k2be3e.js +0 -13
- package/chunk-28hye007.js +0 -2
- package/chunk-2fmsw1c6.js +0 -5
- package/chunk-2h2mvrw2.js +0 -3
- package/chunk-2xj51v3m.js +0 -3
- package/chunk-3x0wm92n.js +0 -3
- package/chunk-4fgsqb1e.js +0 -2
- package/chunk-519eek65.js +0 -39
- package/chunk-5qa4dean.js +0 -2
- package/chunk-5x256mz8.js +0 -2
- package/chunk-6n01sefp.js +0 -8
- package/chunk-74xtmwpw.js +0 -2
- package/chunk-7mafj833.js +0 -3
- package/chunk-7v1sqn9k.js +0 -59
- package/chunk-8my52htr.js +0 -3
- package/chunk-8vh98e46.js +0 -2
- package/chunk-92mpgche.js +0 -2
- package/chunk-9vacevyf.js +0 -3
- package/chunk-9y44m27k.js +0 -5
- package/chunk-a5wv2shs.js +0 -3
- package/chunk-a78qhb4t.js +0 -5
- package/chunk-axsxx67j.js +0 -3
- package/chunk-b49fzzzn.js +0 -2
- package/chunk-bc8awbnt.js +0 -2
- package/chunk-crxs0n0r.js +0 -3
- package/chunk-csed8fsv.js +0 -3
- package/chunk-cspx3bz9.js +0 -2
- package/chunk-ctdtmwmd.js +0 -63
- package/chunk-d3xsmwbh.js +0 -25
- package/chunk-dvwgpsfz.js +0 -3
- package/chunk-dzd8k6bw.js +0 -3
- package/chunk-e2xqa46t.js +0 -2
- package/chunk-e41mpwx9.js +0 -9
- package/chunk-e5ccfgsk.js +0 -3
- package/chunk-e67wqhzh.js +0 -12
- package/chunk-emeb13nd.js +0 -25
- package/chunk-ers9s2c4.js +0 -31
- package/chunk-ezq0fnz6.js +0 -3
- package/chunk-ezqvx0hm.js +0 -2
- package/chunk-f10ca9ma.js +0 -12
- package/chunk-f72jhcp8.js +0 -2
- package/chunk-fjv41a8r.js +0 -4155
- package/chunk-gj0dhgbg.js +0 -3
- package/chunk-h0ggc6pv.js +0 -60
- package/chunk-hrt42rkh.js +0 -4
- package/chunk-j7m36g5w.js +0 -3
- package/chunk-jhn30hjp.js +0 -2
- package/chunk-ka41gq1g.js +0 -16
- package/chunk-kcp9byws.js +0 -2
- package/chunk-me72k64f.js +0 -7
- package/chunk-n4jemqf1.js +0 -2
- package/chunk-ndt4jvh1.js +0 -3
- package/chunk-pyxn4wqj.js +0 -3
- package/chunk-rajb3566.js +0 -2
- package/chunk-rbq2gsar.js +0 -3
- package/chunk-rd98e7kg.js +0 -10
- package/chunk-rm5dbbsg.js +0 -3
- package/chunk-rztw3tgx.js +0 -3
- package/chunk-s4mn41eh.js +0 -8
- package/chunk-s9p624fq.js +0 -44
- package/chunk-sawrte7v.js +0 -3
- package/chunk-sd8d792h.js +0 -51
- package/chunk-sgvmxx0d.js +0 -2
- package/chunk-sqbnt2t1.js +0 -3
- package/chunk-t2bvj735.js +0 -2
- package/chunk-t8tkamx6.js +0 -2
- package/chunk-tbehe5ky.js +0 -18
- package/chunk-tsha69rv.js +0 -7
- package/chunk-twqwer9t.js +0 -5
- package/chunk-vr2rtqeh.js +0 -2
- package/chunk-vr6eej6b.js +0 -3
- package/chunk-w41gswj8.js +0 -3
- package/chunk-x7tras0x.js +0 -498
- package/chunk-xakmebnm.js +0 -10
- package/chunk-xj453mny.js +0 -286
- package/chunk-xmrw19xj.js +0 -2
- package/chunk-xpj8fcjp.js +0 -20
- package/chunk-y218jsvc.js +0 -3
- package/chunk-y33fkh8m.js +0 -2
- package/chunk-z3h9ydyr.js +0 -11
- package/chunk-zc51vfhr.js +0 -2
- package/chunk-zm88mnds.js +0 -7
- package/chunk-zz9rj82y.js +0 -3
- package/web/chunk-0b5vh2pt.js +0 -2
- package/web/chunk-0b5vh2pt.js.br +0 -0
- package/web/chunk-0b5vh2pt.js.gz +0 -0
- package/web/chunk-0hkdqhkv.js +0 -1
- package/web/chunk-0hkdqhkv.js.br +0 -0
- package/web/chunk-0hkdqhkv.js.gz +0 -0
- package/web/chunk-0v7wrb32.js +0 -2
- package/web/chunk-0v7wrb32.js.br +0 -0
- package/web/chunk-0v7wrb32.js.gz +0 -0
- package/web/chunk-0x2fgw1m.js +0 -1
- package/web/chunk-0x2fgw1m.js.br +0 -0
- package/web/chunk-0x2fgw1m.js.gz +0 -0
- package/web/chunk-0xctxqvv.js +0 -2
- package/web/chunk-0xctxqvv.js.br +0 -0
- package/web/chunk-0xctxqvv.js.gz +0 -0
- package/web/chunk-0y9tf0rt.js +0 -89
- package/web/chunk-0y9tf0rt.js.br +0 -0
- package/web/chunk-0y9tf0rt.js.gz +0 -0
- package/web/chunk-0yrp0f6x.js +0 -1
- package/web/chunk-0yrp0f6x.js.br +0 -0
- package/web/chunk-0yrp0f6x.js.gz +0 -0
- package/web/chunk-10jk2pn9.js +0 -1
- package/web/chunk-10jk2pn9.js.br +0 -0
- package/web/chunk-10jk2pn9.js.gz +0 -0
- package/web/chunk-15ka35m9.js +0 -2
- package/web/chunk-15ka35m9.js.br +0 -0
- package/web/chunk-15ka35m9.js.gz +0 -0
- package/web/chunk-1700cges.js +0 -1
- package/web/chunk-1700cges.js.br +0 -0
- package/web/chunk-1700cges.js.gz +0 -0
- package/web/chunk-1apw6pnk.css +0 -1
- package/web/chunk-1apw6pnk.css.br +0 -0
- package/web/chunk-1apw6pnk.css.gz +0 -0
- package/web/chunk-1b005nqw.js +0 -139
- package/web/chunk-1b005nqw.js.br +0 -0
- package/web/chunk-1b005nqw.js.gz +0 -0
- package/web/chunk-1c9khgyt.js +0 -1
- package/web/chunk-1c9khgyt.js.br +0 -2
- package/web/chunk-1c9khgyt.js.gz +0 -0
- package/web/chunk-1pr20x9x.js +0 -1
- package/web/chunk-1pr20x9x.js.br +0 -0
- package/web/chunk-1pr20x9x.js.gz +0 -0
- package/web/chunk-1sjgdggk.js +0 -7
- package/web/chunk-1sjgdggk.js.br +0 -0
- package/web/chunk-1sjgdggk.js.gz +0 -0
- package/web/chunk-1tt5ympp.js +0 -1
- package/web/chunk-1tt5ympp.js.br +0 -0
- package/web/chunk-1tt5ympp.js.gz +0 -0
- package/web/chunk-29fpfs5q.js +0 -1142
- package/web/chunk-29fpfs5q.js.br +0 -0
- package/web/chunk-29fpfs5q.js.gz +0 -0
- package/web/chunk-2gr7vwnp.js +0 -24
- package/web/chunk-2gr7vwnp.js.br +0 -0
- package/web/chunk-2gr7vwnp.js.gz +0 -0
- package/web/chunk-2p84jch3.js +0 -1
- package/web/chunk-2p84jch3.js.br +0 -0
- package/web/chunk-2p84jch3.js.gz +0 -0
- package/web/chunk-2qs283mh.js +0 -2
- package/web/chunk-2qs283mh.js.br +0 -0
- package/web/chunk-2qs283mh.js.gz +0 -0
- package/web/chunk-3gf2d852.js +0 -1
- package/web/chunk-3gf2d852.js.br +0 -0
- package/web/chunk-3gf2d852.js.gz +0 -0
- package/web/chunk-3hswqkb0.js +0 -1
- package/web/chunk-3hswqkb0.js.br +0 -0
- package/web/chunk-3hswqkb0.js.gz +0 -0
- package/web/chunk-46yjp1x4.js +0 -2
- package/web/chunk-46yjp1x4.js.br +0 -0
- package/web/chunk-46yjp1x4.js.gz +0 -0
- package/web/chunk-4ezd1rkc.js +0 -84
- package/web/chunk-4ezd1rkc.js.br +0 -0
- package/web/chunk-4ezd1rkc.js.gz +0 -0
- package/web/chunk-4v9ar0sf.js +0 -142
- package/web/chunk-4v9ar0sf.js.br +0 -0
- package/web/chunk-4v9ar0sf.js.gz +0 -0
- package/web/chunk-51z88j1t.js +0 -21
- package/web/chunk-51z88j1t.js.br +0 -0
- package/web/chunk-51z88j1t.js.gz +0 -0
- package/web/chunk-5f5zcfga.js +0 -1
- package/web/chunk-5f5zcfga.js.br +0 -2
- package/web/chunk-5f5zcfga.js.gz +0 -0
- package/web/chunk-5n61r0rr.js +0 -36
- package/web/chunk-5n61r0rr.js.br +0 -0
- package/web/chunk-5n61r0rr.js.gz +0 -0
- package/web/chunk-5vcdeenv.js +0 -2
- package/web/chunk-5vcdeenv.js.br +0 -0
- package/web/chunk-5vcdeenv.js.gz +0 -0
- package/web/chunk-5y7ks8c3.js +0 -30
- package/web/chunk-5y7ks8c3.js.br +0 -0
- package/web/chunk-5y7ks8c3.js.gz +0 -0
- package/web/chunk-60v8qwec.js +0 -2
- package/web/chunk-60v8qwec.js.br +0 -0
- package/web/chunk-60v8qwec.js.gz +0 -0
- package/web/chunk-61m5t9wg.js +0 -200
- package/web/chunk-61m5t9wg.js.br +0 -0
- package/web/chunk-61m5t9wg.js.gz +0 -0
- package/web/chunk-669n37qf.js +0 -70
- package/web/chunk-669n37qf.js.br +0 -0
- package/web/chunk-669n37qf.js.gz +0 -0
- package/web/chunk-6kf1xwz9.js +0 -2
- package/web/chunk-6kf1xwz9.js.br +0 -0
- package/web/chunk-6kf1xwz9.js.gz +0 -0
- package/web/chunk-6rw72jmj.js +0 -2
- package/web/chunk-6rw72jmj.js.br +0 -0
- package/web/chunk-6rw72jmj.js.gz +0 -0
- package/web/chunk-6wyxxd9h.js +0 -2
- package/web/chunk-6wyxxd9h.js.br +0 -0
- package/web/chunk-6wyxxd9h.js.gz +0 -0
- package/web/chunk-77vj65dc.js +0 -1
- package/web/chunk-77vj65dc.js.br +0 -0
- package/web/chunk-77vj65dc.js.gz +0 -0
- package/web/chunk-8ktz0w1x.js +0 -120
- package/web/chunk-8ktz0w1x.js.br +0 -0
- package/web/chunk-8ktz0w1x.js.gz +0 -0
- package/web/chunk-8rcfpj02.js +0 -2
- package/web/chunk-8rcfpj02.js.br +0 -0
- package/web/chunk-8rcfpj02.js.gz +0 -0
- package/web/chunk-8x4s1c9g.js +0 -1
- package/web/chunk-8x4s1c9g.js.br +0 -2
- package/web/chunk-8x4s1c9g.js.gz +0 -0
- package/web/chunk-8zf4cywy.js +0 -1
- package/web/chunk-8zf4cywy.js.br +0 -0
- package/web/chunk-8zf4cywy.js.gz +0 -0
- package/web/chunk-a18y5dmf.js +0 -2
- package/web/chunk-a18y5dmf.js.br +0 -0
- package/web/chunk-a18y5dmf.js.gz +0 -0
- package/web/chunk-a36sfjyk.js +0 -1
- package/web/chunk-a36sfjyk.js.br +0 -0
- package/web/chunk-a36sfjyk.js.gz +0 -0
- package/web/chunk-aahzqxq7.js +0 -34
- package/web/chunk-aahzqxq7.js.br +0 -0
- package/web/chunk-aahzqxq7.js.gz +0 -0
- package/web/chunk-b2gtwatf.js +0 -370
- package/web/chunk-b2gtwatf.js.br +0 -0
- package/web/chunk-b2gtwatf.js.gz +0 -0
- package/web/chunk-bdp4y1zg.js +0 -1
- package/web/chunk-bdp4y1zg.js.br +0 -0
- package/web/chunk-bdp4y1zg.js.gz +0 -0
- package/web/chunk-be67vfx1.js +0 -1
- package/web/chunk-be67vfx1.js.br +0 -0
- package/web/chunk-be67vfx1.js.gz +0 -0
- package/web/chunk-bt6r78y9.js +0 -106
- package/web/chunk-bt6r78y9.js.br +0 -0
- package/web/chunk-bt6r78y9.js.gz +0 -0
- package/web/chunk-bvyjy17t.js +0 -14
- package/web/chunk-bvyjy17t.js.br +0 -0
- package/web/chunk-bvyjy17t.js.gz +0 -0
- package/web/chunk-c97th1x0.js +0 -1
- package/web/chunk-c97th1x0.js.br +0 -0
- package/web/chunk-c97th1x0.js.gz +0 -0
- package/web/chunk-cfkp7taw.js +0 -1
- package/web/chunk-cfkp7taw.js.br +0 -0
- package/web/chunk-cfkp7taw.js.gz +0 -0
- package/web/chunk-cvf9k1fy.js +0 -140
- package/web/chunk-cvf9k1fy.js.br +0 -0
- package/web/chunk-cvf9k1fy.js.gz +0 -0
- package/web/chunk-d33n9fsr.js +0 -1
- package/web/chunk-d33n9fsr.js.br +0 -1
- package/web/chunk-d33n9fsr.js.gz +0 -0
- package/web/chunk-e667nxc9.js +0 -1
- package/web/chunk-e667nxc9.js.br +0 -0
- package/web/chunk-e667nxc9.js.gz +0 -0
- package/web/chunk-eejjsqm1.js +0 -303
- package/web/chunk-eejjsqm1.js.br +0 -0
- package/web/chunk-eejjsqm1.js.gz +0 -0
- package/web/chunk-eg3qjy7a.js +0 -2
- package/web/chunk-eg3qjy7a.js.br +0 -0
- package/web/chunk-eg3qjy7a.js.gz +0 -0
- package/web/chunk-embvjvdj.js +0 -12
- package/web/chunk-embvjvdj.js.br +0 -0
- package/web/chunk-embvjvdj.js.gz +0 -0
- package/web/chunk-etjfr79m.js +0 -2
- package/web/chunk-etjfr79m.js.br +0 -0
- package/web/chunk-etjfr79m.js.gz +0 -0
- package/web/chunk-ez36gbz3.js +0 -7
- package/web/chunk-ez36gbz3.js.br +0 -0
- package/web/chunk-ez36gbz3.js.gz +0 -0
- package/web/chunk-f0vcm8mk.js +0 -214
- package/web/chunk-f0vcm8mk.js.br +0 -0
- package/web/chunk-f0vcm8mk.js.gz +0 -0
- package/web/chunk-f3t3ey83.js +0 -1
- package/web/chunk-f3t3ey83.js.br +0 -0
- package/web/chunk-f3t3ey83.js.gz +0 -0
- package/web/chunk-f84sngcq.js +0 -2
- package/web/chunk-f84sngcq.js.br +0 -0
- package/web/chunk-f84sngcq.js.gz +0 -0
- package/web/chunk-f97hz4v5.js +0 -99
- package/web/chunk-f97hz4v5.js.br +0 -0
- package/web/chunk-f97hz4v5.js.gz +0 -0
- package/web/chunk-fnkp6s0g.js +0 -1
- package/web/chunk-fnkp6s0g.js.br +0 -0
- package/web/chunk-fnkp6s0g.js.gz +0 -0
- package/web/chunk-fpdyzyn8.js +0 -16
- package/web/chunk-fpdyzyn8.js.br +0 -0
- package/web/chunk-fpdyzyn8.js.gz +0 -0
- package/web/chunk-g43z223a.js +0 -2
- package/web/chunk-g43z223a.js.br +0 -0
- package/web/chunk-g43z223a.js.gz +0 -0
- package/web/chunk-gcm82aj8.js +0 -1
- package/web/chunk-gcm82aj8.js.br +0 -0
- package/web/chunk-gcm82aj8.js.gz +0 -0
- package/web/chunk-gffb3p4z.js +0 -2
- package/web/chunk-gffb3p4z.js.br +0 -0
- package/web/chunk-gffb3p4z.js.gz +0 -0
- package/web/chunk-gnzg3krt.js +0 -1
- package/web/chunk-gnzg3krt.js.br +0 -0
- package/web/chunk-gnzg3krt.js.gz +0 -0
- package/web/chunk-grqtpfdp.js +0 -2
- package/web/chunk-grqtpfdp.js.br +0 -0
- package/web/chunk-grqtpfdp.js.gz +0 -0
- package/web/chunk-gsm8spf8.js +0 -1
- package/web/chunk-gsm8spf8.js.br +0 -0
- package/web/chunk-gsm8spf8.js.gz +0 -0
- package/web/chunk-h6ygrnd0.js +0 -38
- package/web/chunk-h6ygrnd0.js.br +0 -0
- package/web/chunk-h6ygrnd0.js.gz +0 -0
- package/web/chunk-h8n9w5th.js +0 -169
- package/web/chunk-h8n9w5th.js.br +0 -0
- package/web/chunk-h8n9w5th.js.gz +0 -0
- package/web/chunk-hmdvm5pp.js +0 -2
- package/web/chunk-hmdvm5pp.js.br +0 -0
- package/web/chunk-hmdvm5pp.js.gz +0 -0
- package/web/chunk-hrntwvx8.js +0 -1
- package/web/chunk-hrntwvx8.js.br +0 -0
- package/web/chunk-hrntwvx8.js.gz +0 -0
- package/web/chunk-hrys15jh.js +0 -324
- package/web/chunk-hrys15jh.js.br +0 -0
- package/web/chunk-hrys15jh.js.gz +0 -0
- package/web/chunk-j0ng7zdq.js +0 -41
- package/web/chunk-j0ng7zdq.js.br +0 -0
- package/web/chunk-j0ng7zdq.js.gz +0 -0
- package/web/chunk-j2t5ycte.js +0 -78
- package/web/chunk-j2t5ycte.js.br +0 -0
- package/web/chunk-j2t5ycte.js.gz +0 -0
- package/web/chunk-jkjd1y3p.js +0 -3
- package/web/chunk-jkjd1y3p.js.br +0 -0
- package/web/chunk-jkjd1y3p.js.gz +0 -0
- package/web/chunk-jweahmyy.js +0 -1
- package/web/chunk-jweahmyy.js.br +0 -0
- package/web/chunk-jweahmyy.js.gz +0 -0
- package/web/chunk-k56v8k7n.js +0 -4
- package/web/chunk-k56v8k7n.js.br +0 -0
- package/web/chunk-k56v8k7n.js.gz +0 -0
- package/web/chunk-k59sk88z.js +0 -7
- package/web/chunk-k59sk88z.js.br +0 -0
- package/web/chunk-k59sk88z.js.gz +0 -0
- package/web/chunk-k75a0fpt.js +0 -62
- package/web/chunk-k75a0fpt.js.br +0 -0
- package/web/chunk-k75a0fpt.js.gz +0 -0
- package/web/chunk-kfx9q7xv.js +0 -2
- package/web/chunk-kfx9q7xv.js.br +0 -0
- package/web/chunk-kfx9q7xv.js.gz +0 -0
- package/web/chunk-ksp1gg3v.js +0 -1
- package/web/chunk-ksp1gg3v.js.br +0 -0
- package/web/chunk-ksp1gg3v.js.gz +0 -0
- package/web/chunk-kxxp1mn4.js +0 -2
- package/web/chunk-kxxp1mn4.js.br +0 -0
- package/web/chunk-kxxp1mn4.js.gz +0 -0
- package/web/chunk-mapbxzsz.js +0 -1
- package/web/chunk-mapbxzsz.js.br +0 -0
- package/web/chunk-mapbxzsz.js.gz +0 -0
- package/web/chunk-msw43fnq.js +0 -2
- package/web/chunk-msw43fnq.js.br +0 -0
- package/web/chunk-msw43fnq.js.gz +0 -0
- package/web/chunk-mzzjg4sn.js +0 -2
- package/web/chunk-mzzjg4sn.js.br +0 -0
- package/web/chunk-mzzjg4sn.js.gz +0 -0
- package/web/chunk-n1bmcj13.js +0 -2
- package/web/chunk-n1bmcj13.js.br +0 -0
- package/web/chunk-n1bmcj13.js.gz +0 -0
- package/web/chunk-n5y4ar3e.js +0 -1
- package/web/chunk-n5y4ar3e.js.br +0 -0
- package/web/chunk-n5y4ar3e.js.gz +0 -0
- package/web/chunk-n9vszqw9.js +0 -1
- package/web/chunk-n9vszqw9.js.br +0 -0
- package/web/chunk-n9vszqw9.js.gz +0 -0
- package/web/chunk-nzzcmxq8.js +0 -1
- package/web/chunk-nzzcmxq8.js.br +0 -0
- package/web/chunk-nzzcmxq8.js.gz +0 -0
- package/web/chunk-p25eppk1.js +0 -1
- package/web/chunk-p25eppk1.js.br +0 -0
- package/web/chunk-p25eppk1.js.gz +0 -0
- package/web/chunk-p9352vpw.js +0 -1
- package/web/chunk-p9352vpw.js.br +0 -0
- package/web/chunk-p9352vpw.js.gz +0 -0
- package/web/chunk-pdvm4n6f.js +0 -1
- package/web/chunk-pdvm4n6f.js.br +0 -2
- package/web/chunk-pdvm4n6f.js.gz +0 -0
- package/web/chunk-pjm2t9da.js +0 -1
- package/web/chunk-pjm2t9da.js.br +0 -0
- package/web/chunk-pjm2t9da.js.gz +0 -0
- package/web/chunk-pka3qm06.js +0 -98
- package/web/chunk-pka3qm06.js.br +0 -0
- package/web/chunk-pka3qm06.js.gz +0 -0
- package/web/chunk-pkbcbta6.js +0 -1
- package/web/chunk-pkbcbta6.js.br +0 -0
- package/web/chunk-pkbcbta6.js.gz +0 -0
- package/web/chunk-pq4vn3zh.js +0 -1
- package/web/chunk-pq4vn3zh.js.br +0 -0
- package/web/chunk-pq4vn3zh.js.gz +0 -0
- package/web/chunk-prk9ks5j.js +0 -1
- package/web/chunk-prk9ks5j.js.br +0 -0
- package/web/chunk-prk9ks5j.js.gz +0 -0
- package/web/chunk-px68tdjm.js +0 -1
- package/web/chunk-px68tdjm.js.br +0 -2
- package/web/chunk-px68tdjm.js.gz +0 -0
- package/web/chunk-px8k5edz.js +0 -24
- package/web/chunk-px8k5edz.js.br +0 -0
- package/web/chunk-px8k5edz.js.gz +0 -0
- package/web/chunk-pz4g2bem.js +0 -292
- package/web/chunk-pz4g2bem.js.br +0 -0
- package/web/chunk-pz4g2bem.js.gz +0 -0
- package/web/chunk-q0gx75nf.js +0 -55
- package/web/chunk-q0gx75nf.js.br +0 -0
- package/web/chunk-q0gx75nf.js.gz +0 -0
- package/web/chunk-q9rpxfmm.js +0 -1
- package/web/chunk-q9rpxfmm.js.br +0 -0
- package/web/chunk-q9rpxfmm.js.gz +0 -0
- package/web/chunk-qpfhs1x0.js +0 -1
- package/web/chunk-qpfhs1x0.js.br +0 -0
- package/web/chunk-qpfhs1x0.js.gz +0 -0
- package/web/chunk-qredmg6m.js +0 -1
- package/web/chunk-qredmg6m.js.br +0 -0
- package/web/chunk-qredmg6m.js.gz +0 -0
- package/web/chunk-qtc9ar2m.js +0 -2
- package/web/chunk-qtc9ar2m.js.br +0 -0
- package/web/chunk-qtc9ar2m.js.gz +0 -0
- package/web/chunk-r5dsw56r.js +0 -1
- package/web/chunk-r5dsw56r.js.br +0 -0
- package/web/chunk-r5dsw56r.js.gz +0 -0
- package/web/chunk-rkaps675.js +0 -1
- package/web/chunk-rkaps675.js.br +0 -0
- package/web/chunk-rkaps675.js.gz +0 -0
- package/web/chunk-rp87pgcp.js +0 -40
- package/web/chunk-rp87pgcp.js.br +0 -0
- package/web/chunk-rp87pgcp.js.gz +0 -0
- package/web/chunk-rs1mtd35.js +0 -2
- package/web/chunk-rs1mtd35.js.br +0 -0
- package/web/chunk-rs1mtd35.js.gz +0 -0
- package/web/chunk-s31n33g5.js +0 -2
- package/web/chunk-s31n33g5.js.br +0 -0
- package/web/chunk-s31n33g5.js.gz +0 -0
- package/web/chunk-sbcyvn42.js +0 -1
- package/web/chunk-sbcyvn42.js.br +0 -0
- package/web/chunk-sbcyvn42.js.gz +0 -0
- package/web/chunk-sew9vfwy.js +0 -1
- package/web/chunk-sew9vfwy.js.br +0 -0
- package/web/chunk-sew9vfwy.js.gz +0 -0
- package/web/chunk-sgaw26nc.js +0 -2
- package/web/chunk-sgaw26nc.js.br +0 -0
- package/web/chunk-sgaw26nc.js.gz +0 -0
- package/web/chunk-t2ak4a9d.js +0 -1
- package/web/chunk-t2ak4a9d.js.br +0 -0
- package/web/chunk-t2ak4a9d.js.gz +0 -0
- package/web/chunk-ta0e3dk6.js +0 -2
- package/web/chunk-ta0e3dk6.js.br +0 -0
- package/web/chunk-ta0e3dk6.js.gz +0 -0
- package/web/chunk-tqax5mb6.js +0 -217
- package/web/chunk-tqax5mb6.js.br +0 -0
- package/web/chunk-tqax5mb6.js.gz +0 -0
- package/web/chunk-v1wxeq38.js +0 -2
- package/web/chunk-v1wxeq38.js.br +0 -0
- package/web/chunk-v1wxeq38.js.gz +0 -0
- package/web/chunk-v3kwg4zn.js +0 -2
- package/web/chunk-v3kwg4zn.js.br +0 -0
- package/web/chunk-v3kwg4zn.js.gz +0 -0
- package/web/chunk-vcpvhkxh.js +0 -39
- package/web/chunk-vcpvhkxh.js.br +0 -0
- package/web/chunk-vcpvhkxh.js.gz +0 -0
- package/web/chunk-vg9qv3aa.js +0 -1
- package/web/chunk-vg9qv3aa.js.br +0 -0
- package/web/chunk-vg9qv3aa.js.gz +0 -0
- package/web/chunk-vwxnt3nh.js +0 -1
- package/web/chunk-vwxnt3nh.js.br +0 -0
- package/web/chunk-vwxnt3nh.js.gz +0 -0
- package/web/chunk-w1xjqhwy.js +0 -1
- package/web/chunk-w1xjqhwy.js.br +0 -2
- package/web/chunk-w1xjqhwy.js.gz +0 -0
- package/web/chunk-w3nfxvzd.js +0 -1
- package/web/chunk-w3nfxvzd.js.br +0 -0
- package/web/chunk-w3nfxvzd.js.gz +0 -0
- package/web/chunk-w7h3x3ys.js +0 -1
- package/web/chunk-w7h3x3ys.js.br +0 -0
- package/web/chunk-w7h3x3ys.js.gz +0 -0
- package/web/chunk-wb0yn3r4.js +0 -8
- package/web/chunk-wb0yn3r4.js.br +0 -0
- package/web/chunk-wb0yn3r4.js.gz +0 -0
- package/web/chunk-wff6hqjf.js +0 -1
- package/web/chunk-wff6hqjf.js.br +0 -0
- package/web/chunk-wff6hqjf.js.gz +0 -0
- package/web/chunk-whj4e4sb.js +0 -89
- package/web/chunk-whj4e4sb.js.br +0 -0
- package/web/chunk-whj4e4sb.js.gz +0 -0
- package/web/chunk-wn3kdpj0.js +0 -1
- package/web/chunk-wn3kdpj0.js.br +0 -0
- package/web/chunk-wn3kdpj0.js.gz +0 -0
- package/web/chunk-wzq3qxpb.js +0 -1
- package/web/chunk-wzq3qxpb.js.br +0 -0
- package/web/chunk-wzq3qxpb.js.gz +0 -0
- package/web/chunk-x2tezwv1.js +0 -4
- package/web/chunk-x2tezwv1.js.br +0 -0
- package/web/chunk-x2tezwv1.js.gz +0 -0
- package/web/chunk-xmajh4qe.js +0 -2
- package/web/chunk-xmajh4qe.js.br +0 -0
- package/web/chunk-xmajh4qe.js.gz +0 -0
- package/web/chunk-xz7py7yx.js +0 -1
- package/web/chunk-xz7py7yx.js.br +0 -0
- package/web/chunk-xz7py7yx.js.gz +0 -0
- package/web/chunk-y4af9gsm.js +0 -291
- package/web/chunk-y4af9gsm.js.br +0 -0
- package/web/chunk-y4af9gsm.js.gz +0 -0
- package/web/chunk-y512gr5a.js +0 -332
- package/web/chunk-y512gr5a.js.br +0 -0
- package/web/chunk-y512gr5a.js.gz +0 -0
- package/web/chunk-ywg44m2b.js +0 -2
- package/web/chunk-ywg44m2b.js.br +0 -0
- package/web/chunk-ywg44m2b.js.gz +0 -0
- package/web/chunk-zhzp4fm1.js +0 -2
- package/web/chunk-zhzp4fm1.js.br +0 -0
- package/web/chunk-zhzp4fm1.js.gz +0 -0
package/chunk-dvwgpsfz.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{E,K}from"./chunk-tbehe5ky.js";import{c}from"./chunk-sqbnt2t1.js";var T=c(E());var C=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string",v=(e)=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}});var g=({maxRetries:e=0,timeout:t=1000})=>({maxRetries:e,timeout:t});var O=c(E());import P from"http";function I(e){return new Promise((t,n)=>{let o=P.request({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});o.on("error",(r)=>{n(Object.assign(new O.ProviderError("Unable to connect to instance metadata service"),r)),o.destroy()}),o.on("timeout",()=>{n(new O.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",(r)=>{let{statusCode:a=400}=r;if(a<200||300<=a)n(Object.assign(new O.ProviderError("Error response received from instance metadata service"),{statusCode:a})),o.destroy();let m=[];r.on("data",(s)=>{m.push(s)}),r.on("end",()=>{t(Buffer.concat(m)),o.destroy()})}),o.end()})}var S=(e,t)=>{let n=e();for(let o=0;o<t;o++)n=n.catch(e);return n};var u="AWS_CONTAINER_CREDENTIALS_FULL_URI",D="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",M="AWS_CONTAINER_AUTHORIZATION_TOKEN",Y=(e={})=>{let{timeout:t,maxRetries:n}=g(e);return()=>S(async()=>{let o=await Z({logger:e.logger}),r=JSON.parse(await j(t,o));if(!C(r))throw new T.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:e.logger});return v(r)},n)},j=async(e,t)=>{if(process.env[M])t.headers={...t.headers,Authorization:process.env[M]};return(await I({...t,timeout:e})).toString()},J="169.254.170.2",X=new Set(["localhost","127.0.0.1"]),z=new Set(["http:","https:"]),Z=async({logger:e})=>{if(process.env[D])return{hostname:J,path:process.env[D]};if(process.env[u]){let t;try{t=new URL(process.env[u])}catch{throw new T.CredentialsProviderError(`${process.env[u]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:e})}if(!t.hostname||!X.has(t.hostname))throw new T.CredentialsProviderError(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:e});if(!t.protocol||!z.has(t.protocol))throw new T.CredentialsProviderError(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:e});return{protocol:t.protocol,hostname:t.hostname,path:t.pathname+t.search,port:t.port?parseInt(t.port,10):void 0}}throw new T.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${D} or ${u} environment variable is set`,{tryNextLink:!1,logger:e})};var h=c(E());var L=c(E());class w extends L.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,t=!0){super(e,t);this.tryNextLink=t,Object.setPrototypeOf(this,w.prototype)}}var x=c(E()),V=c(K());var N;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(N||(N={}));var F={environmentVariableSelector:(e)=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(e)=>e.ec2_metadata_service_endpoint,default:void 0};var p;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(p||(p={}));var Q="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",ee="ec2_metadata_service_endpoint_mode",b={environmentVariableSelector:(e)=>e[Q],configFileSelector:(e)=>e[ee],default:p.IPv4};var k=async()=>V.parseUrl(await te()||await oe()),te=async()=>x.loadConfig(F)(),oe=async()=>{let e=await x.loadConfig(b)();switch(e){case p.IPv4:return N.IPv4;case p.IPv6:return N.IPv6;default:throw Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(p)}`)}};var R=(e,t)=>{let n=300+Math.floor(Math.random()*300),o=new Date(Date.now()+n*1000);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(o)}.
|
|
3
|
-
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let r=e.originalExpiration??e.expiration;return{...e,...r?{originalExpiration:r}:{},expiration:o}};var U=(e,t={})=>{let n=t?.logger||console,o;return async()=>{let r;try{if(r=await e(),r.expiration&&r.expiration.getTime()<Date.now())r=R(r,n)}catch(a){if(o)n.warn("Credential renew failed: ",a),r=R(o,n);else throw a}return o=r,r}};var G="/latest/meta-data/iam/security-credentials/",re="/latest/api/token",y="AWS_EC2_METADATA_V1_DISABLED",W="ec2_metadata_v1_disabled",B="x-aws-ec2-metadata-token",ne=(e={})=>U(ae(e),{logger:e.logger}),ae=(e={})=>{let t=!1,{logger:n,profile:o}=e,{timeout:r,maxRetries:a}=g(e),m=async(s,f)=>{if(t||f.headers?.[B]==null){let i=!1,d=!1,q=await h.loadConfig({environmentVariableSelector:(l)=>{let _=l[y];if(d=!!_&&_!=="false",_===void 0)throw new h.CredentialsProviderError(`${y} not set in env, checking config file next.`,{logger:e.logger});return d},configFileSelector:(l)=>{let _=l[W];return i=!!_&&_!=="false",i},default:!1},{profile:o})();if(e.ec2MetadataV1Disabled||q){let l=[];if(e.ec2MetadataV1Disabled)l.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(i)l.push(`config file profile (${W})`);if(d)l.push(`process environment variable (${y})`);throw new w(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${l.join(", ")}].`)}}let H=(await S(async()=>{let i;try{i=await ie(f)}catch(d){if(d.statusCode===401)t=!1;throw d}return i},s)).trim();return S(async()=>{let i;try{i=await ce(H,f,e)}catch(d){if(d.statusCode===401)t=!1;throw d}return i},s)};return async()=>{let s=await k();if(t)return n?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),m(a,{...s,timeout:r});else{let f;try{f=(await se({...s,timeout:r})).toString()}catch(A){if(A?.statusCode===400)throw Object.assign(A,{message:"EC2 Metadata token request returned error"});else if(A.message==="TimeoutError"||[403,404,405].includes(A.statusCode))t=!0;return n?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),m(a,{...s,timeout:r})}return m(a,{...s,headers:{[B]:f},timeout:r})}}},se=async(e)=>I({...e,path:re,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),ie=async(e)=>(await I({...e,path:G})).toString(),ce=async(e,t,n)=>{let o=JSON.parse((await I({...t,path:G+e})).toString());if(!C(o))throw new h.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:n.logger});return v(o)};export{u as ENV_CMDS_FULL_URI,D as ENV_CMDS_RELATIVE_URI,Y as fromContainerMetadata,ne as fromInstanceMetadata};
|
package/chunk-dzd8k6bw.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{x}from"./chunk-ers9s2c4.js";import{A}from"./chunk-a5wv2shs.js";import"./chunk-2fmsw1c6.js";import{Ft,At,Bt}from"./chunk-f10ca9ma.js";import{ft}from"./chunk-j7m36g5w.js";import{tr,rr}from"./chunk-gj0dhgbg.js";import{le}from"./chunk-zz9rj82y.js";import{ge}from"./chunk-2h2mvrw2.js";import{Q,te}from"./chunk-tnay319j.js";import{$e,$t,re}from"./chunk-7mafj833.js";import{J}from"./chunk-9nkb5q43.js";import{ue,Ce,Ie,Y}from"./chunk-e67wqhzh.js";import{W}from"./chunk-ndt4jvh1.js";var C=new Set(["openai","openai-codex","opencode","chatgpt:subscription"]),P=16,O="https://chatgpt.com/settings/usage";function E(e,s){return(e.provider==="openai"||e.provider==="chatgpt:subscription")&&e.baseUrl==="https://api.openai.com/v1"&&s!==void 0&&!s.startsWith("sk-")}function h(e,s){if(!e)return!1;let r=s.toLowerCase();for(let[t,i]of Object.entries(e))if(t.toLowerCase()===r&&i!==null&&i.trim().length>0)return!0;return!1}function T(e,s,r){if(s)return s;if(h(r,"authorization")||h(r,"cf-aig-authorization"))return"unused";throw Error(`No API key for provider: ${e}`)}function _(e){return e.provider==="openrouter"||e.baseUrl.includes("openrouter.ai")?"openrouter":"openai"}function v(e,s){if(e)return e;if(A("PI_CACHE_RETENTION",s)==="long")return"long";return"short"}function d(e){return{supportsDeveloperRole:e.compat?.supportsDeveloperRole??!0,supportsMidConvoSystemMessages:e.compat?.supportsMidConvoSystemMessages??!1,sessionAffinityFormat:e.compat?.sessionAffinityFormat??_(e),supportsLongCacheRetention:e.compat?.supportsLongCacheRetention??!0,supportsStrictMode:e.compat?.supportsStrictMode??!1,supportsOpenAIGrammarTools:e.compat?.supportsOpenAIGrammarTools??!1,supportsAdditionalTools:e.compat?.supportsAdditionalTools??!1,supportsToolSearch:e.compat?.supportsToolSearch??!1,supportsExplicitPromptCacheMode:e.compat?.supportsExplicitPromptCacheMode??!1,supportsMaxOutputTokens:e.compat?.supportsMaxOutputTokens??!0}}function I(e,s){return s==="long"&&e.supportsLongCacheRetention&&!e.supportsExplicitPromptCacheMode?"24h":void 0}function w(e,s){if(!e.supportsExplicitPromptCacheMode)return;if(s==="none")return{mode:"explicit"};if(s==="long"&&e.supportsLongCacheRetention)return{ttl:"30m"};return}var b=(e,s,r)=>{let t=new W,i=ue(s,d(e).supportsMidConvoSystemMessages);return(async()=>{let o={role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{let c=T(e.provider,r?.apiKey,r?.headers),p=v(r?.cacheRetention,r?.env)==="none"?void 0:r?.sessionId,n=d(e),u=$e(Ce(i.messages),n.supportsOpenAIGrammarTools),l=k(e,i,c,r?.headers,r?.fetch,p),f=L(e,i,r,n,u),m=await r?.onPayload?.(f,e);if(m!==void 0)f=m;let R={...r?.signal?{signal:r.signal}:{},...r?.timeoutMs!==void 0?{timeout:r.timeoutMs}:{},maxRetries:0},{data:y,response:g}=await ge(()=>l.responses.create(f,R).withResponse(),{maxRetries:r?.maxRetries,maxRetryDelayMs:r?.maxRetryDelayMs,signal:r?.signal});if(await r?.onResponse?.({status:g.status,headers:J(g.headers)},e),t.push({type:"start",partial:o}),await Bt(y,o,t,e,{onProviderStreamEvent:r?.onProviderStreamEvent,serviceTier:r?.serviceTier,grammarToolInputProperties:u,applyServiceTierPricing:(M,S)=>U(M,S,e)}),r?.signal?.aborted)throw Error("Request was aborted");if(o.stopReason==="pending")throw Error("OpenAI Responses stream ended without a stop reason");if(o.stopReason==="aborted"||o.stopReason==="error")throw Error(o.errorMessage||"An unknown error occurred");t.push({type:"done",reason:o.stopReason,message:o}),t.end()}catch(c){for(let p of o.content)delete p.index,delete p.partialJson,delete p.customInput;o.stopReason=r?.signal?.aborted?"aborted":"error";let a=te(Q(c),`${e.provider==="openai"?"OpenAI":e.provider} API error`);o.errorMessage=a.includes("subscription_sharing_usage_limit_exceeded")?`${a}
|
|
3
|
-
Check your ChatGPT usage: ${O}`:a,t.push({type:"error",reason:o.stopReason,error:o}),t.end()}})(),t},oe=(e,s,r)=>{T(e.provider,r?.apiKey,r?.headers);let t={...re(e,s,r,r?.apiKey),toolChoice:r?.toolChoice},i=r?.reasoning?Y(e,r.reasoning):void 0;return b(e,s,{...t,reasoningEffort:i==="off"?void 0:i})};function k(e,s,r,t,i,o){let c=d(e),a={"User-Agent":le(),...e.headers};if(e.provider==="github-copilot"){let p=tr(s.messages),n=rr({messages:s.messages,hasImages:p});Object.assign(a,n)}if(o)if(c.sessionAffinityFormat==="openrouter")a["x-session-id"]=o;else{if(c.sessionAffinityFormat==="openai")a.session_id=o;a["x-client-request-id"]=o}if(t)Object.assign(a,t);return new x({apiKey:r,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:i,defaultHeaders:a})}function L(e,s,r,t=d(e),i=$e(Ce(s.messages),t.supportsOpenAIGrammarTools)){let o=Ie(s.messages,t.supportsAdditionalTools||t.supportsToolSearch),c=Ft(e,s,C,{grammarToolInputProperties:i,supportsMidConvoSystemMessages:t.supportsMidConvoSystemMessages,supportsAdditionalTools:t.supportsAdditionalTools,supportsToolSearch:t.supportsToolSearch,toolOptions:{supportsStrictMode:t.supportsStrictMode,supportsOpenAIGrammarTools:t.supportsOpenAIGrammarTools}}),a=v(r?.cacheRetention,r?.env),p=E(e,r?.apiKey),n={model:e.id,input:c,stream:!0,prompt_cache_key:a==="none"?void 0:ft(r?.sessionId),prompt_cache_retention:p?void 0:I(t,a),prompt_cache_options:p?void 0:w(t,a),store:!1};if(r?.maxTokens&&t.supportsMaxOutputTokens&&!p)n.max_output_tokens=Math.max(r.maxTokens,P);if(r?.temperature!==void 0&&!p)n.temperature=r?.temperature;if(r?.serviceTier!==void 0)n.service_tier=r.serviceTier;if(o.requestTools.length>0)n.tools=At(o.requestTools,{supportsStrictMode:t.supportsStrictMode,supportsOpenAIGrammarTools:t.supportsOpenAIGrammarTools});if(r?.toolChoice!==void 0)n.tool_choice=r.toolChoice;let u=r?.reasoningEffort??(r?.reasoningSummary?"medium":void 0);if(e.reasoning){if(u){let f=r?.reasoningEffort?e.thinkingLevelMap?.[r.reasoningEffort]??r.reasoningEffort:u;n.reasoning={effort:f,summary:r?.reasoningSummary||"auto"},n.include=["reasoning.encrypted_content"]}else if(e.provider!=="github-copilot"&&e.thinkingLevelMap?.off!==null)n.reasoning={effort:e.thinkingLevelMap?.off??"none"};if(e.provider==="xai")n.include=["reasoning.encrypted_content"]}let l=$t(e,u??"off",r?.samplingParams);if(l)Object.assign(n,l);return n}function G(e,s){switch(s){case"flex":return 0.5;case"priority":case"fast":return e.id==="gpt-5.5"?2.5:2;default:return 1}}function U(e,s,r){let t=G(r,s);if(t===1)return;e.cost.input*=t,e.cost.output*=t,e.cost.cacheRead*=t,e.cost.cacheWrite*=t,e.cost.total=e.cost.input+e.cost.output+e.cost.cacheRead+e.cost.cacheWrite}export{b as stream,oe as streamSimple};
|
package/chunk-e2xqa46t.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yt,Xa,oa,Oo,Fn,Xt,Lo}from"./chunk-ctdtmwmd.js";import"./chunk-d3xsmwbh.js";import"./chunk-a5wv2shs.js";import"./chunk-x7tras0x.js";import"./chunk-s9p624fq.js";import"./chunk-2fmsw1c6.js";import"./chunk-emeb13nd.js";export{Yt as ModelProviderManager,oa as NetworkManager,Fn as ProviderAuthManager,Xt as TunnelManager,Oo as chatGPTProvider,Xa as resolveNetworkHost,Lo as startServer};
|
package/chunk-e41mpwx9.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xr}from"./chunk-me72k64f.js";import{r,u}from"./chunk-sqbnt2t1.js";var T=r(function(c){var ee=c&&c.__createBinding||(Object.create?function(e,t,n,o){if(o===void 0)o=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[n]}};Object.defineProperty(e,o,s)}:function(e,t,n,o){if(o===void 0)o=n;e[o]=t[n]}),te=c&&c.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=c&&c.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))ee(t,e,n)}return te(t,e),t};Object.defineProperty(c,"__esModule",{value:!0});c.req=c.json=c.toBuffer=void 0;var re=B(u("http")),ne=B(u("https"));async function D(e){let t=0,n=[];for await(let o of e)t+=o.length,n.push(o);return Buffer.concat(n,t)}c.toBuffer=D;async function oe(e){let n=(await D(e)).toString("utf8");try{return JSON.parse(n)}catch(o){let s=o;throw s.message+=` (input: ${n})`,s}}c.json=oe;function se(e,t={}){let o=((typeof e==="string"?e:e.href).startsWith("https:")?ne:re).request(e,t),s=new Promise((f,i)=>{o.once("response",f).once("error",i).end()});return o.then=s.then.bind(s),o}c.req=se});var U=r(function(a){var I=a&&a.__createBinding||(Object.create?function(e,t,n,o){if(o===void 0)o=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[n]}};Object.defineProperty(e,o,s)}:function(e,t,n,o){if(o===void 0)o=n;e[o]=t[n]}),ie=a&&a.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),L=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))I(t,e,n)}return ie(t,e),t},ce=a&&a.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))I(t,e,n)};Object.defineProperty(a,"__esModule",{value:!0});a.Agent=void 0;var ue=L(u("net")),H=L(u("http")),R=u("https");ce(T(),a);var p=Symbol("AgentBaseInternalState");class k extends H.Agent{constructor(e){super(e);this[p]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean")return e.secureEndpoint;if(typeof e.protocol==="string")return e.protocol==="https:"}let{stack:t}=Error();if(typeof t!=="string")return!1;return t.split(`
|
|
3
|
-
`).some((n)=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[e])this.sockets[e]=[];let t=new ue.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],o=n.indexOf(t);if(o!==-1){if(n.splice(o,1),this.totalSocketCount--,n.length===0)delete this.sockets[e]}}getName(e){if(this.isSecureEndpoint(e))return R.Agent.prototype.getName.call(this,e);return super.getName(e)}createSocket(e,t,n){let o={...t,secureEndpoint:this.isSecureEndpoint(t)},s=this.getName(o),f=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then((i)=>{if(this.decrementSockets(s,f),i instanceof H.Agent)try{return i.addRequest(e,o)}catch(_){return n(_)}this[p].currentSocket=i,super.createSocket(e,t,n)},(i)=>{this.decrementSockets(s,f),n(i)})}createConnection(){let e=this[p].currentSocket;if(this[p].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[p].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[p])this[p].defaultPort=e}get protocol(){return this[p].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[p])this[p].protocol=e}}a.Agent=k});var z=r(function(g){var ae=g&&g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(g,"__esModule",{value:!0});g.parseProxyResponse=void 0;var fe=ae(xr()),S=(0,fe.default)("https-proxy-agent:parse-proxy-response");function le(e){return new Promise((t,n)=>{let o=0,s=[];function f(){let d=e.read();if(d)j(d);else e.once("readable",f)}function i(){e.removeListener("end",_),e.removeListener("error",y),e.removeListener("readable",f)}function _(){i(),S("onend"),n(Error("Proxy connection ended before receiving CONNECT response"))}function y(d){i(),S("onerror %o",d),n(d)}function j(d){s.push(d),o+=d.length;let l=Buffer.concat(s,o),M=l.indexOf(`\r
|
|
4
|
-
\r
|
|
5
|
-
`);if(M===-1){S("have not received end of HTTP headers yet..."),f();return}let q=l.slice(0,M).toString("ascii").split(`\r
|
|
6
|
-
`),C=q.shift();if(!C)return e.destroy(),n(Error("No header received from proxy CONNECT response"));let A=C.split(" "),Y=+A[1],Z=A.slice(2).join(" "),b={};for(let v of q){if(!v)continue;let E=v.indexOf(":");if(E===-1)return e.destroy(),n(Error(`Invalid header from proxy CONNECT response: "${v}"`));let m=v.slice(0,E).toLowerCase(),N=v.slice(E+1).trimStart(),P=b[m];if(typeof P==="string")b[m]=[P,N];else if(Array.isArray(P))P.push(N);else b[m]=N}S("got proxy server response: %o %o",C,b),i(),t({connect:{statusCode:Y,statusText:Z,headers:b},buffered:l})}e.on("error",y),e.on("end",_),f()})}g.parseProxyResponse=le});var ge=r(function(h){var he=h&&h.__createBinding||(Object.create?function(e,t,n,o){if(o===void 0)o=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[n]}};Object.defineProperty(e,o,s)}:function(e,t,n,o){if(o===void 0)o=n;e[o]=t[n]}),de=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),W=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))he(t,e,n)}return de(t,e),t},G=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.HttpsProxyAgent=void 0;var w=W(u("net")),F=W(u("tls")),pe=G(u("assert")),_e=G(xr()),Q=U(),V=u("url"),X=z(),O=(0,_e.default)("https-proxy-agent"),J=(e)=>{if(e.servername===void 0&&e.host&&!w.isIP(e.host))return{...e,servername:e.host};return e};class x extends Q.Agent{constructor(e,t){super(t);this.options={path:void 0},this.proxy=typeof e==="string"?new V.URL(e):e,this.proxyHeaders=t?.headers??{},O("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?K(t,"headers"):null,host:n,port:o}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError('No "host" provided');let o;if(n.protocol==="https:")O("Creating `tls.Socket`: %o",this.connectOpts),o=F.connect(J(this.connectOpts));else O("Creating `net.Socket`: %o",this.connectOpts),o=w.connect(this.connectOpts);let s=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},f=w.isIPv6(t.host)?`[${t.host}]`:t.host,i=`CONNECT ${f}:${t.port} HTTP/1.1\r
|
|
7
|
-
`;if(n.username||n.password){let l=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}if(s.Host=`${f}:${t.port}`,!s["Proxy-Connection"])s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let l of Object.keys(s))i+=`${l}: ${s[l]}\r
|
|
8
|
-
`;let _=X.parseProxyResponse(o);o.write(`${i}\r
|
|
9
|
-
`);let{connect:y,buffered:j}=await _;if(e.emit("proxyConnect",y),this.emit("proxyConnect",y,e),y.statusCode===200){if(e.once("socket",ye),t.secureEndpoint)return O("Upgrading socket connection to TLS"),F.connect({...K(J(t),"host","path","port"),socket:o});return o}o.destroy();let d=new w.Socket({writable:!1});return d.readable=!0,e.once("socket",(l)=>{O("Replaying proxy buffer for failed request"),(0,pe.default)(l.listenerCount("data")>0),l.push(j),l.push(null)}),d}}x.protocols=["http","https"];h.HttpsProxyAgent=x;function ye(e){e.resume()}function K(e,...t){let n={},o;for(o in e)if(!t.includes(o))n[o]=e[o];return n}});export default ge();
|
package/chunk-e5ccfgsk.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function o(t,r,n,i,s){if(i==="m")throw TypeError("Private method is not writable");if(i==="a"&&!s)throw TypeError("Private accessor was defined without a setter");if(typeof r==="function"?t!==r||!s:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(t,n):s?s.value=n:r.set(t,n),n}function e(t,r,n,i){if(n==="a"&&!i)throw TypeError("Private accessor was defined without a getter");if(typeof r==="function"?t!==r||!i:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:r.get(t)}function gt(t){return typeof t==="object"&&t!==null&&(("name"in t)&&t.name==="AbortError"||("message"in t)&&String(t.message).includes("FetchRequestCanceledException"))}var yr=(t)=>{if(t instanceof Error)return t;if(typeof t==="object"&&t!==null){try{let r=Object.prototype.toString.call(t);if(r==="[object Error]"||r==="[object DOMException]"){let n=Error(t.message,t.cause?{cause:t.cause}:{});if(t.stack)n.stack=t.stack;if(t.cause&&!n.cause)n.cause=t.cause;if(t.name)n.name=t.name;return n}}catch{}try{return Error(JSON.stringify(t))}catch{}}return Error(t)};var p=(()=>{class t extends Error{}return t})();class ce extends p{constructor(t,r,n,i,s){super(`${ce.makeMessage(t,r,n)}`);this.status=t,this.headers=i,this.requestID=i?.get("request-id"),this.workspaceID=i?.get("anthropic-workspace-id"),this.error=r,this.type=s??null}static makeMessage(t,r,n){let i=r?.message?typeof r.message==="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;if(t&&i)return`${t} ${i}`;if(t)return`${t} status code (no body)`;if(i)return i;return"(no status code or body)"}static generate(t,r,n,i){if(!t||!i)return new Jt({message:n,cause:yr(r)});let s=r,c=s?.error?.type;if(t===400)return new Wo(t,s,n,i,c);if(t===401)return new Ho(t,s,n,i,c);if(t===403)return new zo(t,s,n,i,c);if(t===404)return new qo(t,s,n,i,c);if(t===409)return new Go(t,s,n,i,c);if(t===422)return new Vo(t,s,n,i,c);if(t===429)return new Ko(t,s,n,i,c);if(t>=500)return new Qo(t,s,n,i,c);return new ce(t,s,n,i,c)}}class Be extends ce{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Jt extends ce{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0);if(r)this.cause=r}}class jo extends Jt{constructor({message:t}={}){super({message:t??"Request timed out."})}}class cs extends p{constructor(t,{cause:r}={}){super(t??"Retryable error.");if(r!==void 0)this.cause=r}}class Wo extends ce{}class Ho extends ce{}class zo extends ce{}class qo extends ce{}class Go extends ce{}class Vo extends ce{}class Ko extends ce{}class Qo extends ce{}var b=/^[a-z][a-z0-9+.-]*:/i,aa=(t)=>b.test(t),De=(t)=>(De=Array.isArray,De(t)),ls=De;function Bn(t){if(typeof t!=="object")return{};return t??{}}function us(t){if(!t)return!0;for(let r in t)return!1;return!0}function l(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function ps(t){return t!=null&&typeof t==="object"&&!Array.isArray(t)}var Yo=(t,r)=>{if(typeof r!=="number"||!Number.isInteger(r))throw new p(`${t} must be an integer`);if(r<0)throw new p(`${t} must be a positive integer`);return r};var Xo=(t)=>{try{return JSON.parse(t)}catch(r){return}};function Zt(t){}var U=(t)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[t]?.trim()||void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(t)?.trim()||void 0;return};function ca(t){let r=0;for(let s of t)r+=s.length;let n=new Uint8Array(r),i=0;for(let s of t)n.set(s,i),i+=s.length;return n}var y;function br(t){let r;return(y??(r=new globalThis.TextEncoder,y=r.encode.bind(r)))(t)}var w;function er(t){let r;return(w??(r=new globalThis.TextDecoder,w=r.decode.bind(r)))(t)}var $n="warn",a={off:0,error:200,warn:300,info:400,debug:500},Jo=(t,r,n)=>{if(!t)return;if(l(a,t))return t;n.warn(`${r} was set to ${JSON.stringify(t)}, expected one of ${JSON.stringify(Object.keys(a))}`);return};function u(){}function f(t,r,n){if(!r||a[t]>a[n])return u;else return r[t].bind(r)}var O={error:u,warn:u,info:u,debug:u},h=new WeakMap;function x(t,r){let n=h.get(t);if(n&&n[0]===r)return n[1];let i={error:f("error",t,r),warn:f("warn",t,r),info:f("info",t,r),debug:f("debug",t,r)};return h.set(t,[r,i]),i}function N(t){let r=t.logger,n=t.logLevel??"off";if(!r)return O;return x(r,n)}var m,d;function la(){let t=U("ANTHROPIC_LOG");if(!d||t!==m)m=t,d=x(console,Jo(t,"process.env['ANTHROPIC_LOG']",x(console,$n))??$n);return d}function kt(t,r,n){if(t.debug===u)return;t.debug(r,E(n))}var E=(t)=>{if(t.options)t.options={...t.options},delete t.options.headers;if(t.headers)t.headers=Object.fromEntries((t.headers instanceof Headers?[...t.headers]:Object.entries(t.headers)).map(([r,n])=>[r,r.toLowerCase()==="authorization"||r.toLowerCase()==="api-key"||r.toLowerCase()==="x-api-key"||r.toLowerCase()==="cookie"||r.toLowerCase()==="set-cookie"?"***":n]));if("retryOfRequestLogID"in t){if(t.retryOfRequestLogID)t.retryOf=t.retryOfRequestLogID;delete t.retryOfRequestLogID}return t};function Se(t,r){return t instanceof ce&&t.status===r}function T(t){return t instanceof ce&&typeof t.status==="number"&&t.status>=400&&t.status<500}function wr(t){return T(t)&&!Se(t,408)&&!Se(t,409)&&!Se(t,429)}function Zo(t,r,n){return Math.min(r*2**t,n)}function ua(t,r){return t+Math.random()*(r-t)}function ei(t){return t*(1-Math.random()*0.25)}var M=(()=>{class t extends Error{constructor(r){let n=typeof r==="string"?r:r.map((i)=>{if(i.type==="text")return i.text;return`[${i.type}]`}).join(" ");super(n);this.name="ToolError",this.content=r}}return t})();var ds=15000,g=5000;function jn(t,r){if(!(t>=g))throw new p(`${r} must be at least ${g}ms (got ${t}); to run without memory sync, pass \`memorySyncIntervalMs: null\` to the worker instead`)}function Sr(){let t,r;return{promise:new Promise((i,s)=>{t=i,r=s}),resolve:t,reject:r}}
|
|
3
|
-
export{o,e,gt,yr,p,ce,Be,Jt,jo,cs,Wo,Ho,zo,qo,Go,Vo,Ko,Qo,aa,De,ls,Bn,us,ps,Yo,Xo,Zt,U,ca,br,er,$n,Jo,N,la,kt,Se,wr,Zo,ua,ei,M,ds,jn,Sr};
|
package/chunk-e67wqhzh.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{W,St}from"./chunk-ndt4jvh1.js";function N(e,t,r){return{role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"error",errorMessage:t instanceof Error?t.message:String(t),timestamp:r}}function H(e){return typeof e.result==="function"}async function z(e,t){for await(let r of t)e.push(r);e.end(H(t)?await t.result():void 0)}function Qe(e,t){let r=Date.now(),n=new W;return t().then((s)=>z(n,s)).catch((s)=>{let o=N(e,s,r);n.push({type:"error",reason:"error",error:o}),n.end(o)}),n}function ae(e,t){let r={stream:(n,s,o)=>Qe(n,async()=>(await e()).stream(n,s,o)),streamSimple:(n,s,o)=>Qe(n,async()=>(await e()).streamSimple(n,s,o))};if(t?.fetchDeferred)r.fetchDeferred=(n,s,o)=>Qe(n,async()=>{let i=await e();if(!i.fetchDeferred)throw Error("API does not support deferred responses");return i.fetchDeferred(n,s,o)});if(t?.cancelDeferred)r.cancelDeferred=async(n,s,o)=>{let i=await e();if(!i.cancelDeferred)throw Error("API cannot cancel deferred responses");await i.cancelDeferred(n,s,o)};return r}var F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,s,o,i){return n?t?".jsx":".js":s&&(!o||!i)?r:s+o+"."+i.toLowerCase()+"js"});return e},D=(e)=>import(F(e));function J(){return globalThis.process?.env}function Os(){return{async env(e){let t=J()?.[e];return typeof t==="string"&&t.trim().length>0?t:void 0},async fileExists(e){try{let t=await D("node:fs/promises"),r=e;if(r.startsWith("~"))r=(await D("node:os")).homedir()+r.slice(1);return await t.access(r),!0}catch{return!1}}}}function O(e){if(e.reason!==void 0)return e.reason;let t=Error("The operation was aborted");return t.name="AbortError",t}function g(e){return e??new AbortController().signal}function v(e,t){if(t.aborted)return e.catch(()=>{}),Promise.reject(O(t));return new Promise((r,n)=>{let s=!1,o=()=>t.removeEventListener("abort",i),i=()=>{if(s)return;s=!0,o(),n(O(t))};if(t.addEventListener("abort",i,{once:!0}),e.then((c)=>{if(s)return;s=!0,o(),r(c)},(c)=>{if(s)return;s=!0,o(),n(c)}),t.aborted)i()})}class ki{credentials=new Map;chains=new Map;enqueue(e,t,r){let n=g(r?.signal),s=this.chains.get(e)??Promise.resolve(),o=(async()=>(await s.catch(()=>{}),n.throwIfAborted(),t()))(),i=o.catch(()=>{});return this.chains.set(e,i),i.then(()=>{if(this.chains.get(e)===i)this.chains.delete(e)}),v(o,n)}async read(e,t){return t?.signal?.throwIfAborted(),this.credentials.get(e)}async list(e){return e?.signal?.throwIfAborted(),[...this.credentials].map(([t,r])=>({providerId:t,type:r.type}))}modify(e,t,r){return this.enqueue(e,async()=>{let n=this.credentials.get(e),s=await t(n);if(r?.signal?.throwIfAborted(),s!==void 0)this.credentials.set(e,s);return s??n},r)}delete(e,t){return this.enqueue(e,async()=>{this.credentials.delete(e)},t)}}class j extends Error{code;constructor(e,t,r){super(V(t,r?.cause),r);this.name="ModelsError",this.code=e}}function V(e,t){if(t===void 0||t===null)return e;let r=St(t).trim();if(!r||e.includes(r))return e;return`${e}: ${r}`}function P(e,t,r,n){let s=g(n?.signal);return v(X(e,t,r,n,s),s)}async function X(e,t,r,n,s){s.throwIfAborted();let o=n?.env?B(r,n.env):r;if(n?.apiKey!==void 0&&e.auth.apiKey)return C(o,e.auth.apiKey,e.id,{type:"api_key",key:n.apiKey,env:n.env},s);let i=await te(t,e.id,s);if(i){if(i.type==="oauth"&&e.auth.oauth)return ee(t,e.id,e.auth.oauth,i,s,n?.minOAuthValidityMs);if(i.type==="api_key"&&e.auth.apiKey){let c=n?.env?{...i,env:{...i.env,...n.env}}:i;return C(o,e.auth.apiKey,e.id,c,s)}return}return e.auth.apiKey?C(o,e.auth.apiKey,e.id,void 0,s):void 0}function B(e,t){return{env:async(r)=>t[r]||await e.env(r),fileExists:(r)=>e.fileExists(r)}}var Q=300000,Z=15000;async function E(e,t,r,n,s){let o,i=new AbortController,c=()=>i.abort(s.reason);if(s.addEventListener("abort",c,{once:!0}),s.aborted)c();try{o=await e.modify(t,async(u)=>{if(s.removeEventListener("abort",c),s.throwIfAborted(),u?.type!=="oauth")return;if(!n(u))return;try{return await r.refresh(u,AbortSignal.timeout(Z))}catch(f){throw new j("oauth",`OAuth refresh failed for ${t}`,{cause:f})}},{signal:i.signal})}catch(u){if(u instanceof j)throw u;throw s.throwIfAborted(),new j("auth",`Credential store modify failed for ${t}`,{cause:u})}finally{s.removeEventListener("abort",c)}return o?.type==="oauth"?o:void 0}async function ee(e,t,r,n,s,o){let i=Math.max(Q,o??0),c=(f)=>Date.now()+i>=f.expires,u=n;if(c(u)){let f=await E(e,t,r,c,s);if(!f)return;if(u=f,o!==void 0&&c(u))throw new j("oauth",`OAuth refresh returned a token that expires too soon for ${t}`)}try{return{auth:await r.toAuth(u),source:"OAuth"}}catch(f){throw new j("oauth",`OAuth auth derivation failed for ${t}`,{cause:f})}}async function C(e,t,r,n,s){try{return await t.resolve({ctx:e,credential:n,signal:s})}catch(o){throw new j("auth",`API key auth failed for provider ${r}`,{cause:o})}}async function te(e,t,r){try{return await e.read(t,{signal:r})}catch(n){throw new j("auth",`Credential store read failed for ${t}`,{cause:n})}}class Pi{entries=new Map;async read(e,t){t?.signal?.throwIfAborted();let r=this.entries.get(e);return r?structuredClone(r):void 0}async write(e,t,r){r?.signal?.throwIfAborted(),this.entries.set(e,structuredClone(t))}async delete(e,t){t?.signal?.throwIfAborted(),this.entries.delete(e)}}function zt(e){return e.type??"chat"}function Ye(e,t){return zt(e)===t}function R(e){if(!Ye(e,"chat"))throw new j("provider",`Model ${e.provider}/${e.id} is not a chat model`)}function q(e){if(!Ye(e,"image"))throw new j("provider",`Model ${e.provider}/${e.id} is not an image model`)}function _(e){if(!Ye(e,"classifier"))throw new j("provider",`Model ${e.provider}/${e.id} is not a classifier model`)}function K(e,t){if(t.images?.length&&!e.input.includes("image"))throw new j("provider",`Model ${e.provider}/${e.id} does not accept image input`)}function T(e,t,r=!1){return{api:e.api,provider:e.provider,model:e.id,output:[],stopReason:r?"aborted":"error",errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()}}function k(e,t,r=!1){return{api:e.api,provider:e.provider,model:e.id,answers:{},stopReason:r?"aborted":"error",errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()}}function mn(e,t=`
|
|
3
|
-
`){if(typeof e==="string")return e;return e.filter((r)=>r.type==="text").map((r)=>r.text).join(t)}function G(e){let t=[mn(e.content)];for(let r of Object.values(e.sections??{}))if(r!==null)t.push(r);return t.filter((r)=>r.length>0).join(`
|
|
4
|
-
|
|
5
|
-
`)}function Xe(e){let t=[],r=mn(e.content);if(r.length>0)t.push(r);for(let[n,s]of Object.entries(e.sections??{}))t.push(s===null?`Removed system prompt section "${n}".`:`Updated system prompt section "${n}":
|
|
6
|
-
|
|
7
|
-
${s}`);return t.join(`
|
|
8
|
-
|
|
9
|
-
`)}function Ri(e,t){let r=e!==void 0&&e.length>0,n=t!==void 0&&t.length>0;if(!r&&!n)return;return{role:"system",content:e??"",...n?{toolsAdded:t}:{},timestamp:0}}function qt(e){let t=Ri(e.systemPrompt,e.tools);return{messages:t?[t,...e.messages]:e.messages}}function b(e){return e.role==="system"}function ve(e){let t=e[0];return t&&b(t)?t:void 0}function Or(e){return ve(e)?e.slice(1):e}function me(e){let t=new Map;for(let r of e){if(!b(r))continue;for(let n of r.toolsRemoved??[])t.delete(n.name);for(let n of r.toolsAdded??[])t.set(n.name,n)}return[...t.values()]}function uo(e){let t=[],r=new Map,n;for(let o of e){if(!b(o))continue;n??=o.timestamp;let i=mn(o.content);if(i.length>0)t.push(i);for(let[c,u]of Object.entries(o.sections??{}))if(u===null)r.delete(c);else r.set(c,u)}let s=me(e);if(n===void 0&&s.length===0)return;return{role:"system",content:t.join(`
|
|
10
|
-
|
|
11
|
-
`),...r.size>0?{sections:Object.fromEntries(r)}:{},...s.length>0?{toolsAdded:s}:{},timestamp:n??0}}function Ls(e){let t=uo(e);return t?G(t):""}function Je(e){let t=uo(e.messages),r=e.messages.filter((n)=>n.role!=="system");return{messages:t?[t,...r]:r}}function ue(e,t){return t?e:Je(e)}function Lt(e){return{name:e.name,description:e.description,parameters:JSON.parse(JSON.stringify(e.parameters)),...e.constrainedSampling===void 0?{}:{constrainedSampling:e.constrainedSampling}}}function Ci(e,t){return JSON.stringify(Lt(e))===JSON.stringify(Lt(t))}function Ds(e,t){let r=new Map(e.map((s)=>[s.name,s])),n=new Map(t.map((s)=>[s.name,s]));return{toolsAdded:t.filter((s)=>{let o=r.get(s.name);return o===void 0||!Ci(o,s)}).map(Lt),toolsRemoved:e.filter((s)=>{let o=n.get(s.name);return o===void 0||!Ci(s,o)}).map((s)=>({name:s.name}))}}function Ce(e){let t=new Map;for(let r of e){if(!b(r))continue;for(let n of r.toolsAdded??[])t.set(n.name,n)}return[...t.values()]}function Za(e){let t=new Map;for(let r of e){if(!b(r))continue;for(let n of r.toolsAdded??[]){let s=t.get(n.name);if(s!==void 0&&!Ci(s,n))return!0;t.set(n.name,n)}}return!1}function qa(e){let t=new Set;for(let r of e){if(!b(r))continue;if((r.toolsRemoved?.length??0)>0)return!0;for(let n of r.toolsAdded??[]){if(t.has(n.name))return!0;t.add(n.name)}}return!1}function Ie(e,t){let r=t&&!qa(e);return{requestTools:r?ve(e)?.toolsAdded??[]:me(e),anchorsAdditions:r}}var re={chat:!0,image:!0,classifier:!0};function L(e){return Object.hasOwn(re,zt(e))}function ne(e){return{...e,models:e.models.filter(L)}}function I(e,t){if(!e&&!t)return;let r={...e};for(let[n,s]of Object.entries(t??{})){let o=n.toLowerCase();for(let i of Object.keys(r))if(i.toLowerCase()===o)delete r[i];r[n]=s}return r}class U{providers=new Map;credentials;modelsStore;authContext;refreshGenerations=new Map;refreshControllers=new Map;publicationChains=new Map;constructor(e){this.credentials=e?.credentials??new ki,this.modelsStore=e?.modelsStore??new Pi,this.authContext=e?.authContext??Os()}setProvider(e){this.supersedeProviderRefresh(e.id),this.providers.set(e.id,e)}deleteProvider(e){this.supersedeProviderRefresh(e),this.providers.delete(e)}clearProviders(){for(let e of new Set([...this.providers.keys(),...this.refreshControllers.keys()]))this.supersedeProviderRefresh(e);this.providers.clear()}getProviders(){return Array.from(this.providers.values())}getProvider(e){return this.providers.get(e)}getModels(e){if(e!==void 0){let r=this.providers.get(e);if(!r)return[];try{return r.getModels()}catch{return[]}}let t=[];for(let r of this.providers.values())try{t.push(...r.getModels())}catch{}return t}getAllModels(e){if(e!==void 0){let r=this.providers.get(e);if(!r)return[];try{return r.getAllModels?.()??r.getModels()}catch{return[]}}let t=[];for(let r of this.providers.values())try{t.push(...r.getAllModels?.()??r.getModels())}catch{}return t}getModelsOfType(e,t){return this.getAllModels(t).filter((r)=>Ye(r,e))}getModel(e,t){return this.getModels(e).find((r)=>r.id===t)}getModelOfType(e,t,r){return this.getModelsOfType(e,t).find((n)=>n.id===r)}supersedeProviderRefresh(e){let t=(this.refreshGenerations.get(e)??0)+1;this.refreshGenerations.set(e,t);let r=this.refreshControllers.get(e);if(r)this.refreshControllers.delete(e),r.abort();return t}beginProviderRefresh(e){let t=this.supersedeProviderRefresh(e),r=new AbortController;return this.refreshControllers.set(e,r),{generation:t,controller:r}}publishProviderModels(e,t,r,n){let s=this.publicationChains.get(e)??Promise.resolve(),o=(async()=>{if(await s.catch(()=>{}),r.aborted||this.refreshGenerations.get(e)!==t)return!1;if(n.persist===null)await this.modelsStore.delete(e,{signal:r});else if(n.persist!==void 0)await this.modelsStore.write(e,structuredClone(n.persist),{signal:r});if(r.aborted||this.refreshGenerations.get(e)!==t)return!1;return n.update?.(),!0})(),i=o.catch(()=>{});return this.publicationChains.set(e,i),i.then(()=>{if(this.publicationChains.get(e)===i)this.publicationChains.delete(e)}),v(o,r)}async runProviderRefreshPhase(e,t,r,n,s,o){let i=await this.modelsStore.read(e.id,{signal:o});await e.refreshModels({credential:t,stored:i?ne(structuredClone(i)):void 0,publish:(c)=>this.publishProviderModels(e.id,s,o,c),allowNetwork:r,force:r?n:void 0,signal:o,baseUrl:e.baseUrl})}async refresh(e={}){let t=e.allowNetwork??!0,r=g(e.signal),n=new Map;if(r.aborted)return{aborted:!0,errors:n};let s=e.providers?new Set(e.providers):void 0,o=Array.from(this.providers.values()).filter((c)=>c.refreshModels!==void 0&&(!s||s.has(c.id))),i=Promise.all(o.map(async(c)=>{let{generation:u,controller:f}=this.beginProviderRefresh(c.id),p=AbortSignal.any([r,f.signal]),A=(async()=>{let w,y;try{w=await this.readCredential(c.id,p)}catch(a){y=a}if(await this.runProviderRefreshPhase(c,w,!1,void 0,u,p),y!==void 0)throw y;if(!t||p.aborted)return;let M=await this.resolveRefreshCredential(c,w,p);if(!M)return;await this.runProviderRefreshPhase(c,M,!0,e.force,u,p)})();try{await v(A,p)}catch(w){if(!p.aborted)n.set(c.id,w instanceof Error?w:new j("model_source",`Model refresh failed for ${c.id}`,{cause:w}))}finally{if(this.refreshControllers.get(c.id)===f)this.refreshControllers.delete(c.id)}}));try{await v(i,r)}catch(c){if(!r.aborted)throw c}return{aborted:r.aborted,errors:new Map(n)}}async resolveRefreshCredential(e,t,r){if(t?.type==="oauth"){let i=e.auth.oauth;if(!i)return;if(Date.now()<t.expires)return t;if(r.aborted)return;return E(this.credentials,e.id,i,(c)=>Date.now()>=c.expires,r)}let n=e.auth.apiKey;if(!n)return;let s=t?.type==="api_key"?t:void 0,o=await n.resolve({ctx:this.authContext,credential:s,signal:r});if(!o)return;return{type:"api_key",key:o.auth.apiKey,env:o.env}}async readCredential(e,t){try{return await this.credentials.read(e,{signal:t})}catch(r){throw new j("auth",`Credential store read failed for ${e}`,{cause:r})}}async checkProviderAuth(e,t,r){if(t?.type==="oauth")return e.auth.oauth?{source:"OAuth",type:"oauth"}:void 0;let n=e.auth.apiKey;if(!n)return;if(n.check)try{return await n.check({ctx:this.authContext,credential:t?.type==="api_key"?t:void 0,signal:r})}catch(o){throw new j("auth",`API key auth check failed for provider ${e.id}`,{cause:o})}let s=await P(e,this.credentials,this.authContext,{signal:r});return s?{source:s.source,type:"api_key"}:void 0}checkAuth(e,t){let r=g(t?.signal),n=(async()=>{r.throwIfAborted();let s=this.providers.get(e);if(!s)return;return this.checkProviderAuth(s,await this.readCredential(e,r),r)})();return v(n,r)}async getAuthenticatedProviders(e,t){t.throwIfAborted();let r=e?[this.providers.get(e)].filter((s)=>s!==void 0):this.getProviders();return(await Promise.all(r.map(async(s)=>{let o=await this.readCredential(s.id,t);return{provider:s,credential:o,auth:await this.checkProviderAuth(s,o,t)}}))).filter((s)=>s.auth!==void 0)}getAvailable(e,t){let r=g(t?.signal),n=(async()=>(await this.getAuthenticatedProviders(e,r)).flatMap(({provider:o,credential:i})=>{let c=o.getModels();return o.filterModels?.(c,i)??c}))();return v(n,r)}async getAvailableOfType(e,t,r){return(await this.getAllAvailable(t,r)).filter((n)=>Ye(n,e))}getAllAvailable(e,t){let r=g(t?.signal),n=(async()=>(await this.getAuthenticatedProviders(e,r)).flatMap(({provider:o,credential:i})=>{let c=o.getAllModels?.()??o.getModels();if(o.filterAllModels)return o.filterAllModels(c,i);if(!o.filterModels)return c;let u=new Set(o.filterModels(o.getModels(),i).map((f)=>f.id));return c.filter((f)=>!Ye(f,"chat")||u.has(f.id))}))();return v(n,r)}async getAuth(e,t){let r=g(t?.signal),n=typeof e==="string"?e:e.provider,s=this.providers.get(n);if(!s)return;let o=await P(s,this.credentials,this.authContext,{...t,signal:r});if(!o||typeof e==="string"||!e.headers)return o;return{...o,auth:{...o.auth,headers:I(o.auth.headers,e.headers)}}}async login(e,t,r,n){let s=g(r.signal);s.throwIfAborted();let o=this.providers.get(e);if(!o)throw new j("provider",`Unknown provider: ${e}`);let i=t==="oauth"?o.auth.oauth:o.auth.apiKey;if(!i?.login)throw new j("auth",`${o.name} does not support ${t} login`);let c=i.login({...r,signal:s},n),u=await v(c,s),f=!1,p,A=new Promise((y)=>{p=y}),w=this.credentials.modify(e,async()=>(f=!0,p?.(),u),{signal:s});w.catch(()=>{});try{await new Promise((y,M)=>{let a=()=>{if(!f)M(s.reason)};if(s.addEventListener("abort",a,{once:!0}),Promise.race([A,w]).then(()=>{s.removeEventListener("abort",a),y()},(d)=>{s.removeEventListener("abort",a),M(d)}),s.aborted)a()}),await w}catch(y){throw s.throwIfAborted(),new j("auth",`Credential store modify failed for ${e}`,{cause:y})}return u}async logout(e,t){let r=g(t?.signal);r.throwIfAborted();try{await this.credentials.delete(e,{signal:r})}catch(n){throw r.throwIfAborted(),new j("auth",`Credential store delete failed for ${e}`,{cause:n})}}requireProvider(e){let t=this.providers.get(e.provider);if(!t)throw new j("provider",`Unknown provider: ${e.provider}`);return t}requireChatProvider(e){return R(e),this.requireProvider(e)}async applyAuth(e,t){this.requireProvider(e);let r=await this.getAuth(e,{apiKey:t?.apiKey,env:t?.env,signal:t?.signal});if(!r)throw new j("auth",`Provider is not configured: ${e.provider}`);let n=r.auth,s=t?.apiKey??n.apiKey,o=I(n.headers,t?.headers);if(t?.transformHeaders)o=await t.transformHeaders(o??{});let i=r.env||t?.env?{...r.env??{},...t?.env??{}}:void 0,c=n.baseUrl?{...e,baseUrl:n.baseUrl}:e,{transformHeaders:u,...f}=t??{},p={...f,apiKey:s,headers:o,env:i};return{requestModel:c,requestOptions:p}}stream(e,t,r){let n=qt(t);return Qe(e,async()=>{let s=this.requireChatProvider(e),{requestModel:o,requestOptions:i}=await this.applyAuth(e,r);return s.stream(o,n,i)})}async complete(e,t,r){return this.stream(e,t,r).result()}streamSimple(e,t,r){let n=qt(t);return Qe(e,async()=>{let s=this.requireChatProvider(e),{requestModel:o,requestOptions:i}=await this.applyAuth(e,r);return s.streamSimple(o,n,i)})}async completeSimple(e,t,r){return this.streamSimple(e,t,r).result()}streamDeferred(e,t,r){return Qe(e,async()=>{let n=this.requireChatProvider(e);if(!n.fetchDeferred)throw new j("provider",`Provider ${e.provider} does not support deferred responses`);let{requestModel:s,requestOptions:o}=await this.applyAuth(e,r);return n.fetchDeferred(s,t,o)})}async fetchDeferred(e,t,r){return this.streamDeferred(e,t,r).result()}async cancelDeferred(e,t,r){let n=this.requireChatProvider(e);if(!n.cancelDeferred)throw new j("provider",`Provider ${e.provider} does not support deferred responses`);let{requestModel:s,requestOptions:o}=await this.applyAuth(e,r);await n.cancelDeferred(s,t,o)}async generateImages(e,t,r){try{q(e);let n=this.requireProvider(e);if(!n.generateImages)throw new j("provider",`Provider ${e.provider} does not support image generation`);let{requestModel:s,requestOptions:o}=await this.applyAuth(e,r);return await n.generateImages(s,t,o)}catch(n){return T(e,n,r?.signal?.aborted)}}async classify(e,t,r){try{_(e),K(e,t);let n=this.requireProvider(e);if(!n.classify)throw new j("provider",`Provider ${e.provider} does not support classification`);let{requestModel:s,requestOptions:o}=await this.applyAuth(e,r);return await n.classify(s,t,o)}catch(n){return k(e,n,r?.signal?.aborted)}}}function Ii(e){return new U(e)}function m(e){let t=e.api&&typeof e.api.stream==="function"?e.api:void 0,r=t||!e.api?void 0:e.api,{images:n,classifiers:s}=e,o=t?[t]:Object.values(r??{}).filter((a)=>a!==void 0),i=Object.values(n??{}).filter((a)=>a!==void 0),c=Object.values(s??{}).filter((a)=>a!==void 0);if(o.length===0&&i.length===0&&c.length===0)throw Error(`Provider ${e.id}: at least one of "api", "images", or "classifiers" is required.`);let u=e.models,f=[],p=e.fetchModels,A=()=>{let a=[...u];for(let d of f){let l=a.findIndex((h)=>zt(h)===zt(d)&&h.id===d.id);if(l>=0)a[l]=d;else a.push(d)}return a},w=(a)=>t??r?.[a.api],y=(a,d)=>{let l=w(a);if(!l)return Qe(a,async()=>{throw new j("stream",`Provider ${e.id} has no API implementation for "${a.api}"`)});return d(l)},M={id:e.id,name:e.name??e.id,baseUrl:e.baseUrl,headers:e.headers,auth:e.auth,getModels:()=>A().filter((a)=>Ye(a,"chat")),getAllModels:A,refreshModels:p?async(a)=>{if(a.stored){let h=a.stored.models.filter((S)=>S.provider===e.id).map((S)=>S);if(!await a.publish({update:()=>{f=h}}))return}if(!a.allowNetwork||a.signal.aborted)return;let d=await p(a);if(a.signal.aborted)return;let l=d.filter(L);await a.publish({persist:{models:l,checkedAt:Date.now()},update:()=>{f=l}})}:void 0,filterModels:e.filterModels,filterAllModels:e.filterAllModels,stream:(a,d,l)=>y(a,(h)=>h.stream(a,d,l)),streamSimple:(a,d,l)=>y(a,(h)=>h.streamSimple(a,d,l))};if(o.some((a)=>a.fetchDeferred!==void 0))M.fetchDeferred=(a,d,l)=>Qe(a,async()=>{let h=w(a);if(!h?.fetchDeferred)throw new j("provider",`Provider ${e.id} does not support deferred responses for "${a.api}"`);return h.fetchDeferred(a,d,l)});if(o.some((a)=>a.cancelDeferred!==void 0))M.cancelDeferred=async(a,d,l)=>{let h=w(a);if(!h?.cancelDeferred)throw new j("provider",`Provider ${e.id} cannot cancel deferred responses for "${a.api}"`);await h.cancelDeferred(a,d,l)};if(n&&i.length>0)M.generateImages=async(a,d,l)=>{let h=n[a.api];if(!h)return T(a,new j("provider",`Provider ${e.id} has no image generation implementation for "${a.api}"`));return h.generateImages(a,d,l)};if(s&&c.length>0)M.classify=async(a,d,l)=>{let h=s[a.api];if(!h)return k(a,new j("provider",`Provider ${e.id} has no classifier implementation for "${a.api}"`));return h.classify(a,d,l)};return M}function ec(e,t){return Ye(e,"chat")&&e.api===t}function oe(e,t){let r=t.input+t.cacheRead+t.cacheWrite,n=e.cost,s=-1;for(let c of e.cost.tiers??[])if(r>c.inputTokensAbove&&c.inputTokensAbove>s)n=c,s=c.inputTokensAbove;let o=t.cacheWrite1h??0,i=t.cacheWrite-o;return t.cost.input=n.input/1e6*t.input,t.cost.output=n.output/1e6*t.output,t.cost.cacheRead=n.cacheRead/1e6*t.cacheRead,t.cost.cacheWrite=(n.cacheWrite*i+n.input*2*o)/1e6,t.cost.total=t.cost.input+t.cost.output+t.cost.cacheRead+t.cost.cacheWrite,t.cost}var x=["off","minimal","low","medium","high","xhigh","max"];function po(e){if(!e.reasoning)return["off"];return x.filter((t)=>{let r=e.thinkingLevelMap?.[t];if(r===null)return!1;if(t==="xhigh"||t==="max")return r!==void 0;return!0})}function Y(e,t){let r=po(e);if(r.includes(t))return t;let n=x.indexOf(t);if(n===-1)return r[0]??"off";for(let s=n;s<x.length;s++){let o=x[s];if(r.includes(o))return o}for(let s=n-1;s>=0;s--){let o=x[s];if(r.includes(o))return o}return r[0]??"off"}function tc(e,t){if(!e||!t)return!1;return zt(e)===zt(t)&&e.id===t.id&&e.provider===t.provider}
|
|
12
|
-
export{Qe,ae,Os,ki,j,Pi,zt,Ye,mn,G,Xe,Ri,qt,ve,Or,me,uo,Ls,Je,ue,Lt,Ci,Ds,Ce,Za,qa,Ie,Ii,m,ec,oe,po,Y,tc};
|
package/chunk-emeb13nd.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Database as g}from"bun:sqlite";import{chmodSync as B,closeSync as H,existsSync as R,openSync as W,rmSync as G}from"fs";var V=2,P=2,Ns="basalt-search.db",xt=0,lr=1;function h(e){let t=new g(":memory:");try{for(let r of e)t.run(r);return!0}catch{return!1}finally{t.close()}}var T;function Us(){if(T)return T;let e=h(["CREATE VIRTUAL TABLE f USING fts5(text)"]),t=e&&h(["CREATE VIRTUAL TABLE f USING fts5(text, tokenize='trigram')"]);return T={fts5:e,trigram:t,trigramDiacritics:t&&h(["CREATE VIRTUAL TABLE f USING fts5(text, tokenize='trigram remove_diacritics 1')"]),contentlessDelete:e&&h(["CREATE VIRTUAL TABLE f USING fts5(text, content='', contentless_delete=1)","INSERT INTO f (rowid, text) VALUES (1, 'probe')","DELETE FROM f WHERE rowid = 1"]),secureDelete:e&&h(["CREATE VIRTUAL TABLE f USING fts5(text)","INSERT INTO f (f, rank) VALUES ('secure-delete', 1)"])},T}function X(e){return{msg:e.trigram?"trigram":"unicode61",contentless:e.contentlessDelete}}function O(e){return JSON.stringify({schema:V,extractor:P,...e})}function k(e,t){return`text, ${e.contentless?"content='', contentless_delete=1, ":""}detail=full, tokenize="${t}"`}function Y(e,t,r){let n=r.msg==="trigram"?t.trigramDiacritics?"trigram remove_diacritics 1":"trigram":"unicode61 remove_diacritics 2";e.transaction(()=>{if(e.run("CREATE TABLE IF NOT EXISTS meta (k TEXT PRIMARY KEY, v) WITHOUT ROWID"),e.run(`CREATE TABLE IF NOT EXISTS doc (
|
|
3
|
-
id INTEGER PRIMARY KEY,
|
|
4
|
-
hash INTEGER NOT NULL UNIQUE,
|
|
5
|
-
refs INTEGER NOT NULL,
|
|
6
|
-
len INTEGER NOT NULL,
|
|
7
|
-
bulk INTEGER NOT NULL
|
|
8
|
-
)`),e.run(`CREATE TABLE IF NOT EXISTS ref (
|
|
9
|
-
session_id TEXT NOT NULL,
|
|
10
|
-
seq INTEGER NOT NULL,
|
|
11
|
-
part INTEGER NOT NULL,
|
|
12
|
-
doc INTEGER NOT NULL,
|
|
13
|
-
kind INTEGER NOT NULL,
|
|
14
|
-
tool TEXT,
|
|
15
|
-
err INTEGER NOT NULL DEFAULT 0,
|
|
16
|
-
model TEXT,
|
|
17
|
-
time INTEGER NOT NULL,
|
|
18
|
-
PRIMARY KEY (session_id, seq, part)
|
|
19
|
-
) WITHOUT ROWID`),e.run("CREATE INDEX IF NOT EXISTS ref_doc ON ref(doc,time,kind,tool,err,model)"),e.run("CREATE INDEX IF NOT EXISTS ref_time ON ref(time,session_id,seq,part,doc,kind,tool,err,model)"),e.run("CREATE TABLE IF NOT EXISTS term (t TEXT PRIMARY KEY, n INTEGER NOT NULL) WITHOUT ROWID"),e.run("CREATE TABLE IF NOT EXISTS evicted (session_id TEXT PRIMARY KEY) WITHOUT ROWID"),e.run("CREATE TABLE IF NOT EXISTS backfill_todo (ord INTEGER PRIMARY KEY, session_id TEXT NOT NULL)"),e.run(`CREATE VIRTUAL TABLE IF NOT EXISTS fts USING fts5(${k(r,n)})`),e.run(`CREATE VIRTUAL TABLE IF NOT EXISTS fts_out USING fts5(${k(r,"unicode61 remove_diacritics 2")})`),e.run("CREATE VIRTUAL TABLE IF NOT EXISTS fts_vocab USING fts5vocab(fts, 'row')"),e.run("CREATE VIRTUAL TABLE IF NOT EXISTS fts_out_vocab USING fts5vocab(fts_out, 'row')"),t.secureDelete)e.run("INSERT INTO fts (fts, rank) VALUES ('secure-delete', 1)"),e.run("INSERT INTO fts_out (fts_out, rank) VALUES ('secure-delete', 1)");e.query("INSERT OR REPLACE INTO meta (k, v) VALUES ('fingerprint', ?)").run(O(r)),e.query("INSERT OR REPLACE INTO meta (k, v) VALUES ('layout', ?)").run(JSON.stringify(r))})()}function Li(e){for(let t of["","-wal","-shm","-journal"])G(e+t,{force:!0})}function z(e){for(let t of["","-wal","-shm"])if(R(e+t))B(e+t,384)}function p(e,t){return e.query("SELECT v FROM main.meta WHERE k = ?").get(t)?.v??void 0}function d(e,t,r){e.query("INSERT OR REPLACE INTO main.meta (k, v) VALUES (?, ?)").run(t,r)}function _(e,t,r){let n=X(r),i=!1;if(R(e)){let o=!1;try{let a=new g(e);try{o=a.query("SELECT v FROM meta WHERE k = 'fingerprint'").get()?.v===O(n)}finally{a.close()}}catch{o=!1}if(!o)Li(e),i=!0}if(!R(e))H(W(e,"a",384));let s=new g(e,{create:!0,strict:!0});return s.run("PRAGMA journal_mode = WAL"),s.run("PRAGMA synchronous = NORMAL"),s.run("PRAGMA busy_timeout = 5000"),Y(s,r,n),z(e),s.query("ATTACH ? AS store").run(t),{db:s,layout:n,reset:i}}function Fs(e,t){if(!R(e))return;let r;try{return r=new g(e,{readonly:!0,strict:!0}),r.run("PRAGMA busy_timeout = 5000"),r.query("ATTACH ? AS store").run(t),r.query("SELECT v FROM meta WHERE k = 'layout'").get(),r}catch{r?.close();return}}var D="backfill";function y(e){return e.query("SELECT sum((SELECT max(seq) FROM store.entries WHERE session_id = sessions.id)) AS n FROM store.sessions").get()?.n??0}function j(e){let t=p(e,D);return t?JSON.parse(t):void 0}function M(e,t){d(e,D,JSON.stringify(t))}class A{db;indexer;batch;todo;page;state;constructor(e,t,r=500){this.db=e;this.indexer=t;this.batch=r;this.todo=e.query("SELECT session_id FROM main.backfill_todo WHERE ord = ?"),this.page=e.query("SELECT seq, time, body FROM store.entries WHERE session_id = ? AND seq > ? ORDER BY seq LIMIT ?"),this.state=j(e)}get running(){return this.state?.state==="running"}begin(e){this.db.transaction(()=>{let t=this.db.query("SELECT max(id) AS id FROM store.search_queue").get()?.id??0;d(this.db,"queue_done",t),this.db.run("DELETE FROM main.backfill_todo"),this.db.run("INSERT INTO main.backfill_todo (ord, session_id) SELECT row_number() OVER (ORDER BY updated DESC, id), id FROM store.sessions");let r=this.db.query("SELECT count(*) AS n FROM main.backfill_todo").get()?.n??0,n=y(this.db);this.state={state:r?"running":"done",reason:e,ord:1,seq:-1,total:n,sessionsTotal:r,done:0,sessionsDone:0,startedAt:Date.now()},M(this.db,this.state)})()}step(e){let t=this.state;if(t?.state!=="running")return!1;let r={...t};return this.db.transaction(()=>{let n=this.batch;while(n>0&&r.state==="running"){let i=this.todo.get(r.ord)?.session_id;if(i===void 0){r.state="done",this.db.run("DELETE FROM main.backfill_todo");break}if(r.seq<0)this.indexer.reindex(i,0),r.seq=0;let s=this.page.all(i,r.seq,n);for(let o of s)if(this.indexer.indexRow(i,o.seq,o.time,o.body),r.seq=o.seq,r.done++,n--,performance.now()>e){n=0;break}if(n>0)r.ord++,r.seq=-1,r.sessionsDone++;if(performance.now()>e)break}M(this.db,r)})(),this.state=r,!0}}var Va=49152,Ka=16384,q=64;function I(e){if(e.length<=65536)return e;return`${e.slice(0,49152)}
|
|
20
|
-
\u2026
|
|
21
|
-
${e.slice(-16384)}`}var K=/[\u3040-\u30FF\u3400-\u9FFF\uF900-\uFAFF\uAC00-\uD7AF]+/g,Z=/[A-Za-z][a-z0-9]*(?:[A-Z][a-z0-9]+)+|[A-Z]{2,}[a-z0-9]+[A-Za-z0-9]*/g,J=/([a-z0-9])([A-Z])|([A-Z])([A-Z][a-z])/g;function b(e){return e.replace(K,(t)=>{if(t.length===1)return` ${t} `;let r=[];for(let n=0;n<t.length-1;n++)r.push(t.slice(n,n+2));return` ${r.join(" ")} `}).replace(Z,(t)=>`${t} ${t.replace(J,"$1$3 $2$4")}`)}function w(e){return`${e} `}function ur(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]+/g,"").normalize("NFC")}var Q=/[\p{L}\p{N}\p{Co}]+/gu;function Qa(e){return ur(b(e)).match(Q)??[]}var Ze={user:1,assistant:2,thinking:3,tool_input:4,tool_output:5,error:6,extension:7,notice:8,attachment:9,title:10},Di=Object.fromEntries(Object.entries(Ze).map(([e,t])=>[t,e])),ee=1e4,te=-1,re=2048;function v(e){return e==="tool_output"||e==="attachment"||e==="thinking"||e==="tool_input"}function x(e,t=[],r=0){if(r>6)return t;if(typeof e==="string")t.push(e);else if(typeof e==="number"||typeof e==="boolean")t.push(String(e));else if(Array.isArray(e))for(let n of e)x(n,t,r+1);else if(e&&typeof e==="object")for(let n of Object.values(e))x(n,t,r+1);return t}function vt(e,t=!1){let r=[];switch(e.type){case"user":{if(typeof e.text==="string")r.push({part:0,kind:e.notices?"notice":"user",text:e.text});(Array.isArray(e.attachments)?e.attachments:[]).forEach((i,s)=>{let o=String(i?.name??""),a=i?.kind==="image"?o:`${o}
|
|
22
|
-
${String(i?.data??"")}`;r.push({part:1+s,kind:"attachment",text:a})});break}case"notice_pending":if(typeof e.notice?.text==="string")r.push({part:0,kind:"notice",text:e.notice.text});break;case"assistant":{let n=typeof e.model==="string"?e.model:void 0;if((Array.isArray(e.parts)?e.parts:[]).forEach((s,o)=>{if(s?.type==="text"||s?.type==="thinking"){if(typeof s.text==="string")r.push({part:o,kind:s.type==="text"?"assistant":"thinking",text:s.text,model:n})}else if(s?.type==="tool_call"){let a=typeof s.name==="string"?s.name:void 0;if(r.push({part:o,kind:"tool_input",tool:a,model:n,text:[a??"",...x(s.input)].join(`
|
|
23
|
-
`)}),typeof s.output==="string")r.push({part:ee+o,kind:"tool_output",tool:a,model:n,text:s.output})}}),typeof e.error==="string")r.push({part:te,kind:"error",err:!0,model:n,text:e.error});break}case"tool_result":{let n=typeof e.name==="string"?e.name:void 0,i=typeof e.output==="string"?e.output:"",s=e.isError===!0;if(r.push({part:0,kind:"tool_output",tool:n,err:s,text:i}),s)r.push({part:1,kind:"error",tool:n,err:s,text:i.slice(0,re)});break}case"run":if("error"in e&&typeof e.error==="string")r.push({part:0,kind:"error",err:!0,text:e.error});break;case"extension":{let n=e.display;if(n&&typeof n.text==="string")r.push({part:0,kind:"extension",text:`${n.title??""}
|
|
24
|
-
${n.text}`});break}}if(!t)for(let n of r)n.text=I(n.text);return r.filter((n)=>n.text.trim())}function C(e){return e.trim()?[{part:0,kind:"title",text:I(e)}]:[]}function ne(e,t){return BigInt.asIntN(64,Bun.hash.wyhash(`${e?"B":"M"}${t}`))}class N{db;layout;readEntry;readTitle;previousModel;selectRefs;deleteRefs;insertRef;findDoc;insertDoc;increment;decrement;docRefs;deleteDoc;insertMsg;insertOut;deleteMsg;deleteOut;stats={entries:0,fields:0,bytes:0,newDocs:0,newBytes:0};outChanges=0;constructor(e,t){this.db=e;this.layout=t;this.readEntry=e.query("SELECT time, body FROM store.entries WHERE session_id = ? AND seq = ?"),this.readTitle=e.query("SELECT title, created FROM store.sessions WHERE id = ?"),this.previousModel=e.query("SELECT json_extract(body, '$.model') AS model FROM store.entries WHERE session_id = ? AND seq < ? AND json_extract(body, '$.type') = 'assistant' ORDER BY seq DESC LIMIT 1"),this.selectRefs=e.query("SELECT doc FROM main.ref WHERE session_id = ? AND seq = ?"),this.deleteRefs=e.query("DELETE FROM main.ref WHERE session_id = ? AND seq = ?"),this.insertRef=e.query("INSERT INTO main.ref (session_id, seq, part, doc, kind, tool, err, model, time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"),this.findDoc=e.query("SELECT id FROM main.doc WHERE hash = ?"),this.insertDoc=e.query("INSERT INTO main.doc (hash, refs, len, bulk) VALUES (?, 1, ?, ?)"),this.increment=e.query("UPDATE main.doc SET refs = refs + 1 WHERE id = ?"),this.decrement=e.query("UPDATE main.doc SET refs = refs - 1 WHERE id = ?"),this.docRefs=e.query("SELECT refs, bulk FROM main.doc WHERE id = ?"),this.deleteDoc=e.query("DELETE FROM main.doc WHERE id = ?"),this.insertMsg=e.query("INSERT INTO main.fts (rowid, text) VALUES (?, ?)"),this.insertOut=e.query("INSERT INTO main.fts_out (rowid, text) VALUES (?, ?)"),this.deleteMsg=e.query("DELETE FROM main.fts WHERE rowid = ?"),this.deleteOut=e.query("DELETE FROM main.fts_out WHERE rowid = ?")}reindex(e,t){let r=0,n=[];if(t===0){let i=this.readTitle.get(e);if(i)r=i.created,n=C(i.title)}else{let i=this.readEntry.get(e,t);if(i)r=i.time,n=this.fields(e,t,i.body)}this.apply(e,t,r,n)}indexRow(e,t,r,n){this.apply(e,t,r,this.fields(e,t,n))}fields(e,t,r){let n;try{n=JSON.parse(r)}catch{return[]}if(!n||typeof n!=="object")return[];let i=vt(n);if(n.type==="tool_result"&&i.length){let s=this.previousModel.get(e,t)?.model??void 0;if(s)for(let o of i)o.model=s}return i}apply(e,t,r,n){let i=this.selectRefs.all(e,t);if(i.length)this.deleteRefs.run(e,t);this.stats.entries++;for(let s of n){let o=v(s.kind),a=ne(o,s.text);this.stats.fields++,this.stats.bytes+=s.text.length;let u=this.findDoc.get(a)?.id;if(u===void 0){if(u=Number(this.insertDoc.run(a,s.text.length,o?1:0).lastInsertRowid),o)this.insertOut.run(u,b(s.text)),this.outChanges++;else this.insertMsg.run(u,this.layout.msg==="trigram"?w(s.text):b(s.text));this.stats.newDocs++,this.stats.newBytes+=s.text.length}else this.increment.run(u);this.insertRef.run(e,t,s.part,u,Ze[s.kind],s.tool??null,s.err?1:0,s.model??null,r)}for(let{doc:s}of i)this.release(s)}release(e){this.decrement.run(e);let t=this.docRefs.get(e);if(!t||t.refs>0)return;if(this.deleteDoc.run(e),t.bulk)this.deleteOut.run(e),this.outChanges++;else this.deleteMsg.run(e)}}class L{db;page;clearRange;clearTail;upsert;constructor(e){this.db=e;this.page=e.query("SELECT term, doc FROM main.fts_out_vocab WHERE term > ? ORDER BY term LIMIT ?"),this.clearRange=e.query("DELETE FROM main.term WHERE t > ? AND t <= ?"),this.clearTail=e.query("DELETE FROM main.term WHERE t > ?"),this.upsert=e.query("INSERT OR REPLACE INTO main.term (t, n) VALUES (?, ?)")}step(e,t){let r=this.page.all(e,t),n=r.at(-1)?.term;if(r.length<t||n===void 0)this.clearTail.run(e);else this.clearRange.run(e,n);for(let{term:i,doc:s}of r)if(i.length<=q)this.upsert.run(i,s);return r.length<t?void 0:n}}var se=2000,ie=30000;class Ya{options;db;layout;reset;indexer;backfill;terms;queueRows;queueMax;sliceMs;backfillSliceMs;queueBatch;termRefreshMs;queueDone;termCursor;termStale;lastTermRefresh=Number.NEGATIVE_INFINITY;rateStart;estimate;closed=!1;constructor(e){this.options=e;let t=_(e.indexPath,e.storePath,e.features);if(this.db=t.db,this.layout=t.layout,this.reset=t.reset,this.sliceMs=e.sliceMs??20,this.backfillSliceMs=e.backfillSliceMs??200,this.queueBatch=e.queueBatch??200,this.termRefreshMs=e.termRefreshMs??60000,this.indexer=new N(this.db,this.layout),this.terms=new L(this.db),this.backfill=new A(this.db,this.indexer,e.batch??500),this.queueRows=this.db.query("SELECT id, session_id, seq FROM store.search_queue WHERE id > ? ORDER BY id LIMIT ?"),this.queueMax=this.db.query("SELECT max(id) AS id FROM store.search_queue"),!this.backfill.state)this.backfill.begin(this.reset?"rebuild":"initial");this.queueDone=Number(p(this.db,"queue_done")??0),this.termStale=Number(p(this.db,"term_stale")??0)===1}step(e){if(this.closed)return!1;if(this.drainQueue(e??performance.now()+this.sliceMs))return!0;if(this.backfill.running){this.rateStart??={time:performance.now(),done:this.backfill.state?.done??0};let t=this.indexer.outChanges;if(this.backfill.step(e??performance.now()+this.backfillSliceMs),this.markTerms(t),!this.backfill.running)this.lastTermRefresh=Number.NEGATIVE_INFINITY;return!0}return this.refreshTerms(e??performance.now()+this.sliceMs)}drain(){while(this.step());}drainQueue(e){let t=!1;return this.db.transaction(()=>{let r=this.queueRows.all(this.queueDone,this.queueBatch);if(!r.length)return;t=!0;let n=this.indexer.outChanges,i=new Set,s=this.queueDone;for(let o of r){let a=`${o.seq}\x00${o.session_id}`;if(!i.has(a))i.add(a),this.indexer.reindex(o.session_id,o.seq);if(s=o.id,performance.now()>e)break}d(this.db,"queue_done",s),this.markTerms(n),this.queueDone=s})(),t}markTerms(e){if(this.indexer.outChanges===e||this.termStale)return;this.termStale=!0,d(this.db,"term_stale",1)}refreshTerms(e){if(this.termCursor===void 0){if(!this.termStale||performance.now()-this.lastTermRefresh<this.termRefreshMs)return!1;this.termCursor="",this.termStale=!1,this.indexer.outChanges=0,d(this.db,"term_stale",0)}while(this.termCursor!==void 0&&performance.now()<=e){let t=this.termCursor;this.db.transaction(()=>{this.termCursor=this.terms.step(t,se)})()}if(this.termCursor===void 0)this.lastTermRefresh=performance.now();return!0}status(){let e=this.queueMax.get()?.id??this.queueDone,t=this.backfill.state,r;if(t?.state==="running"&&this.rateStart){let i=(performance.now()-this.rateStart.time)/1000,s=(t.done-this.rateStart.done)/i;if(i>0.5&&s>0)r=Math.max(0,Math.round(Math.max(0,t.total-t.done)/s))}let n=t?{state:t.state,reason:t.reason,total:t.total,done:t.done,sessionsTotal:t.sessionsTotal,sessionsDone:t.sessionsDone,startedAt:t.startedAt}:void 0;if(!this.estimate||performance.now()-this.estimate.time>ie)this.estimate={time:performance.now(),entries:y(this.db)};return{queueDone:this.queueDone,lag:Math.max(0,e-this.queueDone),entries:this.estimate.entries,...n?{backfill:n}:{},...r!==void 0?{etaSec:r}:{},layout:this.layout,reset:this.reset}}withIndex(e){return e(this.db)}compact(e){if(this.closed)return;if(e.vacuum)this.db.run("INSERT INTO main.fts(fts) VALUES('optimize')"),this.db.run("INSERT INTO main.fts_out(fts_out) VALUES('optimize')"),this.db.run("VACUUM main");if(e.checkpoint||e.vacuum)this.db.run("PRAGMA main.wal_checkpoint(TRUNCATE)")}close(){if(this.closed)return;this.closed=!0,this.db.close()}}var F=1000,oe=100;function ae(e){let t,r,n,i=!1,s=!1,o=0,a=[],u=(f)=>e.postMessage(f),m=(f)=>{if(s)return;if(n)clearTimeout(n);n=setTimeout(U,f)},S=()=>{if(!r||Atomics.load(r,xt)!==1)return;Atomics.store(r,lr,1),Atomics.notify(r,lr);while(Atomics.load(r,xt)===1)Atomics.wait(r,xt,1,1e4);Atomics.store(r,lr,0)};function U(){if(n=void 0,s||!t)return;S();let f=!1;try{f=t.step()}catch(E){u({type:"error",message:E instanceof Error?E.message:String(E),fatal:!1}),i=!1,m(F);return}let l=performance.now();if(f){if(i=!0,l-o>=oe)o=l,u({type:"status",status:t.status()});m(0);return}i=!1,o=l;let c=t.status();u({type:"status",status:c});for(let E of a.splice(0))u({type:"flushed",id:E,status:c});m(F)}e.onmessage=(f)=>{let l=f.data;if(l.type==="init"){r=new Int32Array(l.flags);try{t=new Ya(l.options)}catch(c){u({type:"error",message:c instanceof Error?c.message:String(c),fatal:!0});return}u({type:"status",status:t.status()}),m(0)}else if(l.type==="dirty"){if(!i)m(0)}else if(l.type==="pause")S();else if(l.type==="flush"){if(a.push(l.id),!i)m(0)}else if(l.type==="compact"){if(S(),t){try{t.compact(l)}catch(c){u({type:"error",message:c instanceof Error?c.message:String(c),fatal:!1})}u({type:"flushed",id:l.id,status:t.status()})}}else if(l.type==="stop"){if(s=!0,n)clearTimeout(n);t?.close(),u({type:"stopped"})}}}if(!Bun.isMainThread)ae(globalThis);
|
|
25
|
-
export{Ns,xt,lr,Us,Li,Fs,Va,Ka,ur,Qa,Ze,Di,vt,Ya};
|