@qitqode/qitqode-android-arm64 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/bundle/{chunk-7311jry1.js → chunk-00sr2gwz.js} +2 -2
- package/bundle/{chunk-azhw650z.js → chunk-02xcb52z.js} +2 -2
- package/bundle/{chunk-gws1rn1v.js → chunk-08q55ya0.js} +1 -1
- package/bundle/chunk-092bx2yw.js +2 -0
- package/bundle/{chunk-xgr6jnd6.js → chunk-0g25z230.js} +1 -1
- package/bundle/chunk-0j6dhrew.js +2 -0
- package/bundle/chunk-0jrgk6vk.js +2 -0
- package/bundle/chunk-0qn52zsd.js +2 -0
- package/bundle/chunk-10accb7b.js +2 -0
- package/bundle/{chunk-t3eymzg1.js → chunk-132tcp2j.js} +2 -2
- package/bundle/chunk-13kpdfr7.js +2 -0
- package/bundle/chunk-15s8zwgf.js +2 -0
- package/bundle/{chunk-nj4d554m.js → chunk-1bx2sjn6.js} +1 -1
- package/bundle/chunk-1kgyfja6.js +2 -0
- package/bundle/{chunk-bv29k2pf.js → chunk-1mcsf4yb.js} +2 -2
- package/bundle/{chunk-kwx9ewe0.js → chunk-1wpjmwnh.js} +1 -1
- package/bundle/chunk-1yv5h8k4.js +2 -0
- package/bundle/chunk-24rw1br0.js +3 -0
- package/bundle/{chunk-snr44en9.js → chunk-25bp7pcm.js} +2 -2
- package/bundle/{chunk-kmcsz8yv.js → chunk-2dkrfc1s.js} +1 -1
- package/bundle/chunk-364ccew0.js +3 -0
- package/bundle/{chunk-aa8hymcv.js → chunk-37dvnent.js} +2 -2
- package/bundle/chunk-3bkdbqjj.js +2 -0
- package/bundle/chunk-3bnqw3xp.js +3 -0
- package/bundle/{chunk-08m0hkdz.js → chunk-3dr4469n.js} +1 -1
- package/bundle/{chunk-hv6eccx1.js → chunk-3gw6r3hf.js} +179 -179
- package/bundle/{chunk-n96tvjgj.js → chunk-3mepk08v.js} +2 -2
- package/bundle/chunk-3sz6gw10.js +3 -0
- package/bundle/chunk-41x11r2s.js +3 -0
- package/bundle/{chunk-xqdrr7xg.js → chunk-45mjcxqk.js} +1 -1
- package/bundle/{chunk-qrtc3etn.js → chunk-4fa390yr.js} +2 -2
- package/bundle/chunk-4gs87ghj.js +3 -0
- package/bundle/chunk-4kqdzdv5.js +3 -0
- package/bundle/{chunk-3k2b05fv.js → chunk-4sazy0nq.js} +1 -1
- package/bundle/chunk-4tbqsrsn.js +2 -0
- package/bundle/{chunk-ngccf7ga.js → chunk-52b1v7mn.js} +1 -1
- package/bundle/chunk-53kns5wy.js +2 -0
- package/bundle/{chunk-11v7vz3y.js → chunk-549ptbaj.js} +1 -1
- package/bundle/chunk-559ek1ym.js +2 -0
- package/bundle/{chunk-34p46th6.js → chunk-5bate758.js} +1 -1
- package/bundle/{chunk-kdcnder5.js → chunk-5kmfnkzv.js} +1 -1
- package/bundle/{chunk-w1n4rf6n.js → chunk-5pkg052s.js} +2 -2
- package/bundle/chunk-5yfzzmv0.js +2 -0
- package/bundle/{chunk-rsszcqxd.js → chunk-60qyqqxx.js} +1 -1
- package/bundle/{chunk-94pcpztx.js → chunk-64s7vfj7.js} +2 -2
- package/bundle/{chunk-bzgj60w4.js → chunk-6sfhbckv.js} +1 -1
- package/bundle/{chunk-8762ty72.js → chunk-70pb4kcm.js} +2 -2
- package/bundle/{chunk-04hvaaje.js → chunk-72zxassf.js} +1 -1
- package/bundle/{chunk-yz6898wy.js → chunk-73ckx171.js} +1 -1
- package/bundle/chunk-7cbj28fp.js +2 -0
- package/bundle/chunk-7dep7g7c.js +2 -0
- package/bundle/{chunk-gj0wt0cy.js → chunk-7fawtcnn.js} +1 -1
- package/bundle/{chunk-zfn0z4sh.js → chunk-7gbytqkn.js} +2 -2
- package/bundle/{chunk-x66ycpfs.js → chunk-7jhrxzjx.js} +2 -2
- package/bundle/{chunk-09pkckr1.js → chunk-7vftsy04.js} +1 -1
- package/bundle/{chunk-zfd70p01.js → chunk-8dxdeksr.js} +1 -1
- package/bundle/{chunk-6styp5dn.js → chunk-8fgamz4y.js} +1 -1
- package/bundle/{chunk-9qdr9t8c.js → chunk-8q6z6emx.js} +1 -1
- package/bundle/{chunk-4ttf9rjd.js → chunk-8r3410c2.js} +1 -1
- package/bundle/{chunk-3mzcr3fw.js → chunk-8tp4whyw.js} +1 -1
- package/bundle/chunk-8yn64y27.js +2 -0
- package/bundle/{chunk-41v0x1jk.js → chunk-8yr682pv.js} +2 -2
- package/bundle/chunk-8ywa7az5.js +2 -0
- package/bundle/chunk-8ywdddts.js +2 -0
- package/bundle/chunk-8zmreqxx.js +2 -0
- package/bundle/chunk-92zjark4.js +2 -0
- package/bundle/chunk-983rqajz.js +7 -0
- package/bundle/{chunk-kjyw00jp.js → chunk-9cw4cnz0.js} +1 -1
- package/bundle/{chunk-2swch6mx.js → chunk-9dh9bc9d.js} +1 -1
- package/bundle/{chunk-y437vyza.js → chunk-9fkmhmh6.js} +1 -1
- package/bundle/{chunk-7vd91wsd.js → chunk-9nk0ts0s.js} +1 -1
- package/bundle/{chunk-p9cnzxb8.js → chunk-9s4whpg1.js} +2 -2
- package/bundle/{chunk-yajd975f.js → chunk-9xvctnjr.js} +1 -1
- package/bundle/chunk-9yakc5yv.js +28 -0
- package/bundle/{chunk-4wxxyrxn.js → chunk-9zre5e54.js} +1 -1
- package/bundle/chunk-a42q5mx4.js +3 -0
- package/bundle/{chunk-yt3f3j35.js → chunk-a9y27zd2.js} +1 -1
- package/bundle/{chunk-mex0fe9s.js → chunk-acyj91wq.js} +1 -1
- package/bundle/chunk-aq28ejhv.js +2 -0
- package/bundle/{chunk-pkc4ddw1.js → chunk-atpzz901.js} +1 -1
- package/bundle/chunk-ax1y4699.js +2 -0
- package/bundle/{chunk-dctj3c22.js → chunk-b0jh0rby.js} +2 -2
- package/bundle/chunk-b0x888w9.js +2 -0
- package/bundle/chunk-b10px5g4.js +2 -0
- package/bundle/chunk-b1qhpxee.js +2 -0
- package/bundle/chunk-b4ysd5b4.js +9 -0
- package/bundle/chunk-bcs2gvmp.js +2 -0
- package/bundle/{chunk-7mxt5b0h.js → chunk-bjcb9kt0.js} +1 -1
- package/bundle/{chunk-67d5d8mr.js → chunk-bnz0mxak.js} +1 -1
- package/bundle/{chunk-er38zew1.js → chunk-brh35yt5.js} +2 -2
- package/bundle/chunk-bs020a3x.js +2 -0
- package/bundle/{chunk-7eexey82.js → chunk-c72jajx9.js} +1 -1
- package/bundle/{chunk-81trveht.js → chunk-cagk1sjd.js} +1 -1
- package/bundle/{chunk-1byd3wma.js → chunk-cdh26622.js} +2 -2
- package/bundle/chunk-cjxcnhmq.js +14 -0
- package/bundle/{chunk-zddknkw7.js → chunk-cx0j6mpq.js} +1 -1
- package/bundle/{chunk-zh3fny3z.js → chunk-cx7p4ezk.js} +2 -2
- package/bundle/chunk-d0xs3j5h.js +2 -0
- package/bundle/{chunk-pxmhe36r.js → chunk-d1rn44wz.js} +1 -1
- package/bundle/chunk-d72rty3t.js +2 -0
- package/bundle/{chunk-0c6ep9mc.js → chunk-d93z6hrn.js} +1 -1
- package/bundle/{chunk-seghf5fc.js → chunk-dgx4rq86.js} +1 -1
- package/bundle/{chunk-qzj6027k.js → chunk-dh1h513y.js} +1 -1
- package/bundle/chunk-dj951pms.js +2 -0
- package/bundle/chunk-dp6zktka.js +2 -0
- package/bundle/{chunk-ba3h1pzs.js → chunk-dshnn54c.js} +1 -1
- package/bundle/{chunk-73myw3bj.js → chunk-dt899wbf.js} +2 -2
- package/bundle/chunk-dvqdtdza.js +2 -0
- package/bundle/{chunk-6ynxf3q7.js → chunk-dvxk6mr6.js} +2 -2
- package/bundle/chunk-dx7h5r8j.js +2 -0
- package/bundle/{chunk-bnss5dkk.js → chunk-dykqn0nj.js} +2 -2
- package/bundle/chunk-e03tgfpb.js +8 -0
- package/bundle/chunk-e07dbha4.js +2 -0
- package/bundle/chunk-e88wd9ex.js +2 -0
- package/bundle/{chunk-y9zstzed.js → chunk-eaqfnwdj.js} +1 -1
- package/bundle/chunk-ebabnv33.js +3 -0
- package/bundle/chunk-ebdpg3cn.js +2 -0
- package/bundle/{chunk-8vg4fmg2.js → chunk-ebkztnpf.js} +180 -178
- package/bundle/chunk-ec7pznsp.js +2 -0
- package/bundle/chunk-et7kz7kx.js +2 -0
- package/bundle/{chunk-kfmz2p27.js → chunk-ev3a2sxv.js} +2 -2
- package/bundle/{chunk-d00c1k9w.js → chunk-ewpzqnj4.js} +1 -1
- package/bundle/chunk-eyc6tb5h.js +2 -0
- package/bundle/chunk-eywryd3k.js +2 -0
- package/bundle/chunk-eze57bty.js +2 -0
- package/bundle/{chunk-qddt2gcs.js → chunk-ezrskm25.js} +1 -1
- package/bundle/chunk-f36ctnbp.js +3 -0
- package/bundle/{chunk-9ayxg9mq.js → chunk-f77nxt23.js} +2 -2
- package/bundle/chunk-fa47vzfc.js +2 -0
- package/bundle/chunk-fe397ph0.js +2 -0
- package/bundle/chunk-fjm9kstr.js +5 -0
- package/bundle/{chunk-exmw8jfa.js → chunk-fmxm4kaj.js} +2 -2
- package/bundle/chunk-fr75ytdr.js +2 -0
- package/bundle/chunk-fw2tnbt6.js +2 -0
- package/bundle/chunk-fwr2qgqb.js +2 -0
- package/bundle/chunk-g204pt98.js +2 -0
- package/bundle/chunk-g5prcvq2.js +14 -0
- package/bundle/{chunk-ggydr1ze.js → chunk-g794ey6w.js} +1 -1
- package/bundle/chunk-gcgmwqhh.js +2 -0
- package/bundle/{chunk-rmve21dh.js → chunk-gg7bg3ek.js} +1 -1
- package/bundle/{chunk-9x25d115.js → chunk-gkj4a27z.js} +1 -1
- package/bundle/chunk-gvtjxg0d.js +2 -0
- package/bundle/chunk-gw36mrg4.js +2 -0
- package/bundle/{chunk-z8gdmvgg.js → chunk-gwfx7tx7.js} +2 -2
- package/bundle/{chunk-q8hd01j7.js → chunk-gxmxx8jb.js} +1 -1
- package/bundle/{chunk-tge53d52.js → chunk-h1kg35mn.js} +1 -1
- package/bundle/chunk-h36qec67.js +2 -0
- package/bundle/{chunk-0msqaywp.js → chunk-h7w35n7w.js} +1 -1
- package/bundle/chunk-h9gtymfm.js +2 -0
- package/bundle/chunk-h9qn35pn.js +2 -0
- package/bundle/{chunk-mr8j7rc6.js → chunk-hb9mc5f9.js} +1 -1
- package/bundle/{chunk-5a7fs1hg.js → chunk-hbh2034m.js} +1 -1
- package/bundle/{chunk-df2aswz3.js → chunk-hcy77w6t.js} +1 -1
- package/bundle/{chunk-6a7c7wnf.js → chunk-hgsykghj.js} +2 -2
- package/bundle/chunk-hhjkezfz.js +2 -0
- package/bundle/chunk-hnz570f9.js +3 -0
- package/bundle/{chunk-tbgczapt.js → chunk-htkwc2se.js} +2 -2
- package/bundle/chunk-j21dnncc.js +4 -0
- package/bundle/{chunk-1yt5rsew.js → chunk-j63fkt6n.js} +1 -1
- package/bundle/chunk-ja18tvc7.js +2 -0
- package/bundle/{chunk-03xppy47.js → chunk-jcjaw7tk.js} +2 -2
- package/bundle/{chunk-jkh6eg7d.js → chunk-jf6ry79j.js} +4 -4
- package/bundle/{chunk-ke7n9t5p.js → chunk-jgz1a29w.js} +3 -3
- package/bundle/{chunk-ebcdxmdd.js → chunk-jngchw38.js} +1 -1
- package/bundle/{chunk-j5ymkhry.js → chunk-jqn27885.js} +1 -1
- package/bundle/chunk-jr2q5295.js +3 -0
- package/bundle/{chunk-hj3ddt53.js → chunk-jts0dma5.js} +2 -2
- package/bundle/chunk-jw16f6t0.js +4 -0
- package/bundle/chunk-jxg15t11.js +2 -0
- package/bundle/{chunk-7hm0c2yg.js → chunk-kqhh2pm9.js} +1 -1
- package/bundle/{chunk-0h8wdch6.js → chunk-kt0ej3nq.js} +1 -1
- package/bundle/chunk-kwzawx7r.js +2 -0
- package/bundle/{chunk-n6msxne8.js → chunk-kx2dp8ch.js} +1 -1
- package/bundle/chunk-m0mek3es.js +2 -0
- package/bundle/chunk-m31d2n6h.js +2 -0
- package/bundle/{chunk-egn55fa2.js → chunk-mcc5ynma.js} +3 -3
- package/bundle/{chunk-md8161zd.js → chunk-mdzzcrf9.js} +2 -2
- package/bundle/{chunk-gckgaqqr.js → chunk-mqtqcc10.js} +2 -2
- package/bundle/{chunk-ynwkr3yh.js → chunk-mvnxwwe7.js} +2 -2
- package/bundle/{chunk-6a77w77q.js → chunk-mvsrzvc4.js} +4 -4
- package/bundle/{chunk-b4knxpqh.js → chunk-mw2hr4pd.js} +1 -1
- package/bundle/{chunk-vszbqv24.js → chunk-mzbr0m2v.js} +1 -1
- package/bundle/{chunk-bj00xk8k.js → chunk-n0trgp1c.js} +2 -2
- package/bundle/chunk-n14qktbg.js +2 -0
- package/bundle/{chunk-yjk6zv2z.js → chunk-n2ygpy76.js} +1 -1
- package/bundle/{chunk-54wh8b12.js → chunk-n7xgfm5x.js} +2 -2
- package/bundle/{chunk-06k6egt2.js → chunk-neqy8j4n.js} +1 -1
- package/bundle/{chunk-nj61v4n7.js → chunk-njkserae.js} +1 -1
- package/bundle/{chunk-n6gtdx5h.js → chunk-nq495be3.js} +1 -1
- package/bundle/chunk-nr4q9fv7.js +2 -0
- package/bundle/{chunk-p3qkexpk.js → chunk-nsjp44fp.js} +1 -1
- package/bundle/chunk-nzzsj54n.js +2 -0
- package/bundle/chunk-p19qfw59.js +2 -0
- package/bundle/chunk-p2yxj9s4.js +2 -0
- package/bundle/{chunk-1dtzxt2w.js → chunk-p3rp99na.js} +1 -1
- package/bundle/chunk-p8czsxp0.js +3 -0
- package/bundle/chunk-p8k48st6.js +5 -0
- package/bundle/{chunk-79agp7v3.js → chunk-p8kpqyxb.js} +2 -2
- package/bundle/{chunk-9fxkh84w.js → chunk-p9zrk16q.js} +1 -1
- package/bundle/{chunk-6ged58yw.js → chunk-pmv8yr8c.js} +2 -2
- package/bundle/{chunk-ee23d2nz.js → chunk-pnq1h5az.js} +2 -2
- package/bundle/chunk-pq3qwxa8.js +2 -0
- package/bundle/{chunk-wfd5h6ax.js → chunk-pqnbdygz.js} +2 -2
- package/bundle/chunk-ps9p14y6.js +2 -0
- package/bundle/{chunk-zfcp509b.js → chunk-pxx2hz0g.js} +2 -2
- package/bundle/{chunk-txbwmwxj.js → chunk-q7rt76qw.js} +1 -1
- package/bundle/{chunk-rq4w0by4.js → chunk-q81m4m9z.js} +1 -1
- package/bundle/chunk-qagc6v17.js +2 -0
- package/bundle/{chunk-mq6jn47r.js → chunk-qb35hqm4.js} +1 -1
- package/bundle/chunk-qc0zhbhm.js +2 -0
- package/bundle/{chunk-keveg5gx.js → chunk-qdcf1ay5.js} +2 -2
- package/bundle/chunk-qp9y0g73.js +3 -0
- package/bundle/chunk-qpd0gab8.js +2 -0
- package/bundle/{chunk-axdzm75h.js → chunk-qqne79vp.js} +2 -2
- package/bundle/{chunk-g4gjz7sq.js → chunk-qs4wef8c.js} +1 -1
- package/bundle/chunk-r0ewmh6f.js +2 -0
- package/bundle/chunk-r3df289z.js +2 -0
- package/bundle/{chunk-by855es0.js → chunk-r58gzg6m.js} +1 -1
- package/bundle/{chunk-fmq0m4k5.js → chunk-r6ndvzd0.js} +1 -1
- package/bundle/chunk-r78kfhvz.js +2 -0
- package/bundle/{chunk-dyv2hqvc.js → chunk-rcyhqkv5.js} +1 -1
- package/bundle/{chunk-t2vm08v6.js → chunk-rd4x4tsv.js} +1 -1
- package/bundle/chunk-rebsz3bj.js +2 -0
- package/bundle/{chunk-yp5bypsp.js → chunk-rexdr63q.js} +2 -2
- package/bundle/{chunk-1me21qdc.js → chunk-rgxy4ngt.js} +1 -1
- package/bundle/chunk-rph5xswc.js +2 -0
- package/bundle/{chunk-dcndy4sr.js → chunk-rph9zj24.js} +1 -1
- package/bundle/chunk-rqmvj7f4.js +3 -0
- package/bundle/{chunk-ryfqwsft.js → chunk-rrd0jf5m.js} +1 -1
- package/bundle/{chunk-mpygdb5a.js → chunk-s8mghr5a.js} +2 -2
- package/bundle/chunk-schtpyjs.js +2 -0
- package/bundle/{chunk-nmehsm3w.js → chunk-shwjjrj8.js} +1 -1
- package/bundle/{chunk-08f4khsw.js → chunk-snt1kefv.js} +3 -3
- package/bundle/{chunk-s8hq6trz.js → chunk-srxx88nb.js} +1 -1
- package/bundle/{chunk-gy0wm7e1.js → chunk-std2bgv7.js} +2 -2
- package/bundle/{chunk-dffhkd30.js → chunk-swcgsrbj.js} +1 -1
- package/bundle/chunk-sy3n0qhc.js +800 -0
- package/bundle/{chunk-wgk7ynt3.js → chunk-t01bhw5h.js} +3 -3
- package/bundle/chunk-t0jjes17.js +2 -0
- package/bundle/{chunk-yprmd5b7.js → chunk-t5tfppwv.js} +2 -2
- package/bundle/chunk-t8rke5fr.js +8 -0
- package/bundle/chunk-tabcpx7t.js +4 -0
- package/bundle/{chunk-gmzrvxnv.js → chunk-tdmn21z0.js} +2 -2
- package/bundle/{chunk-71zw0qhf.js → chunk-tdxbm1nd.js} +1 -1
- package/bundle/{chunk-p825vsjy.js → chunk-te5tfq79.js} +1 -1
- package/bundle/chunk-tf4xwqz7.js +2 -0
- package/bundle/{chunk-fg35hwa0.js → chunk-tgd5ctnt.js} +2 -2
- package/bundle/chunk-tqazneg6.js +2 -0
- package/bundle/{chunk-qa2j0qmy.js → chunk-txqc7543.js} +2 -2
- package/bundle/chunk-tzg4z74d.js +2 -0
- package/bundle/{chunk-a3a1trap.js → chunk-v3x5nrc4.js} +2 -2
- package/bundle/chunk-v8dd6tyn.js +2 -0
- package/bundle/chunk-v8ksjgc3.js +2 -0
- package/bundle/chunk-v8vcwx23.js +2 -0
- package/bundle/chunk-vc4e6xc4.js +10 -0
- package/bundle/chunk-vcrakhgy.js +3 -0
- package/bundle/{chunk-a1hzeejj.js → chunk-vdpd4akk.js} +2 -2
- package/bundle/{chunk-6p7yg5sr.js → chunk-vftqwdpg.js} +1 -1
- package/bundle/chunk-vg41rtdy.js +2 -0
- package/bundle/{chunk-r0k21apr.js → chunk-vgaxv70x.js} +2 -2
- package/bundle/{chunk-nkk4fyqf.js → chunk-vgnddhdj.js} +1 -1
- package/bundle/{chunk-xd3xc1vv.js → chunk-vm58fkrv.js} +1 -1
- package/bundle/{chunk-qg2vk5fw.js → chunk-vsys768k.js} +1 -1
- package/bundle/{chunk-s4qtphwx.js → chunk-w03fdrxe.js} +1 -1
- package/bundle/chunk-w1ypf53m.js +3 -0
- package/bundle/chunk-w24660y4.js +3 -0
- package/bundle/{chunk-z1ay3qd0.js → chunk-w3bmf3zz.js} +1 -1
- package/bundle/{chunk-5e4fxy99.js → chunk-w57j3pgz.js} +82 -82
- package/bundle/{chunk-vsr8mnj6.js → chunk-w5940jxm.js} +1 -1
- package/bundle/chunk-w6rf2knb.js +2 -0
- package/bundle/chunk-w9pdvcf9.js +3 -0
- package/bundle/{chunk-yk97q51d.js → chunk-wev34grp.js} +2 -2
- package/bundle/chunk-wh7r96t3.js +2 -0
- package/bundle/{chunk-1pg6pv0m.js → chunk-wm77svwm.js} +1 -1
- package/bundle/chunk-wnjqaxze.js +2 -0
- package/bundle/{chunk-qkjdr337.js → chunk-x6rr6ss1.js} +1 -1
- package/bundle/{chunk-bbzztav6.js → chunk-xdacgfba.js} +1 -1
- package/bundle/{chunk-6p94fpbn.js → chunk-xdjwapwy.js} +2 -2
- package/bundle/chunk-xfz698bh.js +2 -0
- package/bundle/{chunk-zwnhf4z1.js → chunk-xhbb8b5g.js} +1 -1
- package/bundle/chunk-xqwvx3qq.js +2 -0
- package/bundle/chunk-xxj3sgd5.js +2 -0
- package/bundle/chunk-xyjehgzm.js +3 -0
- package/bundle/{chunk-cs38g1bx.js → chunk-y0ydzdfc.js} +1 -1
- package/bundle/{chunk-wvf5q2hz.js → chunk-y1b2h15z.js} +1 -1
- package/bundle/{chunk-1gf116rg.js → chunk-yacccwf6.js} +1 -1
- package/bundle/chunk-ydc6ypjt.js +77 -0
- package/bundle/{chunk-dhqaqeq6.js → chunk-yeq7b87a.js} +1 -1
- package/bundle/chunk-yfp9y71y.js +2 -0
- package/bundle/chunk-yg9c1v8v.js +2 -0
- package/bundle/{chunk-e6xnynaz.js → chunk-yha554nm.js} +2 -2
- package/bundle/{chunk-rv1stdvb.js → chunk-yj6rbe9p.js} +2 -2
- package/bundle/chunk-yjjh339w.js +2 -0
- package/bundle/{chunk-sjw56r2n.js → chunk-yjp0btmq.js} +3 -3
- package/bundle/{chunk-c5pb87yf.js → chunk-ymtcm4xd.js} +1 -1
- package/bundle/chunk-yt6vd7a5.js +2 -0
- package/bundle/{chunk-ssk8tkwd.js → chunk-yw9pfqxt.js} +1 -1
- package/bundle/{chunk-g6cyhxwg.js → chunk-yykjvt7f.js} +2 -2
- package/bundle/{chunk-sfes6pp1.js → chunk-yzh4rmrt.js} +1 -1
- package/bundle/chunk-yzq3c3dq.js +2 -0
- package/bundle/{chunk-prh3c44x.js → chunk-yzwgvjzd.js} +1 -1
- package/bundle/chunk-z1j25911.js +2 -0
- package/bundle/{chunk-rkwrjphh.js → chunk-z1rshv6g.js} +1 -1
- package/bundle/chunk-z29ahthm.js +2 -0
- package/bundle/{chunk-jgjnz82k.js → chunk-zaan8jk6.js} +1 -1
- package/bundle/{chunk-6gb65bv1.js → chunk-zbqzm65q.js} +1 -1
- package/bundle/{chunk-bk4phk66.js → chunk-zesbm9k1.js} +1 -1
- package/bundle/{chunk-c6vfwjg4.js → chunk-zfcfyagt.js} +1 -1
- package/bundle/{chunk-ywkvq7zb.js → chunk-zfnbk5gy.js} +1 -1
- package/bundle/chunk-zgre4gc2.js +2 -0
- package/bundle/{chunk-z7430qxg.js → chunk-zrmx397j.js} +1 -1
- package/bundle/chunk-zthkjx33.js +2 -0
- package/bundle/chunk-zxddasg8.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-0442cmw2.js +0 -2
- package/bundle/chunk-085pvqr4.js +0 -2
- package/bundle/chunk-0x5jn813.js +0 -2
- package/bundle/chunk-11g2rpv8.js +0 -3
- package/bundle/chunk-28t9akfn.js +0 -2
- package/bundle/chunk-2h1fcqvf.js +0 -2
- package/bundle/chunk-2kens6wh.js +0 -2
- package/bundle/chunk-2scyp9ns.js +0 -2
- package/bundle/chunk-2tw58kwb.js +0 -2
- package/bundle/chunk-2vxx0tax.js +0 -2
- package/bundle/chunk-2ybt3p5z.js +0 -2
- package/bundle/chunk-2zpkw3ge.js +0 -2
- package/bundle/chunk-31g86yn6.js +0 -2
- package/bundle/chunk-397be2x0.js +0 -2
- package/bundle/chunk-3c78nkgn.js +0 -2
- package/bundle/chunk-3d91q2qd.js +0 -2
- package/bundle/chunk-43yv7tz1.js +0 -2
- package/bundle/chunk-496ajawz.js +0 -2
- package/bundle/chunk-499gp5g5.js +0 -2
- package/bundle/chunk-4hzm14xt.js +0 -3
- package/bundle/chunk-4xw14sed.js +0 -2
- package/bundle/chunk-536naqqv.js +0 -2
- package/bundle/chunk-57nvmhjq.js +0 -2
- package/bundle/chunk-5he3d7cy.js +0 -2
- package/bundle/chunk-5qr286w8.js +0 -2
- package/bundle/chunk-606vpgc4.js +0 -4
- package/bundle/chunk-6a1skxcj.js +0 -3
- package/bundle/chunk-6cj7cn5x.js +0 -2
- package/bundle/chunk-6hybp2mt.js +0 -2
- package/bundle/chunk-6y423jax.js +0 -3
- package/bundle/chunk-72ghkgcn.js +0 -2
- package/bundle/chunk-741teh8k.js +0 -2
- package/bundle/chunk-7b3wx6kn.js +0 -2
- package/bundle/chunk-891yevv2.js +0 -2
- package/bundle/chunk-8c1ypgw5.js +0 -3
- package/bundle/chunk-8ktgy41r.js +0 -2
- package/bundle/chunk-8q73cjyj.js +0 -2
- package/bundle/chunk-8rt63jbm.js +0 -2
- package/bundle/chunk-8y623qdx.js +0 -2
- package/bundle/chunk-921vn745.js +0 -2
- package/bundle/chunk-945ebhte.js +0 -2
- package/bundle/chunk-9548cc0c.js +0 -2
- package/bundle/chunk-9yrypq1r.js +0 -14
- package/bundle/chunk-a0rp7gh4.js +0 -77
- package/bundle/chunk-a48t0g95.js +0 -3
- package/bundle/chunk-a949at1c.js +0 -3
- package/bundle/chunk-akk84fnc.js +0 -2
- package/bundle/chunk-aw7j7brm.js +0 -2
- package/bundle/chunk-b6cybdj3.js +0 -2
- package/bundle/chunk-c5fa8cb1.js +0 -2
- package/bundle/chunk-ca4r31we.js +0 -2
- package/bundle/chunk-ckbwdrm3.js +0 -2
- package/bundle/chunk-cqj21rfj.js +0 -3
- package/bundle/chunk-cz3h5n1v.js +0 -3
- package/bundle/chunk-dhc6e1t7.js +0 -2
- package/bundle/chunk-dk6rbqvp.js +0 -2
- package/bundle/chunk-dk975etf.js +0 -3
- package/bundle/chunk-dwajajaq.js +0 -2
- package/bundle/chunk-dxcrggvq.js +0 -2
- package/bundle/chunk-dyt3n3fe.js +0 -2
- package/bundle/chunk-e74efvj2.js +0 -800
- package/bundle/chunk-e7ah0e61.js +0 -2
- package/bundle/chunk-e7v9trve.js +0 -11
- package/bundle/chunk-e8ws454m.js +0 -2
- package/bundle/chunk-efndtzby.js +0 -2
- package/bundle/chunk-eq2pepce.js +0 -2
- package/bundle/chunk-eva3nqqb.js +0 -14
- package/bundle/chunk-f3bnn9rf.js +0 -8
- package/bundle/chunk-f693s9vn.js +0 -2
- package/bundle/chunk-ftepqwyq.js +0 -2
- package/bundle/chunk-g18ax6yp.js +0 -2
- package/bundle/chunk-gadyp6mb.js +0 -2
- package/bundle/chunk-ge8315te.js +0 -5
- package/bundle/chunk-gk28ffhg.js +0 -2
- package/bundle/chunk-gpfc4z4v.js +0 -2
- package/bundle/chunk-gqvg02zp.js +0 -2
- package/bundle/chunk-gsyt2sv7.js +0 -2
- package/bundle/chunk-h3k1dk9m.js +0 -2
- package/bundle/chunk-h8c3dcqt.js +0 -2
- package/bundle/chunk-hfq11w4h.js +0 -2
- package/bundle/chunk-hw5qyht3.js +0 -3
- package/bundle/chunk-hwf58w1k.js +0 -2
- package/bundle/chunk-jyczz3yh.js +0 -8
- package/bundle/chunk-k8k8z6b7.js +0 -3
- package/bundle/chunk-kk3ve911.js +0 -2
- package/bundle/chunk-kv72hxkp.js +0 -3
- package/bundle/chunk-m4j7jyrd.js +0 -3
- package/bundle/chunk-mf3sm0pk.js +0 -2
- package/bundle/chunk-mkng9ykt.js +0 -2
- package/bundle/chunk-mxvypy3s.js +0 -2
- package/bundle/chunk-n5ypgxrn.js +0 -28
- package/bundle/chunk-n9xw9kqc.js +0 -2
- package/bundle/chunk-nc4wbc89.js +0 -2
- package/bundle/chunk-ngk67rt3.js +0 -3
- package/bundle/chunk-nj2bbtmx.js +0 -2
- package/bundle/chunk-nr1g57b2.js +0 -2
- package/bundle/chunk-p0ahbpxv.js +0 -2
- package/bundle/chunk-p7y8z5rd.js +0 -2
- package/bundle/chunk-pt26gerr.js +0 -2
- package/bundle/chunk-qkk1as5n.js +0 -2
- package/bundle/chunk-qsm9xw87.js +0 -2
- package/bundle/chunk-qw980y8h.js +0 -2
- package/bundle/chunk-r2w3gr8d.js +0 -2
- package/bundle/chunk-r5bqcpkz.js +0 -2
- package/bundle/chunk-r67c858b.js +0 -2
- package/bundle/chunk-r9fvfkee.js +0 -2
- package/bundle/chunk-rcn0dhbj.js +0 -2
- package/bundle/chunk-rq47pn3r.js +0 -2
- package/bundle/chunk-rvt1tdy8.js +0 -2
- package/bundle/chunk-ry7q8xn6.js +0 -2
- package/bundle/chunk-s27xvrft.js +0 -2
- package/bundle/chunk-s5nde2kd.js +0 -5
- package/bundle/chunk-scy39p6q.js +0 -2
- package/bundle/chunk-srpe3v8e.js +0 -9
- package/bundle/chunk-st5jaszz.js +0 -3
- package/bundle/chunk-t5qamf96.js +0 -2
- package/bundle/chunk-t9mz17gb.js +0 -3
- package/bundle/chunk-tns5x4w0.js +0 -3
- package/bundle/chunk-ttevj0pj.js +0 -2
- package/bundle/chunk-v7c54cyj.js +0 -2
- package/bundle/chunk-vgefaens.js +0 -2
- package/bundle/chunk-vv59b4re.js +0 -2
- package/bundle/chunk-vwqy7n3g.js +0 -2
- package/bundle/chunk-vysa9hp4.js +0 -7
- package/bundle/chunk-wn076jwj.js +0 -2
- package/bundle/chunk-x0m1qye9.js +0 -2
- package/bundle/chunk-xvntsbb1.js +0 -3
- package/bundle/chunk-y70aachh.js +0 -2
- package/bundle/chunk-yqk58hf6.js +0 -3
- package/bundle/chunk-ysgxt83y.js +0 -2
- package/bundle/chunk-ze9e6nt3.js +0 -3
- package/bundle/chunk-znzan00b.js +0 -3
- package/bundle/chunk-zrp55k47.js +0 -2
- package/bundle/chunk-zwdnh860.js +0 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Dd as T,Fd as q,Gd as N,Hd as w,Id as X,Ld as D}from"./chunk-7jhrxzjx.js";import"./chunk-jcjaw7tk.js";import{Sf as Q}from"./chunk-9s4whpg1.js";import{Xg as A}from"./chunk-w57j3pgz.js";import"./chunk-ebkztnpf.js";import"./chunk-pxx2hz0g.js";import"./chunk-rexdr63q.js";import"./chunk-kqhh2pm9.js";import"./chunk-7fawtcnn.js";import"./chunk-mdzzcrf9.js";import"./chunk-wev34grp.js";import"./chunk-sy3n0qhc.js";import{ul as $}from"./chunk-364ccew0.js";import"./chunk-vdpd4akk.js";import"./chunk-yjp0btmq.js";import"./chunk-1bx2sjn6.js";import"./chunk-g5prcvq2.js";import"./chunk-t5tfppwv.js";import"./chunk-25bp7pcm.js";import"./chunk-qdcf1ay5.js";import"./chunk-45mjcxqk.js";import"./chunk-qqne79vp.js";import"./chunk-64s7vfj7.js";import"./chunk-e03tgfpb.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-3mepk08v.js";import"./chunk-atpzz901.js";import"./chunk-0g25z230.js";import"./chunk-w9pdvcf9.js";import"./chunk-4gs87ghj.js";import"./chunk-brh35yt5.js";import"./chunk-vcrakhgy.js";import"./chunk-xdjwapwy.js";import"./chunk-7dep7g7c.js";import{zt as _}from"./chunk-tabcpx7t.js";import"./chunk-cx7p4ezk.js";import"./chunk-tgd5ctnt.js";import"./chunk-p8kpqyxb.js";import"./chunk-3sz6gw10.js";import"./chunk-xqwvx3qq.js";import"./chunk-qp9y0g73.js";import"./chunk-xyjehgzm.js";import"./chunk-j21dnncc.js";import{Vu as Y,_u as W}from"./chunk-vc4e6xc4.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-pqnbdygz.js";import"./chunk-ydc6ypjt.js";import"./chunk-ev3a2sxv.js";import"./chunk-pnq1h5az.js";import"./chunk-4sazy0nq.js";import V from"fs/promises";import L from"path";import R from"os";var g={command:"uninstall",describe:"uninstall qitqode and remove all related files",builder:(j)=>j.option("keep-config",{alias:"c",type:"boolean",describe:"keep configuration files",default:!1}).option("keep-data",{alias:"d",type:"boolean",describe:"keep session data and snapshots",default:!1}).option("dry-run",{type:"boolean",describe:"show what would be removed without removing",default:!1}).option("force",{alias:"f",type:"boolean",describe:"skip confirmation prompts",default:!1}),handler:async(j)=>{Q.empty(),Q.println(Q.logo(" ")),Q.empty(),w("Uninstall QitQode");let B=await A.runPromise($.Service.use((J)=>J.method()));N.info(`Installation method: ${B}`);let E=await v(j,B);if(await z(E,B),!j.force&&!j.dryRun){let J=await q({message:"Are you sure you want to uninstall?",initialValue:!1});if(!J||T(J)){X("Cancelled");return}}if(j.dryRun){N.warn("Dry run - no changes made"),X("Done");return}await G(B,E),X("Done")}};async function v(j,B){let E=[{path:W.Path.data,label:"Data",keep:j.keepData},{path:W.Path.cache,label:"Cache",keep:!1},{path:W.Path.config,label:"Config",keep:j.keepConfig},{path:W.Path.state,label:"State",keep:!1}],J=B==="curl"?await P():null,H=B==="curl"?process.execPath:null;return{directories:E,shellConfig:J,binary:H}}async function z(j,B){N.message("The following will be removed:");for(let E of j.directories){if(!await V.access(E.path).then(()=>!0).catch(()=>!1))continue;let H=await F(E.path),K=S(H),O=E.keep?Q.Style.TEXT_DIM+"(keeping)":"",M=E.keep?"\u25CB":"\u2713";N.info(` ${M} ${E.label}: ${Z(E.path)} ${Q.Style.TEXT_DIM}(${K})${O}`)}if(j.binary)N.info(` \u2713 Binary: ${Z(j.binary)}`);if(j.shellConfig)N.info(` \u2713 Shell PATH in ${Z(j.shellConfig)}`);if(B!=="curl"&&B!=="unknown"){let E={npm:"npm uninstall -g @qitqode/cli",pnpm:"pnpm uninstall -g @qitqode/cli",bun:"bun remove -g @qitqode/cli"};N.info(` \u2713 Package: ${E[B]||B}`)}}async function G(j,B){let E=D(),J=[];for(let H of B.directories){if(H.keep){N.step(`Skipping ${H.label} (--keep-${H.label.toLowerCase()})`);continue}if(!await V.access(H.path).then(()=>!0).catch(()=>!1))continue;E.start(`Removing ${H.label}...`);let O=await V.rm(H.path,{recursive:!0,force:!0}).catch((M)=>M);if(O){E.stop(`Failed to remove ${H.label}`,1),J.push(`${H.label}: ${O.message}`);continue}E.stop(`Removed ${H.label}`)}if(B.shellConfig){E.start("Cleaning shell config...");let H=await k(B.shellConfig).catch((K)=>K);if(H)E.stop("Failed to clean shell config",1),J.push(`Shell config: ${H.message}`);else E.stop("Cleaned shell config")}if(j!=="curl"&&j!=="unknown"){let K={npm:["npm","uninstall","-g","@qitqode/cli"],pnpm:["pnpm","uninstall","-g","@qitqode/cli"],bun:["bun","remove","-g","@qitqode/cli"]}[j];if(K){E.start(`Running ${K.join(" ")}...`);let O=await _.run(K,{nothrow:!0});if(O.code!==0)E.stop(`Package manager uninstall failed: exit code ${O.code}`,1),N.warn(`You may need to run manually: ${K.join(" ")}`);else E.stop("Package removed")}else N.warn(`Uninstall not supported for method "${j}" yet, skipping package removal`)}if(j==="curl"&&B.binary){Q.empty(),N.message("To finish removing the binary, run:"),N.info(` rm "${B.binary}"`);let H=L.dirname(B.binary);if(H.includes(".qitqode"))N.info(` rmdir "${H}" 2>/dev/null`)}if(J.length>0){Q.empty(),N.warn("Some operations failed:");for(let H of J)N.error(` ${H}`)}Q.empty(),N.success("Thank you for using QitQode!")}async function P(){let j=L.basename(process.env.SHELL||"bash"),B=R.homedir(),E=process.env.XDG_CONFIG_HOME||L.join(B,".config"),J={fish:[L.join(E,"fish","config.fish")],zsh:[L.join(B,".zshrc"),L.join(B,".zshenv"),L.join(E,"zsh",".zshrc"),L.join(E,"zsh",".zshenv")],bash:[L.join(B,".bashrc"),L.join(B,".bash_profile"),L.join(B,".profile"),L.join(E,"bash",".bashrc"),L.join(E,"bash",".bash_profile")],ash:[L.join(B,".ashrc"),L.join(B,".profile")],sh:[L.join(B,".profile")]},H=J[j]||J.bash;for(let K of H){if(!await V.access(K).then(()=>!0).catch(()=>!1))continue;let M=await Y.readText(K).catch(()=>"");if(M.includes("# qitqode")||M.includes(".qitqode/bin"))return K}return null}async function k(j){let E=(await Y.readText(j)).split(`
|
|
3
|
+
`),J=[],H=!1;for(let O of E){let M=O.trim();if(M==="# qitqode"){H=!0;continue}if(H){if(H=!1,M.includes(".qitqode/bin")||M.includes("fish_add_path"))continue}if(M.startsWith("export PATH=")&&M.includes(".qitqode/bin")||M.startsWith("fish_add_path")&&M.includes(".qitqode"))continue;J.push(O)}while(J.length>0&&J[J.length-1].trim()==="")J.pop();let K=J.join(`
|
|
4
|
+
`)+`
|
|
5
|
+
`;await Y.write(j,K)}async function F(j){let B=0,E=async(J)=>{let H=await V.readdir(J,{withFileTypes:!0}).catch(()=>[]);for(let K of H){let O=L.join(J,K.name);if(K.isDirectory()){await E(O);continue}if(K.isFile()){let M=await V.stat(O).catch(()=>null);if(M)B+=M.size}}};return await E(j),B}function S(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;if(j<1073741824)return`${(j/1048576).toFixed(1)} MB`;return`${(j/1073741824).toFixed(1)} GB`}function Z(j){let B=R.homedir();if(j===B||j.startsWith(B+L.sep))return"~"+j.slice(B.length);return j}export{g as UninstallCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{h as x}from"./chunk-
|
|
2
|
+
import{h as x}from"./chunk-41x11r2s.js";import{j as D}from"./chunk-wm77svwm.js";import{H as A}from"./chunk-rqmvj7f4.js";import{Pd as P}from"./chunk-9xvctnjr.js";import{Sf as j}from"./chunk-9s4whpg1.js";import{rg as R,sg as S,tg as k}from"./chunk-b4ysd5b4.js";import{Xg as $}from"./chunk-w57j3pgz.js";import{Mj as B}from"./chunk-sy3n0qhc.js";import{Up as G,Wp as W,Xp as Y,Yp as _,Zp as O,_p as b,hq as v,iq as K,nq as F}from"./chunk-e03tgfpb.js";import{UI as H}from"./chunk-ydc6ypjt.js";var X="forgewise",p=(J,z=process.env)=>J.trim()||z.QLEX_API_KEY?.trim()||"",U=(J)=>H.gen(function*(){let z=J.trim();if(!z)yield*H.sync(()=>{j.println(j.Style.TEXT_DANGER+"Error: API key cannot be empty."+j.Style.TEXT_NORMAL)}),process.exit(1);yield*(yield*B.Service).set(X,{type:"api",key:z,metadata:{method:"api-key"}}),yield*D(j.Style.TEXT_SUCCESS+"Signed in with API key."+j.Style.TEXT_NORMAL)}).pipe(H.withSpan("forgewise.login.apikey"));async function u(){let J=!Y();try{return await S({tryOpen:J,onCode:(z)=>{if(process.stdout.write(`
|
|
3
3
|
`),process.stdout.write(" To sign in, open: "+z.verificationUri+`
|
|
4
4
|
`),process.stdout.write(" and enter code: "+z.userCode+`
|
|
5
5
|
`),z.verificationUriComplete)process.stdout.write(`
|
|
@@ -7,5 +7,5 @@ import{h as x}from"./chunk-8c1ypgw5.js";import{j as N}from"./chunk-1pg6pv0m.js";
|
|
|
7
7
|
`+z.verificationUriComplete+`
|
|
8
8
|
`);process.stdout.write(`
|
|
9
9
|
Waiting for approval... (ctrl+c to cancel)
|
|
10
|
-
`)}})}catch(z){if(z instanceof
|
|
10
|
+
`)}})}catch(z){if(z instanceof b)return k();throw z}}var I=(J=u)=>H.gen(function*(){let z=yield*H.tryPromise({try:()=>_(),catch:(V)=>V}).pipe(H.catch((V)=>H.succeed(V)));if(z instanceof Error){let V=z;if(V instanceof O)return yield*H.sync(()=>{j.println(j.Style.TEXT_DANGER+"Error: "+V.message+j.Style.TEXT_NORMAL),process.exit(1)});throw V}let M=yield*H.tryPromise({try:()=>J(),catch:(V)=>V});if(M instanceof Error)yield*H.sync(()=>{j.println(j.Style.TEXT_DANGER+"Login failed: "+M.message+j.Style.TEXT_NORMAL)}),process.exit(1);let T=yield*B.Service,Z=yield*H.promise(()=>W(M.access_token));if(Z)yield*T.set(X,K(M,Z));else yield*T.set(X,v(M,{rotateRefreshToken:!0}));yield*D(j.Style.TEXT_SUCCESS+`Signed in as ${M.name||M.email} (${M.email})`+j.Style.TEXT_NORMAL)}).pipe(H.withSpan("forgewise.login")),l=()=>H.gen(function*(){let J=yield*B.Service;if(!(yield*J.get(X))){yield*H.sync(()=>j.println("Not signed in to Forgewise."));return}yield*J.remove(X),yield*D("Signed out from Forgewise.")}).pipe(H.withSpan("forgewise.logout")),w=(J)=>H.gen(function*(){let z=yield*H.tryPromise({try:()=>R(J),catch:(T)=>T}).pipe(H.map((T)=>({ok:!0,result:T})),H.catch((T)=>H.succeed({ok:!1,error:T})));if(!z.ok&&z.error instanceof F)return j.Style.TEXT_DIM+" | "+j.Style.TEXT_NORMAL+j.Style.TEXT_DIM+"Qredits: no account linked to this credential"+j.Style.TEXT_NORMAL;let M=z.ok?z.result:null;if(M)return j.Style.TEXT_DIM+" | "+j.Style.TEXT_NORMAL+"Qredits: "+j.Style.TEXT_HIGHLIGHT_BOLD+A(M.balance)+j.Style.TEXT_NORMAL;return j.Style.TEXT_DIM+" | "+j.Style.TEXT_NORMAL+j.Style.TEXT_DIM+"Qredits: unavailable"+j.Style.TEXT_NORMAL}),E=()=>H.gen(function*(){if((yield*x())==="revoked")return;let J=yield*H.promise(()=>G());if(!J){yield*H.sync(()=>j.println("Forgewise: Not signed in"));return}let M=yield*(yield*B.Service).get(X),T=(M&&M.type==="api"?M.metadata:void 0)??{};if(J.method==="api-key"){let q=T.email,m=q?`Signed in as ${q} (API key)`:"Signed in with API key",C=Number(T.access_token_expires_at??0),d=C>0&&Date.now()>C?j.Style.TEXT_DIM+" (account session expired \u2014 run `qitqode auth login` to refresh it)"+j.Style.TEXT_NORMAL:"",s=yield*w(J);yield*H.sync(()=>j.println(j.Style.TEXT_SUCCESS+"Forgewise: "+j.Style.TEXT_NORMAL+m+d+s));return}let Z=T.email??"(unknown)",V=T.name??"",y=T.sub,N=Number(T.expires_at??0),Q=N>0&&Date.now()>N,h=V?`${V} (${Z})`:Z,g=Q?j.Style.TEXT_WARNING+" [token expired \u2014 run `qitqode auth login` to refresh]"+j.Style.TEXT_NORMAL:j.Style.TEXT_DIM+` (expires ${new Date(N).toLocaleString()})`+j.Style.TEXT_NORMAL,L="";if(!Q&&y)L=yield*w({key:J.key,method:"sso"});yield*H.sync(()=>j.println(j.Style.TEXT_SUCCESS+"Forgewise: "+j.Style.TEXT_NORMAL+h+g+L))}).pipe(H.withSpan("forgewise.status")),Mj=P({command:"auth <command>",describe:"Sign in or out of Forgewise",builder:(J)=>J.command(P({command:"login",describe:"Sign in with Forgewise Accounts (opens browser) or a Qortex API key",builder:(z)=>z.option("api-key",{type:"string",describe:"Sign in by pasting a Qortex API key instead of using the browser (defaults to $QLEX_API_KEY when the flag is passed without a value)"}),async handler(z){j.empty();let M=z.apiKey;if(M!==void 0){let T=p(M);await $.runPromise(U(T));return}await $.runPromise(I())}})).command(P({command:"logout",describe:"Sign out from Forgewise",builder:(z)=>z,async handler(){j.empty(),await $.runPromise(l())}})).command(P({command:"status",describe:"Show current Forgewise sign-in status",builder:(z)=>z,async handler(){j.empty(),await $.runPromise(E())}})).demandCommand(),async handler(){}});
|
|
11
11
|
export{p as a,U as b,u as c,I as d,l as e,E as f,Mj as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$P as f,WP as a,XP as b,YP as c,ZP as d,_P as e,aQ as g,bQ as h,cQ as i,dQ as j}from"./chunk-ev3a2sxv.js";import"./chunk-4sazy0nq.js";export{c as TreeCursor,b as Tree,f as Query,j as Parser,d as Node,i as MIN_COMPATIBLE_VERSION,a as LookaheadIterator,g as Language,h as LANGUAGE_VERSION,e as CaptureQuantifier};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$o as R,Xo as D,Yo as m,ap as X,ep as v,gp as x,hp as S}from"./chunk-t5tfppwv.js";import{Ap as L,wp as A}from"./chunk-qdcf1ay5.js";import{qu as U}from"./chunk-xyjehgzm.js";import{Qu as P,Vu as F}from"./chunk-vc4e6xc4.js";import{GF as s,HP as B,UI as k}from"./chunk-ydc6ypjt.js";import{iQ as E}from"./chunk-4sazy0nq.js";var V={};E(V,{schema:()=>c,jsonc:()=>g,ConfigParse:()=>V});function g($,T){let J=[],j=D($,J,{allowTrailingComma:!0});if(J.length){let C=$.split(`
|
|
3
|
+
`),y=J.map((H)=>{let I=$.substring(0,H.offset).split(`
|
|
4
|
+
`),Q=I.length,Z=I[I.length-1].length+1,K=C[Q-1],z=`${m(H.error)} at line ${Q}, column ${Z}`;if(!K)return z;return`${z}
|
|
5
|
+
Line ${Q}: ${K}
|
|
6
|
+
${"".padStart(Z+9)}^`}).join(`
|
|
7
|
+
`);throw new R({path:T,message:`
|
|
8
|
+
--- JSONC Input ---
|
|
9
|
+
${$}
|
|
10
|
+
--- Errors ---
|
|
11
|
+
${y}
|
|
12
|
+
--- End ---`})}return j}function c($,T,J){let j=$.safeParse(T);if(j.success)return j.data;throw new X({path:J,issues:j.error.issues})}var Y={};E(Y,{substitute:()=>u,ConfigVariable:()=>Y});import G from"path";import h from"os";function a($){return $.type==="path"?$.path:$.source}function n($){return $.type==="path"?G.dirname($.path):$.dir}async function u($){let T=$.missing??"error",J=$.text.replace(/\{env:([^}]+)\}/g,(Q,Z)=>{return process.env[Z]||""}),j=Array.from(J.matchAll(/\{file:[^}]+\}/g));if(!j.length)return J;let C=n($),y=a($),H="",I=0;for(let Q of j){let Z=Q[0],K=Q.index;H+=J.slice(I,K);let z=J.lastIndexOf(`
|
|
13
|
+
`,K-1)+1;if(J.slice(z,K).trimStart().startsWith("//")){H+=Z,I=K+Z.length;continue}let W=Z.replace(/^\{file:/,"").replace(/\}$/,"");if(W.startsWith("~/"))W=G.join(h.homedir(),W.slice(2));let N=G.isAbsolute(W)?W:G.resolve(C,W),d=(await F.readText(N).catch((O)=>{if(T==="empty")return"";let r=`bad file reference: "${Z}"`;if(O.code==="ENOENT")throw new X({path:y,message:r+` ${N} does not exist`},{cause:O});throw new X({path:y,message:r},{cause:O})})).trim();H+=JSON.stringify(d).slice(1,-1),I=K+Z.length}return H+=J.slice(I),H}var w={};E(w,{resolvePluginSpec:()=>e,pluginSpecifier:()=>b,pluginOptions:()=>t,load:()=>p,deduplicatePluginOrigins:()=>i,Spec:()=>l,Options:()=>o,ConfigPlugin:()=>w});import{pathToFileURL as q}from"url";import _ from"path";var o=B.Record(B.String,B.Unknown).pipe(A(($)=>({zod:L($)}))),l=B.Union([B.String,B.mutable(B.Tuple([B.String,o]))]).pipe(A(($)=>({zod:L($)})));async function p($){let T=[];for(let J of await P.scan("{plugin,plugins}/*.{ts,js}",{cwd:$,absolute:!0,dot:!0,symlink:!0}))T.push(q(J).href);return T}function b($){return Array.isArray($)?$[0]:$}function t($){return Array.isArray($)?$[1]:void 0}async function e($,T){let J=b($);if(!x(J))return $;let j=_.dirname(T),C=(()=>{if(J.startsWith("file://"))return J;if(_.isAbsolute(J)||/^[A-Za-z]:[\\/]/.test(J))return q(J).href;return q(_.resolve(j,J)).href})(),y=await S(C).catch(()=>C);if(Array.isArray($))return[y,$[1]];return y}function i($){let T=new Set,J=[];for(let j of $.toReversed()){let C=b(j.spec),y=C.startsWith("file://")?C:v(C).pkg;if(T.has(y))continue;T.add(y),J.push(j)}return J.toReversed()}var M={};E(M,{install:()=>T$,declaresDependencies:()=>f,ConfigDependencies:()=>M});import $$ from"path";var J$=["dependencies","devDependencies","optionalDependencies","peerDependencies"];function f($){if(!U($))return!1;return J$.some((T)=>{let J=$[T];return U(J)&&Object.keys(J).length>0})}var T$=k.fn("Config.installDependencies")(function*($){let T=yield*$.fs.readJson($$.join($.dir,"package.json")).pipe(k.exit),J=s.isSuccess(T)?T.value:void 0;if(!f(J))return;yield*$.npm.install($.dir)});
|
|
14
|
+
export{V as So,Y as To,w as Uo,M as Vo};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-4sazy0nq.js";var Jm=Object.defineProperty,Om=(e)=>{throw TypeError(e)},dh=(e,_,o)=>(_ in e)?Jm(e,_,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[_]=o,Lm=(e,_)=>{for(var o in _)Jm(e,o,{get:_[o],enumerable:!0})},zo=(e,_,o)=>dh(e,typeof _!="symbol"?_+"":_,o),mh=(e,_,o)=>_.has(e)||Om("Cannot "+o),fh=(e,_,o)=>_.has(e)?Om("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(e):_.set(e,o),ye=(e,_,o)=>(mh(e,_,"access private method"),o),Rm={};Lm(Rm,{parsers:()=>qm});var qm={};Lm(qm,{typescript:()=>T4});var hh=()=>()=>{},Fp=hh,yh=(e,_,o,c)=>{if(!(e&&_==null))return _.replaceAll?_.replaceAll(o,c):o.global?_.replace(o,c):_.split(o).join(c)},Na=yh,gh="5.8",At=[],bh=new Map;function Ho(e){return e!==void 0?e.length:0}function O_(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c)return c}}function vh(e,_){if(e!==void 0)for(let o=0;o<e.length;o++){let c=_(e[o],o);if(c!==void 0)return c}}function xd(e,_,o){let c=[];q.assertEqual(e.length,_.length);for(let h=0;h<e.length;h++)c.push(o(e[h],_[h],h));return c}function jp(e,_){if(e!==void 0){for(let o=0;o<e.length;o++)if(!_(e[o],o))return!1}return!0}function Um(e,_,o){if(e!==void 0)for(let c=o??0;c<e.length;c++){let h=e[c];if(_(h,c))return h}}function Gu(e,_,o){if(e===void 0)return-1;for(let c=o??0;c<e.length;c++)if(_(e[c],c))return c;return-1}function xh(e,_,o=Op){if(e!==void 0){for(let c=0;c<e.length;c++)if(o(e[c],_))return!0}return!1}function Xn(e,_){if(e!==void 0){let o=e.length,c=0;for(;c<o&&_(e[c]);)c++;if(c<o){let h=e.slice(0,c);for(c++;c<o;){let v=e[c];_(v)&&h.push(v),c++}return h}}return e}function cp(e,_){let o;if(e!==void 0){o=[];for(let c=0;c<e.length;c++)o.push(_(e[c],c))}return o}function Bm(e){let _=[];for(let o=0;o<e.length;o++){let c=e[o];c&&($n(c)?D_(_,c):_.push(c))}return _}function zm(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h&&($n(h)?o=D_(o,h):o=C_(o,h))}return o??At}function wh(e,_){let o;if(e!==void 0)for(let c=0;c<e.length;c++){let h=e[c],v=_(h,c);(o||h!==v||$n(v))&&(o||(o=e.slice(0,c)),$n(v)?D_(o,v):o.push(v))}return o??e}function Th(e,_){let o=[];if(e!==void 0)for(let c=0;c<e.length;c++){let h=_(e[c],c);h!==void 0&&o.push(h)}return o}function Zt(e,_){if(e!==void 0)if(_!==void 0){for(let o=0;o<e.length;o++)if(_(e[o]))return!0}else return e.length>0;return!1}function Mp(e,_){return _===void 0||_.length===0?e:e===void 0||e.length===0?_:[...e,..._]}function Sh(e,_,o=Op){if(e===void 0||_===void 0)return e===_;if(e.length!==_.length)return!1;for(let c=0;c<e.length;c++)if(!o(e[c],_[c],c))return!1;return!0}function C_(e,_){return _===void 0?e:e===void 0?[_]:(e.push(_),e)}function up(e,_){return _<0?e.length+_:_}function D_(e,_,o,c){if(_===void 0||_.length===0)return e;if(e===void 0)return _.slice(o,c);o=o===void 0?0:up(_,o),c=c===void 0?_.length:up(_,c);for(let h=o;h<c&&h<_.length;h++)_[h]!==void 0&&e.push(_[h]);return e}function kh(e,_,o){return xh(e,_,o)?!1:(e.push(_),!0)}function Ch(e,_,o){return e!==void 0?(kh(e,_,o),e):[_]}function Ah(e,_){return e.length===0?At:e.slice().sort(_)}var S4=Array.prototype.at?(e,_)=>e==null?void 0:e.at(_):(e,_)=>{if(e!==void 0&&(_=up(e,_),_<e.length))return e[_]};function Jp(e){return e===void 0||e.length===0?void 0:e[0]}function ja(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Dh(e){return q.assert(e.length!==0),e[e.length-1]}function Eh(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ph(e,_,o,c,h){return Nh(e,o(_),o,c,h)}function Nh(e,_,o,c,h){if(!Zt(e))return-1;let v=h??0,A=e.length-1;for(;v<=A;){let E=v+(A-v>>1),s=o(e[E],E);switch(c(s,_)){case-1:v=E+1;break;case 0:return E;case 1:A=E-1;break}}return~v}function Ih(e,_,o,c,h){if(e&&e.length>0){let v=e.length;if(v>0){let A=c===void 0||c<0?0:c,E=h===void 0||A+h>v-1?v-1:A+h,s;for(arguments.length<=2?(s=e[A],A++):s=o;A<=E;)s=_(s,e[A],A),A++;return s}}return o}var Km=Object.prototype.hasOwnProperty;function Dn(e,_){return Km.call(e,_)}function Fh(e){let _=[];for(let o in e)Km.call(e,o)&&_.push(o);return _}function jh(){let e=new Map;return e.add=Mh,e.remove=Jh,e}function Mh(e,_){let o=this.get(e);return o!==void 0?o.push(_):this.set(e,o=[_]),o}function Jh(e,_){let o=this.get(e);o!==void 0&&(Vh(o,_),o.length||this.delete(e))}function $n(e){return Array.isArray(e)}function $u(e){return $n(e)?e:[e]}function Oh(e,_){return e!==void 0&&_(e)?e:void 0}function Cn(e,_){return e!==void 0&&_(e)?e:q.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q.getFunctionName(_)}'.`)}function qa(e){}function Lh(){return!0}function gt(e){return e}function wd(e){let _;return()=>(e&&(_=e(),e=void 0),_)}function H_(e){let _=new Map;return(o)=>{let c=`${typeof o}:${o}`,h=_.get(c);return h===void 0&&!_.has(c)&&(h=e(o),_.set(c,h)),h}}function Op(e,_){return e===_}function Lp(e,_){return e===_||e!==void 0&&_!==void 0&&e.toUpperCase()===_.toUpperCase()}function Rh(e,_){return Op(e,_)}function qh(e,_){return e===_?0:e===void 0?-1:_===void 0?1:e<_?-1:1}function Vm(e,_){return qh(e,_)}function Uh(e,_,o){for(let c=0;c<e.length;c++)_=Math.max(_,o(e[c]));return _}function Qo(e,_,o){let c=Math.max(2,Math.floor(e.length*0.34)),h=Math.floor(e.length*0.4)+1,v;for(let A of _){let E=o(A);if(E!==void 0&&Math.abs(E.length-e.length)<=c){if(E===e||E.length<3&&E.toLowerCase()!==e.toLowerCase())continue;let s=Bh(e,E,h-0.1);if(s===void 0)continue;q.assert(s<h),h=s,v=A}}return v}function Bh(e,_,o){let c=Array(_.length+1),h=Array(_.length+1),v=o+0.01;for(let E=0;E<=_.length;E++)c[E]=E;for(let E=1;E<=e.length;E++){let s=e.charCodeAt(E-1),V=Math.ceil(E>o?E-o:1),d=Math.floor(_.length>o+E?o+E:_.length);h[0]=E;let T=E;for(let S=1;S<V;S++)h[S]=v;for(let S=V;S<=d;S++){let F=e[E-1].toLowerCase()===_[S-1].toLowerCase()?c[S-1]+0.1:c[S-1]+2,te=s===_.charCodeAt(S-1)?c[S-1]:Math.min(c[S]+1,h[S-1]+1,F);h[S]=te,T=Math.min(T,te)}for(let S=d+1;S<=_.length;S++)h[S]=v;if(T>o)return;let b=c;c=h,h=b}let A=c[_.length];return A>o?void 0:A}function zh(e,_,o){let c=e.length-_.length;return c>=0&&(o?Lp(e.slice(c),_):e.indexOf(_,c)===c)}function Kh(e,_){e[_]=e[e.length-1],e.pop()}function Vh(e,_){return Wh(e,(o)=>o===_)}function Wh(e,_){for(let o=0;o<e.length;o++)if(_(e[o]))return Kh(e,o),!0;return!1}function _c(e,_,o){return o?Lp(e.slice(0,_.length),_):e.lastIndexOf(_,0)===0}function pp(e){return e===void 0?void 0:[e]}var q;((e)=>{let _=0;e.currentLogLevel=2,e.isDebugging=!1;function o(J){return e.currentLogLevel<=J}e.shouldLog=o;function c(J,oe){e.loggingHost&&o(J)&&e.loggingHost.log(J,oe)}function h(J){c(3,J)}e.log=h,((J)=>{function oe(Ye){c(1,Ye)}J.error=oe;function pe(Ye){c(2,Ye)}J.warn=pe;function ke(Ye){c(3,Ye)}J.log=ke;function Qe(Ye){c(4,Ye)}J.trace=Qe})(h=e.log||(e.log={}));let v={};function A(){return _}e.getAssertionLevel=A;function E(J){let oe=_;if(_=J,J>oe)for(let pe of Fh(v)){let ke=v[pe];ke!==void 0&&e[pe]!==ke.assertion&&J>=ke.level&&(e[pe]=ke,v[pe]=void 0)}}e.setAssertionLevel=E;function s(J){return _>=J}e.shouldAssert=s;function V(J,oe){return s(J)?!0:(v[oe]={level:J,assertion:e[oe]},e[oe]=qa,!1)}function d(J,oe){debugger;let pe=Error(J?`Debug Failure. ${J}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(pe,oe||d),pe}e.fail=d;function T(J,oe,pe){return d(`${oe||"Unexpected node."}\r
|
|
3
3
|
Node ${jt(J.kind)} was unexpected.`,pe||T)}e.failBadSyntaxKind=T;function b(J,oe,pe,ke){J||(oe=oe?`False expression: ${oe}`:"False expression.",pe&&(oe+=`\r
|
|
4
4
|
Verbose Debug Information: `+(typeof pe=="string"?pe:pe())),d(oe,ke||b))}e.assert=b;function S(J,oe,pe,ke,Qe){if(J!==oe){let Ye=pe?ke?`${pe} ${ke}`:pe:"";d(`Expected ${J} === ${oe}. ${Ye}`,Qe||S)}}e.assertEqual=S;function F(J,oe,pe,ke){J>=oe&&d(`Expected ${J} < ${oe}. ${pe||""}`,ke||F)}e.assertLessThan=F;function te(J,oe,pe){J>oe&&d(`Expected ${J} <= ${oe}`,pe||te)}e.assertLessThanOrEqual=te;function ve(J,oe,pe){J<oe&&d(`Expected ${J} >= ${oe}`,pe||ve)}e.assertGreaterThanOrEqual=ve;function fe(J,oe,pe){J==null&&d(oe,pe||fe)}e.assertIsDefined=fe;function me(J,oe,pe){return fe(J,oe,pe||me),J}e.checkDefined=me;function j(J,oe,pe){for(let ke of J)fe(ke,oe,pe||j)}e.assertEachIsDefined=j;function ne(J,oe,pe){return j(J,oe,pe||ne),J}e.checkEachDefined=ne;function je(J,oe="Illegal value:",pe){let ke=typeof J=="object"&&Dn(J,"kind")&&Dn(J,"pos")?"SyntaxKind: "+jt(J.kind):JSON.stringify(J);return d(`${oe} ${ke}`,pe||je)}e.assertNever=je;function K(J,oe,pe,ke){V(1,"assertEachNode")&&b(oe===void 0||jp(J,oe),pe||"Unexpected node.",()=>`Node array did not pass test '${y_(oe)}'.`,ke||K)}e.assertEachNode=K;function se(J,oe,pe,ke){V(1,"assertNode")&&b(J!==void 0&&(oe===void 0||oe(J)),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||se)}e.assertNode=se;function G(J,oe,pe,ke){V(1,"assertNotNode")&&b(J===void 0||oe===void 0||!oe(J),pe||"Unexpected node.",()=>`Node ${jt(J.kind)} should not have passed test '${y_(oe)}'.`,ke||G)}e.assertNotNode=G;function mt(J,oe,pe,ke){V(1,"assertOptionalNode")&&b(oe===void 0||J===void 0||oe(J),pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} did not pass test '${y_(oe)}'.`,ke||mt)}e.assertOptionalNode=mt;function en(J,oe,pe,ke){V(1,"assertOptionalToken")&&b(oe===void 0||J===void 0||J.kind===oe,pe||"Unexpected node.",()=>`Node ${jt(J==null?void 0:J.kind)} was not a '${jt(oe)}' token.`,ke||en)}e.assertOptionalToken=en;function h_(J,oe,pe){V(1,"assertMissingNode")&&b(J===void 0,oe||"Unexpected node.",()=>`Node ${jt(J.kind)} was unexpected'.`,pe||h_)}e.assertMissingNode=h_;function tn(J){}e.type=tn;function y_(J){if(typeof J!="function")return"";if(Dn(J,"name"))return J.name;{let oe=Function.prototype.toString.call(J),pe=/^function\s+([\w$]+)\s*\(/.exec(oe);return pe?pe[1]:""}}e.getFunctionName=y_;function P_(J){return`{ name: ${si(J.escapedName)}; flags: ${st(J.flags)}; declarations: ${cp(J.declarations,(oe)=>jt(oe.kind))} }`}e.formatSymbol=P_;function We(J=0,oe,pe){let ke=Pn(oe);if(J===0)return ke.length>0&&ke[0][0]===0?ke[0][1]:"0";if(pe){let Qe=[],Ye=J;for(let[at,Et]of ke){if(at>J)break;at!==0&&at&J&&(Qe.push(Et),Ye&=~at)}if(Ye===0)return Qe.join("|")}else for(let[Qe,Ye]of ke)if(Qe===J)return Ye;return J.toString()}e.formatEnum=We;let _n=new Map;function Pn(J){let oe=_n.get(J);if(oe)return oe;let pe=[];for(let Qe in J){let Ye=J[Qe];typeof Ye=="number"&&pe.push([Ye,Qe])}let ke=Ah(pe,(Qe,Ye)=>Vm(Qe[0],Ye[0]));return _n.set(J,ke),ke}function jt(J){return We(J,Fe,!1)}e.formatSyntaxKind=jt;function L_(J){return We(J,ef,!1)}e.formatSnippetKind=L_;function N_(J){return We(J,Wn,!1)}e.formatScriptKind=N_;function Mt(J){return We(J,Y_,!0)}e.formatNodeFlags=Mt;function bt(J){return We(J,$m,!0)}e.formatNodeCheckFlags=bt;function He(J){return We(J,Wm,!0)}e.formatModifierFlags=He;function R_(J){return We(J,Zm,!0)}e.formatTransformFlags=R_;function Xt(J){return We(J,tf,!0)}e.formatEmitFlags=Xt;function st(J){return We(J,Gm,!0)}e.formatSymbolFlags=st;function rt(J){return We(J,o_,!0)}e.formatTypeFlags=rt;function Rt(J){return We(J,Qm,!0)}e.formatSignatureFlags=Rt;function Jt(J){return We(J,Hm,!0)}e.formatObjectFlags=Jt;function lt(J){return We(J,dp,!0)}e.formatFlowFlags=lt;function nn(J){return We(J,Xm,!0)}e.formatRelationComparisonResult=nn;function ft(J){return We(J,CheckMode,!0)}e.formatCheckMode=ft;function g_(J){return We(J,SignatureCheckMode,!0)}e.formatSignatureCheckMode=g_;function yt(J){return We(J,TypeFacts,!0)}e.formatTypeFacts=yt;let i_=!1,_t;function qt(J){"__debugFlowFlags"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",pe=this.flags&-2048;return`${oe}${pe?` (${lt(pe)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,dp,!0)}},__debugToString:{value(){return hn(this)}}})}function t_(J){return i_&&(typeof Object.setPrototypeOf=="function"?(_t||(_t=Object.create(Object.prototype),qt(_t)),Object.setPrototypeOf(J,_t)):qt(J)),J}e.attachFlowNodeDebugInfo=t_;let rn;function dn(J){"__tsDebuggerDisplay"in J||Object.defineProperties(J,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function mn(J){i_&&(typeof Object.setPrototypeOf=="function"?(rn||(rn=Object.create(Array.prototype),dn(rn)),Object.setPrototypeOf(J,rn)):dn(J))}e.attachNodeArrayDebugInfo=mn;function q_(){if(i_)return;let J=new WeakMap,oe=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&33554432?"TransientSymbol":"Symbol",Qe=this.flags&-33554433;return`${ke} '${hp(this)}'${Qe?` (${st(Qe)})`:""}`}},__debugFlags:{get(){return st(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let ke=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Qe=this.flags&524288?this.objectFlags&-1344:0;return`${ke}${this.symbol?` '${hp(this.symbol)}'`:""}${Qe?` (${Jt(Qe)})`:""}`}},__debugFlags:{get(){return rt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Jt(this.objectFlags):""}},__debugTypeToString:{value(){let ke=J.get(this);return ke===void 0&&(ke=this.checker.typeToString(this),J.set(this,ke)),ke}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Rt(this.flags)}},__debugSignatureToString:{value(){var ke;return(ke=this.checker)==null?void 0:ke.signatureToString(this)}}});let pe=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let ke of pe)Dn(ke.prototype,"__debugKind")||Object.defineProperties(ke.prototype,{__tsDebuggerDisplay:{value(){return`${Fa(this)?"GeneratedIdentifier":tt(this)?`Identifier '${E_(this)}'`:Xr(this)?`PrivateIdentifier '${E_(this)}'`:Ra(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ba(this)?`NumericLiteral ${this.text}`:og(this)?`BigIntLiteral ${this.text}n`:Qf(this)?"TypeParameterDeclaration":sc(this)?"ParameterDeclaration":Yf(this)?"ConstructorDeclaration":Tp(this)?"GetAccessorDeclaration":cc(this)?"SetAccessorDeclaration":mg(this)?"CallSignatureDeclaration":fg(this)?"ConstructSignatureDeclaration":Zf(this)?"IndexSignatureDeclaration":hg(this)?"TypePredicateNode":e1(this)?"TypeReferenceNode":t1(this)?"FunctionTypeNode":_1(this)?"ConstructorTypeNode":yg(this)?"TypeQueryNode":gg(this)?"TypeLiteralNode":bg(this)?"ArrayTypeNode":vg(this)?"TupleTypeNode":wg(this)?"OptionalTypeNode":Tg(this)?"RestTypeNode":Sg(this)?"UnionTypeNode":kg(this)?"IntersectionTypeNode":Cg(this)?"ConditionalTypeNode":Ag(this)?"InferTypeNode":Dg(this)?"ParenthesizedTypeNode":Eg(this)?"ThisTypeNode":Pg(this)?"TypeOperatorNode":Ng(this)?"IndexedAccessTypeNode":Ig(this)?"MappedTypeNode":Fg(this)?"LiteralTypeNode":xg(this)?"NamedTupleMember":jg(this)?"ImportTypeNode":jt(this.kind)}${this.flags?` (${Mt(this.flags)})`:""}`}},__debugKind:{get(){return jt(this.kind)}},__debugNodeFlags:{get(){return Mt(this.flags)}},__debugModifierFlags:{get(){return He(h2(this))}},__debugTransformFlags:{get(){return R_(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ac(this)}},__debugEmitFlags:{get(){return Xt(La(this))}},__debugGetText:{value(Qe){if(Aa(this))return"";let Ye=oe.get(this);if(Ye===void 0){let at=N0(this),Et=at&&fr(at);Ye=Et?Od(Et,at,Qe):"",oe.set(this,Ye)}return Ye}}});i_=!0}e.enableDebugInfo=q_;function U_(J){let oe=J&7,pe=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return J&8?pe+=" (unmeasurable)":J&16&&(pe+=" (unreliable)"),pe}e.formatVariance=U_;class fn{__debugToString(){var J;switch(this.kind){case 3:return((J=this.debugInfo)==null?void 0:J.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return xd(this.sources,this.targets||cp(this.sources,()=>"any"),(oe,pe)=>`${oe.__debugTypeToString()} -> ${typeof pe=="string"?pe:pe.__debugTypeToString()}`).join(", ");case 2:return xd(this.sources,this.targets,(oe,pe)=>`${oe.__debugTypeToString()} -> ${pe().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
5
5
|
`).join(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Be as w}from"./chunk-wgk7ynt3.js";import{Ce as oe}from"./chunk-41v0x1jk.js";import{wf as l}from"./chunk-a3a1trap.js";import{_P as i,cQ as f}from"./chunk-3k2b05fv.js";var g=i(l(),1);var ce=i(l(),1);var O=i(w(),1),S=i(l(),1);var q=i(w(),1),b=i(l(),1),j=(e,s,t)=>{let n={EcsContainer:async(r)=>{let{fromHttp:a}=await import("./chunk-4xw14sed.js"),{fromContainerMetadata:c}=await import("./chunk-8ktgy41r.js");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>b.chain(a(r??{}),c(r))().then(L)},Ec2InstanceMetadata:async(r)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:a}=await import("./chunk-8ktgy41r.js");return async()=>a(r)().then(L)},Environment:async(r)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:a}=await import("./chunk-f693s9vn.js");return async()=>a(r)().then(L)}};if(e in n)return n[e];else throw new b.CredentialsProviderError(`Unsupported credential source in profile ${s}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},L=(e)=>q.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var G=(e,{profile:s="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(re(e,{profile:s,logger:t})||ae(e,{profile:s,logger:t}))},re=(e,{profile:s,logger:t})=>{let n=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(n)t?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return n},ae=(e,{profile:s,logger:t})=>{let n=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(n)t?.debug?.(` ${s} isCredentialSourceProfile credential_source=${e.credential_source}`);return n},J=async(e,s,t,n,r={},a)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let c=s[e],{source_profile:h,region:I}=c;if(!t.roleAssumer){let{getDefaultRoleAssumer:o}=await import("./chunk-rkwrjphh.js");t.roleAssumer=o({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n,...t?.parentClientConfig,region:I??t?.parentClientConfig?.region??n?.region}},t.clientPlugins)}if(h&&h in r)throw new S.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${S.getProfileName(t)}. Profiles visited: `+Object.keys(r).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${h?`source_profile=[${h}]`:`profile=[${e}]`}`);let T=h?a(h,s,t,n,{...r,[h]:!0},U(s[h]??{})):(await j(c.credential_source,e,t.logger)(t))();if(U(c))return T.then((o)=>O.setCredentialFeature(o,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let o={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id,DurationSeconds:parseInt(c.duration_seconds||"3600",10)},{mfa_serial:u}=c;if(u){if(!t.mfaCodeProvider)throw new S.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});o.SerialNumber=u,o.TokenCode=await t.mfaCodeProvider(u)}let y=await T;return t.roleAssumer(y,o).then((k)=>O.setCredentialFeature(k,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},U=(e)=>{return!e.role_arn&&!!e.credential_source};var z=i(w(),1);var Y=i(w(),1),x=i(l(),1);var d=i(l(),1),v=i(oe(),1);import{createHash as ie,createPrivateKey as he,createPublicKey as ye,sign as ue}from"crypto";import{promises as R}from"fs";import{homedir as de}from"os";import{dirname as we,join as N}from"path";class K{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,s,t){this.profileData=e,this.init=s,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new d.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let s=e.accessToken,t=Date.now();if(new Date(s.expiresAt).getTime()-t<=K.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:s.accessKeyId,secretAccessKey:s.secretAccessKey,sessionToken:s.sessionToken,accountId:s.accountId,expiration:new Date(s.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:s,CreateOAuth2TokenCommand:t}=await import("./chunk-11v7vz3y.js"),{logger:n,userAgentAppId:r}=this.callerClientConfig??{},c=((o)=>{return o?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,h=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,I=new s({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:c,logger:n,userAgentAppId:r,...this.init?.clientConfig});this.createDPoPInterceptor(I.middlewareStack);let T={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let o=await I.send(new t(T)),{accessKeyId:u,secretAccessKey:y,sessionToken:k}=o.tokenOutput?.accessToken??{},{refreshToken:E,expiresIn:B}=o.tokenOutput??{};if(!u||!y||!k||!E)throw new d.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let A=(B??900)*1000,m=new Date(Date.now()+A),H={...e,accessToken:{...e.accessToken,accessKeyId:u,secretAccessKey:y,sessionToken:k,expiresAt:m.toISOString()},refreshToken:E};await this.saveToken(H);let _=H.accessToken;return{accessKeyId:_.accessKeyId,secretAccessKey:_.secretAccessKey,sessionToken:_.sessionToken,accountId:_.accountId,expiration:m}}catch(o){if(o.name==="AccessDeniedException"){let u=o.error,y;switch(u){case"TOKEN_EXPIRED":y="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":y="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":y="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:y=`Failed to refresh token: ${String(o)}. Please re-authenticate using \`aws login\``}throw new d.CredentialsProviderError(y,{logger:this.logger,tryNextLink:!1})}throw new d.CredentialsProviderError(`Failed to refresh token: ${String(o)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let s;try{s=await d.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{s=await R.readFile(e,"utf8")}let t=JSON.parse(s),n=["accessToken","clientId","refreshToken","dpopKey"].filter((r)=>!t[r]);if(!t.accessToken?.accountId)n.push("accountId");if(n.length>0)throw new d.CredentialsProviderError(`Token validation failed, missing fields: ${n.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(s){throw new d.CredentialsProviderError(`Failed to load token from ${e}: ${String(s)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let s=this.getTokenFilePath(),t=we(s);try{await R.mkdir(t,{recursive:!0})}catch(n){}await R.writeFile(s,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??N(de(),".aws","login","cache"),s=Buffer.from(this.loginSession,"utf8"),t=ie("sha256").update(s).digest("hex");return N(e,`${t}.json`)}derToRawSignature(e){let s=2;if(e[s]!==2)throw Error("Invalid DER signature");s++;let t=e[s++],n=e.subarray(s,s+t);if(s+=t,e[s]!==2)throw Error("Invalid DER signature");s++;let r=e[s++],a=e.subarray(s,s+r);n=n[0]===0?n.subarray(1):n,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-n.length),n]),h=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,h])}createDPoPInterceptor(e){e.add((s)=>async(t)=>{if(v.HttpRequest.isInstance(t.request)){let n=t.request,r=`${n.protocol}//${n.hostname}${n.port?`:${n.port}`:""}${n.path}`,a=await this.generateDpop(n.method,r);n.headers={...n.headers,DPoP:a}}return s(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",s){let t=await this.loadToken();try{let n=he({key:t.dpopKey,format:"pem",type:"sec1"}),a=ye(n).export({format:"der",type:"spki"}),c=-1;for(let m=0;m<a.length;m++)if(a[m]===4){c=m;break}let h=a.slice(c+1,c+33),I=a.slice(c+33,c+65),T={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:h.toString("base64url"),y:I.toString("base64url")}},o={jti:crypto.randomUUID(),htm:e,htu:s,iat:Math.floor(Date.now()/1000)},u=Buffer.from(JSON.stringify(T)).toString("base64url"),y=Buffer.from(JSON.stringify(o)).toString("base64url"),k=`${u}.${y}`,E=ue("sha256",Buffer.from(k),n),A=this.derToRawSignature(E).toString("base64url");return`${k}.${A}`}catch(n){throw new d.CredentialsProviderError(`Failed to generate Dpop proof: ${n instanceof Error?n.message:String(n)}`,{logger:this.logger,tryNextLink:!1})}}}var W=(e)=>async({callerClientConfig:s}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await x.parseKnownFiles(e||{}),n=x.getProfileName({profile:e?.profile??s?.profile}),r=t[n];if(!r?.login_session)throw new x.CredentialsProviderError(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let c=await new K(r,e,s).loadCredentials();return Y.setCredentialFeature(c,"CREDENTIALS_LOGIN","AD")};var C=(e)=>{return Boolean(e&&e.login_session)},X=async(e,s,t)=>{let n=await W({...s,profile:e})({callerClientConfig:t});return z.setCredentialFeature(n,"CREDENTIALS_PROFILE_LOGIN","AC")};var Q=i(w(),1),V=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",Z=async(e,s)=>import("./chunk-2tw58kwb.js").then(({fromProcess:t})=>t({...e,profile:s})().then((n)=>Q.setCredentialFeature(n,"CREDENTIALS_PROFILE_PROCESS","v")));var D=i(w(),1),M=async(e,s,t={},n)=>{let{fromSSO:r}=await import("./chunk-2ybt3p5z.js");return r({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:n}).then((a)=>{if(s.sso_session)return D.setCredentialFeature(a,"CREDENTIALS_PROFILE_SSO","r");else return D.setCredentialFeature(a,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},p=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var ee=i(w(),1),$=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,P=async(e,s)=>{s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return ee.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")};var te=i(w(),1),se=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,ne=async(e,s,t)=>import("./chunk-r67c858b.js").then(({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})({callerClientConfig:t}).then((r)=>te.setCredentialFeature(r,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var F=async(e,s,t,n,r={},a=!1)=>{let c=s[e];if(Object.keys(r).length>0&&$(c))return P(c,t);if(a||G(c,{profile:e,logger:t.logger}))return J(e,s,t,n,r,F);if($(c))return P(c,t);if(se(c))return ne(c,t,n);if(V(c))return Z(t,e);if(p(c))return await M(e,c,t,n);if(C(c))return X(e,t,n);throw new ce.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})};var je=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await g.parseKnownFiles(e);return F(g.getProfileName({profile:e.profile??s?.profile}),t,e,s)};export{W as Xd,je as Yd};
|
|
2
|
+
import{ze as w}from"./chunk-t01bhw5h.js";import{Ae as oe}from"./chunk-8yr682pv.js";import{uf as l}from"./chunk-v3x5nrc4.js";import{gQ as i,kQ as f}from"./chunk-4sazy0nq.js";var g=i(l(),1);var ce=i(l(),1);var O=i(w(),1),S=i(l(),1);var q=i(w(),1),b=i(l(),1),j=(e,s,t)=>{let n={EcsContainer:async(r)=>{let{fromHttp:a}=await import("./chunk-13kpdfr7.js"),{fromContainerMetadata:c}=await import("./chunk-z1j25911.js");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>b.chain(a(r??{}),c(r))().then(L)},Ec2InstanceMetadata:async(r)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:a}=await import("./chunk-z1j25911.js");return async()=>a(r)().then(L)},Environment:async(r)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:a}=await import("./chunk-1kgyfja6.js");return async()=>a(r)().then(L)}};if(e in n)return n[e];else throw new b.CredentialsProviderError(`Unsupported credential source in profile ${s}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},L=(e)=>q.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var G=(e,{profile:s="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(re(e,{profile:s,logger:t})||ae(e,{profile:s,logger:t}))},re=(e,{profile:s,logger:t})=>{let n=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(n)t?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return n},ae=(e,{profile:s,logger:t})=>{let n=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(n)t?.debug?.(` ${s} isCredentialSourceProfile credential_source=${e.credential_source}`);return n},J=async(e,s,t,n,r={},a)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let c=s[e],{source_profile:h,region:I}=c;if(!t.roleAssumer){let{getDefaultRoleAssumer:o}=await import("./chunk-z1rshv6g.js");t.roleAssumer=o({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...n,...t?.parentClientConfig,region:I??t?.parentClientConfig?.region??n?.region}},t.clientPlugins)}if(h&&h in r)throw new S.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${S.getProfileName(t)}. Profiles visited: `+Object.keys(r).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${h?`source_profile=[${h}]`:`profile=[${e}]`}`);let T=h?a(h,s,t,n,{...r,[h]:!0},U(s[h]??{})):(await j(c.credential_source,e,t.logger)(t))();if(U(c))return T.then((o)=>O.setCredentialFeature(o,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let o={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id,DurationSeconds:parseInt(c.duration_seconds||"3600",10)},{mfa_serial:u}=c;if(u){if(!t.mfaCodeProvider)throw new S.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});o.SerialNumber=u,o.TokenCode=await t.mfaCodeProvider(u)}let y=await T;return t.roleAssumer(y,o).then((k)=>O.setCredentialFeature(k,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},U=(e)=>{return!e.role_arn&&!!e.credential_source};var z=i(w(),1);var Y=i(w(),1),x=i(l(),1);var d=i(l(),1),v=i(oe(),1);import{createHash as ie,createPrivateKey as he,createPublicKey as ye,sign as ue}from"crypto";import{promises as R}from"fs";import{homedir as de}from"os";import{dirname as we,join as N}from"path";class K{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,s,t){this.profileData=e,this.init=s,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new d.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let s=e.accessToken,t=Date.now();if(new Date(s.expiresAt).getTime()-t<=K.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:s.accessKeyId,secretAccessKey:s.secretAccessKey,sessionToken:s.sessionToken,accountId:s.accountId,expiration:new Date(s.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:s,CreateOAuth2TokenCommand:t}=await import("./chunk-549ptbaj.js"),{logger:n,userAgentAppId:r}=this.callerClientConfig??{},c=((o)=>{return o?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,h=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,I=new s({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:c,logger:n,userAgentAppId:r,...this.init?.clientConfig});this.createDPoPInterceptor(I.middlewareStack);let T={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let o=await I.send(new t(T)),{accessKeyId:u,secretAccessKey:y,sessionToken:k}=o.tokenOutput?.accessToken??{},{refreshToken:E,expiresIn:B}=o.tokenOutput??{};if(!u||!y||!k||!E)throw new d.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let A=(B??900)*1000,m=new Date(Date.now()+A),H={...e,accessToken:{...e.accessToken,accessKeyId:u,secretAccessKey:y,sessionToken:k,expiresAt:m.toISOString()},refreshToken:E};await this.saveToken(H);let _=H.accessToken;return{accessKeyId:_.accessKeyId,secretAccessKey:_.secretAccessKey,sessionToken:_.sessionToken,accountId:_.accountId,expiration:m}}catch(o){if(o.name==="AccessDeniedException"){let u=o.error,y;switch(u){case"TOKEN_EXPIRED":y="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":y="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":y="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:y=`Failed to refresh token: ${String(o)}. Please re-authenticate using \`aws login\``}throw new d.CredentialsProviderError(y,{logger:this.logger,tryNextLink:!1})}throw new d.CredentialsProviderError(`Failed to refresh token: ${String(o)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let s;try{s=await d.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{s=await R.readFile(e,"utf8")}let t=JSON.parse(s),n=["accessToken","clientId","refreshToken","dpopKey"].filter((r)=>!t[r]);if(!t.accessToken?.accountId)n.push("accountId");if(n.length>0)throw new d.CredentialsProviderError(`Token validation failed, missing fields: ${n.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(s){throw new d.CredentialsProviderError(`Failed to load token from ${e}: ${String(s)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let s=this.getTokenFilePath(),t=we(s);try{await R.mkdir(t,{recursive:!0})}catch(n){}await R.writeFile(s,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??N(de(),".aws","login","cache"),s=Buffer.from(this.loginSession,"utf8"),t=ie("sha256").update(s).digest("hex");return N(e,`${t}.json`)}derToRawSignature(e){let s=2;if(e[s]!==2)throw Error("Invalid DER signature");s++;let t=e[s++],n=e.subarray(s,s+t);if(s+=t,e[s]!==2)throw Error("Invalid DER signature");s++;let r=e[s++],a=e.subarray(s,s+r);n=n[0]===0?n.subarray(1):n,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-n.length),n]),h=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,h])}createDPoPInterceptor(e){e.add((s)=>async(t)=>{if(v.HttpRequest.isInstance(t.request)){let n=t.request,r=`${n.protocol}//${n.hostname}${n.port?`:${n.port}`:""}${n.path}`,a=await this.generateDpop(n.method,r);n.headers={...n.headers,DPoP:a}}return s(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",s){let t=await this.loadToken();try{let n=he({key:t.dpopKey,format:"pem",type:"sec1"}),a=ye(n).export({format:"der",type:"spki"}),c=-1;for(let m=0;m<a.length;m++)if(a[m]===4){c=m;break}let h=a.slice(c+1,c+33),I=a.slice(c+33,c+65),T={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:h.toString("base64url"),y:I.toString("base64url")}},o={jti:crypto.randomUUID(),htm:e,htu:s,iat:Math.floor(Date.now()/1000)},u=Buffer.from(JSON.stringify(T)).toString("base64url"),y=Buffer.from(JSON.stringify(o)).toString("base64url"),k=`${u}.${y}`,E=ue("sha256",Buffer.from(k),n),A=this.derToRawSignature(E).toString("base64url");return`${k}.${A}`}catch(n){throw new d.CredentialsProviderError(`Failed to generate Dpop proof: ${n instanceof Error?n.message:String(n)}`,{logger:this.logger,tryNextLink:!1})}}}var W=(e)=>async({callerClientConfig:s}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await x.parseKnownFiles(e||{}),n=x.getProfileName({profile:e?.profile??s?.profile}),r=t[n];if(!r?.login_session)throw new x.CredentialsProviderError(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let c=await new K(r,e,s).loadCredentials();return Y.setCredentialFeature(c,"CREDENTIALS_LOGIN","AD")};var C=(e)=>{return Boolean(e&&e.login_session)},X=async(e,s,t)=>{let n=await W({...s,profile:e})({callerClientConfig:t});return z.setCredentialFeature(n,"CREDENTIALS_PROFILE_LOGIN","AC")};var Q=i(w(),1),V=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",Z=async(e,s)=>import("./chunk-p2yxj9s4.js").then(({fromProcess:t})=>t({...e,profile:s})().then((n)=>Q.setCredentialFeature(n,"CREDENTIALS_PROFILE_PROCESS","v")));var D=i(w(),1),M=async(e,s,t={},n)=>{let{fromSSO:r}=await import("./chunk-fe397ph0.js");return r({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:n}).then((a)=>{if(s.sso_session)return D.setCredentialFeature(a,"CREDENTIALS_PROFILE_SSO","r");else return D.setCredentialFeature(a,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},p=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var ee=i(w(),1),$=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,P=async(e,s)=>{s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return ee.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")};var te=i(w(),1),se=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,ne=async(e,s,t)=>import("./chunk-schtpyjs.js").then(({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})({callerClientConfig:t}).then((r)=>te.setCredentialFeature(r,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var F=async(e,s,t,n,r={},a=!1)=>{let c=s[e];if(Object.keys(r).length>0&&$(c))return P(c,t);if(a||G(c,{profile:e,logger:t.logger}))return J(e,s,t,n,r,F);if($(c))return P(c,t);if(se(c))return ne(c,t,n);if(V(c))return Z(t,e);if(p(c))return await M(e,c,t,n);if(C(c))return X(e,t,n);throw new ce.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})};var je=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await g.parseKnownFiles(e);return F(g.getProfileName({profile:e.profile??s?.profile}),t,e,s)};export{W as Vd,je as Wd};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Zd as Pi,_d as ZP}from"./chunk-8762ty72.js";import{ue as yE,ve as TE,we as IE,xe as wP}from"./chunk-hj3ddt53.js";import{ye as xP}from"./chunk-r0k21apr.js";import{Ae as Ut,Be as Q,ze as Xt}from"./chunk-wgk7ynt3.js";import{Ce as ft}from"./chunk-41v0x1jk.js";import{pf as UP}from"./chunk-bj00xk8k.js";import{rf as qP}from"./chunk-e6xnynaz.js";import{uf as lt,vf as Ct,wf as _r,xf as ke,yf as Ft}from"./chunk-a3a1trap.js";import{$P as O,_P as N1}from"./chunk-3k2b05fv.js";var Se=O((zi)=>{var gt=Q();zi.getHostHeaderPlugin=gt.getHostHeaderPlugin;zi.hostHeaderMiddleware=gt.hostHeaderMiddleware;zi.hostHeaderMiddlewareOptions=gt.hostHeaderMiddlewareOptions;zi.resolveHostHeaderConfig=gt.resolveHostHeaderConfig});var Xe=O((Ci)=>{var Kt=Q();Ci.getLoggerPlugin=Kt.getLoggerPlugin;Ci.loggerMiddleware=Kt.loggerMiddleware;Ci.loggerMiddlewareOptions=Kt.loggerMiddlewareOptions});var Qe=O((mi)=>{var zt=Q();mi.getRecursionDetectionPlugin=zt.getRecursionDetectionPlugin;mi.recursionDetectionMiddleware=zt.recursionDetectionMiddleware;mi.recursionDetectionMiddlewareOptions=zt.recursionDetectionMiddlewareOptions});var Ce=O((eE)=>{var Ot=Q();eE.DEFAULT_UA_APP_ID=Ot.DEFAULT_UA_APP_ID;eE.getUserAgentMiddlewareOptions=Ot.getUserAgentMiddlewareOptions;eE.getUserAgentPlugin=Ot.getUserAgentPlugin;eE.resolveUserAgentConfig=Ot.resolveUserAgentConfig;eE.userAgentMiddleware=Ot.userAgentMiddleware});var he=O((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.getContentLengthPlugin=ct.contentLengthMiddlewareOptions=ct.contentLengthMiddleware=void 0;var Jt=ft();Object.defineProperty(ct,"contentLengthMiddleware",{enumerable:!0,get:function(){return Jt.contentLengthMiddleware}});Object.defineProperty(ct,"contentLengthMiddlewareOptions",{enumerable:!0,get:function(){return Jt.contentLengthMiddlewareOptions}});Object.defineProperty(ct,"getContentLengthPlugin",{enumerable:!0,get:function(){return Jt.getContentLengthPlugin}})});var St=O((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.resolveEndpointRequiredConfig=V.resolveEndpointConfig=V.getEndpointPlugin=V.endpointMiddlewareOptions=V.endpointMiddleware=V.toEndpointV1=V.resolveParams=V.getEndpointFromInstructions=void 0;var C=ke();Object.defineProperty(V,"getEndpointFromInstructions",{enumerable:!0,get:function(){return C.getEndpointFromInstructions}});Object.defineProperty(V,"resolveParams",{enumerable:!0,get:function(){return C.resolveParams}});Object.defineProperty(V,"toEndpointV1",{enumerable:!0,get:function(){return C.toEndpointV1}});Object.defineProperty(V,"endpointMiddleware",{enumerable:!0,get:function(){return C.endpointMiddleware}});Object.defineProperty(V,"endpointMiddlewareOptions",{enumerable:!0,get:function(){return C.endpointMiddlewareOptions}});Object.defineProperty(V,"getEndpointPlugin",{enumerable:!0,get:function(){return C.getEndpointPlugin}});Object.defineProperty(V,"resolveEndpointConfig",{enumerable:!0,get:function(){return C.resolveEndpointConfig}});Object.defineProperty(V,"resolveEndpointRequiredConfig",{enumerable:!0,get:function(){return C.resolveEndpointRequiredConfig}})});var Qt=O((H)=>{Object.defineProperty(H,"__esModule",{value:!0});H.retryMiddlewareOptions=H.retryMiddleware=H.resolveRetryConfig=H.omitRetryHeadersMiddlewareOptions=H.omitRetryHeadersMiddleware=H.getRetryPlugin=H.getRetryAfterHint=H.getOmitRetryHeadersPlugin=H.defaultRetryDecider=H.defaultDelayDecider=H.NODE_RETRY_MODE_CONFIG_OPTIONS=H.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=H.ENV_RETRY_MODE=H.ENV_MAX_ATTEMPTS=H.CONFIG_RETRY_MODE=H.CONFIG_MAX_ATTEMPTS=H.StandardRetryStrategy=H.AdaptiveRetryStrategy=void 0;var G=Xt();Object.defineProperty(H,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedAdaptiveRetryStrategy}});Object.defineProperty(H,"StandardRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedStandardRetryStrategy}});Object.defineProperty(H,"CONFIG_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.CONFIG_MAX_ATTEMPTS}});Object.defineProperty(H,"CONFIG_RETRY_MODE",{enumerable:!0,get:function(){return G.CONFIG_RETRY_MODE}});Object.defineProperty(H,"ENV_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.ENV_MAX_ATTEMPTS}});Object.defineProperty(H,"ENV_RETRY_MODE",{enumerable:!0,get:function(){return G.ENV_RETRY_MODE}});Object.defineProperty(H,"NODE_MAX_ATTEMPT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS}});Object.defineProperty(H,"NODE_RETRY_MODE_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_RETRY_MODE_CONFIG_OPTIONS}});Object.defineProperty(H,"defaultDelayDecider",{enumerable:!0,get:function(){return G.defaultDelayDecider}});Object.defineProperty(H,"defaultRetryDecider",{enumerable:!0,get:function(){return G.defaultRetryDecider}});Object.defineProperty(H,"getOmitRetryHeadersPlugin",{enumerable:!0,get:function(){return G.getOmitRetryHeadersPlugin}});Object.defineProperty(H,"getRetryAfterHint",{enumerable:!0,get:function(){return G.getRetryAfterHint}});Object.defineProperty(H,"getRetryPlugin",{enumerable:!0,get:function(){return G.getRetryPlugin}});Object.defineProperty(H,"omitRetryHeadersMiddleware",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddleware}});Object.defineProperty(H,"omitRetryHeadersMiddlewareOptions",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddlewareOptions}});Object.defineProperty(H,"resolveRetryConfig",{enumerable:!0,get:function(){return G.resolveRetryConfig}});Object.defineProperty(H,"retryMiddleware",{enumerable:!0,get:function(){return G.retryMiddleware}});Object.defineProperty(H,"retryMiddlewareOptions",{enumerable:!0,get:function(){return G.retryMiddlewareOptions}})});var et=O((y)=>{Object.defineProperty(y,"__esModule",{value:!0});y.createAggregatedClient=y.convertMap=y._json=y.ServiceException=y.SENSITIVE_STRING=y.NoOpLogger=y.Command=y.Client=y.strictParseShort=y.strictParseLong=y.strictParseInt32=y.strictParseInt=y.strictParseFloat32=y.strictParseFloat=y.strictParseDouble=y.strictParseByte=y.splitHeader=y.splitEvery=y.quoteHeader=y.parseRfc7231DateTime=y.parseRfc3339DateTimeWithOffset=y.parseRfc3339DateTime=y.parseEpochTimestamp=y.parseBoolean=y.nv=y.logger=y.limitedParseFloat32=y.limitedParseFloat=y.limitedParseDouble=y.handleFloat=y.generateIdempotencyToken=y.expectUnion=y.expectString=y.expectShort=y.expectObject=y.expectNumber=y.expectNonNull=y.expectLong=y.expectInt32=y.expectInt=y.expectFloat32=y.expectByte=y.expectBoolean=y.dateToUtcString=y.copyDocumentWithTransform=y._parseRfc7231DateTime=y._parseRfc3339DateTimeWithOffset=y._parseEpochTimestamp=y.NumericValue=y.LazyJsonString=void 0;y.resolvedPath=y.extendedEncodeURIComponent=y.collectBody=y.withBaseException=y.throwDefaultError=y.take=y.serializeFloat=y.serializeDateTime=y.resolveDefaultRuntimeConfig=y.map=y.loadConfigsForDefaultMode=y.isSerializableHeaderValue=y.getValueFromTextNode=y.getDefaultExtensionConfiguration=y.getDefaultClientConfiguration=y.getArrayIfSingleItem=y.emitWarningIfUnsupportedVersion=y.decorateServiceException=void 0;var D=Ft();Object.defineProperty(y,"LazyJsonString",{enumerable:!0,get:function(){return D.LazyJsonString}});Object.defineProperty(y,"NumericValue",{enumerable:!0,get:function(){return D.NumericValue}});Object.defineProperty(y,"_parseEpochTimestamp",{enumerable:!0,get:function(){return D._parseEpochTimestamp}});Object.defineProperty(y,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D._parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return D._parseRfc7231DateTime}});Object.defineProperty(y,"copyDocumentWithTransform",{enumerable:!0,get:function(){return D.copyDocumentWithTransform}});Object.defineProperty(y,"dateToUtcString",{enumerable:!0,get:function(){return D.dateToUtcString}});Object.defineProperty(y,"expectBoolean",{enumerable:!0,get:function(){return D.expectBoolean}});Object.defineProperty(y,"expectByte",{enumerable:!0,get:function(){return D.expectByte}});Object.defineProperty(y,"expectFloat32",{enumerable:!0,get:function(){return D.expectFloat32}});Object.defineProperty(y,"expectInt",{enumerable:!0,get:function(){return D.expectInt}});Object.defineProperty(y,"expectInt32",{enumerable:!0,get:function(){return D.expectInt32}});Object.defineProperty(y,"expectLong",{enumerable:!0,get:function(){return D.expectLong}});Object.defineProperty(y,"expectNonNull",{enumerable:!0,get:function(){return D.expectNonNull}});Object.defineProperty(y,"expectNumber",{enumerable:!0,get:function(){return D.expectNumber}});Object.defineProperty(y,"expectObject",{enumerable:!0,get:function(){return D.expectObject}});Object.defineProperty(y,"expectShort",{enumerable:!0,get:function(){return D.expectShort}});Object.defineProperty(y,"expectString",{enumerable:!0,get:function(){return D.expectString}});Object.defineProperty(y,"expectUnion",{enumerable:!0,get:function(){return D.expectUnion}});Object.defineProperty(y,"generateIdempotencyToken",{enumerable:!0,get:function(){return D.generateIdempotencyToken}});Object.defineProperty(y,"handleFloat",{enumerable:!0,get:function(){return D.handleFloat}});Object.defineProperty(y,"limitedParseDouble",{enumerable:!0,get:function(){return D.limitedParseDouble}});Object.defineProperty(y,"limitedParseFloat",{enumerable:!0,get:function(){return D.limitedParseFloat}});Object.defineProperty(y,"limitedParseFloat32",{enumerable:!0,get:function(){return D.limitedParseFloat32}});Object.defineProperty(y,"logger",{enumerable:!0,get:function(){return D.logger}});Object.defineProperty(y,"nv",{enumerable:!0,get:function(){return D.nv}});Object.defineProperty(y,"parseBoolean",{enumerable:!0,get:function(){return D.parseBoolean}});Object.defineProperty(y,"parseEpochTimestamp",{enumerable:!0,get:function(){return D.parseEpochTimestamp}});Object.defineProperty(y,"parseRfc3339DateTime",{enumerable:!0,get:function(){return D.parseRfc3339DateTime}});Object.defineProperty(y,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D.parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"parseRfc7231DateTime",{enumerable:!0,get:function(){return D.parseRfc7231DateTime}});Object.defineProperty(y,"quoteHeader",{enumerable:!0,get:function(){return D.quoteHeader}});Object.defineProperty(y,"splitEvery",{enumerable:!0,get:function(){return D.splitEvery}});Object.defineProperty(y,"splitHeader",{enumerable:!0,get:function(){return D.splitHeader}});Object.defineProperty(y,"strictParseByte",{enumerable:!0,get:function(){return D.strictParseByte}});Object.defineProperty(y,"strictParseDouble",{enumerable:!0,get:function(){return D.strictParseDouble}});Object.defineProperty(y,"strictParseFloat",{enumerable:!0,get:function(){return D.strictParseFloat}});Object.defineProperty(y,"strictParseFloat32",{enumerable:!0,get:function(){return D.strictParseFloat32}});Object.defineProperty(y,"strictParseInt",{enumerable:!0,get:function(){return D.strictParseInt}});Object.defineProperty(y,"strictParseInt32",{enumerable:!0,get:function(){return D.strictParseInt32}});Object.defineProperty(y,"strictParseLong",{enumerable:!0,get:function(){return D.strictParseLong}});Object.defineProperty(y,"strictParseShort",{enumerable:!0,get:function(){return D.strictParseShort}});var U=Ct();Object.defineProperty(y,"Client",{enumerable:!0,get:function(){return U.Client}});Object.defineProperty(y,"Command",{enumerable:!0,get:function(){return U.Command}});Object.defineProperty(y,"NoOpLogger",{enumerable:!0,get:function(){return U.NoOpLogger}});Object.defineProperty(y,"SENSITIVE_STRING",{enumerable:!0,get:function(){return U.SENSITIVE_STRING}});Object.defineProperty(y,"ServiceException",{enumerable:!0,get:function(){return U.ServiceException}});Object.defineProperty(y,"_json",{enumerable:!0,get:function(){return U._json}});Object.defineProperty(y,"convertMap",{enumerable:!0,get:function(){return U.convertMap}});Object.defineProperty(y,"createAggregatedClient",{enumerable:!0,get:function(){return U.createAggregatedClient}});Object.defineProperty(y,"decorateServiceException",{enumerable:!0,get:function(){return U.decorateServiceException}});Object.defineProperty(y,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return U.emitWarningIfUnsupportedVersion}});Object.defineProperty(y,"getArrayIfSingleItem",{enumerable:!0,get:function(){return U.getArrayIfSingleItem}});Object.defineProperty(y,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return U.getDefaultClientConfiguration}});Object.defineProperty(y,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return U.getDefaultExtensionConfiguration}});Object.defineProperty(y,"getValueFromTextNode",{enumerable:!0,get:function(){return U.getValueFromTextNode}});Object.defineProperty(y,"isSerializableHeaderValue",{enumerable:!0,get:function(){return U.isSerializableHeaderValue}});Object.defineProperty(y,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return U.loadConfigsForDefaultMode}});Object.defineProperty(y,"map",{enumerable:!0,get:function(){return U.map}});Object.defineProperty(y,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return U.resolveDefaultRuntimeConfig}});Object.defineProperty(y,"serializeDateTime",{enumerable:!0,get:function(){return U.serializeDateTime}});Object.defineProperty(y,"serializeFloat",{enumerable:!0,get:function(){return U.serializeFloat}});Object.defineProperty(y,"take",{enumerable:!0,get:function(){return U.take}});Object.defineProperty(y,"throwDefaultError",{enumerable:!0,get:function(){return U.throwDefaultError}});Object.defineProperty(y,"withBaseException",{enumerable:!0,get:function(){return U.withBaseException}});var ht=ft();Object.defineProperty(y,"collectBody",{enumerable:!0,get:function(){return ht.collectBody}});Object.defineProperty(y,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return ht.extendedEncodeURIComponent}});Object.defineProperty(y,"resolvedPath",{enumerable:!0,get:function(){return ht.resolvedPath}})});var Nt=O((qE)=>{var DE=Xt(),w=ft(),h=Ut(),le=_r(),AE=Q(),me=yE(),M=Ft(),g=lt(),Lt=Ct(),B=IE(),ve=TE(),st={warningEmitted:!1},OE=(t)=>{if(t&&!st.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){st.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),n=22;if(e<n)st.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
+
import{Xd as Pi,Yd as ZP}from"./chunk-70pb4kcm.js";import{se as yE,te as TE,ue as IE,ve as wP}from"./chunk-jts0dma5.js";import{we as xP}from"./chunk-vgaxv70x.js";import{xe as Xt,ye as Ut,ze as Q}from"./chunk-t01bhw5h.js";import{Ae as ft}from"./chunk-8yr682pv.js";import{nf as UP}from"./chunk-n0trgp1c.js";import{pf as qP}from"./chunk-yha554nm.js";import{sf as lt,tf as Ct,uf as _r,vf as ke,wf as Ft}from"./chunk-v3x5nrc4.js";import{gQ as N1,hQ as O}from"./chunk-4sazy0nq.js";var Se=O((zi)=>{var gt=Q();zi.getHostHeaderPlugin=gt.getHostHeaderPlugin;zi.hostHeaderMiddleware=gt.hostHeaderMiddleware;zi.hostHeaderMiddlewareOptions=gt.hostHeaderMiddlewareOptions;zi.resolveHostHeaderConfig=gt.resolveHostHeaderConfig});var Xe=O((Ci)=>{var Kt=Q();Ci.getLoggerPlugin=Kt.getLoggerPlugin;Ci.loggerMiddleware=Kt.loggerMiddleware;Ci.loggerMiddlewareOptions=Kt.loggerMiddlewareOptions});var Qe=O((mi)=>{var zt=Q();mi.getRecursionDetectionPlugin=zt.getRecursionDetectionPlugin;mi.recursionDetectionMiddleware=zt.recursionDetectionMiddleware;mi.recursionDetectionMiddlewareOptions=zt.recursionDetectionMiddlewareOptions});var Ce=O((eE)=>{var Ot=Q();eE.DEFAULT_UA_APP_ID=Ot.DEFAULT_UA_APP_ID;eE.getUserAgentMiddlewareOptions=Ot.getUserAgentMiddlewareOptions;eE.getUserAgentPlugin=Ot.getUserAgentPlugin;eE.resolveUserAgentConfig=Ot.resolveUserAgentConfig;eE.userAgentMiddleware=Ot.userAgentMiddleware});var he=O((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.getContentLengthPlugin=ct.contentLengthMiddlewareOptions=ct.contentLengthMiddleware=void 0;var Jt=ft();Object.defineProperty(ct,"contentLengthMiddleware",{enumerable:!0,get:function(){return Jt.contentLengthMiddleware}});Object.defineProperty(ct,"contentLengthMiddlewareOptions",{enumerable:!0,get:function(){return Jt.contentLengthMiddlewareOptions}});Object.defineProperty(ct,"getContentLengthPlugin",{enumerable:!0,get:function(){return Jt.getContentLengthPlugin}})});var St=O((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.resolveEndpointRequiredConfig=V.resolveEndpointConfig=V.getEndpointPlugin=V.endpointMiddlewareOptions=V.endpointMiddleware=V.toEndpointV1=V.resolveParams=V.getEndpointFromInstructions=void 0;var C=ke();Object.defineProperty(V,"getEndpointFromInstructions",{enumerable:!0,get:function(){return C.getEndpointFromInstructions}});Object.defineProperty(V,"resolveParams",{enumerable:!0,get:function(){return C.resolveParams}});Object.defineProperty(V,"toEndpointV1",{enumerable:!0,get:function(){return C.toEndpointV1}});Object.defineProperty(V,"endpointMiddleware",{enumerable:!0,get:function(){return C.endpointMiddleware}});Object.defineProperty(V,"endpointMiddlewareOptions",{enumerable:!0,get:function(){return C.endpointMiddlewareOptions}});Object.defineProperty(V,"getEndpointPlugin",{enumerable:!0,get:function(){return C.getEndpointPlugin}});Object.defineProperty(V,"resolveEndpointConfig",{enumerable:!0,get:function(){return C.resolveEndpointConfig}});Object.defineProperty(V,"resolveEndpointRequiredConfig",{enumerable:!0,get:function(){return C.resolveEndpointRequiredConfig}})});var Qt=O((H)=>{Object.defineProperty(H,"__esModule",{value:!0});H.retryMiddlewareOptions=H.retryMiddleware=H.resolveRetryConfig=H.omitRetryHeadersMiddlewareOptions=H.omitRetryHeadersMiddleware=H.getRetryPlugin=H.getRetryAfterHint=H.getOmitRetryHeadersPlugin=H.defaultRetryDecider=H.defaultDelayDecider=H.NODE_RETRY_MODE_CONFIG_OPTIONS=H.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=H.ENV_RETRY_MODE=H.ENV_MAX_ATTEMPTS=H.CONFIG_RETRY_MODE=H.CONFIG_MAX_ATTEMPTS=H.StandardRetryStrategy=H.AdaptiveRetryStrategy=void 0;var G=Xt();Object.defineProperty(H,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedAdaptiveRetryStrategy}});Object.defineProperty(H,"StandardRetryStrategy",{enumerable:!0,get:function(){return G.DeprecatedStandardRetryStrategy}});Object.defineProperty(H,"CONFIG_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.CONFIG_MAX_ATTEMPTS}});Object.defineProperty(H,"CONFIG_RETRY_MODE",{enumerable:!0,get:function(){return G.CONFIG_RETRY_MODE}});Object.defineProperty(H,"ENV_MAX_ATTEMPTS",{enumerable:!0,get:function(){return G.ENV_MAX_ATTEMPTS}});Object.defineProperty(H,"ENV_RETRY_MODE",{enumerable:!0,get:function(){return G.ENV_RETRY_MODE}});Object.defineProperty(H,"NODE_MAX_ATTEMPT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS}});Object.defineProperty(H,"NODE_RETRY_MODE_CONFIG_OPTIONS",{enumerable:!0,get:function(){return G.NODE_RETRY_MODE_CONFIG_OPTIONS}});Object.defineProperty(H,"defaultDelayDecider",{enumerable:!0,get:function(){return G.defaultDelayDecider}});Object.defineProperty(H,"defaultRetryDecider",{enumerable:!0,get:function(){return G.defaultRetryDecider}});Object.defineProperty(H,"getOmitRetryHeadersPlugin",{enumerable:!0,get:function(){return G.getOmitRetryHeadersPlugin}});Object.defineProperty(H,"getRetryAfterHint",{enumerable:!0,get:function(){return G.getRetryAfterHint}});Object.defineProperty(H,"getRetryPlugin",{enumerable:!0,get:function(){return G.getRetryPlugin}});Object.defineProperty(H,"omitRetryHeadersMiddleware",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddleware}});Object.defineProperty(H,"omitRetryHeadersMiddlewareOptions",{enumerable:!0,get:function(){return G.omitRetryHeadersMiddlewareOptions}});Object.defineProperty(H,"resolveRetryConfig",{enumerable:!0,get:function(){return G.resolveRetryConfig}});Object.defineProperty(H,"retryMiddleware",{enumerable:!0,get:function(){return G.retryMiddleware}});Object.defineProperty(H,"retryMiddlewareOptions",{enumerable:!0,get:function(){return G.retryMiddlewareOptions}})});var et=O((y)=>{Object.defineProperty(y,"__esModule",{value:!0});y.createAggregatedClient=y.convertMap=y._json=y.ServiceException=y.SENSITIVE_STRING=y.NoOpLogger=y.Command=y.Client=y.strictParseShort=y.strictParseLong=y.strictParseInt32=y.strictParseInt=y.strictParseFloat32=y.strictParseFloat=y.strictParseDouble=y.strictParseByte=y.splitHeader=y.splitEvery=y.quoteHeader=y.parseRfc7231DateTime=y.parseRfc3339DateTimeWithOffset=y.parseRfc3339DateTime=y.parseEpochTimestamp=y.parseBoolean=y.nv=y.logger=y.limitedParseFloat32=y.limitedParseFloat=y.limitedParseDouble=y.handleFloat=y.generateIdempotencyToken=y.expectUnion=y.expectString=y.expectShort=y.expectObject=y.expectNumber=y.expectNonNull=y.expectLong=y.expectInt32=y.expectInt=y.expectFloat32=y.expectByte=y.expectBoolean=y.dateToUtcString=y.copyDocumentWithTransform=y._parseRfc7231DateTime=y._parseRfc3339DateTimeWithOffset=y._parseEpochTimestamp=y.NumericValue=y.LazyJsonString=void 0;y.resolvedPath=y.extendedEncodeURIComponent=y.collectBody=y.withBaseException=y.throwDefaultError=y.take=y.serializeFloat=y.serializeDateTime=y.resolveDefaultRuntimeConfig=y.map=y.loadConfigsForDefaultMode=y.isSerializableHeaderValue=y.getValueFromTextNode=y.getDefaultExtensionConfiguration=y.getDefaultClientConfiguration=y.getArrayIfSingleItem=y.emitWarningIfUnsupportedVersion=y.decorateServiceException=void 0;var D=Ft();Object.defineProperty(y,"LazyJsonString",{enumerable:!0,get:function(){return D.LazyJsonString}});Object.defineProperty(y,"NumericValue",{enumerable:!0,get:function(){return D.NumericValue}});Object.defineProperty(y,"_parseEpochTimestamp",{enumerable:!0,get:function(){return D._parseEpochTimestamp}});Object.defineProperty(y,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D._parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return D._parseRfc7231DateTime}});Object.defineProperty(y,"copyDocumentWithTransform",{enumerable:!0,get:function(){return D.copyDocumentWithTransform}});Object.defineProperty(y,"dateToUtcString",{enumerable:!0,get:function(){return D.dateToUtcString}});Object.defineProperty(y,"expectBoolean",{enumerable:!0,get:function(){return D.expectBoolean}});Object.defineProperty(y,"expectByte",{enumerable:!0,get:function(){return D.expectByte}});Object.defineProperty(y,"expectFloat32",{enumerable:!0,get:function(){return D.expectFloat32}});Object.defineProperty(y,"expectInt",{enumerable:!0,get:function(){return D.expectInt}});Object.defineProperty(y,"expectInt32",{enumerable:!0,get:function(){return D.expectInt32}});Object.defineProperty(y,"expectLong",{enumerable:!0,get:function(){return D.expectLong}});Object.defineProperty(y,"expectNonNull",{enumerable:!0,get:function(){return D.expectNonNull}});Object.defineProperty(y,"expectNumber",{enumerable:!0,get:function(){return D.expectNumber}});Object.defineProperty(y,"expectObject",{enumerable:!0,get:function(){return D.expectObject}});Object.defineProperty(y,"expectShort",{enumerable:!0,get:function(){return D.expectShort}});Object.defineProperty(y,"expectString",{enumerable:!0,get:function(){return D.expectString}});Object.defineProperty(y,"expectUnion",{enumerable:!0,get:function(){return D.expectUnion}});Object.defineProperty(y,"generateIdempotencyToken",{enumerable:!0,get:function(){return D.generateIdempotencyToken}});Object.defineProperty(y,"handleFloat",{enumerable:!0,get:function(){return D.handleFloat}});Object.defineProperty(y,"limitedParseDouble",{enumerable:!0,get:function(){return D.limitedParseDouble}});Object.defineProperty(y,"limitedParseFloat",{enumerable:!0,get:function(){return D.limitedParseFloat}});Object.defineProperty(y,"limitedParseFloat32",{enumerable:!0,get:function(){return D.limitedParseFloat32}});Object.defineProperty(y,"logger",{enumerable:!0,get:function(){return D.logger}});Object.defineProperty(y,"nv",{enumerable:!0,get:function(){return D.nv}});Object.defineProperty(y,"parseBoolean",{enumerable:!0,get:function(){return D.parseBoolean}});Object.defineProperty(y,"parseEpochTimestamp",{enumerable:!0,get:function(){return D.parseEpochTimestamp}});Object.defineProperty(y,"parseRfc3339DateTime",{enumerable:!0,get:function(){return D.parseRfc3339DateTime}});Object.defineProperty(y,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return D.parseRfc3339DateTimeWithOffset}});Object.defineProperty(y,"parseRfc7231DateTime",{enumerable:!0,get:function(){return D.parseRfc7231DateTime}});Object.defineProperty(y,"quoteHeader",{enumerable:!0,get:function(){return D.quoteHeader}});Object.defineProperty(y,"splitEvery",{enumerable:!0,get:function(){return D.splitEvery}});Object.defineProperty(y,"splitHeader",{enumerable:!0,get:function(){return D.splitHeader}});Object.defineProperty(y,"strictParseByte",{enumerable:!0,get:function(){return D.strictParseByte}});Object.defineProperty(y,"strictParseDouble",{enumerable:!0,get:function(){return D.strictParseDouble}});Object.defineProperty(y,"strictParseFloat",{enumerable:!0,get:function(){return D.strictParseFloat}});Object.defineProperty(y,"strictParseFloat32",{enumerable:!0,get:function(){return D.strictParseFloat32}});Object.defineProperty(y,"strictParseInt",{enumerable:!0,get:function(){return D.strictParseInt}});Object.defineProperty(y,"strictParseInt32",{enumerable:!0,get:function(){return D.strictParseInt32}});Object.defineProperty(y,"strictParseLong",{enumerable:!0,get:function(){return D.strictParseLong}});Object.defineProperty(y,"strictParseShort",{enumerable:!0,get:function(){return D.strictParseShort}});var U=Ct();Object.defineProperty(y,"Client",{enumerable:!0,get:function(){return U.Client}});Object.defineProperty(y,"Command",{enumerable:!0,get:function(){return U.Command}});Object.defineProperty(y,"NoOpLogger",{enumerable:!0,get:function(){return U.NoOpLogger}});Object.defineProperty(y,"SENSITIVE_STRING",{enumerable:!0,get:function(){return U.SENSITIVE_STRING}});Object.defineProperty(y,"ServiceException",{enumerable:!0,get:function(){return U.ServiceException}});Object.defineProperty(y,"_json",{enumerable:!0,get:function(){return U._json}});Object.defineProperty(y,"convertMap",{enumerable:!0,get:function(){return U.convertMap}});Object.defineProperty(y,"createAggregatedClient",{enumerable:!0,get:function(){return U.createAggregatedClient}});Object.defineProperty(y,"decorateServiceException",{enumerable:!0,get:function(){return U.decorateServiceException}});Object.defineProperty(y,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return U.emitWarningIfUnsupportedVersion}});Object.defineProperty(y,"getArrayIfSingleItem",{enumerable:!0,get:function(){return U.getArrayIfSingleItem}});Object.defineProperty(y,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return U.getDefaultClientConfiguration}});Object.defineProperty(y,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return U.getDefaultExtensionConfiguration}});Object.defineProperty(y,"getValueFromTextNode",{enumerable:!0,get:function(){return U.getValueFromTextNode}});Object.defineProperty(y,"isSerializableHeaderValue",{enumerable:!0,get:function(){return U.isSerializableHeaderValue}});Object.defineProperty(y,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return U.loadConfigsForDefaultMode}});Object.defineProperty(y,"map",{enumerable:!0,get:function(){return U.map}});Object.defineProperty(y,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return U.resolveDefaultRuntimeConfig}});Object.defineProperty(y,"serializeDateTime",{enumerable:!0,get:function(){return U.serializeDateTime}});Object.defineProperty(y,"serializeFloat",{enumerable:!0,get:function(){return U.serializeFloat}});Object.defineProperty(y,"take",{enumerable:!0,get:function(){return U.take}});Object.defineProperty(y,"throwDefaultError",{enumerable:!0,get:function(){return U.throwDefaultError}});Object.defineProperty(y,"withBaseException",{enumerable:!0,get:function(){return U.withBaseException}});var ht=ft();Object.defineProperty(y,"collectBody",{enumerable:!0,get:function(){return ht.collectBody}});Object.defineProperty(y,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return ht.extendedEncodeURIComponent}});Object.defineProperty(y,"resolvedPath",{enumerable:!0,get:function(){return ht.resolvedPath}})});var Nt=O((qE)=>{var DE=Xt(),w=ft(),h=Ut(),le=_r(),AE=Q(),me=yE(),M=Ft(),g=lt(),Lt=Ct(),B=IE(),ve=TE(),st={warningEmitted:!1},OE=(t)=>{if(t&&!st.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){st.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),n=22;if(e<n)st.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
3
3
|
versions published after the first week of January 2027
|
|
4
4
|
will require node >=${n}. You are running node ${t}.
|
|
5
5
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{n as a,o as b}from"./chunk-3gw6r3hf.js";import"./chunk-jw16f6t0.js";import"./chunk-4kqdzdv5.js";import"./chunk-c8k32724.js";import"./chunk-rqmvj7f4.js";import"./chunk-a9y27zd2.js";import"./chunk-pmv8yr8c.js";import"./chunk-jf6ry79j.js";import"./chunk-3bnqw3xp.js";import"./chunk-6sfhbckv.js";import"./chunk-5kmfnkzv.js";import"./chunk-jcjaw7tk.js";import"./chunk-1mcsf4yb.js";import"./chunk-txqc7543.js";import"./chunk-p8k48st6.js";import"./chunk-9s4whpg1.js";import"./chunk-mqtqcc10.js";import"./chunk-b4ysd5b4.js";import"./chunk-ebkztnpf.js";import"./chunk-pxx2hz0g.js";import"./chunk-sy3n0qhc.js";import"./chunk-364ccew0.js";import"./chunk-vdpd4akk.js";import"./chunk-yjp0btmq.js";import"./chunk-1bx2sjn6.js";import"./chunk-g5prcvq2.js";import"./chunk-t5tfppwv.js";import"./chunk-25bp7pcm.js";import"./chunk-qdcf1ay5.js";import"./chunk-45mjcxqk.js";import"./chunk-qqne79vp.js";import"./chunk-64s7vfj7.js";import"./chunk-e03tgfpb.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-3mepk08v.js";import"./chunk-atpzz901.js";import"./chunk-0g25z230.js";import"./chunk-w9pdvcf9.js";import"./chunk-4gs87ghj.js";import"./chunk-brh35yt5.js";import"./chunk-vcrakhgy.js";import"./chunk-xdjwapwy.js";import"./chunk-7dep7g7c.js";import"./chunk-tabcpx7t.js";import"./chunk-cx7p4ezk.js";import"./chunk-tgd5ctnt.js";import"./chunk-p8kpqyxb.js";import"./chunk-w24660y4.js";import"./chunk-3sz6gw10.js";import"./chunk-xqwvx3qq.js";import"./chunk-qp9y0g73.js";import"./chunk-xyjehgzm.js";import"./chunk-j21dnncc.js";import"./chunk-vc4e6xc4.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-pqnbdygz.js";import"./chunk-ydc6ypjt.js";import"./chunk-ev3a2sxv.js";import"./chunk-pnq1h5az.js";import"./chunk-4sazy0nq.js";export{b as tui,a as rendererConfig};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Dp as a,Ep as b,Fp as c,Gp as d,Hp as e,Ip as f,Jp as g,Kp as h,Lp as i}from"./chunk-64s7vfj7.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-4sazy0nq.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Br as I,Gr as o,pr as k,qr as C,rr as t,tr as V,wr as B,xr as A,yr as H}from"./chunk-kwx9ewe0.js";import{Hr as w}from"./chunk-c5pb87yf.js";import{Vu as f}from"./chunk-gmzrvxnv.js";import{dA as n}from"./chunk-mpygdb5a.js";function RJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function NJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}async function VJ(F,J){if(F==null)return Promise.resolve();let Q=J==null?void 0:J.abortSignal;return new Promise((W,X)=>{if(Q==null?void 0:Q.aborted){X(m());return}let Y=setTimeout(()=>{Z(),W()},F),Z=()=>{clearTimeout(Y),Q==null||Q.removeEventListener("abort",$)},$=()=>{Z(),X(m())};Q==null||Q.addEventListener("abort",$)})}function m(){return new DOMException("Delay was aborted","AbortError")}var TJ=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){if(this._promise)return this._promise;return this._promise=new Promise((F,J)=>{if(this.status.type==="resolved")F(this.status.value);else if(this.status.type==="rejected")J(this.status.error);this._resolve=F,this._reject=J}),this._promise}resolve(F){var J;if(this.status={type:"resolved",value:F},this._promise)(J=this._resolve)==null||J.call(this,F)}reject(F){var J;if(this.status={type:"rejected",error:F},this._promise)(J=this._reject)==null||J.call(this,F)}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function z(F){return Object.fromEntries([...F.headers])}var{btoa:GF,atob:CF}=globalThis;function _J(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=CF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function a(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return GF(J)}function jJ(F){return F instanceof Uint8Array?a(F):F}function kJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:a(F.data)}`}function bJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var s="AI_DownloadError",r=`vercel.ai.error.${s}`,MF=Symbol.for(r),u,i,O=class extends(i=k,u=MF,i){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:s,message:X,cause:W});this[u]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return k.hasMarker(F,r)}},e=2147483648;async function KF({response:F,url:J,maxBytes:Q=e}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:N}=await Y.read();if(G)break;if($+=N.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(N)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let U=new Uint8Array($),L=0;for(let G of Z)U.set(G,L),L+=G.length;return U}function p(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol==="data:")return;if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http, https, or data, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(qF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(FF(Q)){if(b(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function FF(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function b(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function qF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(FF(Q))return b(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,U=Y>>8&255,L=Y&255;return b(`${Z}.${$}.${U}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function gJ(F,J){var Q,W;p(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)p(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await KF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:e}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var DF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new V({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},vJ=DF();function yJ(F){if(F==null)return"unknown error";if(typeof F==="string")return F;if(F instanceof Error)return F.message;return JSON.stringify(F)}function R(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var OF=["fetch failed","failed to fetch"],IF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function PF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&IF.includes(J))return!0;return!1}function JF({error:F,url:J,requestBodyValues:Q}){if(R(F))return F;if(F instanceof TypeError&&OF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new C({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(PF(F))return new C({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function QF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function zF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function WF(F,...J){let Q=new Headers(zF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var XF="4.0.23",AF=()=>globalThis.fetch,uJ=async({url:F,headers:J={},successfulResponseHandler:Q,failedResponseHandler:W,abortSignal:X,fetch:Y=AF()})=>{try{let Z=await Y(F,{method:"GET",headers:WF(J,`ai-sdk/provider-utils/${XF}`,QF()),signal:X}),$=z(Z);if(!Z.ok){let U;try{U=await W({response:Z,url:F,requestBodyValues:{}})}catch(L){if(R(L)||C.isInstance(L))throw L;throw new C({message:"Failed to process error response",cause:L,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}throw U.value}try{return await Q({response:Z,url:F,requestBodyValues:{}})}catch(U){if(U instanceof Error){if(R(U)||C.isInstance(U))throw U}throw new C({message:"Failed to process successful response",cause:U,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}}catch(Z){throw JF({error:Z,url:F,requestBodyValues:{}})}};function iJ(F){return F!=null}function pJ({mediaType:F,url:J,supportedUrls:Q}){return J=J.toLowerCase(),F=F.toLowerCase(),Object.entries(Q).map(([W,X])=>{let Y=W.toLowerCase();return Y==="*"||Y==="*/*"?{mediaTypePrefix:"",regexes:X}:{mediaTypePrefix:Y.replace(/\*/,""),regexes:X}}).filter(({mediaTypePrefix:W})=>F.startsWith(W)).flatMap(({regexes:W})=>W).some((W)=>W.test(J))}function cJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} API key must be a string.`});if(typeof process>"u")throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function dJ({settingValue:F,environmentVariableName:J}){if(typeof F==="string")return F;if(F!=null||typeof process>"u")return;if(F=process.env[J],F==null||typeof F!=="string")return;return F}function fJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new H({message:`${W} setting must be a string.`});if(typeof process>"u")throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new H({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function tJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var HF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,BF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function l(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(HF.test(F)===!1&&BF.test(F)===!1)return J;return RF(J)}function RF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return l(F)}try{return l(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var NF=Symbol("Let zodToJsonSchema decide on which parser to use"),c={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},VF=(F)=>typeof F==="string"?{...c,name:F}:{...c,...F};function K(){return{}}function TF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==w.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function _F(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function jF(){return{type:"boolean"}}function YF(F,J){return E(F.type._def,J)}var kF=(F,J)=>{return E(F.innerType._def,J)};function ZF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>ZF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return bF(F)}}var bF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function SF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function gF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function xF(F){return{type:"string",enum:Array.from(F.values)}}var vF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function yF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(vF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function hF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var _=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(_===void 0)_=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return _},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function $F(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":M(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":M(Q,W.regex,W.message,J);break;case"cuid":M(Q,q.cuid,W.message,J);break;case"cuid2":M(Q,q.cuid2,W.message,J);break;case"startsWith":M(Q,RegExp(`^${j(W.value,J)}`),W.message,J);break;case"endsWith":M(Q,RegExp(`${j(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{M(Q,RegExp(j(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":M(Q,q.base64url,W.message,J);break;case"jwt":M(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")M(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")M(Q,q.ipv6Cidr,W.message,J);break}case"emoji":M(Q,q.emoji(),W.message,J);break;case"ulid":{M(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{M(Q,q.base64,W.message,J);break}}break}case"nanoid":M(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function j(F,J){return J.patternStrategy==="escape"?uF(F):F}var mF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function uF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!mF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function M(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:d(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=d(J,W)}function d(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,U=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(U)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),U=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],U=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
|
|
2
|
+
import{Br as B,Cr as A,Dr as H,Gr as I,Lr as o,ur as k,vr as C,wr as t,yr as V}from"./chunk-1wpjmwnh.js";import{Mr as w}from"./chunk-ymtcm4xd.js";import{bv as f}from"./chunk-tdmn21z0.js";import{lA as n}from"./chunk-s8mghr5a.js";function RJ(...F){return F.reduce((J,Q)=>({...J,...Q!=null?Q:{}}),{})}function NJ({tools:F=[],providerToolNames:J,resolveProviderToolName:Q}){var W;let X={},Y={};for(let Z of F)if(Z.type==="provider"){let $=(W=Q==null?void 0:Q(Z))!=null?W:(Z.id in J)?J[Z.id]:void 0;if($==null)continue;X[Z.name]=$,Y[$]=Z.name}return{toProviderToolName:(Z)=>{var $;return($=X[Z])!=null?$:Z},toCustomToolName:(Z)=>{var $;return($=Y[Z])!=null?$:Z}}}async function VJ(F,J){if(F==null)return Promise.resolve();let Q=J==null?void 0:J.abortSignal;return new Promise((W,X)=>{if(Q==null?void 0:Q.aborted){X(m());return}let Y=setTimeout(()=>{Z(),W()},F),Z=()=>{clearTimeout(Y),Q==null||Q.removeEventListener("abort",$)},$=()=>{Z(),X(m())};Q==null||Q.addEventListener("abort",$)})}function m(){return new DOMException("Delay was aborted","AbortError")}var TJ=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){if(this._promise)return this._promise;return this._promise=new Promise((F,J)=>{if(this.status.type==="resolved")F(this.status.value);else if(this.status.type==="rejected")J(this.status.error);this._resolve=F,this._reject=J}),this._promise}resolve(F){var J;if(this.status={type:"resolved",value:F},this._promise)(J=this._resolve)==null||J.call(this,F)}reject(F){var J;if(this.status={type:"rejected",error:F},this._promise)(J=this._reject)==null||J.call(this,F)}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function z(F){return Object.fromEntries([...F.headers])}var{btoa:GF,atob:CF}=globalThis;function _J(F){let J=F.replace(/-/g,"+").replace(/_/g,"/"),Q=CF(J);return Uint8Array.from(Q,(W)=>W.codePointAt(0))}function a(F){let J="";for(let Q=0;Q<F.length;Q++)J+=String.fromCodePoint(F[Q]);return GF(J)}function jJ(F){return F instanceof Uint8Array?a(F):F}function kJ(F){if(F.type==="url")return F.url;return`data:${F.mediaType};base64,${typeof F.data==="string"?F.data:a(F.data)}`}function bJ(F,J={}){let{useArrayBrackets:Q=!0}=J,W=new FormData;for(let[X,Y]of Object.entries(F)){if(Y==null)continue;if(Array.isArray(Y)){if(Y.length===1){W.append(X,Y[0]);continue}let Z=Q?`${X}[]`:X;for(let $ of Y)W.append(Z,$);continue}W.append(X,Y)}return W}var s="AI_DownloadError",r=`vercel.ai.error.${s}`,MF=Symbol.for(r),u,i,O=class extends(i=k,u=MF,i){constructor({url:F,statusCode:J,statusText:Q,cause:W,message:X=W==null?`Failed to download ${F}: ${J} ${Q}`:`Failed to download ${F}: ${W}`}){super({name:s,message:X,cause:W});this[u]=!0,this.url=F,this.statusCode=J,this.statusText=Q}static isInstance(F){return k.hasMarker(F,r)}},e=2147483648;async function KF({response:F,url:J,maxBytes:Q=e}){let W=F.headers.get("content-length");if(W!=null){let G=parseInt(W,10);if(!isNaN(G)&&G>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes (Content-Length: ${G}).`})}let X=F.body;if(X==null)return new Uint8Array(0);let Y=X.getReader(),Z=[],$=0;try{while(!0){let{done:G,value:N}=await Y.read();if(G)break;if($+=N.length,$>Q)throw new O({url:J,message:`Download of ${J} exceeded maximum size of ${Q} bytes.`});Z.push(N)}}finally{try{await Y.cancel()}finally{Y.releaseLock()}}let U=new Uint8Array($),L=0;for(let G of Z)U.set(G,L),L+=G.length;return U}function p(F){let J;try{J=new URL(F)}catch(W){throw new O({url:F,message:`Invalid URL: ${F}`})}if(J.protocol==="data:")return;if(J.protocol!=="http:"&&J.protocol!=="https:")throw new O({url:F,message:`URL scheme must be http, https, or data, got ${J.protocol}`});let Q=J.hostname;if(!Q)throw new O({url:F,message:"URL must have a hostname"});if(Q==="localhost"||Q.endsWith(".local")||Q.endsWith(".localhost"))throw new O({url:F,message:`URL with hostname ${Q} is not allowed`});if(Q.startsWith("[")&&Q.endsWith("]")){let W=Q.slice(1,-1);if(qF(W))throw new O({url:F,message:`URL with IPv6 address ${Q} is not allowed`});return}if(FF(Q)){if(b(Q))throw new O({url:F,message:`URL with IP address ${Q} is not allowed`});return}}function FF(F){let J=F.split(".");if(J.length!==4)return!1;return J.every((Q)=>{let W=Number(Q);return Number.isInteger(W)&&W>=0&&W<=255&&String(W)===Q})}function b(F){let J=F.split(".").map(Number),[Q,W]=J;if(Q===0)return!0;if(Q===10)return!0;if(Q===127)return!0;if(Q===169&&W===254)return!0;if(Q===172&&W>=16&&W<=31)return!0;if(Q===192&&W===168)return!0;return!1}function qF(F){let J=F.toLowerCase();if(J==="::1")return!0;if(J==="::")return!0;if(J.startsWith("::ffff:")){let Q=J.slice(7);if(FF(Q))return b(Q);let W=Q.split(":");if(W.length===2){let X=parseInt(W[0],16),Y=parseInt(W[1],16);if(!isNaN(X)&&!isNaN(Y)){let Z=X>>8&255,$=X&255,U=Y>>8&255,L=Y&255;return b(`${Z}.${$}.${U}.${L}`)}}}if(J.startsWith("fc")||J.startsWith("fd"))return!0;if(J.startsWith("fe80"))return!0;return!1}async function gJ(F,J){var Q,W;p(F);try{let X=await fetch(F,{signal:J==null?void 0:J.abortSignal});if(X.redirected)p(X.url);if(!X.ok)throw new O({url:F,statusCode:X.status,statusText:X.statusText});let Y=await KF({response:X,url:F,maxBytes:(Q=J==null?void 0:J.maxBytes)!=null?Q:e}),Z=(W=X.headers.get("content-type"))!=null?W:void 0;return new Blob([Y],Z?{type:Z}:void 0)}catch(X){if(O.isInstance(X))throw X;throw new O({url:F,cause:X})}}var DF=({prefix:F,size:J=16,alphabet:Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:W="-"}={})=>{let X=()=>{let Y=Q.length,Z=Array(J);for(let $=0;$<J;$++)Z[$]=Q[Math.random()*Y|0];return Z.join("")};if(F==null)return X;if(Q.includes(W))throw new V({argument:"separator",message:`The separator "${W}" must not be part of the alphabet "${Q}".`});return()=>`${F}${W}${X()}`},vJ=DF();function yJ(F){if(F==null)return"unknown error";if(typeof F==="string")return F;if(F instanceof Error)return F.message;return JSON.stringify(F)}function R(F){return(F instanceof Error||F instanceof DOMException)&&(F.name==="AbortError"||F.name==="ResponseAborted"||F.name==="TimeoutError")}var OF=["fetch failed","failed to fetch"],IF=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function PF(F){if(!(F instanceof Error))return!1;let J=F.code;if(typeof J==="string"&&IF.includes(J))return!0;return!1}function JF({error:F,url:J,requestBodyValues:Q}){if(R(F))return F;if(F instanceof TypeError&&OF.includes(F.message.toLowerCase())){let W=F.cause;if(W!=null)return new C({message:`Cannot connect to API: ${W.message}`,cause:W,url:J,requestBodyValues:Q,isRetryable:!0})}if(PF(F))return new C({message:`Cannot connect to API: ${F.message}`,cause:F,url:J,requestBodyValues:Q,isRetryable:!0});return F}function QF(F=globalThis){var J,Q,W;if(F.window)return"runtime/browser";if((J=F.navigator)==null?void 0:J.userAgent)return`runtime/${F.navigator.userAgent.toLowerCase()}`;if((W=(Q=F.process)==null?void 0:Q.versions)==null?void 0:W.node)return`runtime/node.js/${F.process.version.substring(0)}`;if(F.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function zF(F){if(F==null)return{};let J={};if(F instanceof Headers)F.forEach((Q,W)=>{J[W.toLowerCase()]=Q});else{if(!Array.isArray(F))F=Object.entries(F);for(let[Q,W]of F)if(W!=null)J[Q.toLowerCase()]=W}return J}function WF(F,...J){let Q=new Headers(zF(F)),W=Q.get("user-agent")||"";return Q.set("user-agent",[W,...J].filter(Boolean).join(" ")),Object.fromEntries(Q.entries())}var XF="4.0.23",AF=()=>globalThis.fetch,uJ=async({url:F,headers:J={},successfulResponseHandler:Q,failedResponseHandler:W,abortSignal:X,fetch:Y=AF()})=>{try{let Z=await Y(F,{method:"GET",headers:WF(J,`ai-sdk/provider-utils/${XF}`,QF()),signal:X}),$=z(Z);if(!Z.ok){let U;try{U=await W({response:Z,url:F,requestBodyValues:{}})}catch(L){if(R(L)||C.isInstance(L))throw L;throw new C({message:"Failed to process error response",cause:L,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}throw U.value}try{return await Q({response:Z,url:F,requestBodyValues:{}})}catch(U){if(U instanceof Error){if(R(U)||C.isInstance(U))throw U}throw new C({message:"Failed to process successful response",cause:U,statusCode:Z.status,url:F,responseHeaders:$,requestBodyValues:{}})}}catch(Z){throw JF({error:Z,url:F,requestBodyValues:{}})}};function iJ(F){return F!=null}function pJ({mediaType:F,url:J,supportedUrls:Q}){return J=J.toLowerCase(),F=F.toLowerCase(),Object.entries(Q).map(([W,X])=>{let Y=W.toLowerCase();return Y==="*"||Y==="*/*"?{mediaTypePrefix:"",regexes:X}:{mediaTypePrefix:Y.replace(/\*/,""),regexes:X}}).filter(({mediaTypePrefix:W})=>F.startsWith(W)).flatMap(({regexes:W})=>W).some((W)=>W.test(J))}function cJ({apiKey:F,environmentVariableName:J,apiKeyParameterName:Q="apiKey",description:W}){if(typeof F==="string")return F;if(F!=null)throw new A({message:`${W} API key must be a string.`});if(typeof process>"u")throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new A({message:`${W} API key is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new A({message:`${W} API key must be a string. The value of the ${J} environment variable is not a string.`});return F}function dJ({settingValue:F,environmentVariableName:J}){if(typeof F==="string")return F;if(F!=null||typeof process>"u")return;if(F=process.env[J],F==null||typeof F!=="string")return;return F}function fJ({settingValue:F,environmentVariableName:J,settingName:Q,description:W}){if(typeof F==="string")return F;if(F!=null)throw new H({message:`${W} setting must be a string.`});if(typeof process>"u")throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter. Environment variables are not supported in this environment.`});if(F=process.env[J],F==null)throw new H({message:`${W} setting is missing. Pass it using the '${Q}' parameter or the ${J} environment variable.`});if(typeof F!=="string")throw new H({message:`${W} setting must be a string. The value of the ${J} environment variable is not a string.`});return F}function tJ(F){var J;let[Q,W=""]=F.toLowerCase().split("/");return(J={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[W])!=null?J:W}var HF=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,BF=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function l(F){let J=JSON.parse(F);if(J===null||typeof J!=="object")return J;if(HF.test(F)===!1&&BF.test(F)===!1)return J;return RF(J)}function RF(F){let J=[F];while(J.length){let Q=J;J=[];for(let W of Q){if(Object.prototype.hasOwnProperty.call(W,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(W,"constructor")&&W.constructor!==null&&typeof W.constructor==="object"&&Object.prototype.hasOwnProperty.call(W.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let X in W){let Y=W[X];if(Y&&typeof Y==="object")J.push(Y)}}}return F}function x(F){let{stackTraceLimit:J}=Error;try{Error.stackTraceLimit=0}catch(Q){return l(F)}try{return l(F)}finally{Error.stackTraceLimit=J}}function v(F){if(F.type==="object"||Array.isArray(F.type)&&F.type.includes("object")){F.additionalProperties=!1;let{properties:Q}=F;if(Q!=null)for(let W of Object.keys(Q))Q[W]=P(Q[W])}if(F.items!=null)F.items=Array.isArray(F.items)?F.items.map(P):P(F.items);if(F.anyOf!=null)F.anyOf=F.anyOf.map(P);if(F.allOf!=null)F.allOf=F.allOf.map(P);if(F.oneOf!=null)F.oneOf=F.oneOf.map(P);let{definitions:J}=F;if(J!=null)for(let Q of Object.keys(J))J[Q]=P(J[Q]);return F}function P(F){if(typeof F==="boolean")return F;return v(F)}var NF=Symbol("Let zodToJsonSchema decide on which parser to use"),c={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},VF=(F)=>typeof F==="string"?{...c,name:F}:{...c,...F};function K(){return{}}function TF(F,J){var Q,W,X;let Y={type:"array"};if(((Q=F.type)==null?void 0:Q._def)&&((X=(W=F.type)==null?void 0:W._def)==null?void 0:X.typeName)!==w.ZodAny)Y.items=E(F.type._def,{...J,currentPath:[...J.currentPath,"items"]});if(F.minLength)Y.minItems=F.minLength.value;if(F.maxLength)Y.maxItems=F.maxLength.value;if(F.exactLength)Y.minItems=F.exactLength.value,Y.maxItems=F.exactLength.value;return Y}function _F(F){let J={type:"integer",format:"int64"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function jF(){return{type:"boolean"}}function YF(F,J){return E(F.type._def,J)}var kF=(F,J)=>{return E(F.innerType._def,J)};function ZF(F,J,Q){let W=Q!=null?Q:J.dateStrategy;if(Array.isArray(W))return{anyOf:W.map((X,Y)=>ZF(F,J,X))};switch(W){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return bF(F)}}var bF=(F)=>{let J={type:"integer",format:"unix-time"};for(let Q of F.checks)switch(Q.kind){case"min":J.minimum=Q.value;break;case"max":J.maximum=Q.value;break}return J};function SF(F,J){return{...E(F.innerType._def,J),default:F.defaultValue()}}function gF(F,J){return J.effectStrategy==="input"?E(F.schema._def,J):K()}function xF(F){return{type:"string",enum:Array.from(F.values)}}var vF=(F)=>{if("type"in F&&F.type==="string")return!1;return"allOf"in F};function yF(F,J){let Q=[E(F.left._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),E(F.right._def,{...J,currentPath:[...J.currentPath,"allOf","1"]})].filter((X)=>!!X),W=[];return Q.forEach((X)=>{if(vF(X))W.push(...X.allOf);else{let Y=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Z,...$}=X;Y=$}W.push(Y)}}),W.length?{allOf:W}:void 0}function hF(F){let J=typeof F.value;if(J!=="bigint"&&J!=="number"&&J!=="boolean"&&J!=="string")return{type:Array.isArray(F.value)?"array":"object"};return{type:J==="bigint"?"integer":J,const:F.value}}var _=void 0,q={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(_===void 0)_=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return _},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function $F(F,J){let Q={type:"string"};if(F.checks)for(let W of F.checks)switch(W.kind){case"min":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value;break;case"max":Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"email":switch(J.emailStrategy){case"format:email":D(Q,"email",W.message,J);break;case"format:idn-email":D(Q,"idn-email",W.message,J);break;case"pattern:zod":M(Q,q.email,W.message,J);break}break;case"url":D(Q,"uri",W.message,J);break;case"uuid":D(Q,"uuid",W.message,J);break;case"regex":M(Q,W.regex,W.message,J);break;case"cuid":M(Q,q.cuid,W.message,J);break;case"cuid2":M(Q,q.cuid2,W.message,J);break;case"startsWith":M(Q,RegExp(`^${j(W.value,J)}`),W.message,J);break;case"endsWith":M(Q,RegExp(`${j(W.value,J)}$`),W.message,J);break;case"datetime":D(Q,"date-time",W.message,J);break;case"date":D(Q,"date",W.message,J);break;case"time":D(Q,"time",W.message,J);break;case"duration":D(Q,"duration",W.message,J);break;case"length":Q.minLength=typeof Q.minLength==="number"?Math.max(Q.minLength,W.value):W.value,Q.maxLength=typeof Q.maxLength==="number"?Math.min(Q.maxLength,W.value):W.value;break;case"includes":{M(Q,RegExp(j(W.value,J)),W.message,J);break}case"ip":{if(W.version!=="v6")D(Q,"ipv4",W.message,J);if(W.version!=="v4")D(Q,"ipv6",W.message,J);break}case"base64url":M(Q,q.base64url,W.message,J);break;case"jwt":M(Q,q.jwt,W.message,J);break;case"cidr":{if(W.version!=="v6")M(Q,q.ipv4Cidr,W.message,J);if(W.version!=="v4")M(Q,q.ipv6Cidr,W.message,J);break}case"emoji":M(Q,q.emoji(),W.message,J);break;case"ulid":{M(Q,q.ulid,W.message,J);break}case"base64":{switch(J.base64Strategy){case"format:binary":{D(Q,"binary",W.message,J);break}case"contentEncoding:base64":{Q.contentEncoding="base64";break}case"pattern:zod":{M(Q,q.base64,W.message,J);break}}break}case"nanoid":M(Q,q.nanoid,W.message,J);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return Q}function j(F,J){return J.patternStrategy==="escape"?uF(F):F}var mF=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function uF(F){let J="";for(let Q=0;Q<F.length;Q++){if(!mF.has(F[Q]))J+="\\";J+=F[Q]}return J}function D(F,J,Q,W){var X;if(F.format||((X=F.anyOf)==null?void 0:X.some((Y)=>Y.format))){if(!F.anyOf)F.anyOf=[];if(F.format)F.anyOf.push({format:F.format}),delete F.format;F.anyOf.push({format:J,...Q&&W.errorMessages&&{errorMessage:{format:Q}}})}else F.format=J}function M(F,J,Q,W){var X;if(F.pattern||((X=F.allOf)==null?void 0:X.some((Y)=>Y.pattern))){if(!F.allOf)F.allOf=[];if(F.pattern)F.allOf.push({pattern:F.pattern}),delete F.pattern;F.allOf.push({pattern:d(J,W),...Q&&W.errorMessages&&{errorMessage:{pattern:Q}}})}else F.pattern=d(J,W)}function d(F,J){var Q;if(!J.applyRegexFlags||!F.flags)return F.source;let W={i:F.flags.includes("i"),m:F.flags.includes("m"),s:F.flags.includes("s")},X=W.i?F.source.toLowerCase():F.source,Y="",Z=!1,$=!1,U=!1;for(let L=0;L<X.length;L++){if(Z){Y+=X[L],Z=!1;continue}if(W.i){if($){if(X[L].match(/[a-z]/)){if(U)Y+=X[L],Y+=`${X[L-2]}-${X[L]}`.toUpperCase(),U=!1;else if(X[L+1]==="-"&&((Q=X[L+2])==null?void 0:Q.match(/[a-z]/)))Y+=X[L],U=!0;else Y+=`${X[L]}${X[L].toUpperCase()}`;continue}}else if(X[L].match(/[a-z]/)){Y+=`[${X[L]}${X[L].toUpperCase()}]`;continue}}if(W.m){if(X[L]==="^"){Y+=`(^|(?<=[\r
|
|
3
3
|
]))`;continue}else if(X[L]==="$"){Y+=`($|(?=[\r
|
|
4
4
|
]))`;continue}}if(W.s&&X[L]==="."){Y+=$?`${X[L]}\r
|
|
5
5
|
`:`[${X[L]}\r
|
|
6
6
|
]`;continue}if(Y+=X[L],X[L]==="\\")Z=!0;else if($&&X[L]==="]")$=!1;else if(!$&&X[L]==="[")$=!0}try{new RegExp(Y)}catch(L){return console.warn(`Could not convert regex pattern at ${J.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),F.source}return Y}function LF(F,J){var Q,W,X,Y,Z,$;let U={type:"object",additionalProperties:(Q=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]}))!=null?Q:J.allowedAdditionalProperties};if(((W=F.keyType)==null?void 0:W._def.typeName)===w.ZodString&&((X=F.keyType._def.checks)==null?void 0:X.length)){let{type:L,...G}=$F(F.keyType._def,J);return{...U,propertyNames:G}}else if(((Y=F.keyType)==null?void 0:Y._def.typeName)===w.ZodEnum)return{...U,propertyNames:{enum:F.keyType._def.values}};else if(((Z=F.keyType)==null?void 0:Z._def.typeName)===w.ZodBranded&&F.keyType._def.type._def.typeName===w.ZodString&&(($=F.keyType._def.type._def.checks)==null?void 0:$.length)){let{type:L,...G}=YF(F.keyType._def,J);return{...U,propertyNames:G}}return U}function iF(F,J){if(J.mapStrategy==="record")return LF(F,J);let Q=E(F.keyType._def,{...J,currentPath:[...J.currentPath,"items","items","0"]})||K(),W=E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items","items","1"]})||K();return{type:"array",maxItems:125,items:{type:"array",items:[Q,W],minItems:2,maxItems:2}}}function pF(F){let J=F.values,W=Object.keys(F.values).filter((Y)=>{return typeof J[J[Y]]!=="number"}).map((Y)=>J[Y]),X=Array.from(new Set(W.map((Y)=>typeof Y)));return{type:X.length===1?X[0]==="string"?"string":"number":["string","number"],enum:W}}function lF(){return{not:K()}}function cF(){return{type:"null"}}var S={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function dF(F,J){let Q=F.options instanceof Map?Array.from(F.options.values()):F.options;if(Q.every((W)=>(W._def.typeName in S)&&(!W._def.checks||!W._def.checks.length))){let W=Q.reduce((X,Y)=>{let Z=S[Y._def.typeName];return Z&&!X.includes(Z)?[...X,Z]:X},[]);return{type:W.length>1?W:W[0]}}else if(Q.every((W)=>W._def.typeName==="ZodLiteral"&&!W.description)){let W=Q.reduce((X,Y)=>{let Z=typeof Y._def.value;switch(Z){case"string":case"number":case"boolean":return[...X,Z];case"bigint":return[...X,"integer"];case"object":if(Y._def.value===null)return[...X,"null"];case"symbol":case"undefined":case"function":default:return X}},[]);if(W.length===Q.length){let X=W.filter((Y,Z,$)=>$.indexOf(Y)===Z);return{type:X.length>1?X:X[0],enum:Q.reduce((Y,Z)=>{return Y.includes(Z._def.value)?Y:[...Y,Z._def.value]},[])}}}else if(Q.every((W)=>W._def.typeName==="ZodEnum"))return{type:"string",enum:Q.reduce((W,X)=>[...W,...X._def.values.filter((Y)=>!W.includes(Y))],[])};return nF(F,J)}var nF=(F,J)=>{let Q=(F.options instanceof Map?Array.from(F.options.values()):F.options).map((W,X)=>E(W._def,{...J,currentPath:[...J.currentPath,"anyOf",`${X}`]})).filter((W)=>!!W&&(!J.strictUnions||typeof W==="object"&&Object.keys(W).length>0));return Q.length?{anyOf:Q}:void 0};function fF(F,J){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(F.innerType._def.typeName)&&(!F.innerType._def.checks||!F.innerType._def.checks.length))return{type:[S[F.innerType._def.typeName],"null"]};let Q=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","0"]});return Q&&{anyOf:[Q,{type:"null"}]}}function tF(F){let J={type:"number"};if(!F.checks)return J;for(let Q of F.checks)switch(Q.kind){case"int":J.type="integer";break;case"min":if(Q.inclusive)J.minimum=Q.value;else J.exclusiveMinimum=Q.value;break;case"max":if(Q.inclusive)J.maximum=Q.value;else J.exclusiveMaximum=Q.value;break;case"multipleOf":J.multipleOf=Q.value;break}return J}function oF(F,J){let Q={type:"object",properties:{}},W=[],X=F.shape();for(let Z in X){let $=X[Z];if($===void 0||$._def===void 0)continue;let U=sF($),L=E($._def,{...J,currentPath:[...J.currentPath,"properties",Z],propertyPath:[...J.currentPath,"properties",Z]});if(L===void 0)continue;if(Q.properties[Z]=L,!U)W.push(Z)}if(W.length)Q.required=W;let Y=aF(F,J);if(Y!==void 0)Q.additionalProperties=Y;return Q}function aF(F,J){if(F.catchall._def.typeName!=="ZodNever")return E(F.catchall._def,{...J,currentPath:[...J.currentPath,"additionalProperties"]});switch(F.unknownKeys){case"passthrough":return J.allowedAdditionalProperties;case"strict":return J.rejectedAdditionalProperties;case"strip":return J.removeAdditionalStrategy==="strict"?J.allowedAdditionalProperties:J.rejectedAdditionalProperties}}function sF(F){try{return F.isOptional()}catch(J){return!0}}var rF=(F,J)=>{var Q;if(J.currentPath.toString()===((Q=J.propertyPath)==null?void 0:Q.toString()))return E(F.innerType._def,J);let W=E(F.innerType._def,{...J,currentPath:[...J.currentPath,"anyOf","1"]});return W?{anyOf:[{not:K()},W]}:K()},eF=(F,J)=>{if(J.pipeStrategy==="input")return E(F.in._def,J);else if(J.pipeStrategy==="output")return E(F.out._def,J);let Q=E(F.in._def,{...J,currentPath:[...J.currentPath,"allOf","0"]}),W=E(F.out._def,{...J,currentPath:[...J.currentPath,"allOf",Q?"1":"0"]});return{allOf:[Q,W].filter((X)=>X!==void 0)}};function FJ(F,J){return E(F.type._def,J)}function JJ(F,J){let W={type:"array",uniqueItems:!0,items:E(F.valueType._def,{...J,currentPath:[...J.currentPath,"items"]})};if(F.minSize)W.minItems=F.minSize.value;if(F.maxSize)W.maxItems=F.maxSize.value;return W}function QJ(F,J){if(F.rest)return{type:"array",minItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[]),additionalItems:E(F.rest._def,{...J,currentPath:[...J.currentPath,"additionalItems"]})};else return{type:"array",minItems:F.items.length,maxItems:F.items.length,items:F.items.map((Q,W)=>E(Q._def,{...J,currentPath:[...J.currentPath,"items",`${W}`]})).reduce((Q,W)=>W===void 0?Q:[...Q,W],[])}}function WJ(){return{not:K()}}function XJ(){return K()}var YJ=(F,J)=>{return E(F.innerType._def,J)},ZJ=(F,J,Q)=>{switch(J){case w.ZodString:return $F(F,Q);case w.ZodNumber:return tF(F);case w.ZodObject:return oF(F,Q);case w.ZodBigInt:return _F(F);case w.ZodBoolean:return jF();case w.ZodDate:return ZF(F,Q);case w.ZodUndefined:return WJ();case w.ZodNull:return cF();case w.ZodArray:return TF(F,Q);case w.ZodUnion:case w.ZodDiscriminatedUnion:return dF(F,Q);case w.ZodIntersection:return yF(F,Q);case w.ZodTuple:return QJ(F,Q);case w.ZodRecord:return LF(F,Q);case w.ZodLiteral:return hF(F);case w.ZodEnum:return xF(F);case w.ZodNativeEnum:return pF(F);case w.ZodNullable:return fF(F,Q);case w.ZodOptional:return rF(F,Q);case w.ZodMap:return iF(F,Q);case w.ZodSet:return JJ(F,Q);case w.ZodLazy:return()=>F.getter()._def;case w.ZodPromise:return FJ(F,Q);case w.ZodNaN:case w.ZodNever:return lF();case w.ZodEffects:return gF(F,Q);case w.ZodAny:return K();case w.ZodUnknown:return XJ();case w.ZodDefault:return SF(F,Q);case w.ZodBranded:return YF(F,Q);case w.ZodReadonly:return YJ(F,Q);case w.ZodCatch:return kF(F,Q);case w.ZodPipeline:return eF(F,Q);case w.ZodFunction:case w.ZodVoid:case w.ZodSymbol:return;default:return((W)=>{return})(J)}},$J=(F,J)=>{let Q=0;for(;Q<F.length&&Q<J.length;Q++)if(F[Q]!==J[Q])break;return[(F.length-Q).toString(),...J.slice(Q)].join("/")};function E(F,J,Q=!1){var W;let X=J.seen.get(F);if(J.override){let U=(W=J.override)==null?void 0:W.call(J,F,J,X,Q);if(U!==NF)return U}if(X&&!Q){let U=LJ(X,J);if(U!==void 0)return U}let Y={def:F,path:J.currentPath,jsonSchema:void 0};J.seen.set(F,Y);let Z=ZJ(F,F.typeName,J),$=typeof Z==="function"?E(Z(),J):Z;if($)UJ(F,J,$);if(J.postProcess){let U=J.postProcess($,F,J);return Y.jsonSchema=$,U}return Y.jsonSchema=$,$}var LJ=(F,J)=>{switch(J.$refStrategy){case"root":return{$ref:F.path.join("/")};case"relative":return{$ref:$J(J.currentPath,F.path)};case"none":case"seen":{if(F.path.length<J.currentPath.length&&F.path.every((Q,W)=>J.currentPath[W]===Q))return console.warn(`Recursive reference detected at ${J.currentPath.join("/")}! Defaulting to any`),K();return J.$refStrategy==="seen"?K():void 0}}},UJ=(F,J,Q)=>{if(F.description)Q.description=F.description;return Q},wJ=(F)=>{let J=VF(F),Q=J.name!==void 0?[...J.basePath,J.definitionPath,J.name]:J.basePath;return{...J,currentPath:Q,propertyPath:void 0,seen:new Map(Object.entries(J.definitions).map(([W,X])=>[X._def,{def:X._def,path:[...J.basePath,J.definitionPath,W],jsonSchema:void 0}]))}},EJ=(F,J)=>{var Q;let W=wJ(J),X=typeof J==="object"&&J.definitions?Object.entries(J.definitions).reduce((L,[G,N])=>{var h;return{...L,[G]:(h=E(N._def,{...W,currentPath:[...W.basePath,W.definitionPath,G]},!0))!=null?h:K()}},{}):void 0,Y=typeof J==="string"?J:(J==null?void 0:J.nameStrategy)==="title"?void 0:J==null?void 0:J.name,Z=(Q=E(F._def,Y===void 0?W:{...W,currentPath:[...W.basePath,W.definitionPath,Y]},!1))!=null?Q:K(),$=typeof J==="object"&&J.name!==void 0&&J.nameStrategy==="title"?J.name:void 0;if($!==void 0)Z.title=$;let U=Y===void 0?X?{...Z,[W.definitionPath]:X}:Z:{$ref:[...W.$refStrategy==="relative"?[]:W.basePath,W.definitionPath,Y].join("/"),[W.definitionPath]:{...X,[Y]:Z}};return U.$schema="http://json-schema.org/draft-07/schema#",U},g=Symbol.for("vercel.ai.schema");function JQ(F){let J;return()=>{if(J==null)J=F();return J}}function T(F,{validate:J}={}){return{[g]:!0,_type:void 0,get jsonSchema(){if(typeof F==="function")F=F();return F},validate:J}}function GJ(F){return typeof F==="object"&&F!==null&&g in F&&F[g]===!0&&"jsonSchema"in F&&"validate"in F}function CJ(F){return F==null?T({properties:{},additionalProperties:!1}):GJ(F)?F:("~standard"in F)?F["~standard"].vendor==="zod"?OJ(F):MJ(F):F()}function MJ(F){return T(()=>v(F["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(J)=>{let Q=await F["~standard"].validate(J);return"value"in Q?{success:!0,value:Q.value}:{success:!1,error:new I({value:J,cause:Q.issues})}}})}function KJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return T(()=>EJ(F,{$refStrategy:W?"root":"none"}),{validate:async(X)=>{let Y=await F.safeParseAsync(X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function qJ(F,J){var Q;let W=(Q=J==null?void 0:J.useReferences)!=null?Q:!1;return T(()=>v(n(F,{target:"draft-7",io:"input",reused:W?"ref":"inline"})),{validate:async(X)=>{let Y=await f(F,X);return Y.success?{success:!0,value:Y.data}:{success:!1,error:Y.error}}})}function DJ(F){return"_zod"in F}function OJ(F,J){if(DJ(F))return qJ(F,J);else return KJ(F,J)}async function IJ({value:F,schema:J,context:Q}){let W=await y({value:F,schema:J,context:Q});if(!W.success)throw I.wrap({value:F,cause:W.error,context:Q});return W.value}async function y({value:F,schema:J,context:Q}){let W=CJ(J);try{if(W.validate==null)return{success:!0,value:F,rawValue:F};let X=await W.validate(F);if(X.success)return{success:!0,value:X.value,rawValue:F};return{success:!1,error:I.wrap({value:F,cause:X.error,context:Q}),rawValue:F}}catch(X){return{success:!1,error:I.wrap({value:F,cause:X,context:Q}),rawValue:F}}}async function PJ({text:F,schema:J}){try{let Q=x(F);if(J==null)return Q;return IJ({value:Q,schema:J})}catch(Q){if(B.isInstance(Q)||I.isInstance(Q))throw Q;throw new B({text:F,cause:Q})}}async function UF({text:F,schema:J}){try{let Q=x(F);if(J==null)return{success:!0,value:Q,rawValue:Q};return await y({value:Q,schema:J})}catch(Q){return{success:!1,error:B.isInstance(Q)?Q:new B({text:F,cause:Q}),rawValue:void 0}}}function QQ(F){try{return x(F),!0}catch(J){return!1}}function zJ({stream:F,schema:J}){return F.pipeThrough(new TextDecoderStream).pipeThrough(new o).pipeThrough(new TransformStream({async transform({data:Q},W){if(Q==="[DONE]")return;W.enqueue(await UF({text:Q,schema:J}))}}))}async function YQ({provider:F,providerOptions:J,schema:Q}){if((J==null?void 0:J[F])==null)return;let W=await y({value:J[F],schema:Q});if(!W.success)throw new V({argument:"providerOptions",message:`invalid ${F} provider options`,cause:W.error});return W.value}var AJ=()=>globalThis.fetch,$Q=async({url:F,headers:J,body:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>wF({url:F,headers:{"Content-Type":"application/json",...J},body:{content:JSON.stringify(Q),values:Q},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),LQ=async({url:F,headers:J,formData:Q,failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z})=>wF({url:F,headers:J,body:{content:Q,values:Object.fromEntries(Q.entries())},failedResponseHandler:W,successfulResponseHandler:X,abortSignal:Y,fetch:Z}),wF=async({url:F,headers:J={},body:Q,successfulResponseHandler:W,failedResponseHandler:X,abortSignal:Y,fetch:Z=AJ()})=>{try{let $=await Z(F,{method:"POST",headers:WF(J,`ai-sdk/provider-utils/${XF}`,QF()),body:Q.content,signal:Y}),U=z($);if(!$.ok){let L;try{L=await X({response:$,url:F,requestBodyValues:Q.values})}catch(G){if(R(G)||C.isInstance(G))throw G;throw new C({message:"Failed to process error response",cause:G,statusCode:$.status,url:F,responseHeaders:U,requestBodyValues:Q.values})}throw L.value}try{return await W({response:$,url:F,requestBodyValues:Q.values})}catch(L){if(L instanceof Error){if(R(L)||C.isInstance(L))throw L}throw new C({message:"Failed to process successful response",cause:L,statusCode:$.status,url:F,responseHeaders:U,requestBodyValues:Q.values})}}catch($){throw JF({error:$,url:F,requestBodyValues:Q.values})}};function EF(F){return F}function UQ(F){return{...F,type:"dynamic"}}function wQ({id:F,inputSchema:J}){return({execute:Q,outputSchema:W,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:U,...L})=>EF({type:"provider",id:F,args:L,inputSchema:J,outputSchema:W,execute:Q,needsApproval:X,toModelOutput:Y,onInputStart:Z,onInputDelta:$,onInputAvailable:U})}function EQ({id:F,inputSchema:J,outputSchema:Q,supportsDeferredResults:W}){return({execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:U,onInputAvailable:L,...G})=>EF({type:"provider",id:F,args:G,inputSchema:J,outputSchema:Q,execute:X,needsApproval:Y,toModelOutput:Z,onInputStart:$,onInputDelta:U,onInputAvailable:L,supportsDeferredResults:W})}async function GQ(F){if(typeof F==="function")F=F();return Promise.resolve(F)}var MQ=({errorSchema:F,errorToMessage:J,isRetryable:Q})=>async({response:W,url:X,requestBodyValues:Y})=>{let Z=await W.text(),$=z(W);if(Z.trim()==="")return{responseHeaders:$,value:new C({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})};try{let U=await PJ({text:Z,schema:F});return{responseHeaders:$,value:new C({message:J(U),url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,data:U,isRetryable:Q==null?void 0:Q(W,U)})}}catch(U){return{responseHeaders:$,value:new C({message:W.statusText,url:X,requestBodyValues:Y,statusCode:W.status,responseHeaders:$,responseBody:Z,isRetryable:Q==null?void 0:Q(W)})}}},KQ=(F)=>async({response:J})=>{let Q=z(J);if(J.body==null)throw new t({});return{responseHeaders:Q,value:zJ({stream:J.body,schema:F})}},qQ=(F)=>async({response:J,url:Q,requestBodyValues:W})=>{let X=await J.text(),Y=await UF({text:X,schema:F}),Z=z(J);if(!Y.success)throw new C({message:"Invalid JSON response",cause:Y.error,statusCode:J.status,responseHeaders:Z,responseBody:X,url:Q,requestBodyValues:W});return{responseHeaders:Z,value:Y.value,rawValue:Y.rawValue}},DQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=z(F);if(!F.body)throw new C({message:"Response body is empty",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0});try{let X=await F.arrayBuffer();return{responseHeaders:W,value:new Uint8Array(X)}}catch(X){throw new C({message:"Failed to read response as array buffer",url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:void 0,cause:X})}},OQ=()=>async({response:F,url:J,requestBodyValues:Q})=>{let W=z(F),X=await F.text();return{responseHeaders:W,value:new C({message:F.statusText,url:J,requestBodyValues:Q,statusCode:F.status,responseHeaders:W,responseBody:X})}};function IQ(F){let J=F.indexOf(".");return J===-1?F:F.slice(0,J)}function PQ(F){return F==null?void 0:F.replace(/\/$/,"")}function HJ(F){return F!=null&&typeof F[Symbol.asyncIterator]==="function"}async function*zQ({execute:F,input:J,options:Q}){let W=F(J,Q);if(HJ(W)){let X;for await(let Y of W)X=Y,yield{type:"preliminary",output:Y};yield{type:"final",output:X}}else yield{type:"final",output:await W}}
|
|
7
|
-
export{RJ as
|
|
7
|
+
export{RJ as tq,NJ as uq,VJ as vq,TJ as wq,z as xq,_J as yq,a as zq,jJ as Aq,kJ as Bq,bJ as Cq,O as Dq,e as Eq,KF as Fq,p as Gq,gJ as Hq,DF as Iq,vJ as Jq,yJ as Kq,R as Lq,QF as Mq,zF as Nq,WF as Oq,uJ as Pq,iJ as Qq,pJ as Rq,cJ as Sq,dJ as Tq,fJ as Uq,tJ as Vq,JQ as Wq,T as Xq,CJ as Yq,OJ as Zq,IJ as _q,y as $q,PJ as ar,UF as br,QQ as cr,zJ as dr,YQ as er,$Q as fr,LQ as gr,EF as hr,UQ as ir,wQ as jr,EQ as kr,GQ as lr,MQ as mr,KQ as nr,qQ as or,DQ as pr,OQ as qr,IQ as rr,PQ as sr,zQ as tr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-4sazy0nq.js";var e={"ui.sessionReview.title":"Altera\xE7\xF5es da sess\xE3o","ui.sessionReview.title.lastTurn":"Altera\xE7\xF5es do \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir ficheiro","ui.sessionReview.selection.line":"linha {{line}}","ui.sessionReview.selection.lines":"linhas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir tudo","ui.sessionReview.collapseAll":"Recolher tudo","ui.sessionReview.change.added":"Adicionado","ui.sessionReview.change.removed":"Removido","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"A carregar...","ui.sessionReview.image.placeholder":"Imagem","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"Limite: {{limit}} linhas alteradas. Atual: {{current}} linhas alteradas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar mesmo assim","ui.fileMedia.kind.image":"imagem","ui.fileMedia.kind.audio":"\xE1udio","ui.fileMedia.state.removed":"Ficheiro de {{kind}} removido.","ui.fileMedia.state.loading":"A carregar {{kind}}...","ui.fileMedia.state.error":"Imposs\xEDvel carregar {{kind}}.","ui.fileMedia.state.unavailable":"Pr\xE9-visualiza\xE7\xE3o de {{kind}} indispon\xEDvel.","ui.fileMedia.binary.title":"Ficheiro bin\xE1rio","ui.fileMedia.binary.description.path":"{{path}} \xE9 bin\xE1rio.","ui.fileMedia.binary.description.default":"Conte\xFAdo bin\xE1rio","ui.lineComment.label.prefix":"Comentar em ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"A comentar em ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Adicionar coment\xE1rio","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar passos","ui.sessionTurn.steps.hide":"Ocultar passos","ui.sessionTurn.summary.response":"Resposta","ui.sessionTurn.diff.showMore":"Mostrar mais altera\xE7\xF5es ({{count}})","ui.sessionTurn.diffs.changed":"Alterado","ui.sessionTurn.diffs.showAll":"Mostrar tudo","ui.sessionTurn.diffs.showLess":"Mostrar menos","ui.sessionTurn.diffs.more":"+{{count}} ficheiros","ui.sessionTurn.retry.retrying":"a tentar novamente","ui.sessionTurn.retry.inSeconds":"em {{seconds}}s","ui.sessionTurn.retry.attempt":"tentativa #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentativa #{{attempt}}","ui.sessionTurn.retry.geminiHot":"o gemini est\xE1 sobrecarregado neste momento","ui.sessionTurn.error.freeUsageExceeded":"Limite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"Adicionar cr\xE9ditos","ui.sessionTurn.status.delegating":"A delegar trabalho","ui.sessionTurn.status.planning":"A planear os pr\xF3ximos passos","ui.sessionTurn.status.gatheringContext":"A explorar","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"A pesquisar no c\xF3digo","ui.sessionTurn.status.searchingWeb":"A pesquisar na web","ui.sessionTurn.status.makingEdits":"A fazer edi\xE7\xF5es","ui.sessionTurn.status.runningCommands":"A executar comandos","ui.sessionTurn.status.thinking":"A pensar","ui.sessionTurn.status.thinkingWithTopic":"A pensar - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"A recolher pensamentos","ui.sessionTurn.status.consideringNextSteps":"A considerar os pr\xF3ximos passos","ui.messagePart.diagnostic.error":"Erro","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escrever","ui.messagePart.option.typeOwnAnswer":"Escreva a sua pr\xF3pria resposta","ui.messagePart.review.title":"Reveja as suas respostas","ui.messagePart.questions.dismissed":"Perguntas ignoradas","ui.messagePart.compaction":"Sess\xE3o compactada","ui.messagePart.context.read.one":"{{count}} leitura","ui.messagePart.context.read.other":"{{count}} leituras","ui.messagePart.context.search.one":"{{count}} pesquisa","ui.messagePart.context.search.other":"{{count}} pesquisas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.list.loading":"A carregar","ui.list.empty":"Sem resultados","ui.list.clearFilter":"Limpar filtro","ui.list.emptyWithFilter.prefix":"Sem resultados para","ui.list.emptyWithFilter.suffix":"","ui.fileSearch.placeholder":"Localizar","ui.fileSearch.previousMatch":"Correspond\xEAncia anterior","ui.fileSearch.nextMatch":"Pr\xF3xima correspond\xEAncia","ui.fileSearch.close":"Fechar pesquisa","ui.messageNav.newMessage":"Nova mensagem","ui.textField.copyToClipboard":"Copiar para a \xE1rea de transfer\xEAncia","ui.textField.copyLink":"Copiar liga\xE7\xE3o","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Pr\xE9-visualiza\xE7\xE3o de imagem","ui.scrollView.ariaLabel":"conte\xFAdo desloc\xE1vel","ui.tool.read":"Ler","ui.tool.loaded":"Carregado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.task":"Tarefa","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Pesquisa Web","ui.tool.codesearch":"Pesquisa de C\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Tarefas","ui.tool.todos.read":"Ler tarefas","ui.tool.questions":"Perguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.tool.skill":"Skill","ui.basicTool.called":"Chamado `{{tool}}`","ui.toolErrorCard.failed":"Falhou","ui.toolErrorCard.copyError":"Copiar erro","ui.common.file.one":"ficheiro","ui.common.file.other":"ficheiros","ui.common.question.one":"pergunta","ui.common.question.other":"perguntas","ui.common.add":"Adicionar","ui.common.back":"Voltar","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Ignorar","ui.common.close":"Fechar","ui.common.next":"Seguinte","ui.common.submit":"Enviar","ui.permission.deny":"Negar","ui.permission.allowAlways":"Permitir sempre","ui.permission.allowOnce":"Permitir uma vez","ui.message.expand":"Expandir mensagem","ui.message.collapse":"Recolher mensagem","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensagem","ui.message.forkMessage":"Bifurcar para nova sess\xE3o","ui.message.revertMessage":"Reverter mensagem","ui.message.copyResponse":"Copiar resposta","ui.message.copied":"Copiado","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s","ui.message.interrupted":"Interrompido","ui.message.queued":"Em fila","ui.message.attachment.alt":"anexo","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Criado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Corrigido","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sem resposta)","ui.question.review.notAnswered":"(n\xE3o respondida)","ui.question.multiHint":"Selecione todas as que se aplicam","ui.question.singleHint":"Selecione uma resposta","ui.question.custom.placeholder":"Escreva a sua resposta..."};export{e as dict};
|