@qitqode/qitqode-android-arm64 0.2.6 → 0.2.7
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-ztyy3ga3.js → chunk-01e3v1xz.js} +2 -2
- package/bundle/{chunk-p54bzjtv.js → chunk-060wbpz4.js} +1 -1
- package/bundle/{chunk-ypdt9mmr.js → chunk-0am156m5.js} +2 -2
- package/bundle/{chunk-gjd3wf8b.js → chunk-0bgssfvq.js} +1 -1
- package/bundle/{chunk-dnnkq5y4.js → chunk-0crgymtr.js} +2 -2
- package/bundle/chunk-0dzpjk7x.js +2 -0
- package/bundle/{chunk-bwbqkfv0.js → chunk-0ffmwhw7.js} +1 -1
- package/bundle/{chunk-h62chdmw.js → chunk-0g0jpw0z.js} +1 -1
- package/bundle/{chunk-mn9end71.js → chunk-0ggvqmnm.js} +1 -1
- package/bundle/{chunk-y7hgevfv.js → chunk-0gsw04hw.js} +2 -2
- package/bundle/{chunk-tkrwcjkr.js → chunk-0qpqd7nz.js} +2 -2
- package/bundle/{chunk-nty5z2cj.js → chunk-0tqmm8b8.js} +1 -1
- package/bundle/chunk-12fwmmcp.js +2 -0
- package/bundle/{chunk-8yvx3pgy.js → chunk-14d301ze.js} +1 -1
- package/bundle/{chunk-ngfxxfem.js → chunk-16srrzjr.js} +1 -1
- package/bundle/{chunk-45a4n21f.js → chunk-19pspc1p.js} +1 -1
- package/bundle/chunk-1a95ysv3.js +2 -0
- package/bundle/chunk-1akh8pk2.js +2 -0
- package/bundle/{chunk-5tky3csh.js → chunk-1ay97v74.js} +1 -1
- package/bundle/{chunk-6ar91jvd.js → chunk-1c0yp2gv.js} +1 -1
- package/bundle/{chunk-2md6sx8d.js → chunk-1rgt2vmt.js} +1 -1
- package/bundle/{chunk-3kpse7zy.js → chunk-1vpx7szf.js} +1 -1
- package/bundle/chunk-22qetqnp.js +2 -0
- package/bundle/{chunk-tm34qp8j.js → chunk-2bjfz4fb.js} +1 -1
- package/bundle/{chunk-a7rp46yt.js → chunk-2c26kxp4.js} +5 -5
- package/bundle/{chunk-xe69cnsk.js → chunk-2c41dncf.js} +1 -1
- package/bundle/{chunk-fyhqp4pb.js → chunk-2cjfezfr.js} +1 -1
- package/bundle/chunk-2d2a92kj.js +2 -0
- package/bundle/{chunk-m5dm7a1t.js → chunk-2pex3ak9.js} +1 -1
- package/bundle/chunk-2qrvkef8.js +2 -0
- package/bundle/chunk-2tppw8j9.js +2 -0
- package/bundle/chunk-2y87m7pe.js +2 -0
- package/bundle/{chunk-sfw5qddj.js → chunk-33jcxsbe.js} +1 -1
- package/bundle/{chunk-d0x5pbkm.js → chunk-3623jvcm.js} +1 -1
- package/bundle/{chunk-953pqp3w.js → chunk-368jx5dp.js} +1 -1
- package/bundle/chunk-3ft1dn9j.js +2 -0
- package/bundle/{chunk-rn83r0js.js → chunk-3k7016c2.js} +1 -1
- package/bundle/chunk-3rgct4bd.js +11 -0
- package/bundle/{chunk-68v3b6ns.js → chunk-3xdmxm5t.js} +2 -2
- package/bundle/{chunk-xwdxgg16.js → chunk-42q8vj0w.js} +1 -1
- package/bundle/{chunk-yhj01dz9.js → chunk-438faz6b.js} +2 -2
- package/bundle/chunk-4656qm05.js +2 -0
- package/bundle/chunk-46knch5z.js +2 -0
- package/bundle/{chunk-n23d0q00.js → chunk-4bewbvvr.js} +1 -1
- package/bundle/{chunk-pmg53fdd.js → chunk-4byvnx78.js} +1 -1
- package/bundle/chunk-4ftjx7ss.js +2 -0
- package/bundle/{chunk-jqk3v8d6.js → chunk-4fvbexr8.js} +1 -1
- package/bundle/{chunk-k1nh5sd2.js → chunk-4fy08jcj.js} +1 -1
- package/bundle/{chunk-0smnwqk6.js → chunk-4j76bf4j.js} +2 -2
- package/bundle/{chunk-5nrc5rhh.js → chunk-4jpab7ag.js} +1 -1
- package/bundle/{chunk-43ttzy29.js → chunk-4ngmjk8j.js} +2 -2
- package/bundle/{chunk-vnrjk2be.js → chunk-4rpgwgx9.js} +1 -1
- package/bundle/chunk-4sgy87h5.js +2 -0
- package/bundle/{chunk-65bmsp2t.js → chunk-4vzjdmts.js} +1 -1
- package/bundle/{chunk-zc0cdvcv.js → chunk-4zhrg3rv.js} +2 -2
- package/bundle/{chunk-5pzs51sp.js → chunk-52rdms56.js} +1 -1
- package/bundle/chunk-54hktc8h.js +2 -0
- package/bundle/{chunk-smznrv7k.js → chunk-55way0em.js} +1 -1
- package/bundle/{chunk-k4gsktts.js → chunk-59kk0mce.js} +1 -1
- package/bundle/chunk-59m55866.js +2 -0
- package/bundle/{chunk-q3h42a94.js → chunk-5b3v1x2c.js} +2 -2
- package/bundle/chunk-5js5nw7r.js +2 -0
- package/bundle/{chunk-f3zmdfqa.js → chunk-5nhwqg7c.js} +1 -1
- package/bundle/{chunk-tzb26ntq.js → chunk-5r05d901.js} +3 -3
- package/bundle/{chunk-avefgbjg.js → chunk-5zh91zk2.js} +2 -2
- package/bundle/chunk-61jn7908.js +2 -0
- package/bundle/chunk-61txdqz1.js +2 -0
- package/bundle/chunk-668g9wkg.js +2 -0
- package/bundle/chunk-6frhjpmt.js +2 -0
- package/bundle/{chunk-920z7g7j.js → chunk-6gqs1k7m.js} +1 -1
- package/bundle/chunk-6k14c8x1.js +5 -0
- package/bundle/{chunk-g42krp0z.js → chunk-6nxebcf8.js} +1 -1
- package/bundle/chunk-6r1jpj0h.js +2 -0
- package/bundle/{chunk-7bcm7gg1.js → chunk-6r48fje7.js} +1 -1
- package/bundle/{chunk-bqn6bqws.js → chunk-6ychs4wx.js} +1 -1
- package/bundle/{chunk-21rq4592.js → chunk-705xnxbc.js} +2 -2
- package/bundle/chunk-73fn4dqd.js +2 -0
- package/bundle/{chunk-q3nvzhyh.js → chunk-73xryfgn.js} +2 -2
- package/bundle/{chunk-q9tgdghx.js → chunk-76h0f86f.js} +1 -1
- package/bundle/{chunk-d51908mv.js → chunk-77h8tytk.js} +1 -1
- package/bundle/chunk-78j2c2je.js +2 -0
- package/bundle/chunk-78jt24ht.js +2 -0
- package/bundle/chunk-7j2vpavd.js +2 -0
- package/bundle/chunk-7nkxgm72.js +2 -0
- package/bundle/{chunk-f31yvp20.js → chunk-7p6mxch0.js} +1 -1
- package/bundle/{chunk-mhhtf0v3.js → chunk-7sq5dyv1.js} +1 -1
- package/bundle/{chunk-804vmbcd.js → chunk-7x2q1w0f.js} +1 -1
- package/bundle/{chunk-ac7482n2.js → chunk-7z96r2px.js} +2 -2
- package/bundle/chunk-84pjdenq.js +2 -0
- package/bundle/chunk-859pkecc.js +2 -0
- package/bundle/{chunk-y0527cg0.js → chunk-8hmt3avx.js} +1 -1
- package/bundle/{chunk-cng61dby.js → chunk-8jvfqh3b.js} +1 -1
- package/bundle/{chunk-8wwdrwf2.js → chunk-8p0t8qah.js} +1 -1
- package/bundle/chunk-8p249svd.js +2 -0
- package/bundle/{chunk-z1932c3f.js → chunk-8rfqv5he.js} +1 -1
- package/bundle/chunk-8rqbx4jw.js +2 -0
- package/bundle/chunk-8s3krfsm.js +2 -0
- package/bundle/{chunk-pb30kkbs.js → chunk-93pmbdz7.js} +6 -6
- package/bundle/{chunk-vcygx6hs.js → chunk-95am490c.js} +2 -2
- package/bundle/{chunk-k3dacdp5.js → chunk-9a6p1gdn.js} +8 -8
- package/bundle/chunk-9aafddkw.js +3 -0
- package/bundle/{chunk-0xrb12s8.js → chunk-9g9katgy.js} +2 -2
- package/bundle/{chunk-24rkf2gk.js → chunk-9qzwmt76.js} +1 -1
- package/bundle/chunk-9sv53kb4.js +2 -0
- package/bundle/chunk-9wbe0dkx.js +2 -0
- package/bundle/{chunk-bne5w117.js → chunk-9xxnwb33.js} +4 -4
- package/bundle/{chunk-fjbv3jht.js → chunk-a610qd3x.js} +1 -1
- package/bundle/{chunk-5c2438af.js → chunk-a76w2jwm.js} +1 -1
- package/bundle/{chunk-at22twxx.js → chunk-aa2n02qk.js} +2 -2
- package/bundle/{chunk-4pshnq6g.js → chunk-abv0fskc.js} +1 -1
- package/bundle/{chunk-7g66qc1v.js → chunk-acd72413.js} +2 -2
- package/bundle/{chunk-wkg3c643.js → chunk-ae7b11np.js} +2 -2
- package/bundle/{chunk-gy21fw82.js → chunk-agqss9ga.js} +2 -2
- package/bundle/chunk-aj5z8qd5.js +2 -0
- package/bundle/{chunk-8e4s6nc2.js → chunk-ajp53ksp.js} +1 -1
- package/bundle/{chunk-j164q40b.js → chunk-amp6mvbp.js} +2 -2
- package/bundle/{chunk-97q2t1yz.js → chunk-aqcpk2vg.js} +1 -1
- package/bundle/chunk-b0c2mvc0.js +2 -0
- package/bundle/{chunk-kth84vdn.js → chunk-b6eypnbj.js} +1 -1
- package/bundle/chunk-b79z8f94.js +2 -0
- package/bundle/chunk-bbwcsdy9.js +2 -0
- package/bundle/chunk-bbzjdbb9.js +2 -0
- package/bundle/{chunk-6evh2ke8.js → chunk-bd505nsd.js} +1 -1
- package/bundle/{chunk-p4027t94.js → chunk-bd84t3fb.js} +1 -1
- package/bundle/chunk-bh4s1yct.js +2 -0
- package/bundle/{chunk-rrv0n73b.js → chunk-bk7f59fn.js} +1 -1
- package/bundle/{chunk-venprxdp.js → chunk-bn71wqqf.js} +1 -1
- package/bundle/{chunk-j9h1sp4g.js → chunk-c3szabpf.js} +2 -2
- package/bundle/{chunk-z6sbjvtv.js → chunk-c6cajbyj.js} +1 -1
- package/bundle/{chunk-p6crzjtf.js → chunk-c8prg3jx.js} +2 -2
- package/bundle/chunk-crqcppwq.js +2 -0
- package/bundle/{chunk-t239rvej.js → chunk-cth373se.js} +2 -2
- package/bundle/chunk-d09zpgj1.js +2 -0
- package/bundle/{chunk-t5r3w9e1.js → chunk-d1tb1jd0.js} +1 -1
- package/bundle/{chunk-mmjgf680.js → chunk-dbpkq7ba.js} +2 -2
- package/bundle/{chunk-pe2xdkez.js → chunk-dd4qnh8s.js} +2 -2
- package/bundle/{chunk-p169ee92.js → chunk-defj5zs6.js} +1 -1
- package/bundle/chunk-dexcptaz.js +3 -0
- package/bundle/chunk-dgqkak21.js +2 -0
- package/bundle/{chunk-jww55nk9.js → chunk-dgva3y5v.js} +1 -1
- package/bundle/chunk-dhgvh7c3.js +2 -0
- package/bundle/{chunk-mhtxp66q.js → chunk-djqxbnwc.js} +2 -2
- package/bundle/chunk-dmd101ja.js +2 -0
- package/bundle/{chunk-vygkwwjd.js → chunk-drnj1a14.js} +2 -2
- package/bundle/{chunk-g3wvtyw3.js → chunk-dt1wwt7m.js} +1 -1
- package/bundle/{chunk-cz5vta94.js → chunk-dw70wds9.js} +1 -1
- package/bundle/{chunk-xdd3553a.js → chunk-dw7yrk1g.js} +1 -1
- package/bundle/chunk-dwb39jdf.js +2 -0
- package/bundle/chunk-dx4zxex7.js +2 -0
- package/bundle/{chunk-ph8hn1wt.js → chunk-dy2k5rdx.js} +2 -2
- package/bundle/{chunk-wwdpw27v.js → chunk-dz3bec8g.js} +1 -1
- package/bundle/{chunk-t0761rhq.js → chunk-e0zb6sw6.js} +2 -2
- package/bundle/chunk-e2pqvscp.js +2 -0
- package/bundle/{chunk-vsz4s6zt.js → chunk-e4g4mvak.js} +1 -1
- package/bundle/{chunk-fhqfqd5v.js → chunk-eeq0krp7.js} +2 -2
- package/bundle/chunk-efe6kj3d.js +2 -0
- package/bundle/{chunk-qp1n7kwe.js → chunk-egkhynj5.js} +1 -1
- package/bundle/chunk-emac0dss.js +2 -0
- package/bundle/chunk-encfnt6w.js +2 -0
- package/bundle/{chunk-y29ejqg2.js → chunk-etv6c77a.js} +1 -1
- package/bundle/{chunk-32j0q58h.js → chunk-eyr5ymt8.js} +1 -1
- package/bundle/{chunk-r9w0thdk.js → chunk-f2pv705d.js} +1 -1
- package/bundle/{chunk-5w76kdjr.js → chunk-f4mnp6xd.js} +1 -1
- package/bundle/{chunk-xdteq9bd.js → chunk-f84hw65n.js} +1 -1
- package/bundle/chunk-fg2nyz2x.js +2 -0
- package/bundle/chunk-ga6wc979.js +2 -0
- package/bundle/{chunk-hqbbs9dm.js → chunk-gbxf6e5d.js} +3 -3
- package/bundle/chunk-gdew7bwm.js +2 -0
- package/bundle/{chunk-w9gzfsy7.js → chunk-gdj7mqrd.js} +2 -2
- package/bundle/chunk-ge19ff9d.js +2 -0
- package/bundle/{chunk-bzebyyfr.js → chunk-ghap1n1m.js} +4 -4
- package/bundle/chunk-gt0q07xq.js +2 -0
- package/bundle/{chunk-7mppvhv9.js → chunk-gwrnxcdn.js} +2 -2
- package/bundle/{chunk-e8p92vz4.js → chunk-gww0skmn.js} +2 -2
- package/bundle/chunk-h4dnjfr2.js +2 -0
- package/bundle/{chunk-has2rz35.js → chunk-h7658zxy.js} +1 -1
- package/bundle/chunk-h8fx619t.js +2 -0
- package/bundle/{chunk-313zqzc1.js → chunk-hfefq104.js} +1 -1
- package/bundle/{chunk-ff548b0j.js → chunk-hhk2sp5n.js} +2 -2
- package/bundle/{chunk-47k5jy1p.js → chunk-hqjc4wgg.js} +2 -2
- package/bundle/{chunk-48r70n4s.js → chunk-hrtze4c5.js} +1 -1
- package/bundle/{chunk-r5zy4za0.js → chunk-hwsqqkrv.js} +2 -2
- package/bundle/{chunk-ehb4hd9c.js → chunk-j6xmgn63.js} +1 -1
- package/bundle/chunk-jnvb3s7f.js +2 -0
- package/bundle/chunk-jrq2xw6e.js +2 -0
- package/bundle/chunk-jwckmhjm.js +2 -0
- package/bundle/{chunk-99s035f0.js → chunk-jxkrhrp0.js} +2 -2
- package/bundle/chunk-jz27ypm5.js +2 -0
- package/bundle/chunk-jzrs878d.js +2 -0
- package/bundle/chunk-jzx700tb.js +2 -0
- package/bundle/chunk-k1x8469r.js +3 -0
- package/bundle/{chunk-bkct64rs.js → chunk-k3g28tbw.js} +1 -1
- package/bundle/{chunk-wy3a4cab.js → chunk-k6zwfstj.js} +1 -1
- package/bundle/{chunk-0qd3567w.js → chunk-kfj37631.js} +1 -1
- package/bundle/{chunk-khzzmyk2.js → chunk-kmzpeq8k.js} +1 -1
- package/bundle/{chunk-bd21p9zz.js → chunk-kre93a89.js} +2 -2
- package/bundle/{chunk-j8fcfhr2.js → chunk-kry4vcrf.js} +2 -2
- package/bundle/chunk-ktp2b4t4.js +2 -0
- package/bundle/chunk-m483jvn8.js +2 -0
- package/bundle/chunk-makecdh6.js +8 -0
- package/bundle/{chunk-tr6rdr6h.js → chunk-mbbxedsq.js} +2 -2
- package/bundle/chunk-menbcmkq.js +2 -0
- package/bundle/{chunk-hwrrrbqd.js → chunk-mghnkwp8.js} +1 -1
- package/bundle/{chunk-pr7z5dj8.js → chunk-mhxyv9c8.js} +1 -1
- package/bundle/{chunk-k5q9px67.js → chunk-mjrqhbp2.js} +1 -1
- package/bundle/{chunk-9zm6r55d.js → chunk-msh249db.js} +2 -2
- package/bundle/{chunk-nmzrrqgb.js → chunk-n0g4983e.js} +1 -1
- package/bundle/{chunk-dnsh1v42.js → chunk-n4qxj391.js} +2 -2
- package/bundle/{chunk-ptqk1j2r.js → chunk-n5p7cn4w.js} +1 -1
- package/bundle/{chunk-5zkj5xv9.js → chunk-n9twhc5d.js} +2 -2
- package/bundle/{chunk-p5be5ddp.js → chunk-na1wr2qf.js} +1 -1
- package/bundle/{chunk-4agaj51z.js → chunk-nbckdba0.js} +1 -1
- package/bundle/{chunk-ezrqhqkp.js → chunk-nftbj8g9.js} +1 -1
- package/bundle/{chunk-d7nsd979.js → chunk-nfzpegqx.js} +1 -1
- package/bundle/chunk-np8h66t0.js +2 -0
- package/bundle/{chunk-v6v9xn81.js → chunk-npzx3yd5.js} +1 -1
- package/bundle/chunk-nr2j8ytn.js +3 -0
- package/bundle/{chunk-w46g7kdq.js → chunk-nrk29616.js} +2 -2
- package/bundle/{chunk-fsqses4g.js → chunk-ns8xnkjb.js} +2 -2
- package/bundle/{chunk-7vmx8bg9.js → chunk-ntpn0w9m.js} +2 -2
- package/bundle/chunk-nwwmns3w.js +2 -0
- package/bundle/{chunk-ksme3gj1.js → chunk-p40z6510.js} +1 -1
- package/bundle/{chunk-3ktzxj69.js → chunk-p847g35y.js} +1 -1
- package/bundle/{chunk-vf492zs6.js → chunk-p8ak162p.js} +1 -1
- package/bundle/chunk-pe5dpzec.js +2 -0
- package/bundle/{chunk-bbng1cea.js → chunk-pf3nqf00.js} +1 -1
- package/bundle/{chunk-9hz56z6a.js → chunk-ppy0jy6j.js} +1 -1
- package/bundle/{chunk-et3804wr.js → chunk-prbxhnza.js} +1 -1
- package/bundle/{chunk-nrat6ncm.js → chunk-ptwex14s.js} +1 -1
- package/bundle/{chunk-qey1efpx.js → chunk-q3pt4p9f.js} +1 -1
- package/bundle/{chunk-pt0xphq9.js → chunk-q6mcnq9p.js} +1 -1
- package/bundle/{chunk-kengqzja.js → chunk-q6p92zyn.js} +2 -2
- package/bundle/{chunk-ycvwpmd9.js → chunk-q87fw8dk.js} +2 -2
- package/bundle/chunk-q8f6a074.js +2 -0
- package/bundle/{chunk-cj7r8w1e.js → chunk-qbrj9wzd.js} +1 -1
- package/bundle/{chunk-j0bwa5dk.js → chunk-qdvnscxm.js} +2 -2
- package/bundle/{chunk-d6jhs818.js → chunk-qp3hxqg5.js} +2 -2
- package/bundle/{chunk-jg1ccs3j.js → chunk-qph2c2v7.js} +1 -1
- package/bundle/{chunk-3vvd7j14.js → chunk-qprbef09.js} +1 -1
- package/bundle/chunk-qqaevt32.js +2 -0
- package/bundle/chunk-qzpvz708.js +2 -0
- package/bundle/{chunk-cbnkx933.js → chunk-r4kg0z96.js} +2 -2
- package/bundle/{chunk-faee8zgc.js → chunk-r73e8gsp.js} +1 -1
- package/bundle/chunk-reyjr2e0.js +2 -0
- package/bundle/{chunk-dxdggn90.js → chunk-rfzra502.js} +1 -1
- package/bundle/{chunk-tg226j37.js → chunk-rhrcgvb8.js} +1 -1
- package/bundle/{chunk-wyj8cpx5.js → chunk-rk0fnvp5.js} +1 -1
- package/bundle/{chunk-t8c4cs6z.js → chunk-rqedtjz9.js} +1 -1
- package/bundle/{chunk-eg3syjtv.js → chunk-s06t769q.js} +2 -2
- package/bundle/{chunk-m80v76m9.js → chunk-skxg3s8z.js} +1 -1
- package/bundle/{chunk-7x6yrtzn.js → chunk-spzd8rev.js} +1 -1
- package/bundle/chunk-t178njgb.js +2 -0
- package/bundle/{chunk-3jf3jhrs.js → chunk-t4b2fm7z.js} +1 -1
- package/bundle/{chunk-55fcmswd.js → chunk-t8sy5sgx.js} +2 -2
- package/bundle/{chunk-s4vx9x1v.js → chunk-t9qyzzsz.js} +1 -1
- package/bundle/{chunk-6scf311w.js → chunk-tc9xbn1t.js} +1 -1
- package/bundle/{chunk-qnvsqnz5.js → chunk-tezrgfc6.js} +2 -2
- package/bundle/chunk-tjpev5t6.js +2 -0
- package/bundle/{chunk-vkaa7k3e.js → chunk-tkzctbxq.js} +2 -2
- package/bundle/{chunk-xy0gnpen.js → chunk-ts2k13g0.js} +1 -1
- package/bundle/{chunk-gszvgz76.js → chunk-twd6r7nf.js} +2 -2
- package/bundle/{chunk-qxcyz5hc.js → chunk-twfvrafb.js} +2 -2
- package/bundle/{chunk-70q8qcb2.js → chunk-twvmjsxf.js} +1 -1
- package/bundle/{chunk-ggxzf22k.js → chunk-tz3s8dvy.js} +1 -1
- package/bundle/chunk-tzq7wjgv.js +3 -0
- package/bundle/{chunk-n78f8hfk.js → chunk-v0c3k797.js} +1 -1
- package/bundle/chunk-v1s16wwd.js +2 -0
- package/bundle/{chunk-fr34mnyg.js → chunk-v3nmnm57.js} +2 -2
- package/bundle/chunk-v6b29nx4.js +2 -0
- package/bundle/chunk-v6rgd1j5.js +2 -0
- package/bundle/chunk-v9dnetq8.js +2 -0
- package/bundle/{chunk-450fef7h.js → chunk-v9w88wpy.js} +2 -2
- package/bundle/{chunk-7hvf9dgx.js → chunk-va2qfh0x.js} +1 -1
- package/bundle/chunk-vd5mpvcc.js +2 -0
- package/bundle/{chunk-w4synhfg.js → chunk-vfb72vdy.js} +1 -1
- package/bundle/{chunk-3cr2p4mp.js → chunk-vhzx5bxd.js} +1 -1
- package/bundle/{chunk-cmb62jkt.js → chunk-vjn54xj5.js} +2 -2
- package/bundle/{chunk-ybane1en.js → chunk-vp3yf46q.js} +1 -1
- package/bundle/{chunk-p4b0s5td.js → chunk-vzrc2fmt.js} +1 -1
- package/bundle/{chunk-ejqzcdcx.js → chunk-w3zhy5vq.js} +1 -1
- package/bundle/{chunk-hjt94wce.js → chunk-w43kmnm9.js} +641 -635
- package/bundle/{chunk-w4brava0.js → chunk-wb1d3mqw.js} +1 -1
- package/bundle/{chunk-6m9jb0s9.js → chunk-wd8hbven.js} +2 -2
- package/bundle/{chunk-vshycswk.js → chunk-wgt1tqw9.js} +1 -1
- package/bundle/{chunk-0428v6mw.js → chunk-whw18cn9.js} +1 -1
- package/bundle/{chunk-pxm4qvqk.js → chunk-wjz42325.js} +2 -2
- package/bundle/{chunk-y67kaj0b.js → chunk-wvb17w0z.js} +1 -1
- package/bundle/chunk-wwct4z7j.js +2 -0
- package/bundle/{chunk-55ykn8nz.js → chunk-x55h5qdc.js} +4 -4
- package/bundle/{chunk-05ck7acg.js → chunk-x80d0zh7.js} +1 -1
- package/bundle/{chunk-mjjaezwq.js → chunk-x9fyt3vx.js} +2 -2
- package/bundle/{chunk-g22e4gw7.js → chunk-xb3sxa6f.js} +1 -1
- package/bundle/{chunk-yz25607t.js → chunk-xcxqt8ag.js} +1 -1
- package/bundle/{chunk-c36p881g.js → chunk-xhh70g8j.js} +3 -3
- package/bundle/chunk-xr9wz961.js +2 -0
- package/bundle/{chunk-0cnwsf8p.js → chunk-y0h3jfkj.js} +1 -1
- package/bundle/{chunk-m7ganre7.js → chunk-y2t5pmqw.js} +1 -1
- package/bundle/{chunk-qkvqvgcx.js → chunk-y5q9v80n.js} +1 -1
- package/bundle/{chunk-5asx1706.js → chunk-yd94wz5v.js} +2 -2
- package/bundle/{chunk-5df5aja0.js → chunk-yjqww6ag.js} +2 -2
- package/bundle/{chunk-2drzgtv3.js → chunk-yxttz5z5.js} +2 -2
- package/bundle/{chunk-da6kggv7.js → chunk-yy7r3t3w.js} +2 -2
- package/bundle/{chunk-5pwv2p3s.js → chunk-yzpc5kj2.js} +1 -1
- package/bundle/{chunk-73r8bjjz.js → chunk-z6kcnpsj.js} +2 -2
- package/bundle/{chunk-nj1ntakd.js → chunk-z744mz4w.js} +2 -2
- package/bundle/{chunk-39z96pc6.js → chunk-z7kswv9r.js} +3 -3
- package/bundle/chunk-zfegnt1e.js +2 -0
- package/bundle/chunk-zg7kesbp.js +2 -0
- package/bundle/{chunk-jnrnncqc.js → chunk-znmbfx70.js} +1 -1
- package/bundle/{chunk-24ygjbpf.js → chunk-zp5sr5nx.js} +2 -2
- package/bundle/{chunk-ha1w0xzh.js → chunk-zrhw1szj.js} +1 -1
- package/bundle/chunk-zy06fe4r.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-0ppnq3a4.js +0 -2
- package/bundle/chunk-0te0vcdn.js +0 -2
- package/bundle/chunk-11h06z17.js +0 -2
- package/bundle/chunk-28yv4fqe.js +0 -2
- package/bundle/chunk-34a52hyr.js +0 -2
- package/bundle/chunk-3d73kfea.js +0 -2
- package/bundle/chunk-3n3gb3vd.js +0 -2
- package/bundle/chunk-3sq60y9f.js +0 -2
- package/bundle/chunk-49mbnqvc.js +0 -2
- package/bundle/chunk-4fr6kae9.js +0 -2
- package/bundle/chunk-516w1nc4.js +0 -2
- package/bundle/chunk-535nm66j.js +0 -2
- package/bundle/chunk-5kpxpm8e.js +0 -2
- package/bundle/chunk-5nm5s0h2.js +0 -2
- package/bundle/chunk-5ysbwr4x.js +0 -3
- package/bundle/chunk-6dvmyeg7.js +0 -2
- package/bundle/chunk-6ex981t8.js +0 -2
- package/bundle/chunk-6gpf2bjs.js +0 -2
- package/bundle/chunk-6jeg2r5j.js +0 -2
- package/bundle/chunk-6nry7tah.js +0 -2
- package/bundle/chunk-7bgzcpdw.js +0 -2
- package/bundle/chunk-7kjvcbwa.js +0 -2
- package/bundle/chunk-7x30x94y.js +0 -2
- package/bundle/chunk-86hsh44c.js +0 -3
- package/bundle/chunk-8jma2btf.js +0 -2
- package/bundle/chunk-8sbb95a4.js +0 -2
- package/bundle/chunk-93e0w75z.js +0 -2
- package/bundle/chunk-97gp818s.js +0 -2
- package/bundle/chunk-9epf2zbh.js +0 -2
- package/bundle/chunk-agv04nt7.js +0 -2
- package/bundle/chunk-be7smmar.js +0 -2
- package/bundle/chunk-bg1t0kke.js +0 -2
- package/bundle/chunk-bryx5cx9.js +0 -2
- package/bundle/chunk-c13rrw41.js +0 -2
- package/bundle/chunk-c2kkv619.js +0 -2
- package/bundle/chunk-c3zge8cg.js +0 -3
- package/bundle/chunk-c5xj1y5v.js +0 -2
- package/bundle/chunk-cfhfc86j.js +0 -8
- package/bundle/chunk-ckpm4dvv.js +0 -2
- package/bundle/chunk-cqkaamvn.js +0 -2
- package/bundle/chunk-ct8twng1.js +0 -2
- package/bundle/chunk-d38y7bvh.js +0 -2
- package/bundle/chunk-d6hxsfm6.js +0 -2
- package/bundle/chunk-descb9jz.js +0 -2
- package/bundle/chunk-dvr2b9r1.js +0 -2
- package/bundle/chunk-ea5fktnn.js +0 -2
- package/bundle/chunk-f0t7rryn.js +0 -3
- package/bundle/chunk-f4mf6tpp.js +0 -2
- package/bundle/chunk-f97k17t8.js +0 -2
- package/bundle/chunk-g4ehhdzp.js +0 -2
- package/bundle/chunk-gd6qpdjw.js +0 -2
- package/bundle/chunk-gdn91t9j.js +0 -2
- package/bundle/chunk-gehn9fd9.js +0 -2
- package/bundle/chunk-h9wh48d0.js +0 -5
- package/bundle/chunk-hhax4mxw.js +0 -2
- package/bundle/chunk-hjb1etf8.js +0 -2
- package/bundle/chunk-jvkzdap1.js +0 -2
- package/bundle/chunk-kg8fcv91.js +0 -2
- package/bundle/chunk-kgptyf7n.js +0 -3
- package/bundle/chunk-kjjjrjnb.js +0 -2
- package/bundle/chunk-ky88ba80.js +0 -2
- package/bundle/chunk-m5cfmhwh.js +0 -2
- package/bundle/chunk-m7qxxbns.js +0 -2
- package/bundle/chunk-mh19kwzw.js +0 -10
- package/bundle/chunk-n8wg5h5p.js +0 -2
- package/bundle/chunk-nvs0d8jg.js +0 -2
- package/bundle/chunk-p6hcj3kv.js +0 -2
- package/bundle/chunk-pexmns0j.js +0 -2
- package/bundle/chunk-pt603np4.js +0 -2
- package/bundle/chunk-pz1avwyt.js +0 -2
- package/bundle/chunk-qk5bfcv8.js +0 -2
- package/bundle/chunk-qr06byhp.js +0 -2
- package/bundle/chunk-r7sq3maz.js +0 -2
- package/bundle/chunk-rcrjbhaz.js +0 -2
- package/bundle/chunk-rmgs9nmj.js +0 -2
- package/bundle/chunk-rytavefg.js +0 -2
- package/bundle/chunk-sh9vjnsh.js +0 -2
- package/bundle/chunk-st0c5wwc.js +0 -2
- package/bundle/chunk-teb3k2sf.js +0 -2
- package/bundle/chunk-ts798jvf.js +0 -2
- package/bundle/chunk-tx5aj02v.js +0 -2
- package/bundle/chunk-v1t51rrq.js +0 -2
- package/bundle/chunk-vdrz2t9c.js +0 -2
- package/bundle/chunk-vh9ptqn0.js +0 -2
- package/bundle/chunk-vj4x8hvz.js +0 -2
- package/bundle/chunk-w72rctxz.js +0 -2
- package/bundle/chunk-wbw9zv3h.js +0 -2
- package/bundle/chunk-x6mw98c2.js +0 -2
- package/bundle/chunk-y6p57wgh.js +0 -2
- package/bundle/chunk-y6xs8v17.js +0 -2
- package/bundle/chunk-z3xsfpc6.js +0 -2
- package/bundle/chunk-zkm3yyyf.js +0 -2
- package/bundle/chunk-zn5pw733.js +0 -2
- package/bundle/chunk-zxwvnmea.js +0 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{X as s,Y as t,_ as a}from"./chunk-nr2j8ytn.js";import{$ as o}from"./chunk-gww0skmn.js";import{Qd as i}from"./chunk-yy7r3t3w.js";import{be as n}from"./chunk-f4mnp6xd.js";import{eg as J}from"./chunk-s06t769q.js";import{lg as f}from"./chunk-q6p92zyn.js";import"./chunk-yd94wz5v.js";import"./chunk-4ngmjk8j.js";import"./chunk-dd4qnh8s.js";import"./chunk-tzq7wjgv.js";import"./chunk-nfg7nt13.js";import"./chunk-v9w88wpy.js";import"./chunk-q87fw8dk.js";import{Ch as p,rh as l}from"./chunk-w43kmnm9.js";import"./chunk-nrk29616.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-wd8hbven.js";import"./chunk-drnj1a14.js";import{Uk as g}from"./chunk-9a6p1gdn.js";import"./chunk-jxkrhrp0.js";import"./chunk-6k14c8x1.js";import"./chunk-5r05d901.js";import"./chunk-3rgct4bd.js";import"./chunk-5b3v1x2c.js";import"./chunk-gbxf6e5d.js";import"./chunk-msh249db.js";import"./chunk-95am490c.js";import"./chunk-kmzpeq8k.js";import"./chunk-0gsw04hw.js";import"./chunk-hqjc4wgg.js";import{Ap as b}from"./chunk-makecdh6.js";import"./chunk-dy2k5rdx.js";import"./chunk-n5p7cn4w.js";import"./chunk-cqtkxwd8.js";import"./chunk-mhxyv9c8.js";import"./chunk-0crgymtr.js";import"./chunk-cth373se.js";import"./chunk-xcxqt8ag.js";import"./chunk-va2qfh0x.js";import"./chunk-ae7b11np.js";import"./chunk-eeq0krp7.js";import"./chunk-73xryfgn.js";import"./chunk-yjqww6ag.js";import"./chunk-z6kcnpsj.js";import{ct as d}from"./chunk-ts2k13g0.js";import"./chunk-01e3v1xz.js";import"./chunk-dbpkq7ba.js";import"./chunk-z744mz4w.js";import"./chunk-vjn54xj5.js";import"./chunk-0qpqd7nz.js";import"./chunk-gdew7bwm.js";import"./chunk-v3nmnm57.js";import"./chunk-hwsqqkrv.js";import{lu as I,uu as D}from"./chunk-mbbxedsq.js";import{Fu as x}from"./chunk-aa2n02qk.js";import"./chunk-k1x8469r.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-t8sy5sgx.js";import"./chunk-tezrgfc6.js";import"./chunk-wjz42325.js";import"./chunk-kry4vcrf.js";import"./chunk-f2pv705d.js";import q from"path";import{pathToFileURL as Kj}from"url";import{EOL as T}from"os";function G(j){let M=j.state;return{input:M.input,metadata:"metadata"in M?M.metadata:{},part:j}}function z(j){let M=j.description?J.Style.TEXT_DIM+` ${j.description}`+J.Style.TEXT_NORMAL:"";J.println(J.Style.TEXT_NORMAL+j.icon,J.Style.TEXT_NORMAL+j.title+M)}function h(j,M){if(J.empty(),z(j),!M?.trim())return;J.println(M),J.empty()}function u(j){let M=j.state,X="input"in M?M.input:void 0,Z=("title"in M&&M.title?M.title:void 0)||(X&&typeof X==="object"&&Object.keys(X).length>0?JSON.stringify(X):"Unknown");z({icon:"\u2699",title:`${j.tool} ${Z}`})}function e(j){let M=j.path??"",X=`${j.kind} "${j.pattern}"`,Z=M?`in ${E(M)}`:"",H=j.count===void 0?Z:`${Z}${Z?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;z({icon:"\u2731",title:X,...H&&{description:H}})}function Mj(j){e({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function Nj(j){e({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Vj(j){let M=E(j.input.filePath),X=Object.entries(j.input).filter(([H,C])=>{if(H==="filePath")return!1;return typeof C==="string"||typeof C==="number"||typeof C==="boolean"}),Z=X.length?`[${X.map(([H,C])=>`${H}=${C}`).join(", ")}]`:void 0;z({icon:"\u2192",title:`Read ${M}`,...Z&&{description:Z}})}function Xj(j){h({icon:"\u2190",title:`Write ${E(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Yj(j){z({icon:"%",title:`WebFetch ${j.input.url}`})}function Zj(j){let M=E(j.input.filePath),X=j.metadata.diff;h({icon:"\u2190",title:`Edit ${M}`},X)}function _j(j){z({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function $j(j){z({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function c(j){let M=j.part.state.input?.operation??j.part.state.input,X=j.part.state.status,Z=typeof M?.subagent_type==="string"&&M.subagent_type.trim().length>0?M.subagent_type:"unknown",H=d.titlecase(Z),C=typeof M?.description==="string"&&M.description.trim().length>0?M.description:void 0,w=X==="error"?"\u2717":X==="running"?"\u2022":"\u2713",L=C??`${H} Task`;z({icon:w,title:L,description:C?`${H} Agent`:void 0})}function Gj(j){z({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Hj(j){let M=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;h({icon:"$",title:`${j.input.command}`},M)}function E(j){if(!j)return"";if(q.isAbsolute(j))return q.relative(process.cwd(),j)||".";return j}var Dj=n({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{let M=[...j.message,...j["--"]||[]].join(" "),X=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{J.error("Failed to change directory to "+j.dir),process.exit(1)}})(),Z=[];if(j.file){let N=Array.isArray(j.file)?j.file:[j.file];for(let Y of N){let V=q.resolve(process.cwd(),Y);if(!await x.exists(V))J.error(`File not found: ${Y}`),process.exit(1);let W=await x.isDir(V)?"application/x-directory":"text/plain";Z.push({type:"file",url:Kj(V).href,filename:q.basename(V),mime:W})}}if(!process.stdin.isTTY)M+=`
|
|
3
|
+
`+await Bun.stdin.text();if(M.trim().length===0&&!j.command)J.error("You must provide a message or a command"),process.exit(1);if(j.fork&&!j.continue&&!j.session)J.error("--fork requires --continue or --session"),process.exit(1);let H=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}];function C(){if(j.title===void 0)return;if(j.title!=="")return j.title;return M.slice(0,50)+(M.length>50?"...":"")}async function w(N){let Y=j.continue?(await N.session.list()).data?.find((_)=>!_.parentID)?.id:j.session;if(Y&&j.fork)return(await N.session.fork({sessionID:Y})).data?.id;if(Y)return Y;let V=C();return(await N.session.create({title:V,permission:H})).data?.id}async function L(N,Y){let V=await N.config.get();if(!V.data)return;if(V.data.share!=="auto"&&!I.QITQODE_AUTO_SHARE&&!j.share)return;let W=await N.session.share({sessionID:Y}).catch((_)=>{if(_ instanceof Error&&_.message.includes("disabled"))J.println(J.Style.TEXT_DANGER_BOLD+"! "+_.message);return{error:_}});if(!W.error&&"data"in W&&W.data?.share?.url)J.println(J.Style.TEXT_INFO_BOLD+"~ "+W.data.share.url)}async function v(N){function Y(B){try{if(B.tool==="bash")return Hj(G(B));if(B.tool==="glob")return Mj(G(B));if(B.tool==="grep")return Nj(G(B));if(B.tool==="read")return Vj(G(B));if(B.tool==="write")return Xj(G(B));if(B.tool==="webfetch")return Yj(G(B));if(B.tool==="edit")return Zj(G(B));if(B.tool==="codesearch")return _j(G(B));if(B.tool==="websearch")return $j(G(B));if(B.tool==="actor")return c(G(B));if(B.tool==="skill")return Gj(G(B));return u(B)}catch{return u(B)}}function V(B,F){if(j.format==="json")return process.stdout.write(JSON.stringify({type:B,timestamp:Date.now(),sessionID:S,...F})+T),!0;return!1}let W=await N.event.subscribe(),_;async function r(B,F){let A=new Map,Q=D.create({service:"cli.run"}),O=W.stream[Symbol.asyncIterator](),Jj=B.completion.then(()=>"DONE");try{while(!0){let y=await Promise.race([O.next(),Jj]);if(y==="DONE")break;if(y.done)break;let $=y.value;if(F.onEvent($),B.onEvent($),Q.debug("event received",{type:$.type}),$.type==="message.updated"&&$.properties.info.role==="assistant"&&j.format!=="json"&&A.get("start")!==!0)J.empty(),J.println(`> ${$.properties.info.agent} \xB7 ${$.properties.info.modelID}`),J.empty(),A.set("start",!0);if($.type==="message.part.updated"){let K=$.properties.part;if(K.sessionID!==S)continue;if(K.type==="tool"&&(K.state.status==="completed"||K.state.status==="error")){if(V("tool_use",{part:K}))continue;if(K.state.status==="completed"){Y(K);continue}z({icon:"\u2717",title:`${K.tool} failed`}),J.error(K.state.error)}if(K.type==="tool"&&K.tool==="actor"&&K.state.status==="running"&&j.format!=="json"){if(A.get(K.id)===!0)continue;c(G(K)),A.set(K.id,!0)}if(K.type==="step-start"){if(V("step_start",{part:K}))continue}if(K.type==="step-finish"){if(V("step_finish",{part:K}))continue}if(K.type==="text"&&K.time?.end){if(V("text",{part:K}))continue;let R=K.text.trim();if(!R)continue;if(!process.stdout.isTTY){process.stdout.write(R+T);continue}J.empty(),J.println(R),J.empty()}if(K.type==="reasoning"&&K.time?.end&&j.thinking){if(V("reasoning",{part:K}))continue;let R=K.text.trim();if(!R)continue;let k=`Thinking: ${R}`;if(process.stdout.isTTY){J.empty(),J.println(`${J.Style.TEXT_DIM}\x1B[3m${k}\x1B[0m${J.Style.TEXT_NORMAL}`),J.empty();continue}process.stdout.write(k+T)}}if($.type==="session.error"){let K=$.properties;if(K.sessionID!==S||!K.error)continue;let R=String(K.error.name);if("data"in K.error&&K.error.data&&"message"in K.error.data)R=String(K.error.data.message);if(_=_?_+T+R:R,V("error",{error:K.error}))continue;J.error(R)}if($.type==="permission.asked"){let K=$.properties;if(K.sessionID!==S)continue;if(j["dangerously-skip-permissions"])await N.permission.reply({requestID:K.id,reply:"once"});else J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL+`permission requested: ${K.permission} (${K.patterns.join(", ")}); auto-rejecting`),await N.permission.reply({requestID:K.id,reply:"reject"})}}}finally{F.fail(Error("QitQode event stream closed before connecting")),B.stop(),await O.return?.(void 0).catch(()=>{})}}let jj=await(async()=>{if(!j.agent)return;let B=j.agent;if(j.attach){let A=await N.app.agents(void 0,{throwOnError:!0}).then((O)=>O.data??[]).catch(()=>{return});if(!A){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`failed to list agents from ${j.attach}. Falling back to default agent`);return}let Q=A.find((O)=>O.name===B);if(!Q){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" not found. Falling back to default agent`);return}if(Q.mode==="subagent"){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" is a subagent, not a primary agent. Falling back to default agent`);return}return B}let F=await p.runPromise(l.Service.use((A)=>A.get(B)));if(!F){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" not found. Falling back to default agent`);return}if(F.mode==="subagent"){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" is a subagent, not a primary agent. Falling back to default agent`);return}return B})(),m=a(jj),S=await w(N);if(!S)J.error("Session not found"),process.exit(1);await L(N,S);let Bj=D.create({service:"cli.run.poll"}),P=t({sessionID:S,query:async()=>{try{return(await N.session.status()).data?.[S]}catch(B){throw Bj.debug("session.status query failed",{error:B}),B}}}),U=s();r(P,U).catch((B)=>{console.error(B),process.exit(1)});try{await U.wait()}catch(B){throw P.stop(),B}if(j.command)await N.session.command({sessionID:S,agent:m,model:j.model,command:j.command,arguments:M,variant:j.variant});else{let B=j.model?g.parseModel(j.model):void 0;await N.session.prompt({sessionID:S,agent:m,model:B,variant:j.variant,parts:[...Z,{type:"text",text:M}]})}P.markStarted()}if(j.attach){let N=o({password:j.password}),Y=b({baseUrl:j.attach,directory:X,headers:N});return await v(Y)}await i(process.cwd(),async()=>{let Y=b({baseUrl:"http://qitqode.internal",fetch:async(V,W)=>{let _=new Request(V,W);return f.Default().app.fetch(_)}});await v(Y)})}});export{Dj as RunCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ee as X}from"./chunk-twfvrafb.js";import{fe as oe,ge as re}from"./chunk-4rpgwgx9.js";import{he as k,ie as $}from"./chunk-tc9xbn1t.js";import{je as we,ke as ie}from"./chunk-zp5sr5nx.js";import{le as ge}from"./chunk-acd72413.js";import{te as H,we as K}from"./chunk-0am156m5.js";import{De as T,xe as M,ye as Y}from"./chunk-tz3s8dvy.js";import{Ee as U}from"./chunk-7sq5dyv1.js";import"./chunk-3xdmxm5t.js";import{Me as me,Ne as ue}from"./chunk-9xxnwb33.js";import"./chunk-qdvnscxm.js";import{If as y}from"./chunk-yxttz5z5.js";import{SP as i,WP as g}from"./chunk-f2pv705d.js";var d=i(y(),1);var be=(...e)=>{let o=-1,t=Object.assign(async(n)=>{let c=await te(...e)(n);if(!c.expiration&&o!==-1)c.expiration=new Date(Date.now()+o);return c},{expireAfter(n){if(n<300000)throw Error("@aws-sdk/credential-providers - createCredentialChain(...).expireAfter(ms) may not be called with a duration lower than five minutes.");return o=n,t}});return t},te=(...e)=>async(o)=>{if(e.length===0)throw new d.ProviderError("No providers in chain",{tryNextLink:!1});let r;for(let t of e)try{return await t(o)}catch(n){if(r=n,n?.tryNextLink)continue;throw n}throw r};var v=i(y(),1);function O(e){return Promise.all(Object.keys(e).reduce((o,r)=>{let t=e[r];if(typeof t==="string")o.push([r,t]);else o.push(t().then((n)=>[r,n]));return o},[])).then((o)=>o.reduce((r,[t,n])=>{return r[t]=n,r},{}))}function N(e){return async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");let{GetCredentialsForIdentityCommand:r,CognitoIdentityClient:t}=await import("./chunk-4bewbvvr.js"),n=(u)=>e.clientConfig?.[u]??e.parentClientConfig?.[u]??o?.callerClientConfig?.[u],{Credentials:{AccessKeyId:c=ne(e.logger),Expiration:l,SecretKey:s=le(e.logger),SessionToken:a}=ce(e.logger)}=await(e.client??new t(Object.assign({},e.clientConfig??{},{region:n("region"),profile:n("profile"),userAgentAppId:n("userAgentAppId")}))).send(new r({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await O(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:c,secretAccessKey:s,sessionToken:a,expiration:l}}}function ne(e){throw new v.CredentialsProviderError("Response from Amazon Cognito contained no access key ID",{logger:e})}function ce(e){throw new v.CredentialsProviderError("Response from Amazon Cognito contained no credentials",{logger:e})}function le(e){throw new v.CredentialsProviderError("Response from Amazon Cognito contained no secret key",{logger:e})}var I=i(y(),1);class R{dbName;constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",(o)=>{let r=o.get(e);return new Promise((t)=>{r.onerror=()=>t(null),r.onsuccess=()=>t(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",(o)=>{let r=o.delete(e);return new Promise((t,n)=>{r.onerror=()=>n(r.error),r.onsuccess=()=>t()})})}setItem(e,o){return this.withObjectStore("readwrite",(r)=>{let t=r.put({id:e,value:o});return new Promise((n,c)=>{t.onerror=()=>c(t.error),t.onsuccess=()=>n()})})}getDb(){let e=self.indexedDB.open(this.dbName,1);return new Promise((o,r)=>{e.onsuccess=()=>{o(e.result)},e.onerror=()=>{r(e.error)},e.onblocked=()=>{r(Error("Unable to access DB"))},e.onupgradeneeded=()=>{let t=e.result;t.onerror=()=>{r(Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}})}withObjectStore(e,o){return this.getDb().then((r)=>{let t=r.transaction("IdentityIds",e);return t.oncomplete=()=>r.close(),new Promise((n,c)=>{t.onerror=()=>c(t.error),n(o(t.objectStore("IdentityIds")))}).catch((n)=>{throw r.close(),n})})}}class j{store;constructor(e={}){this.store=e}getItem(e){if(e in this.store)return this.store[e];return null}removeItem(e){delete this.store[e]}setItem(e,o){this.store[e]=o}}var ae=new j;function P(){if(typeof self==="object"&&self.indexedDB)return new R;if(typeof window==="object"&&window.localStorage)return window.localStorage;return ae}function D({accountId:e,cache:o=P(),client:r,clientConfig:t,customRoleArn:n,identityPoolId:c,logins:l,userIdentifier:s=!l||Object.keys(l).length===0?"ANONYMOUS":void 0,logger:a,parentClientConfig:u}){a?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");let S=s?`aws:cognito-identity-credentials:${c}:${s}`:void 0,f=async(C)=>{let{GetIdCommand:m,CognitoIdentityClient:b}=await import("./chunk-4bewbvvr.js"),h=(w)=>t?.[w]??u?.[w]??C?.callerClientConfig?.[w],p=r??new b(Object.assign({},t??{},{region:h("region"),profile:h("profile"),userAgentAppId:h("userAgentAppId")})),x=S&&await o.getItem(S);if(!x){let{IdentityId:w=se(a)}=await p.send(new m({AccountId:e,IdentityPoolId:c,Logins:l?await O(l):void 0}));if(x=w,S)Promise.resolve(o.setItem(S,x)).catch(()=>{})}return f=N({client:p,customRoleArn:n,logins:l,identityId:x}),f(C)};return(C)=>f(C).catch(async(m)=>{if(S)Promise.resolve(o.removeItem(S)).catch(()=>{});throw m})}function se(e){throw new I.CredentialsProviderError("Response from Amazon Cognito contained no identity ID",{logger:e})}var De=(e)=>N({...e});var Ke=(e)=>D({...e});var ze=(e)=>{return e?.logger?.debug("@smithy/credential-provider-imds","fromContainerMetadata"),H(e)};var Fe=(e)=>T(e);var Je=(e={})=>$({...e});var L=i(ue(),1);var Xe=(e)=>{return e?.logger?.debug("@smithy/credential-provider-imds","fromInstanceMetadata"),async()=>K(e)().then((o)=>L.setCredentialFeature(o,"CREDENTIALS_IMDS","0"))};var Ve=(e)=>k({...e});var A=i(y(),1);var E=i(y(),1),z="AWS_EC2_METADATA_DISABLED",G=async(e)=>{let{ENV_CMDS_FULL_URI:o,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:t,fromInstanceMetadata:n}=await import("./chunk-2y87m7pe.js");if(process.env[r]||process.env[o]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:c}=await import("./chunk-efe6kj3d.js");return E.chain(c(e),t(e))}if(process.env[z]&&process.env[z]!=="false")return async()=>{throw new E.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})};return e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),n(e)};function B(e,o){let r=fe(e),t,n,c,l,s=async(a)=>{if(a?.forceRefresh){if(!l)l=r(a).then((u)=>{c=u}).finally(()=>{l=void 0});return await l,c}if(c?.expiration){if(c?.expiration?.getTime()<Date.now())c=void 0}if(t)await t;else if(!c||o?.(c))if(c){if(!n)n=r(a).then((u)=>{c=u}).finally(()=>{n=void 0})}else return t=r(a).then((u)=>{c=u}).finally(()=>{t=void 0}),s(a);return c};return s}var fe=(e)=>async(o)=>{let r;for(let t of e)try{return await t(o)}catch(n){if(r=n,n?.tryNextLink)continue;throw n}throw r};var F=!1,J=(e={})=>B([async()=>{if(e.profile??process.env[A.ENV_PROFILE]){if(process.env[M]&&process.env[Y]){if(!F)(e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
3
3
|
Multiple credential sources detected:
|
|
4
4
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
5
5
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -7,4 +7,4 @@ import{de as X}from"./chunk-qxcyz5hc.js";import{ee as oe,fe as re}from"./chunk-v
|
|
|
7
7
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
8
8
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
9
9
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
10
|
-
`),F=!0}throw new A.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0})}return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),T(e)()},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:t,ssoRegion:n,ssoRoleName:c,ssoSession:l}=e;if(!r&&!t&&!n&&!c&&!l)throw new A.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});let{fromSSO:s}=await import("./chunk-
|
|
10
|
+
`),F=!0}throw new A.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0})}return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),T(e)()},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:t,ssoRegion:n,ssoRoleName:c,ssoSession:l}=e;if(!r&&!t&&!n&&!c&&!l)throw new A.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});let{fromSSO:s}=await import("./chunk-m483jvn8.js");return s(e)(o)},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await import("./chunk-d09zpgj1.js");return r(e)(o)},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await import("./chunk-bbwcsdy9.js");return r(e)(o)},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await import("./chunk-dmd101ja.js");return r(e)(o)},async()=>{return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await G(e))()},async()=>{throw new A.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:e.logger})}],de);var de=(e)=>e?.expiration!==void 0&&e.expiration.getTime()-Date.now()<300000;var Q=(e={})=>J({...e});var ur=(e)=>U(e);var mr=(e={})=>{return X({...e})};var _=i(we(),1),ee=i(ie(),1);var W=i(me(),1);var he="us-east-1",V=(e,o,r)=>{let t;return async(n={})=>{let{callerClientConfig:c}=n,l=e.clientConfig?.profile??c?.profile,s=e.logger??c?.logger;s?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");let a={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(a?.SerialNumber){if(!e.mfaCodeProvider)throw new d.CredentialsProviderError("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:s});a.TokenCode=await e.mfaCodeProvider(a?.SerialNumber)}let{AssumeRoleCommand:u,STSClient:S}=await import("./chunk-etv6c77a.js");if(!t){let C=typeof o==="function"?o():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void c?.credentials,c?.credentialDefaultProvider?.(),C],b="STS client default credentials";if(m[0])b="options.masterCredentials";else if(m[1])b="options.clientConfig.credentials";else if(m[2])throw b="caller client's credentials",Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");else if(m[3])b="caller client's credentialDefaultProvider";else if(m[4])b="AWS SDK default credentials";let h=[e.clientConfig?.region,c?.region,await r?.({profile:l}),he],p="default partition's default region";if(h[0])p="options.clientConfig.region";else if(h[1])p="caller client's region";else if(h[2])p="file or env region";let x=[Z(e.clientConfig?.requestHandler),Z(c?.requestHandler)],w="STS default requestHandler";if(x[0])w="options.clientConfig.requestHandler";else if(x[1])w="caller client's requestHandler";s?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${p}=${await W.normalizeProvider(q(h))()}, ${b}, ${w}.`),t=new S({userAgentAppId:c?.userAgentAppId,...e.clientConfig,credentials:q(m),logger:s,profile:l,region:q(h),requestHandler:q(x)})}if(e.clientPlugins)for(let C of e.clientPlugins)t.middlewareStack.use(C);let{Credentials:f}=await t.send(new u(a));if(!f||!f.AccessKeyId||!f.SecretAccessKey)throw new d.CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${a.RoleArn}`,{logger:s});return{accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.SessionToken,expiration:f.Expiration,credentialScope:f.CredentialScope}}},Z=(e)=>{return e?.metadata?.handlerProtocol==="h2"?void 0:e},q=(e)=>{for(let o of e)if(o!==void 0)return o};var Cr=(e)=>{return V(e,Q,async({profile:o=process.env.AWS_PROFILE})=>ee.loadConfig({environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>{return r.region},default:()=>{return}},{..._.NODE_REGION_CONFIG_FILE_OPTIONS,profile:o})())};var pr=(e={})=>re({...e});var Or=(e)=>oe({...e});export{te as propertyProviderChain,Or as fromWebToken,pr as fromTokenFile,Cr as fromTemporaryCredentials,mr as fromSSO,ur as fromProcess,Q as fromNodeProviderChain,Ve as fromLoginCredentials,Xe as fromInstanceMetadata,Je as fromIni,ge as fromHttp,Fe as fromEnv,ze as fromContainerMetadata,Ke as fromCognitoIdentityPool,De as fromCognitoIdentity,be as createCredentialChain};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{vO as K}from"./chunk-r9w0thdk.js";var H,$,z,k,Z;var J=K(()=>{H={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},$={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},z={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},k={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},Z={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}});class h{static getFirstMatch(B,d){let x=d.match(B);return x&&x.length>0&&x[1]||""}static getSecondMatch(B,d){let x=d.match(B);return x&&x.length>1&&x[2]||""}static matchAndReturnConst(B,d,x){if(B.test(d))return x;return}static getWindowsVersionName(B){switch(B){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(B){let d=B.split(".").splice(0,2).map((Q)=>parseInt(Q,10)||0);d.push(0);let x=d[0],W=d[1];if(x===10)switch(W){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(x){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}}static getAndroidVersionName(B){let d=B.split(".").splice(0,2).map((x)=>parseInt(x,10)||0);if(d.push(0),d[0]===1&&d[1]<5)return;if(d[0]===1&&d[1]<6)return"Cupcake";if(d[0]===1&&d[1]>=6)return"Donut";if(d[0]===2&&d[1]<2)return"Eclair";if(d[0]===2&&d[1]===2)return"Froyo";if(d[0]===2&&d[1]>2)return"Gingerbread";if(d[0]===3)return"Honeycomb";if(d[0]===4&&d[1]<1)return"Ice Cream Sandwich";if(d[0]===4&&d[1]<4)return"Jelly Bean";if(d[0]===4&&d[1]>=4)return"KitKat";if(d[0]===5)return"Lollipop";if(d[0]===6)return"Marshmallow";if(d[0]===7)return"Nougat";if(d[0]===8)return"Oreo";if(d[0]===9)return"Pie";return}static getVersionPrecision(B){return B.split(".").length}static compareVersions(B,d,x=!1){let W=h.getVersionPrecision(B),Q=h.getVersionPrecision(d),y=Math.max(W,Q),C=0,Y=h.map([B,d],(G)=>{let E=y-h.getVersionPrecision(G),_=G+Array(E+1).join(".0");return h.map(_.split("."),(S)=>Array(20-S.length).join("0")+S).reverse()});if(x)C=y-Math.min(W,Q);y-=1;while(y>=C){if(Y[0][y]>Y[1][y])return 1;if(Y[0][y]===Y[1][y]){if(y===C)return 0;y-=1}else if(Y[0][y]<Y[1][y])return-1}return}static map(B,d){let x=[],W;if(Array.prototype.map)return Array.prototype.map.call(B,d);for(W=0;W<B.length;W+=1)x.push(d(B[W]));return x}static find(B,d){let x,W;if(Array.prototype.find)return Array.prototype.find.call(B,d);for(x=0,W=B.length;x<W;x+=1){let Q=B[x];if(d(Q,x))return Q}return}static assign(B,...d){let x=B,W,Q;if(Object.assign)return Object.assign(B,...d);for(W=0,Q=d.length;W<Q;W+=1){let y=d[W];if(typeof y==="object"&&y!==null)Object.keys(y).forEach((Y)=>{x[Y]=y[Y]})}return B}static getBrowserAlias(B){return H[B]}static getBrowserTypeByAlias(B){return $[B]||""}}var X=K(()=>{J()});var q,L,c;var j=K(()=>{X();q=/version\/(\d+(\.?_?\d+)+)/i,L=[{test:[/gptbot/i],describe(B){let d={name:"GPTBot"},x=h.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/chatgpt-user/i],describe(B){let d={name:"ChatGPT-User"},x=h.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/oai-searchbot/i],describe(B){let d={name:"OAI-SearchBot"},x=h.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(B){let d={name:"ClaudeBot"},x=h.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/omgilibot/i,/webzio-extended/i],describe(B){let d={name:"Omgilibot"},x=h.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/diffbot/i],describe(B){let d={name:"Diffbot"},x=h.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/perplexitybot/i],describe(B){let d={name:"PerplexityBot"},x=h.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/perplexity-user/i],describe(B){let d={name:"Perplexity-User"},x=h.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/youbot/i],describe(B){let d={name:"YouBot"},x=h.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-webindexer/i],describe(B){let d={name:"Meta-WebIndexer"},x=h.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-externalads/i],describe(B){let d={name:"Meta-ExternalAds"},x=h.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-externalagent/i],describe(B){let d={name:"Meta-ExternalAgent"},x=h.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-externalfetcher/i],describe(B){let d={name:"Meta-ExternalFetcher"},x=h.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/googlebot/i],describe(B){let d={name:"Googlebot"},x=h.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/linespider/i],describe(B){let d={name:"Linespider"},x=h.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/amazonbot/i],describe(B){let d={name:"AmazonBot"},x=h.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/bingbot/i],describe(B){let d={name:"BingCrawler"},x=h.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/baiduspider/i],describe(B){let d={name:"BaiduSpider"},x=h.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/duckduckbot/i],describe(B){let d={name:"DuckDuckBot"},x=h.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/ia_archiver/i],describe(B){let d={name:"InternetArchiveCrawler"},x=h.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(B){let d={name:"SlackBot"},x=h.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/yahoo!?[\s/]*slurp/i],describe(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe(){return{name:"PingdomBot"}}},{test:[/opera/i],describe(B){let d={name:"Opera"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/opr\/|opios/i],describe(B){let d={name:"Opera"},x=h.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/SamsungBrowser/i],describe(B){let d={name:"Samsung Internet for Android"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/Whale/i],describe(B){let d={name:"NAVER Whale Browser"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/PaleMoon/i],describe(B){let d={name:"Pale Moon"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/MZBrowser/i],describe(B){let d={name:"MZ Browser"},x=h.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/focus/i],describe(B){let d={name:"Focus"},x=h.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/swing/i],describe(B){let d={name:"Swing"},x=h.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/coast/i],describe(B){let d={name:"Opera Coast"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(B){let d={name:"Opera Touch"},x=h.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/yabrowser/i],describe(B){let d={name:"Yandex Browser"},x=h.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/ucbrowser/i],describe(B){let d={name:"UC Browser"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/Maxthon|mxios/i],describe(B){let d={name:"Maxthon"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/epiphany/i],describe(B){let d={name:"Epiphany"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/puffin/i],describe(B){let d={name:"Puffin"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/sleipnir/i],describe(B){let d={name:"Sleipnir"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/k-meleon/i],describe(B){let d={name:"K-Meleon"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/micromessenger/i],describe(B){let d={name:"WeChat"},x=h.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/qqbrowser/i],describe(B){let d={name:/qqbrowserlite/i.test(B)?"QQ Browser Lite":"QQ Browser"},x=h.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/msie|trident/i],describe(B){let d={name:"Internet Explorer"},x=h.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/\sedg\//i],describe(B){let d={name:"Microsoft Edge"},x=h.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/edg([ea]|ios)/i],describe(B){let d={name:"Microsoft Edge"},x=h.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/vivaldi/i],describe(B){let d={name:"Vivaldi"},x=h.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/seamonkey/i],describe(B){let d={name:"SeaMonkey"},x=h.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/sailfish/i],describe(B){let d={name:"Sailfish"},x=h.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,B);if(x)d.version=x;return d}},{test:[/silk/i],describe(B){let d={name:"Amazon Silk"},x=h.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/phantom/i],describe(B){let d={name:"PhantomJS"},x=h.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/slimerjs/i],describe(B){let d={name:"SlimerJS"},x=h.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(B){let d={name:"BlackBerry"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/(web|hpw)[o0]s/i],describe(B){let d={name:"WebOS Browser"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/bada/i],describe(B){let d={name:"Bada"},x=h.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/tizen/i],describe(B){let d={name:"Tizen"},x=h.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/qupzilla/i],describe(B){let d={name:"QupZilla"},x=h.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/librewolf/i],describe(B){let d={name:"LibreWolf"},x=h.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/firefox|iceweasel|fxios/i],describe(B){let d={name:"Firefox"},x=h.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/electron/i],describe(B){let d={name:"Electron"},x=h.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe(B){let d={name:"Sogou Browser"},x=h.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,B),W=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,B),Q=h.getFirstMatch(/se ([\d.]+)x/i,B),y=x||W||Q;if(y)d.version=y;return d}},{test:[/MiuiBrowser/i],describe(B){let d={name:"Miui"},x=h.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){if(B.hasBrand("DuckDuckGo"))return!0;return B.test(/\sDdg\/[\d.]+$/i)},describe(B,d){let x={name:"DuckDuckGo"};if(d){let Q=d.getBrandVersion("DuckDuckGo");if(Q)return x.version=Q,x}let W=h.getFirstMatch(/\sDdg\/([\d.]+)$/i,B);if(W)x.version=W;return x}},{test(B){return B.hasBrand("Brave")},describe(B,d){let x={name:"Brave"};if(d){let W=d.getBrandVersion("Brave");if(W)return x.version=W,x}return x}},{test:[/chromium/i],describe(B){let d={name:"Chromium"},x=h.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/chrome|crios|crmo/i],describe(B){let d={name:"Chrome"},x=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/GSA/i],describe(B){let d={name:"Google Search"},x=h.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){let d=!B.test(/like android/i),x=B.test(/android/i);return d&&x},describe(B){let d={name:"Android Browser"},x=h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/playstation 4/i],describe(B){let d={name:"PlayStation 4"},x=h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/safari|applewebkit/i],describe(B){let d={name:"Safari"},x=h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/.*/i],describe(B){let d=/^(.*)\/(.*) /,x=/^(.*)\/(.*)[ \t]\((.*)/,Q=B.search("\\(")!==-1?x:d;return{name:h.getFirstMatch(Q,B),version:h.getSecondMatch(Q,B)}}}],c=L});var N;var F=K(()=>{X();J();N=[{test:[/Roku\/DVP/],describe(B){let d=h.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,B);return{name:k.Roku,version:d}}},{test:[/windows phone/i],describe(B){let d=h.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,B);return{name:k.WindowsPhone,version:d}}},{test:[/windows /i],describe(B){let d=h.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,B),x=h.getWindowsVersionName(d);return{name:k.Windows,version:d,versionName:x}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(B){let d={name:k.iOS},x=h.getSecondMatch(/(Version\/)(\d[\d.]+)/,B);if(x)d.version=x;return d}},{test:[/macintosh/i],describe(B){let d=h.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,B).replace(/[_\s]/g,"."),x=h.getMacOSVersionName(d),W={name:k.MacOS,version:d};if(x)W.versionName=x;return W}},{test:[/(ipod|iphone|ipad)/i],describe(B){let d=h.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,B).replace(/[_\s]/g,".");return{name:k.iOS,version:d}}},{test:[/OpenHarmony/i],describe(B){let d=h.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,B);return{name:k.HarmonyOS,version:d}}},{test(B){let d=!B.test(/like android/i),x=B.test(/android/i);return d&&x},describe(B){let d=h.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,B),x=h.getAndroidVersionName(d),W={name:k.Android,version:d};if(x)W.versionName=x;return W}},{test:[/(web|hpw)[o0]s/i],describe(B){let d=h.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,B),x={name:k.WebOS};if(d&&d.length)x.version=d;return x}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(B){let d=h.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,B)||h.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,B)||h.getFirstMatch(/\bbb(\d+)/i,B);return{name:k.BlackBerry,version:d}}},{test:[/bada/i],describe(B){let d=h.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,B);return{name:k.Bada,version:d}}},{test:[/tizen/i],describe(B){let d=h.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,B);return{name:k.Tizen,version:d}}},{test:[/linux/i],describe(){return{name:k.Linux}}},{test:[/CrOS/],describe(){return{name:k.ChromeOS}}},{test:[/PlayStation 4/],describe(B){let d=h.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,B);return{name:k.PlayStation4,version:d}}}]});var g;var O=K(()=>{X();J();g=[{test:[/googlebot/i],describe(){return{type:z.bot,vendor:"Google"}}},{test:[/linespider/i],describe(){return{type:z.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe(){return{type:z.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe(){return{type:z.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe(){return{type:z.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe(){return{type:z.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe(){return{type:z.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe(){return{type:z.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe(){return{type:z.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(){return{type:z.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe(){return{type:z.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe(){return{type:z.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe(){return{type:z.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe(){return{type:z.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe(){return{type:z.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe(){return{type:z.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(){return{type:z.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe(){return{type:z.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return{type:z.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe(){return{type:z.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe(B){let d=h.getFirstMatch(/(can-l01)/i,B)&&"Nova",x={type:z.mobile,vendor:"Huawei"};if(d)x.model=d;return x}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:z.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:z.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:z.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:z.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:z.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:z.tablet}}},{test(B){let d=B.test(/ipod|iphone/i),x=B.test(/like (ipod|iphone)/i);return d&&!x},describe(B){let d=h.getFirstMatch(/(ipod|iphone)/i,B);return{type:z.mobile,vendor:"Apple",model:d}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:z.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(B){let d=h.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,B),x={type:z.mobile,vendor:"Nokia"};if(d)x.model=d;return x}},{test:[/[^-]mobi/i],describe(){return{type:z.mobile}}},{test(B){return B.getBrowserName(!0)==="blackberry"},describe(){return{type:z.mobile,vendor:"BlackBerry"}}},{test(B){return B.getBrowserName(!0)==="bada"},describe(){return{type:z.mobile}}},{test(B){return B.getBrowserName()==="windows phone"},describe(){return{type:z.mobile,vendor:"Microsoft"}}},{test(B){let d=Number(String(B.getOSVersion()).split(".")[0]);return B.getOSName(!0)==="android"&&d>=3},describe(){return{type:z.tablet}}},{test(B){return B.getOSName(!0)==="android"},describe(){return{type:z.mobile}}},{test:[/smart-?tv|smarttv/i],describe(){return{type:z.tv}}},{test:[/netcast/i],describe(){return{type:z.tv}}},{test(B){return B.getOSName(!0)==="macos"},describe(){return{type:z.desktop,vendor:"Apple"}}},{test(B){return B.getOSName(!0)==="windows"},describe(){return{type:z.desktop}}},{test(B){return B.getOSName(!0)==="linux"},describe(){return{type:z.desktop}}},{test(B){return B.getOSName(!0)==="playstation 4"},describe(){return{type:z.tv}}},{test(B){return B.getOSName(!0)==="roku"},describe(){return{type:z.tv}}}]});var f;var I=K(()=>{X();J();f=[{test(B){return B.getBrowserName(!0)==="microsoft edge"},describe(B){if(/\sedg\//i.test(B))return{name:Z.Blink};let x=h.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,B);return{name:Z.EdgeHTML,version:x}}},{test:[/trident/i],describe(B){let d={name:Z.Trident},x=h.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){return B.test(/presto/i)},describe(B){let d={name:Z.Presto},x=h.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){let d=B.test(/gecko/i),x=B.test(/like gecko/i);return d&&!x},describe(B){let d={name:Z.Gecko},x=h.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Z.Blink}}},{test:[/(apple)?webkit/i],describe(B){let d={name:Z.WebKit},x=h.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}}]});class T{constructor(B,d=!1,x=null){if(B===void 0||B===null||B==="")throw Error("UserAgent parameter can't be empty");this._ua=B;let W=!1;if(typeof d==="boolean")W=d,this._hints=x;else if(d!=null&&typeof d==="object")this._hints=d;else this._hints=null;if(this.parsedResult={},W!==!0)this.parse()}getHints(){return this._hints}hasBrand(B){if(!this._hints||!Array.isArray(this._hints.brands))return!1;let d=B.toLowerCase();return this._hints.brands.some((x)=>x.brand&&x.brand.toLowerCase()===d)}getBrandVersion(B){if(!this._hints||!Array.isArray(this._hints.brands))return;let d=B.toLowerCase(),x=this._hints.brands.find((W)=>W.brand&&W.brand.toLowerCase()===d);return x?x.version:void 0}getUA(){return this._ua}test(B){return B.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let B=h.find(c,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.browser=B.describe(this.getUA(),this);return this.parsedResult.browser}getBrowser(){if(this.parsedResult.browser)return this.parsedResult.browser;return this.parseBrowser()}getBrowserName(B){if(B)return String(this.getBrowser().name).toLowerCase()||"";return this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){if(this.parsedResult.os)return this.parsedResult.os;return this.parseOS()}parseOS(){this.parsedResult.os={};let B=h.find(N,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.os=B.describe(this.getUA());return this.parsedResult.os}getOSName(B){let{name:d}=this.getOS();if(B)return String(d).toLowerCase()||"";return d||""}getOSVersion(){return this.getOS().version}getPlatform(){if(this.parsedResult.platform)return this.parsedResult.platform;return this.parsePlatform()}getPlatformType(B=!1){let{type:d}=this.getPlatform();if(B)return String(d).toLowerCase()||"";return d||""}parsePlatform(){this.parsedResult.platform={};let B=h.find(g,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.platform=B.describe(this.getUA());return this.parsedResult.platform}getEngine(){if(this.parsedResult.engine)return this.parsedResult.engine;return this.parseEngine()}getEngineName(B){if(B)return String(this.getEngine().name).toLowerCase()||"";return this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let B=h.find(f,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.engine=B.describe(this.getUA());return this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return h.assign({},this.parsedResult)}satisfies(B){let d={},x=0,W={},Q=0;if(Object.keys(B).forEach((C)=>{let Y=B[C];if(typeof Y==="string")W[C]=Y,Q+=1;else if(typeof Y==="object")d[C]=Y,x+=1}),x>0){let C=Object.keys(d),Y=h.find(C,(E)=>this.isOS(E));if(Y){let E=this.satisfies(d[Y]);if(E!==void 0)return E}let G=h.find(C,(E)=>this.isPlatform(E));if(G){let E=this.satisfies(d[G]);if(E!==void 0)return E}}if(Q>0){let C=Object.keys(W),Y=h.find(C,(G)=>this.isBrowser(G,!0));if(Y!==void 0)return this.compareVersion(W[Y])}return}isBrowser(B,d=!1){let x=this.getBrowserName().toLowerCase(),W=B.toLowerCase(),Q=h.getBrowserTypeByAlias(W);if(d&&Q)W=Q.toLowerCase();return W===x}compareVersion(B){let d=[0],x=B,W=!1,Q=this.getBrowserVersion();if(typeof Q!=="string")return;if(B[0]===">"||B[0]==="<"){if(x=B.substr(1),B[1]==="=")W=!0,x=B.substr(2);else d=[];if(B[0]===">")d.push(1);else d.push(-1)}else if(B[0]==="=")x=B.substr(1);else if(B[0]==="~")W=!0,x=B.substr(1);return d.indexOf(h.compareVersions(Q,x,W))>-1}isOS(B){return this.getOSName(!0)===String(B).toLowerCase()}isPlatform(B){return this.getPlatformType(!0)===String(B).toLowerCase()}isEngine(B){return this.getEngineName(!0)===String(B).toLowerCase()}is(B,d=!1){return this.isBrowser(B,d)||this.isOS(B)||this.isPlatform(B)}some(B=[]){return B.some((d)=>this.is(d))}}var D;var R=K(()=>{j();F();O();I();X();D=T});class V{static getParser(B,d=!1,x=null){if(typeof B!=="string")throw Error("UserAgent should be a string");return new D(B,d,x)}static parse(B,d=null){return new D(B,d).getResult()}static get BROWSER_MAP(){return $}static get ENGINE_MAP(){return Z}static get OS_MAP(){return k}static get PLATFORMS_MAP(){return z}}var Wd;var M=K(()=>{R();J();/*!
|
|
2
|
+
import{VP as K}from"./chunk-f2pv705d.js";var H,$,z,k,Z;var J=K(()=>{H={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},$={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},z={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},k={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},Z={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}});class h{static getFirstMatch(B,d){let x=d.match(B);return x&&x.length>0&&x[1]||""}static getSecondMatch(B,d){let x=d.match(B);return x&&x.length>1&&x[2]||""}static matchAndReturnConst(B,d,x){if(B.test(d))return x;return}static getWindowsVersionName(B){switch(B){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(B){let d=B.split(".").splice(0,2).map((Q)=>parseInt(Q,10)||0);d.push(0);let x=d[0],W=d[1];if(x===10)switch(W){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(x){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}}static getAndroidVersionName(B){let d=B.split(".").splice(0,2).map((x)=>parseInt(x,10)||0);if(d.push(0),d[0]===1&&d[1]<5)return;if(d[0]===1&&d[1]<6)return"Cupcake";if(d[0]===1&&d[1]>=6)return"Donut";if(d[0]===2&&d[1]<2)return"Eclair";if(d[0]===2&&d[1]===2)return"Froyo";if(d[0]===2&&d[1]>2)return"Gingerbread";if(d[0]===3)return"Honeycomb";if(d[0]===4&&d[1]<1)return"Ice Cream Sandwich";if(d[0]===4&&d[1]<4)return"Jelly Bean";if(d[0]===4&&d[1]>=4)return"KitKat";if(d[0]===5)return"Lollipop";if(d[0]===6)return"Marshmallow";if(d[0]===7)return"Nougat";if(d[0]===8)return"Oreo";if(d[0]===9)return"Pie";return}static getVersionPrecision(B){return B.split(".").length}static compareVersions(B,d,x=!1){let W=h.getVersionPrecision(B),Q=h.getVersionPrecision(d),y=Math.max(W,Q),C=0,Y=h.map([B,d],(G)=>{let E=y-h.getVersionPrecision(G),_=G+Array(E+1).join(".0");return h.map(_.split("."),(S)=>Array(20-S.length).join("0")+S).reverse()});if(x)C=y-Math.min(W,Q);y-=1;while(y>=C){if(Y[0][y]>Y[1][y])return 1;if(Y[0][y]===Y[1][y]){if(y===C)return 0;y-=1}else if(Y[0][y]<Y[1][y])return-1}return}static map(B,d){let x=[],W;if(Array.prototype.map)return Array.prototype.map.call(B,d);for(W=0;W<B.length;W+=1)x.push(d(B[W]));return x}static find(B,d){let x,W;if(Array.prototype.find)return Array.prototype.find.call(B,d);for(x=0,W=B.length;x<W;x+=1){let Q=B[x];if(d(Q,x))return Q}return}static assign(B,...d){let x=B,W,Q;if(Object.assign)return Object.assign(B,...d);for(W=0,Q=d.length;W<Q;W+=1){let y=d[W];if(typeof y==="object"&&y!==null)Object.keys(y).forEach((Y)=>{x[Y]=y[Y]})}return B}static getBrowserAlias(B){return H[B]}static getBrowserTypeByAlias(B){return $[B]||""}}var X=K(()=>{J()});var q,L,c;var j=K(()=>{X();q=/version\/(\d+(\.?_?\d+)+)/i,L=[{test:[/gptbot/i],describe(B){let d={name:"GPTBot"},x=h.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/chatgpt-user/i],describe(B){let d={name:"ChatGPT-User"},x=h.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/oai-searchbot/i],describe(B){let d={name:"OAI-SearchBot"},x=h.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(B){let d={name:"ClaudeBot"},x=h.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/omgilibot/i,/webzio-extended/i],describe(B){let d={name:"Omgilibot"},x=h.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/diffbot/i],describe(B){let d={name:"Diffbot"},x=h.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/perplexitybot/i],describe(B){let d={name:"PerplexityBot"},x=h.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/perplexity-user/i],describe(B){let d={name:"Perplexity-User"},x=h.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/youbot/i],describe(B){let d={name:"YouBot"},x=h.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-webindexer/i],describe(B){let d={name:"Meta-WebIndexer"},x=h.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-externalads/i],describe(B){let d={name:"Meta-ExternalAds"},x=h.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-externalagent/i],describe(B){let d={name:"Meta-ExternalAgent"},x=h.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/meta-externalfetcher/i],describe(B){let d={name:"Meta-ExternalFetcher"},x=h.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/googlebot/i],describe(B){let d={name:"Googlebot"},x=h.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/linespider/i],describe(B){let d={name:"Linespider"},x=h.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/amazonbot/i],describe(B){let d={name:"AmazonBot"},x=h.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/bingbot/i],describe(B){let d={name:"BingCrawler"},x=h.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/baiduspider/i],describe(B){let d={name:"BaiduSpider"},x=h.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/duckduckbot/i],describe(B){let d={name:"DuckDuckBot"},x=h.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/ia_archiver/i],describe(B){let d={name:"InternetArchiveCrawler"},x=h.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(B){let d={name:"SlackBot"},x=h.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/yahoo!?[\s/]*slurp/i],describe(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe(){return{name:"PingdomBot"}}},{test:[/opera/i],describe(B){let d={name:"Opera"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/opr\/|opios/i],describe(B){let d={name:"Opera"},x=h.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/SamsungBrowser/i],describe(B){let d={name:"Samsung Internet for Android"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/Whale/i],describe(B){let d={name:"NAVER Whale Browser"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/PaleMoon/i],describe(B){let d={name:"Pale Moon"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/MZBrowser/i],describe(B){let d={name:"MZ Browser"},x=h.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/focus/i],describe(B){let d={name:"Focus"},x=h.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/swing/i],describe(B){let d={name:"Swing"},x=h.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/coast/i],describe(B){let d={name:"Opera Coast"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(B){let d={name:"Opera Touch"},x=h.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/yabrowser/i],describe(B){let d={name:"Yandex Browser"},x=h.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/ucbrowser/i],describe(B){let d={name:"UC Browser"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/Maxthon|mxios/i],describe(B){let d={name:"Maxthon"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/epiphany/i],describe(B){let d={name:"Epiphany"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/puffin/i],describe(B){let d={name:"Puffin"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/sleipnir/i],describe(B){let d={name:"Sleipnir"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/k-meleon/i],describe(B){let d={name:"K-Meleon"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/micromessenger/i],describe(B){let d={name:"WeChat"},x=h.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/qqbrowser/i],describe(B){let d={name:/qqbrowserlite/i.test(B)?"QQ Browser Lite":"QQ Browser"},x=h.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/msie|trident/i],describe(B){let d={name:"Internet Explorer"},x=h.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/\sedg\//i],describe(B){let d={name:"Microsoft Edge"},x=h.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/edg([ea]|ios)/i],describe(B){let d={name:"Microsoft Edge"},x=h.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/vivaldi/i],describe(B){let d={name:"Vivaldi"},x=h.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/seamonkey/i],describe(B){let d={name:"SeaMonkey"},x=h.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/sailfish/i],describe(B){let d={name:"Sailfish"},x=h.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,B);if(x)d.version=x;return d}},{test:[/silk/i],describe(B){let d={name:"Amazon Silk"},x=h.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/phantom/i],describe(B){let d={name:"PhantomJS"},x=h.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/slimerjs/i],describe(B){let d={name:"SlimerJS"},x=h.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(B){let d={name:"BlackBerry"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/(web|hpw)[o0]s/i],describe(B){let d={name:"WebOS Browser"},x=h.getFirstMatch(q,B)||h.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/bada/i],describe(B){let d={name:"Bada"},x=h.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/tizen/i],describe(B){let d={name:"Tizen"},x=h.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/qupzilla/i],describe(B){let d={name:"QupZilla"},x=h.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/librewolf/i],describe(B){let d={name:"LibreWolf"},x=h.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/firefox|iceweasel|fxios/i],describe(B){let d={name:"Firefox"},x=h.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/electron/i],describe(B){let d={name:"Electron"},x=h.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe(B){let d={name:"Sogou Browser"},x=h.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,B),W=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,B),Q=h.getFirstMatch(/se ([\d.]+)x/i,B),y=x||W||Q;if(y)d.version=y;return d}},{test:[/MiuiBrowser/i],describe(B){let d={name:"Miui"},x=h.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){if(B.hasBrand("DuckDuckGo"))return!0;return B.test(/\sDdg\/[\d.]+$/i)},describe(B,d){let x={name:"DuckDuckGo"};if(d){let Q=d.getBrandVersion("DuckDuckGo");if(Q)return x.version=Q,x}let W=h.getFirstMatch(/\sDdg\/([\d.]+)$/i,B);if(W)x.version=W;return x}},{test(B){return B.hasBrand("Brave")},describe(B,d){let x={name:"Brave"};if(d){let W=d.getBrandVersion("Brave");if(W)return x.version=W,x}return x}},{test:[/chromium/i],describe(B){let d={name:"Chromium"},x=h.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,B)||h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/chrome|crios|crmo/i],describe(B){let d={name:"Chrome"},x=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/GSA/i],describe(B){let d={name:"Google Search"},x=h.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){let d=!B.test(/like android/i),x=B.test(/android/i);return d&&x},describe(B){let d={name:"Android Browser"},x=h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/playstation 4/i],describe(B){let d={name:"PlayStation 4"},x=h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/safari|applewebkit/i],describe(B){let d={name:"Safari"},x=h.getFirstMatch(q,B);if(x)d.version=x;return d}},{test:[/.*/i],describe(B){let d=/^(.*)\/(.*) /,x=/^(.*)\/(.*)[ \t]\((.*)/,Q=B.search("\\(")!==-1?x:d;return{name:h.getFirstMatch(Q,B),version:h.getSecondMatch(Q,B)}}}],c=L});var N;var F=K(()=>{X();J();N=[{test:[/Roku\/DVP/],describe(B){let d=h.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,B);return{name:k.Roku,version:d}}},{test:[/windows phone/i],describe(B){let d=h.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,B);return{name:k.WindowsPhone,version:d}}},{test:[/windows /i],describe(B){let d=h.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,B),x=h.getWindowsVersionName(d);return{name:k.Windows,version:d,versionName:x}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(B){let d={name:k.iOS},x=h.getSecondMatch(/(Version\/)(\d[\d.]+)/,B);if(x)d.version=x;return d}},{test:[/macintosh/i],describe(B){let d=h.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,B).replace(/[_\s]/g,"."),x=h.getMacOSVersionName(d),W={name:k.MacOS,version:d};if(x)W.versionName=x;return W}},{test:[/(ipod|iphone|ipad)/i],describe(B){let d=h.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,B).replace(/[_\s]/g,".");return{name:k.iOS,version:d}}},{test:[/OpenHarmony/i],describe(B){let d=h.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,B);return{name:k.HarmonyOS,version:d}}},{test(B){let d=!B.test(/like android/i),x=B.test(/android/i);return d&&x},describe(B){let d=h.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,B),x=h.getAndroidVersionName(d),W={name:k.Android,version:d};if(x)W.versionName=x;return W}},{test:[/(web|hpw)[o0]s/i],describe(B){let d=h.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,B),x={name:k.WebOS};if(d&&d.length)x.version=d;return x}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(B){let d=h.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,B)||h.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,B)||h.getFirstMatch(/\bbb(\d+)/i,B);return{name:k.BlackBerry,version:d}}},{test:[/bada/i],describe(B){let d=h.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,B);return{name:k.Bada,version:d}}},{test:[/tizen/i],describe(B){let d=h.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,B);return{name:k.Tizen,version:d}}},{test:[/linux/i],describe(){return{name:k.Linux}}},{test:[/CrOS/],describe(){return{name:k.ChromeOS}}},{test:[/PlayStation 4/],describe(B){let d=h.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,B);return{name:k.PlayStation4,version:d}}}]});var g;var O=K(()=>{X();J();g=[{test:[/googlebot/i],describe(){return{type:z.bot,vendor:"Google"}}},{test:[/linespider/i],describe(){return{type:z.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe(){return{type:z.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe(){return{type:z.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe(){return{type:z.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe(){return{type:z.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe(){return{type:z.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe(){return{type:z.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe(){return{type:z.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(){return{type:z.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe(){return{type:z.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe(){return{type:z.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe(){return{type:z.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe(){return{type:z.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe(){return{type:z.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe(){return{type:z.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return{type:z.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(){return{type:z.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe(){return{type:z.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return{type:z.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe(){return{type:z.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe(B){let d=h.getFirstMatch(/(can-l01)/i,B)&&"Nova",x={type:z.mobile,vendor:"Huawei"};if(d)x.model=d;return x}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:z.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:z.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:z.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:z.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:z.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:z.tablet}}},{test(B){let d=B.test(/ipod|iphone/i),x=B.test(/like (ipod|iphone)/i);return d&&!x},describe(B){let d=h.getFirstMatch(/(ipod|iphone)/i,B);return{type:z.mobile,vendor:"Apple",model:d}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:z.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(B){let d=h.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,B),x={type:z.mobile,vendor:"Nokia"};if(d)x.model=d;return x}},{test:[/[^-]mobi/i],describe(){return{type:z.mobile}}},{test(B){return B.getBrowserName(!0)==="blackberry"},describe(){return{type:z.mobile,vendor:"BlackBerry"}}},{test(B){return B.getBrowserName(!0)==="bada"},describe(){return{type:z.mobile}}},{test(B){return B.getBrowserName()==="windows phone"},describe(){return{type:z.mobile,vendor:"Microsoft"}}},{test(B){let d=Number(String(B.getOSVersion()).split(".")[0]);return B.getOSName(!0)==="android"&&d>=3},describe(){return{type:z.tablet}}},{test(B){return B.getOSName(!0)==="android"},describe(){return{type:z.mobile}}},{test:[/smart-?tv|smarttv/i],describe(){return{type:z.tv}}},{test:[/netcast/i],describe(){return{type:z.tv}}},{test(B){return B.getOSName(!0)==="macos"},describe(){return{type:z.desktop,vendor:"Apple"}}},{test(B){return B.getOSName(!0)==="windows"},describe(){return{type:z.desktop}}},{test(B){return B.getOSName(!0)==="linux"},describe(){return{type:z.desktop}}},{test(B){return B.getOSName(!0)==="playstation 4"},describe(){return{type:z.tv}}},{test(B){return B.getOSName(!0)==="roku"},describe(){return{type:z.tv}}}]});var f;var I=K(()=>{X();J();f=[{test(B){return B.getBrowserName(!0)==="microsoft edge"},describe(B){if(/\sedg\//i.test(B))return{name:Z.Blink};let x=h.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,B);return{name:Z.EdgeHTML,version:x}}},{test:[/trident/i],describe(B){let d={name:Z.Trident},x=h.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){return B.test(/presto/i)},describe(B){let d={name:Z.Presto},x=h.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test(B){let d=B.test(/gecko/i),x=B.test(/like gecko/i);return d&&!x},describe(B){let d={name:Z.Gecko},x=h.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Z.Blink}}},{test:[/(apple)?webkit/i],describe(B){let d={name:Z.WebKit},x=h.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,B);if(x)d.version=x;return d}}]});class T{constructor(B,d=!1,x=null){if(B===void 0||B===null||B==="")throw Error("UserAgent parameter can't be empty");this._ua=B;let W=!1;if(typeof d==="boolean")W=d,this._hints=x;else if(d!=null&&typeof d==="object")this._hints=d;else this._hints=null;if(this.parsedResult={},W!==!0)this.parse()}getHints(){return this._hints}hasBrand(B){if(!this._hints||!Array.isArray(this._hints.brands))return!1;let d=B.toLowerCase();return this._hints.brands.some((x)=>x.brand&&x.brand.toLowerCase()===d)}getBrandVersion(B){if(!this._hints||!Array.isArray(this._hints.brands))return;let d=B.toLowerCase(),x=this._hints.brands.find((W)=>W.brand&&W.brand.toLowerCase()===d);return x?x.version:void 0}getUA(){return this._ua}test(B){return B.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let B=h.find(c,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.browser=B.describe(this.getUA(),this);return this.parsedResult.browser}getBrowser(){if(this.parsedResult.browser)return this.parsedResult.browser;return this.parseBrowser()}getBrowserName(B){if(B)return String(this.getBrowser().name).toLowerCase()||"";return this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){if(this.parsedResult.os)return this.parsedResult.os;return this.parseOS()}parseOS(){this.parsedResult.os={};let B=h.find(N,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.os=B.describe(this.getUA());return this.parsedResult.os}getOSName(B){let{name:d}=this.getOS();if(B)return String(d).toLowerCase()||"";return d||""}getOSVersion(){return this.getOS().version}getPlatform(){if(this.parsedResult.platform)return this.parsedResult.platform;return this.parsePlatform()}getPlatformType(B=!1){let{type:d}=this.getPlatform();if(B)return String(d).toLowerCase()||"";return d||""}parsePlatform(){this.parsedResult.platform={};let B=h.find(g,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.platform=B.describe(this.getUA());return this.parsedResult.platform}getEngine(){if(this.parsedResult.engine)return this.parsedResult.engine;return this.parseEngine()}getEngineName(B){if(B)return String(this.getEngine().name).toLowerCase()||"";return this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let B=h.find(f,(d)=>{if(typeof d.test==="function")return d.test(this);if(Array.isArray(d.test))return d.test.some((x)=>this.test(x));throw Error("Browser's test function is not valid")});if(B)this.parsedResult.engine=B.describe(this.getUA());return this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return h.assign({},this.parsedResult)}satisfies(B){let d={},x=0,W={},Q=0;if(Object.keys(B).forEach((C)=>{let Y=B[C];if(typeof Y==="string")W[C]=Y,Q+=1;else if(typeof Y==="object")d[C]=Y,x+=1}),x>0){let C=Object.keys(d),Y=h.find(C,(E)=>this.isOS(E));if(Y){let E=this.satisfies(d[Y]);if(E!==void 0)return E}let G=h.find(C,(E)=>this.isPlatform(E));if(G){let E=this.satisfies(d[G]);if(E!==void 0)return E}}if(Q>0){let C=Object.keys(W),Y=h.find(C,(G)=>this.isBrowser(G,!0));if(Y!==void 0)return this.compareVersion(W[Y])}return}isBrowser(B,d=!1){let x=this.getBrowserName().toLowerCase(),W=B.toLowerCase(),Q=h.getBrowserTypeByAlias(W);if(d&&Q)W=Q.toLowerCase();return W===x}compareVersion(B){let d=[0],x=B,W=!1,Q=this.getBrowserVersion();if(typeof Q!=="string")return;if(B[0]===">"||B[0]==="<"){if(x=B.substr(1),B[1]==="=")W=!0,x=B.substr(2);else d=[];if(B[0]===">")d.push(1);else d.push(-1)}else if(B[0]==="=")x=B.substr(1);else if(B[0]==="~")W=!0,x=B.substr(1);return d.indexOf(h.compareVersions(Q,x,W))>-1}isOS(B){return this.getOSName(!0)===String(B).toLowerCase()}isPlatform(B){return this.getPlatformType(!0)===String(B).toLowerCase()}isEngine(B){return this.getEngineName(!0)===String(B).toLowerCase()}is(B,d=!1){return this.isBrowser(B,d)||this.isOS(B)||this.isPlatform(B)}some(B=[]){return B.some((d)=>this.is(d))}}var D;var R=K(()=>{j();F();O();I();X();D=T});class V{static getParser(B,d=!1,x=null){if(typeof B!=="string")throw Error("UserAgent should be a string");return new D(B,d,x)}static parse(B,d=null){return new D(B,d).getResult()}static get BROWSER_MAP(){return $}static get ENGINE_MAP(){return Z}static get OS_MAP(){return k}static get PLATFORMS_MAP(){return z}}var Wd;var M=K(()=>{R();J();/*!
|
|
3
3
|
* Bowser - a browser detector
|
|
4
4
|
* https://github.com/bowser-js/bowser
|
|
5
5
|
* MIT License | (c) Dustin Diaz 2012-2015
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ne as a}from"./chunk-j0bwa5dk.js";import{Df as fK,Ef as yK,Gf as b_,Hf as hG,If as DG,Jf as DW}from"./chunk-2drzgtv3.js";import{tO as k,wO as N}from"./chunk-r9w0thdk.js";var k_=k((iW)=>{var qW=N("stream"),g=b_(),U=a(),i=DW(),L_=(_)=>_?.body instanceof qW.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,IW=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],TW=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],SW=["TimeoutError","RequestTimeout","RequestTimeoutException"],PW=[500,502,503,504],RW=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],AW=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],n=(_)=>_?.$retryable!==void 0,Q_=(_)=>IW.includes(_.name),j_=(_)=>_.$metadata?.clockSkewCorrected,J_=(_)=>{let W=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return W.has(_.message)},q=(_)=>_.$metadata?.httpStatusCode===429||TW.includes(_.name)||_.$retryable?.throttling==!0,I=(_,W=0)=>n(_)||j_(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||SW.includes(_.name)||RW.includes(_?.code||"")||AW.includes(_?.code||"")||PW.includes(_.$metadata?.httpStatusCode||0)||J_(_)||w_(_)||_.cause!==void 0&&W<=10&&I(_.cause,W+1),O_=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let W=_.$metadata.httpStatusCode;if(500<=W&&W<=599&&!I(_))return!0;return!1}return!1};function w_(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var B_=100,v=20000,H_=500,A=500,z_=5,F_=10,o=1,x="amz-sdk-invocation-id",f="amz-sdk-request";function M_(_,W){if(!U.HttpResponse.isInstance(_))return;for(let K of Object.keys(_.headers)){let G=K.toLowerCase();if(G==="retry-after"){let Y=_.headers[K],X=NaN;if(Y.endsWith("GMT"))try{X=(i.parseRfc7231DateTime(Y).getTime()-Date.now())/1000}catch($){W?.trace?.("Failed to parse retry-after header"),W?.trace?.($)}else if(Y.match(/ GMT, ((\d+)|(\d+\.\d+))$/))X=Number(Y.match(/ GMT, ([\d.]+)$/)?.[1]);else if(Y.match(/^((\d+)|(\d+\.\d+))$/))X=Number(Y);else if(Date.parse(Y)>=Date.now())X=(Date.parse(Y)-Date.now())/1000;if(isNaN(X))return;return new Date(Date.now()+X*1000)}else if(G==="x-amz-retry-after"){let Y=_.headers[K],X=Number(Y);if(isNaN(X)){W?.trace?.(`Failed to parse x-amz-retry-after=${Y}`);return}return new Date(Date.now()+X)}}}function kW(_,W){return M_(_,W)}var V_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function N_(_){return(W)=>(K,G)=>async(Y)=>{let X=await W.retryStrategy(),$=await W.maxAttempts();if(xW(X)){X=X;let Z=await X.acquireInitialRetryToken((G.partition_id??"")+(G.__retryLongPoll?":longpoll":"")),L=Error(),b=0,j=0,{request:Q}=Y,J=U.HttpRequest.isInstance(Q);if(J)Q.headers[x]=i.v4();while(!0)try{if(J)Q.headers[f]=`attempt=${b+1}; max=${$}`;let{response:w,output:F}=await K(Y);return X.recordSuccess(Z),F.$metadata.attempts=b+1,F.$metadata.totalRetryDelay=j,{response:w,output:F}}catch(w){let F=fW(w,W.logger);if(L=V_(w),J&&_(Q))throw(G.logger instanceof g.NoOpLogger?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{Z=await X.refreshRetryTokenForRetry(Z,F)}catch(wX){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=b+1,L.$metadata.totalRetryDelay=j,L}b=Z.getRetryCount();let h=Z.getRetryDelay();if(j+=(Z?.$retryLog?.acquisitionDelay??0)+h,h>0)await vW(h)}}else{if(X=X,X?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(K,Y)}}}var vW=(_)=>new Promise((W)=>setTimeout(W,_)),xW=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",fW=(_,W)=>{let K={error:_,errorType:yW(_)},G=M_(_.$response,W);if(G)K.retryAfterHint=G;return K},yW=(_)=>{if(q(_))return"THROTTLING";if(I(_))return"TRANSIENT";if(O_(_))return"SERVER_ERROR";return"CLIENT_ERROR"},U_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function lW(_){let W=N_(_);return(K)=>({applyToStack:(G)=>{G.add(W(K),U_)}})}class T{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let W;this.updateMeasuredRate();let K=_;if(K?.errorType==="THROTTLING"||q(K?.error??_)){let X=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=X,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),W=this.cubicThrottle(X),this.enableTokenBucket()}else this.calculateTimeWindow(),W=this.cubicSuccess(this.getCurrentTimeInSeconds());let Y=Math.min(W,2*this.measuredTxRate);this.updateTokenBucketRate(Y)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let W=(_-this.availableTokens)/this.fillRate*1000;await new Promise((K)=>T.setTimeoutFn(K,W)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let W=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+W),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),W=Math.floor(_*2)/2;if(this.requestCount++,W>this.lastTxRateBucket){let K=this.requestCount/(W-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(K*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=W}}getPrecise(_){return parseFloat(_.toFixed(8))}}class O{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return O.v2026?50:100}static throttlingDelay(){return O.v2026?1000:500}static cost(){return O.v2026?14:5}static throttlingCost(){return O.v2026?5:10}static modifiedCostType(){return O.v2026?"THROTTLING":"TRANSIENT"}}class E_{x=O.delay();computeNextBackoffDelay(_){let W=Math.random(),K=2,G=W*Math.min(this.x*2**_,v);return Math.floor(G)}setDelayBase(_){this.x=_}}class u{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(_,W,K,G){this.delay=_,this.count=W,this.cost=K,this.longPoll=G}getRetryCount(){return this.count}getRetryDelay(){return Math.min(v,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}iW.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(iW.RETRY_MODES||(iW.RETRY_MODES={}));var V=3,C_=iW.RETRY_MODES.STANDARD,R={incompatible:1,attempts:2,capacity:3},D=class{mode=iW.RETRY_MODES.STANDARD;retryBackoffStrategy;capacity=A;maxAttemptsProvider;baseDelay;constructor(W){if(typeof W==="number")this.maxAttemptsProvider=async()=>W;else if(typeof W==="function")this.maxAttemptsProvider=W;else if(W&&typeof W==="object")this.maxAttemptsProvider=async()=>W.maxAttempts,this.baseDelay=W.baseDelay,this.retryBackoffStrategy=W.backoff;this.maxAttemptsProvider??=async()=>V,this.baseDelay??=O.delay(),this.retryBackoffStrategy??=new E_}async acquireInitialRetryToken(W){return new u(O.delay(),0,void 0,O.v2026&&W.includes(":longpoll"))}async refreshRetryTokenForRetry(W,K){let G=await this.getMaxAttempts(),Y=this.retryCode(W,K,G),X=Y===0,$=W.isLongPoll?.();if(X||$){let Z=K.errorType;this.retryBackoffStrategy.setDelayBase(Z==="THROTTLING"?O.throttlingDelay():this.baseDelay);let L=this.retryBackoffStrategy.computeNextBackoffDelay(W.getRetryCount()),b=L;if(K.retryAfterHint instanceof Date)b=Math.max(L,Math.min(K.retryAfterHint.getTime()-Date.now(),L+5000));if(!X){let j=O.v2026&&Y===R.capacity&&$?b:0;if(j>0)await new Promise((Q)=>setTimeout(Q,j))}else{let j=this.getCapacityCost(Z);this.capacity-=j;let Q=new u(0,W.getRetryCount()+1,j,W.isLongPoll?.()??!1);return await new Promise((J)=>setTimeout(J,b)),Q.$retryLog.acquisitionDelay=b,Q}}throw Error("No retry token available")}recordSuccess(W){this.capacity=Math.min(A,this.capacity+(W.getRetryCost()??o))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(W){return console.warn(`Max attempts provider could not resolve. Using default of ${V}`),V}}retryCode(W,K,G){let Y=W.getRetryCount()+1,X=this.isRetryableError(K.errorType)?0:R.incompatible,$=Y<G?0:R.attempts,Z=this.capacity>=this.getCapacityCost(K.errorType)?0:R.capacity;return X||$||Z}getCapacityCost(W){return W===O.modifiedCostType()?O.throttlingCost():O.cost()}isRetryableError(W){return W==="THROTTLING"||W==="TRANSIENT"}},h_=class{mode=iW.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(W,K){let{rateLimiter:G}=K??{};this.rateLimiter=G??new T,this.standardRetryStrategy=K?new D({maxAttempts:typeof W==="number"?W:3,...K}):new D(W)}async acquireInitialRetryToken(W){let K=await this.standardRetryStrategy.acquireInitialRetryToken(W);return await this.rateLimiter.getSendToken(),K}async refreshRetryTokenForRetry(W,K){this.rateLimiter.updateClientSendingRate(K);let G=await this.standardRetryStrategy.refreshRetryTokenForRetry(W,K);return await this.rateLimiter.getSendToken(),G}recordSuccess(W){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(W)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class D_ extends D{computeNextBackoffDelay;constructor(_,W=O.delay()){super(typeof _==="function"?_:async()=>_);if(typeof W==="number")this.computeNextBackoffDelay=()=>W;else this.computeNextBackoffDelay=W;this.retryBackoffStrategy.computeNextBackoffDelay=(K)=>{let G=K+1;return this.computeNextBackoffDelay(G)}}}var cW=(_,W)=>{let K=_,G=o,Y=z_,X=F_,$=_,Z=(Q)=>Q.name==="TimeoutError"?X:Y,L=(Q)=>Z(Q)<=$;return Object.freeze({hasRetryTokens:L,retrieveRetryTokens:(Q)=>{if(!L(Q))throw Error("No retry token available");let J=Z(Q);return $-=J,J},releaseRetryTokens:(Q)=>{$+=Q??G,$=Math.min($,K)}})},q_=(_,W)=>Math.floor(Math.min(v,Math.random()*2**W*_)),I_=(_)=>{if(!_)return!1;return n(_)||Q_(_)||q(_)||I(_)};class t{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=iW.RETRY_MODES.STANDARD;constructor(_,W){this.maxAttemptsProvider=_,this.retryDecider=W?.retryDecider??I_,this.delayDecider=W?.delayDecider??q_,this.retryQuota=W?.retryQuota??cW(A)}shouldRetry(_,W,K){return W<K&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(W){_=V}return _}async retry(_,W,K){let G,Y=0,X=0,$=await this.getMaxAttempts(),{request:Z}=W;if(U.HttpRequest.isInstance(Z))Z.headers[x]=i.v4();while(!0)try{if(U.HttpRequest.isInstance(Z))Z.headers[f]=`attempt=${Y+1}; max=${$}`;if(K?.beforeRequest)await K.beforeRequest();let{response:L,output:b}=await _(W);if(K?.afterRequest)K.afterRequest(L);return this.retryQuota.releaseRetryTokens(G),b.$metadata.attempts=Y+1,b.$metadata.totalRetryDelay=X,{response:L,output:b}}catch(L){let b=V_(L);if(Y++,this.shouldRetry(b,Y,$)){G=this.retryQuota.retrieveRetryTokens(b);let j=this.delayDecider(q(b)?H_:B_,Y),Q=dW(b.$response),J=Math.max(Q||0,j);X+=J,await new Promise((w)=>setTimeout(w,J));continue}if(!b.$metadata)b.$metadata={};throw b.$metadata.attempts=Y,b.$metadata.totalRetryDelay=X,b}}}var dW=(_)=>{if(!U.HttpResponse.isInstance(_))return;let W=Object.keys(_.headers).find((X)=>X.toLowerCase()==="retry-after");if(!W)return;let K=_.headers[W],G=Number(K);if(!Number.isNaN(G))return G*1000;return new Date(K).getTime()-Date.now()};class T_ extends t{rateLimiter;constructor(_,W){let{rateLimiter:K,...G}=W??{};super(_,G);this.rateLimiter=K??new T,this.mode=iW.RETRY_MODES.ADAPTIVE}async retry(_,W){return super.retry(_,W,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(K)=>{this.rateLimiter.updateClientSendingRate(K)}})}}var p="AWS_MAX_ATTEMPTS",s="max_attempts",mW={environmentVariableSelector:(_)=>{let W=_[p];if(!W)return;let K=parseInt(W);if(Number.isNaN(K))throw Error(`Environment variable ${p} mast be a number, got "${W}"`);return K},configFileSelector:(_)=>{let W=_[s];if(!W)return;let K=parseInt(W);if(Number.isNaN(K))throw Error(`Shared config file entry ${s} mast be a number, got "${W}"`);return K},default:V},gW=(_,W)=>{let{retryStrategy:K,retryMode:G}=_,{defaultMaxAttempts:Y=V,defaultBaseDelay:X=O.delay()}=W??{},$=g.normalizeProvider(_.maxAttempts??Y),Z=K?Promise.resolve(K):void 0,L=async()=>{let b=await $();if(await g.normalizeProvider(G)()===iW.RETRY_MODES.ADAPTIVE)return new h_($,{maxAttempts:b,baseDelay:X});return new D({maxAttempts:b,baseDelay:X})};return Object.assign(_,{maxAttempts:$,retryStrategy:()=>Z??=L()})},S_="AWS_RETRY_MODE",P_="retry_mode",uW={environmentVariableSelector:(_)=>_[S_],configFileSelector:(_)=>_[P_],default:C_},R_=()=>(_)=>async(W)=>{let{request:K}=W;if(U.HttpRequest.isInstance(K))delete K.headers[x],delete K.headers[f];return _(W)},A_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},pW=(_)=>({applyToStack:(W)=>{W.addRelativeTo(R_(),A_)}}),sW=N_(L_),aW=lW(L_);iW.AdaptiveRetryStrategy=h_;iW.CONFIG_MAX_ATTEMPTS=s;iW.CONFIG_RETRY_MODE=P_;iW.ConfiguredRetryStrategy=D_;iW.DEFAULT_MAX_ATTEMPTS=V;iW.DEFAULT_RETRY_DELAY_BASE=B_;iW.DEFAULT_RETRY_MODE=C_;iW.DefaultRateLimiter=T;iW.DeprecatedAdaptiveRetryStrategy=T_;iW.DeprecatedStandardRetryStrategy=t;iW.ENV_MAX_ATTEMPTS=p;iW.ENV_RETRY_MODE=S_;iW.INITIAL_RETRY_TOKENS=A;iW.INVOCATION_ID_HEADER=x;iW.MAXIMUM_RETRY_DELAY=v;iW.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=mW;iW.NODE_RETRY_MODE_CONFIG_OPTIONS=uW;iW.NO_RETRY_INCREMENT=o;iW.REQUEST_HEADER=f;iW.RETRY_COST=z_;iW.Retry=O;iW.StandardRetryStrategy=D;iW.THROTTLING_RETRY_DELAY_BASE=H_;iW.TIMEOUT_RETRY_COST=F_;iW.defaultDelayDecider=q_;iW.defaultRetryDecider=I_;iW.getOmitRetryHeadersPlugin=pW;iW.getRetryAfterHint=kW;iW.getRetryPlugin=aW;iW.isBrowserNetworkError=J_;iW.isClockSkewCorrectedError=j_;iW.isClockSkewError=Q_;iW.isNodeJsHttp2TransientError=w_;iW.isRetryableByTrait=n;iW.isServerError=O_;iW.isThrottlingError=q;iW.isTransientError=I;iW.omitRetryHeadersMiddleware=R_;iW.omitRetryHeadersMiddlewareOptions=A_;iW.resolveRetryConfig=gW;iW.retryMiddleware=sW;iW.retryMiddlewareOptions=U_});var i_=k((_G)=>{var lK=yK(),y=a(),v_=fK(),x_=b_(),cK=(_,W)=>{if(!W||W.length===0)return _;let K=[];for(let G of W)for(let Y of _)if(Y.schemeId.split("#")[1]===G)K.push(Y);for(let G of _)if(!K.find(({schemeId:Y})=>Y===G.schemeId))K.push(G);return K};function dK(_){let W=new Map;for(let K of _)W.set(K.schemeId,K);return W}var r=(_,W)=>(K,G)=>async(Y)=>{let X=_.httpAuthSchemeProvider(await W.httpAuthSchemeParametersProvider(_,G,Y.input)),$=_.authSchemePreference?await _.authSchemePreference():[],Z=cK(X,$),L=dK(_.httpAuthSchemes),b=x_.getSmithyContext(G),j=[];for(let Q of Z){let J=L.get(Q.schemeId);if(!J){j.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}let w=J.identityProvider(await W.identityProviderConfigProvider(_));if(!w){j.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:F={},signingProperties:h={}}=Q.propertiesExtractor?.(_,G)||{};Q.identityProperties=Object.assign(Q.identityProperties||{},F),Q.signingProperties=Object.assign(Q.signingProperties||{},h),b.selectedHttpAuthScheme={httpAuthOption:Q,identity:await w(Q.identityProperties),signer:J.signer};break}if(!b.selectedHttpAuthScheme)throw Error(j.join(`
|
|
3
|
-
`));return K(Y)},f_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},mK=(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K})=>({applyToStack:(G)=>{G.addRelativeTo(r(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K}),f_)}}),y_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},gK=(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K})=>({applyToStack:(G)=>{G.addRelativeTo(r(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K}),y_)}}),uK=(_)=>(W)=>{throw W},pK=(_,W)=>{},l_=(_)=>(W,K)=>async(G)=>{if(!y.HttpRequest.isInstance(G.request))return W(G);let X=x_.getSmithyContext(K).selectedHttpAuthScheme;if(!X)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:$={}},identity:Z,signer:L}=X,b=await W({...G,request:await L.sign(G.request,Z,$)}).catch((L.errorHandler||uK)($));return(L.successHandler||pK)(b.response,$),b},c_={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},sK=(_)=>({applyToStack:(W)=>{W.addRelativeTo(l_(),c_)}}),aK=(_)=>{if(typeof _==="function")return _;let W=Promise.resolve(_);return()=>W},iK=async(_,W,K,G=(X)=>X,...Y)=>{let X=new _(K);return X=G(X)??X,await W.send(X,...Y)};function nK(_,W,K,G,Y){return async function*($,Z,...L){let b=Z,j=$.startingToken??b[K],Q=!0,J;while(Q){if(b[K]=j,Y)b[Y]=b[Y]??$.pageSize;if($.client instanceof _)J=await iK(W,$.client,Z,$.withCommand,...L);else throw Error(`Invalid client, expected instance of ${_.name}`);yield J;let w=j;j=oK(J,G),Q=!!(j&&(!$.stopOnSameToken||j!==w))}return}}var oK=(_,W)=>{let K=_,G=W.split(".");for(let Y of G){if(!K||typeof K!=="object")return;K=K[Y]}return K};function tK(_,W,K){if(!_.__smithy_context)_.__smithy_context={features:{}};else if(!_.__smithy_context.features)_.__smithy_context.features={};_.__smithy_context.features[W]=K}class d_{authSchemes=new Map;constructor(_){for(let W in _){let K=_[W];if(K!==void 0)this.authSchemes.set(W,K)}}getIdentityProvider(_){return this.authSchemes.get(_)}}class m_{async sign(_,W,K){if(!K)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!K.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!K.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!W.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let G=y.HttpRequest.clone(_);if(K.in===v_.HttpApiKeyAuthLocation.QUERY)G.query[K.name]=W.apiKey;else if(K.in===v_.HttpApiKeyAuthLocation.HEADER)G.headers[K.name]=K.scheme?`${K.scheme} ${W.apiKey}`:W.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+K.in+"`");return G}}class g_{async sign(_,W,K){let G=y.HttpRequest.clone(_);if(!W.token)throw Error("request could not be signed with `token` since the `token` is not defined");return G.headers.Authorization=`Bearer ${W.token}`,G}}class u_{async sign(_,W,K){return _}}var p_=(_)=>function(K){return a_(K)&&K.expiration.getTime()-Date.now()<_},s_=300000,rK=p_(s_),a_=(_)=>_.expiration!==void 0,eK=(_,W,K)=>{if(_===void 0)return;let G=typeof _!=="function"?async()=>Promise.resolve(_):_,Y,X,$,Z=!1,L=async(b)=>{if(!X)X=G(b);try{Y=await X,$=!0,Z=!1}finally{X=void 0}return Y};if(W===void 0)return async(b)=>{if(!$||b?.forceRefresh)Y=await L(b);return Y};return async(b)=>{if(!$||b?.forceRefresh)Y=await L(b);if(Z)return Y;if(!K(Y))return Z=!0,Y;if(W(Y))return await L(b),Y;return Y}};_G.getSmithyContext=lK.getSmithyContext;_G.requestBuilder=y.requestBuilder;_G.DefaultIdentityProviderConfig=d_;_G.EXPIRATION_MS=s_;_G.HttpApiKeyAuthSigner=m_;_G.HttpBearerAuthSigner=g_;_G.NoAuthSigner=u_;_G.createIsIdentityExpiredFunction=p_;_G.createPaginator=nK;_G.doesIdentityRequireRefresh=a_;_G.getHttpAuthSchemeEndpointRuleSetPlugin=mK;_G.getHttpAuthSchemePlugin=gK;_G.getHttpSigningPlugin=sK;_G.httpAuthSchemeEndpointRuleSetMiddlewareOptions=f_;_G.httpAuthSchemeMiddleware=r;_G.httpAuthSchemeMiddlewareOptions=y_;_G.httpSigningMiddleware=l_;_G.httpSigningMiddlewareOptions=c_;_G.isIdentityExpired=rK;_G.memoizeIdentityProvider=eK;_G.normalizeProvider=aK;_G.setFeature=tK});var o_=k((EG)=>{var S={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},e=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!e)globalThis.awslambda=globalThis.awslambda||{};class l{static PROTECTED_KEYS=S;isProtectedKey(_){return Object.values(S).includes(_)}getRequestId(){return this.get(S.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(S.X_RAY_TRACE_ID)}getTenantId(){return this.get(S.TENANT_ID)}}class n_ extends l{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(_){return this.currentContext?.[_]}set(_,W){if(this.isProtectedKey(_))throw Error(`Cannot modify protected Lambda context field: ${String(_)}`);this.currentContext=this.currentContext||{},this.currentContext[_]=W}run(_,W){return this.currentContext=_,W()}}class W_ extends l{als;static async create(){let _=new W_,W=await import("async_hooks");return _.als=new W.AsyncLocalStorage,_}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(_){return this.als.getStore()?.[_]}set(_,W){if(this.isProtectedKey(_))throw Error(`Cannot modify protected Lambda context field: ${String(_)}`);let K=this.als.getStore();if(!K)throw Error("No context available");K[_]=W}run(_,W){return this.als.run(_,W)}}EG.InvokeStore=void 0;(function(_){let W=null;async function K(G){if(!W)W=(async()=>{let X=G===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await W_.create():new n_;if(!e&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!e&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=X,X;else return X})();return W}_.getInstanceAsync=K,_._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(W=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(EG.InvokeStore||(EG.InvokeStore={}));EG.InvokeStoreBase=l});var OX=k((H1)=>{var __dirname="/
|
|
2
|
+
import{Oe as a}from"./chunk-qdvnscxm.js";import{Ef as fK,Ff as yK,Hf as b_,If as hG,Jf as DG,Kf as DW}from"./chunk-yxttz5z5.js";import{TP as k,WP as N}from"./chunk-f2pv705d.js";var k_=k((iW)=>{var qW=N("stream"),g=b_(),U=a(),i=DW(),L_=(_)=>_?.body instanceof qW.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,IW=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],TW=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],SW=["TimeoutError","RequestTimeout","RequestTimeoutException"],PW=[500,502,503,504],RW=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],AW=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],n=(_)=>_?.$retryable!==void 0,Q_=(_)=>IW.includes(_.name),j_=(_)=>_.$metadata?.clockSkewCorrected,J_=(_)=>{let W=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return W.has(_.message)},q=(_)=>_.$metadata?.httpStatusCode===429||TW.includes(_.name)||_.$retryable?.throttling==!0,I=(_,W=0)=>n(_)||j_(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||SW.includes(_.name)||RW.includes(_?.code||"")||AW.includes(_?.code||"")||PW.includes(_.$metadata?.httpStatusCode||0)||J_(_)||w_(_)||_.cause!==void 0&&W<=10&&I(_.cause,W+1),O_=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let W=_.$metadata.httpStatusCode;if(500<=W&&W<=599&&!I(_))return!0;return!1}return!1};function w_(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var B_=100,v=20000,H_=500,A=500,z_=5,F_=10,o=1,x="amz-sdk-invocation-id",f="amz-sdk-request";function M_(_,W){if(!U.HttpResponse.isInstance(_))return;for(let K of Object.keys(_.headers)){let G=K.toLowerCase();if(G==="retry-after"){let Y=_.headers[K],X=NaN;if(Y.endsWith("GMT"))try{X=(i.parseRfc7231DateTime(Y).getTime()-Date.now())/1000}catch($){W?.trace?.("Failed to parse retry-after header"),W?.trace?.($)}else if(Y.match(/ GMT, ((\d+)|(\d+\.\d+))$/))X=Number(Y.match(/ GMT, ([\d.]+)$/)?.[1]);else if(Y.match(/^((\d+)|(\d+\.\d+))$/))X=Number(Y);else if(Date.parse(Y)>=Date.now())X=(Date.parse(Y)-Date.now())/1000;if(isNaN(X))return;return new Date(Date.now()+X*1000)}else if(G==="x-amz-retry-after"){let Y=_.headers[K],X=Number(Y);if(isNaN(X)){W?.trace?.(`Failed to parse x-amz-retry-after=${Y}`);return}return new Date(Date.now()+X)}}}function kW(_,W){return M_(_,W)}var V_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function N_(_){return(W)=>(K,G)=>async(Y)=>{let X=await W.retryStrategy(),$=await W.maxAttempts();if(xW(X)){X=X;let Z=await X.acquireInitialRetryToken((G.partition_id??"")+(G.__retryLongPoll?":longpoll":"")),L=Error(),b=0,j=0,{request:Q}=Y,J=U.HttpRequest.isInstance(Q);if(J)Q.headers[x]=i.v4();while(!0)try{if(J)Q.headers[f]=`attempt=${b+1}; max=${$}`;let{response:w,output:F}=await K(Y);return X.recordSuccess(Z),F.$metadata.attempts=b+1,F.$metadata.totalRetryDelay=j,{response:w,output:F}}catch(w){let F=fW(w,W.logger);if(L=V_(w),J&&_(Q))throw(G.logger instanceof g.NoOpLogger?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{Z=await X.refreshRetryTokenForRetry(Z,F)}catch(wX){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=b+1,L.$metadata.totalRetryDelay=j,L}b=Z.getRetryCount();let h=Z.getRetryDelay();if(j+=(Z?.$retryLog?.acquisitionDelay??0)+h,h>0)await vW(h)}}else{if(X=X,X?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(K,Y)}}}var vW=(_)=>new Promise((W)=>setTimeout(W,_)),xW=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",fW=(_,W)=>{let K={error:_,errorType:yW(_)},G=M_(_.$response,W);if(G)K.retryAfterHint=G;return K},yW=(_)=>{if(q(_))return"THROTTLING";if(I(_))return"TRANSIENT";if(O_(_))return"SERVER_ERROR";return"CLIENT_ERROR"},U_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function lW(_){let W=N_(_);return(K)=>({applyToStack:(G)=>{G.add(W(K),U_)}})}class T{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let W;this.updateMeasuredRate();let K=_;if(K?.errorType==="THROTTLING"||q(K?.error??_)){let X=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=X,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),W=this.cubicThrottle(X),this.enableTokenBucket()}else this.calculateTimeWindow(),W=this.cubicSuccess(this.getCurrentTimeInSeconds());let Y=Math.min(W,2*this.measuredTxRate);this.updateTokenBucketRate(Y)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let W=(_-this.availableTokens)/this.fillRate*1000;await new Promise((K)=>T.setTimeoutFn(K,W)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let W=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+W),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),W=Math.floor(_*2)/2;if(this.requestCount++,W>this.lastTxRateBucket){let K=this.requestCount/(W-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(K*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=W}}getPrecise(_){return parseFloat(_.toFixed(8))}}class O{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return O.v2026?50:100}static throttlingDelay(){return O.v2026?1000:500}static cost(){return O.v2026?14:5}static throttlingCost(){return O.v2026?5:10}static modifiedCostType(){return O.v2026?"THROTTLING":"TRANSIENT"}}class E_{x=O.delay();computeNextBackoffDelay(_){let W=Math.random(),K=2,G=W*Math.min(this.x*2**_,v);return Math.floor(G)}setDelayBase(_){this.x=_}}class u{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(_,W,K,G){this.delay=_,this.count=W,this.cost=K,this.longPoll=G}getRetryCount(){return this.count}getRetryDelay(){return Math.min(v,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}iW.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(iW.RETRY_MODES||(iW.RETRY_MODES={}));var V=3,C_=iW.RETRY_MODES.STANDARD,R={incompatible:1,attempts:2,capacity:3},D=class{mode=iW.RETRY_MODES.STANDARD;retryBackoffStrategy;capacity=A;maxAttemptsProvider;baseDelay;constructor(W){if(typeof W==="number")this.maxAttemptsProvider=async()=>W;else if(typeof W==="function")this.maxAttemptsProvider=W;else if(W&&typeof W==="object")this.maxAttemptsProvider=async()=>W.maxAttempts,this.baseDelay=W.baseDelay,this.retryBackoffStrategy=W.backoff;this.maxAttemptsProvider??=async()=>V,this.baseDelay??=O.delay(),this.retryBackoffStrategy??=new E_}async acquireInitialRetryToken(W){return new u(O.delay(),0,void 0,O.v2026&&W.includes(":longpoll"))}async refreshRetryTokenForRetry(W,K){let G=await this.getMaxAttempts(),Y=this.retryCode(W,K,G),X=Y===0,$=W.isLongPoll?.();if(X||$){let Z=K.errorType;this.retryBackoffStrategy.setDelayBase(Z==="THROTTLING"?O.throttlingDelay():this.baseDelay);let L=this.retryBackoffStrategy.computeNextBackoffDelay(W.getRetryCount()),b=L;if(K.retryAfterHint instanceof Date)b=Math.max(L,Math.min(K.retryAfterHint.getTime()-Date.now(),L+5000));if(!X){let j=O.v2026&&Y===R.capacity&&$?b:0;if(j>0)await new Promise((Q)=>setTimeout(Q,j))}else{let j=this.getCapacityCost(Z);this.capacity-=j;let Q=new u(0,W.getRetryCount()+1,j,W.isLongPoll?.()??!1);return await new Promise((J)=>setTimeout(J,b)),Q.$retryLog.acquisitionDelay=b,Q}}throw Error("No retry token available")}recordSuccess(W){this.capacity=Math.min(A,this.capacity+(W.getRetryCost()??o))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(W){return console.warn(`Max attempts provider could not resolve. Using default of ${V}`),V}}retryCode(W,K,G){let Y=W.getRetryCount()+1,X=this.isRetryableError(K.errorType)?0:R.incompatible,$=Y<G?0:R.attempts,Z=this.capacity>=this.getCapacityCost(K.errorType)?0:R.capacity;return X||$||Z}getCapacityCost(W){return W===O.modifiedCostType()?O.throttlingCost():O.cost()}isRetryableError(W){return W==="THROTTLING"||W==="TRANSIENT"}},h_=class{mode=iW.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(W,K){let{rateLimiter:G}=K??{};this.rateLimiter=G??new T,this.standardRetryStrategy=K?new D({maxAttempts:typeof W==="number"?W:3,...K}):new D(W)}async acquireInitialRetryToken(W){let K=await this.standardRetryStrategy.acquireInitialRetryToken(W);return await this.rateLimiter.getSendToken(),K}async refreshRetryTokenForRetry(W,K){this.rateLimiter.updateClientSendingRate(K);let G=await this.standardRetryStrategy.refreshRetryTokenForRetry(W,K);return await this.rateLimiter.getSendToken(),G}recordSuccess(W){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(W)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class D_ extends D{computeNextBackoffDelay;constructor(_,W=O.delay()){super(typeof _==="function"?_:async()=>_);if(typeof W==="number")this.computeNextBackoffDelay=()=>W;else this.computeNextBackoffDelay=W;this.retryBackoffStrategy.computeNextBackoffDelay=(K)=>{let G=K+1;return this.computeNextBackoffDelay(G)}}}var cW=(_,W)=>{let K=_,G=o,Y=z_,X=F_,$=_,Z=(Q)=>Q.name==="TimeoutError"?X:Y,L=(Q)=>Z(Q)<=$;return Object.freeze({hasRetryTokens:L,retrieveRetryTokens:(Q)=>{if(!L(Q))throw Error("No retry token available");let J=Z(Q);return $-=J,J},releaseRetryTokens:(Q)=>{$+=Q??G,$=Math.min($,K)}})},q_=(_,W)=>Math.floor(Math.min(v,Math.random()*2**W*_)),I_=(_)=>{if(!_)return!1;return n(_)||Q_(_)||q(_)||I(_)};class t{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=iW.RETRY_MODES.STANDARD;constructor(_,W){this.maxAttemptsProvider=_,this.retryDecider=W?.retryDecider??I_,this.delayDecider=W?.delayDecider??q_,this.retryQuota=W?.retryQuota??cW(A)}shouldRetry(_,W,K){return W<K&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(W){_=V}return _}async retry(_,W,K){let G,Y=0,X=0,$=await this.getMaxAttempts(),{request:Z}=W;if(U.HttpRequest.isInstance(Z))Z.headers[x]=i.v4();while(!0)try{if(U.HttpRequest.isInstance(Z))Z.headers[f]=`attempt=${Y+1}; max=${$}`;if(K?.beforeRequest)await K.beforeRequest();let{response:L,output:b}=await _(W);if(K?.afterRequest)K.afterRequest(L);return this.retryQuota.releaseRetryTokens(G),b.$metadata.attempts=Y+1,b.$metadata.totalRetryDelay=X,{response:L,output:b}}catch(L){let b=V_(L);if(Y++,this.shouldRetry(b,Y,$)){G=this.retryQuota.retrieveRetryTokens(b);let j=this.delayDecider(q(b)?H_:B_,Y),Q=dW(b.$response),J=Math.max(Q||0,j);X+=J,await new Promise((w)=>setTimeout(w,J));continue}if(!b.$metadata)b.$metadata={};throw b.$metadata.attempts=Y,b.$metadata.totalRetryDelay=X,b}}}var dW=(_)=>{if(!U.HttpResponse.isInstance(_))return;let W=Object.keys(_.headers).find((X)=>X.toLowerCase()==="retry-after");if(!W)return;let K=_.headers[W],G=Number(K);if(!Number.isNaN(G))return G*1000;return new Date(K).getTime()-Date.now()};class T_ extends t{rateLimiter;constructor(_,W){let{rateLimiter:K,...G}=W??{};super(_,G);this.rateLimiter=K??new T,this.mode=iW.RETRY_MODES.ADAPTIVE}async retry(_,W){return super.retry(_,W,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(K)=>{this.rateLimiter.updateClientSendingRate(K)}})}}var p="AWS_MAX_ATTEMPTS",s="max_attempts",mW={environmentVariableSelector:(_)=>{let W=_[p];if(!W)return;let K=parseInt(W);if(Number.isNaN(K))throw Error(`Environment variable ${p} mast be a number, got "${W}"`);return K},configFileSelector:(_)=>{let W=_[s];if(!W)return;let K=parseInt(W);if(Number.isNaN(K))throw Error(`Shared config file entry ${s} mast be a number, got "${W}"`);return K},default:V},gW=(_,W)=>{let{retryStrategy:K,retryMode:G}=_,{defaultMaxAttempts:Y=V,defaultBaseDelay:X=O.delay()}=W??{},$=g.normalizeProvider(_.maxAttempts??Y),Z=K?Promise.resolve(K):void 0,L=async()=>{let b=await $();if(await g.normalizeProvider(G)()===iW.RETRY_MODES.ADAPTIVE)return new h_($,{maxAttempts:b,baseDelay:X});return new D({maxAttempts:b,baseDelay:X})};return Object.assign(_,{maxAttempts:$,retryStrategy:()=>Z??=L()})},S_="AWS_RETRY_MODE",P_="retry_mode",uW={environmentVariableSelector:(_)=>_[S_],configFileSelector:(_)=>_[P_],default:C_},R_=()=>(_)=>async(W)=>{let{request:K}=W;if(U.HttpRequest.isInstance(K))delete K.headers[x],delete K.headers[f];return _(W)},A_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},pW=(_)=>({applyToStack:(W)=>{W.addRelativeTo(R_(),A_)}}),sW=N_(L_),aW=lW(L_);iW.AdaptiveRetryStrategy=h_;iW.CONFIG_MAX_ATTEMPTS=s;iW.CONFIG_RETRY_MODE=P_;iW.ConfiguredRetryStrategy=D_;iW.DEFAULT_MAX_ATTEMPTS=V;iW.DEFAULT_RETRY_DELAY_BASE=B_;iW.DEFAULT_RETRY_MODE=C_;iW.DefaultRateLimiter=T;iW.DeprecatedAdaptiveRetryStrategy=T_;iW.DeprecatedStandardRetryStrategy=t;iW.ENV_MAX_ATTEMPTS=p;iW.ENV_RETRY_MODE=S_;iW.INITIAL_RETRY_TOKENS=A;iW.INVOCATION_ID_HEADER=x;iW.MAXIMUM_RETRY_DELAY=v;iW.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=mW;iW.NODE_RETRY_MODE_CONFIG_OPTIONS=uW;iW.NO_RETRY_INCREMENT=o;iW.REQUEST_HEADER=f;iW.RETRY_COST=z_;iW.Retry=O;iW.StandardRetryStrategy=D;iW.THROTTLING_RETRY_DELAY_BASE=H_;iW.TIMEOUT_RETRY_COST=F_;iW.defaultDelayDecider=q_;iW.defaultRetryDecider=I_;iW.getOmitRetryHeadersPlugin=pW;iW.getRetryAfterHint=kW;iW.getRetryPlugin=aW;iW.isBrowserNetworkError=J_;iW.isClockSkewCorrectedError=j_;iW.isClockSkewError=Q_;iW.isNodeJsHttp2TransientError=w_;iW.isRetryableByTrait=n;iW.isServerError=O_;iW.isThrottlingError=q;iW.isTransientError=I;iW.omitRetryHeadersMiddleware=R_;iW.omitRetryHeadersMiddlewareOptions=A_;iW.resolveRetryConfig=gW;iW.retryMiddleware=sW;iW.retryMiddlewareOptions=U_});var i_=k((_G)=>{var lK=yK(),y=a(),v_=fK(),x_=b_(),cK=(_,W)=>{if(!W||W.length===0)return _;let K=[];for(let G of W)for(let Y of _)if(Y.schemeId.split("#")[1]===G)K.push(Y);for(let G of _)if(!K.find(({schemeId:Y})=>Y===G.schemeId))K.push(G);return K};function dK(_){let W=new Map;for(let K of _)W.set(K.schemeId,K);return W}var r=(_,W)=>(K,G)=>async(Y)=>{let X=_.httpAuthSchemeProvider(await W.httpAuthSchemeParametersProvider(_,G,Y.input)),$=_.authSchemePreference?await _.authSchemePreference():[],Z=cK(X,$),L=dK(_.httpAuthSchemes),b=x_.getSmithyContext(G),j=[];for(let Q of Z){let J=L.get(Q.schemeId);if(!J){j.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}let w=J.identityProvider(await W.identityProviderConfigProvider(_));if(!w){j.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:F={},signingProperties:h={}}=Q.propertiesExtractor?.(_,G)||{};Q.identityProperties=Object.assign(Q.identityProperties||{},F),Q.signingProperties=Object.assign(Q.signingProperties||{},h),b.selectedHttpAuthScheme={httpAuthOption:Q,identity:await w(Q.identityProperties),signer:J.signer};break}if(!b.selectedHttpAuthScheme)throw Error(j.join(`
|
|
3
|
+
`));return K(Y)},f_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},mK=(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K})=>({applyToStack:(G)=>{G.addRelativeTo(r(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K}),f_)}}),y_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},gK=(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K})=>({applyToStack:(G)=>{G.addRelativeTo(r(_,{httpAuthSchemeParametersProvider:W,identityProviderConfigProvider:K}),y_)}}),uK=(_)=>(W)=>{throw W},pK=(_,W)=>{},l_=(_)=>(W,K)=>async(G)=>{if(!y.HttpRequest.isInstance(G.request))return W(G);let X=x_.getSmithyContext(K).selectedHttpAuthScheme;if(!X)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:$={}},identity:Z,signer:L}=X,b=await W({...G,request:await L.sign(G.request,Z,$)}).catch((L.errorHandler||uK)($));return(L.successHandler||pK)(b.response,$),b},c_={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},sK=(_)=>({applyToStack:(W)=>{W.addRelativeTo(l_(),c_)}}),aK=(_)=>{if(typeof _==="function")return _;let W=Promise.resolve(_);return()=>W},iK=async(_,W,K,G=(X)=>X,...Y)=>{let X=new _(K);return X=G(X)??X,await W.send(X,...Y)};function nK(_,W,K,G,Y){return async function*($,Z,...L){let b=Z,j=$.startingToken??b[K],Q=!0,J;while(Q){if(b[K]=j,Y)b[Y]=b[Y]??$.pageSize;if($.client instanceof _)J=await iK(W,$.client,Z,$.withCommand,...L);else throw Error(`Invalid client, expected instance of ${_.name}`);yield J;let w=j;j=oK(J,G),Q=!!(j&&(!$.stopOnSameToken||j!==w))}return}}var oK=(_,W)=>{let K=_,G=W.split(".");for(let Y of G){if(!K||typeof K!=="object")return;K=K[Y]}return K};function tK(_,W,K){if(!_.__smithy_context)_.__smithy_context={features:{}};else if(!_.__smithy_context.features)_.__smithy_context.features={};_.__smithy_context.features[W]=K}class d_{authSchemes=new Map;constructor(_){for(let W in _){let K=_[W];if(K!==void 0)this.authSchemes.set(W,K)}}getIdentityProvider(_){return this.authSchemes.get(_)}}class m_{async sign(_,W,K){if(!K)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!K.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!K.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!W.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let G=y.HttpRequest.clone(_);if(K.in===v_.HttpApiKeyAuthLocation.QUERY)G.query[K.name]=W.apiKey;else if(K.in===v_.HttpApiKeyAuthLocation.HEADER)G.headers[K.name]=K.scheme?`${K.scheme} ${W.apiKey}`:W.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+K.in+"`");return G}}class g_{async sign(_,W,K){let G=y.HttpRequest.clone(_);if(!W.token)throw Error("request could not be signed with `token` since the `token` is not defined");return G.headers.Authorization=`Bearer ${W.token}`,G}}class u_{async sign(_,W,K){return _}}var p_=(_)=>function(K){return a_(K)&&K.expiration.getTime()-Date.now()<_},s_=300000,rK=p_(s_),a_=(_)=>_.expiration!==void 0,eK=(_,W,K)=>{if(_===void 0)return;let G=typeof _!=="function"?async()=>Promise.resolve(_):_,Y,X,$,Z=!1,L=async(b)=>{if(!X)X=G(b);try{Y=await X,$=!0,Z=!1}finally{X=void 0}return Y};if(W===void 0)return async(b)=>{if(!$||b?.forceRefresh)Y=await L(b);return Y};return async(b)=>{if(!$||b?.forceRefresh)Y=await L(b);if(Z)return Y;if(!K(Y))return Z=!0,Y;if(W(Y))return await L(b),Y;return Y}};_G.getSmithyContext=lK.getSmithyContext;_G.requestBuilder=y.requestBuilder;_G.DefaultIdentityProviderConfig=d_;_G.EXPIRATION_MS=s_;_G.HttpApiKeyAuthSigner=m_;_G.HttpBearerAuthSigner=g_;_G.NoAuthSigner=u_;_G.createIsIdentityExpiredFunction=p_;_G.createPaginator=nK;_G.doesIdentityRequireRefresh=a_;_G.getHttpAuthSchemeEndpointRuleSetPlugin=mK;_G.getHttpAuthSchemePlugin=gK;_G.getHttpSigningPlugin=sK;_G.httpAuthSchemeEndpointRuleSetMiddlewareOptions=f_;_G.httpAuthSchemeMiddleware=r;_G.httpAuthSchemeMiddlewareOptions=y_;_G.httpSigningMiddleware=l_;_G.httpSigningMiddlewareOptions=c_;_G.isIdentityExpired=rK;_G.memoizeIdentityProvider=eK;_G.normalizeProvider=aK;_G.setFeature=tK});var o_=k((EG)=>{var S={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},e=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!e)globalThis.awslambda=globalThis.awslambda||{};class l{static PROTECTED_KEYS=S;isProtectedKey(_){return Object.values(S).includes(_)}getRequestId(){return this.get(S.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(S.X_RAY_TRACE_ID)}getTenantId(){return this.get(S.TENANT_ID)}}class n_ extends l{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(_){return this.currentContext?.[_]}set(_,W){if(this.isProtectedKey(_))throw Error(`Cannot modify protected Lambda context field: ${String(_)}`);this.currentContext=this.currentContext||{},this.currentContext[_]=W}run(_,W){return this.currentContext=_,W()}}class W_ extends l{als;static async create(){let _=new W_,W=await import("async_hooks");return _.als=new W.AsyncLocalStorage,_}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(_){return this.als.getStore()?.[_]}set(_,W){if(this.isProtectedKey(_))throw Error(`Cannot modify protected Lambda context field: ${String(_)}`);let K=this.als.getStore();if(!K)throw Error("No context available");K[_]=W}run(_,W){return this.als.run(_,W)}}EG.InvokeStore=void 0;(function(_){let W=null;async function K(G){if(!W)W=(async()=>{let X=G===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await W_.create():new n_;if(!e&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!e&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=X,X;else return X})();return W}_.getInstanceAsync=K,_._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(W=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(EG.InvokeStore||(EG.InvokeStore={}));EG.InvokeStoreBase=l});var OX=k((H1)=>{var __dirname="/tmp/qitqode-release-027-zXkgEM/repository/qode/node_modules/.bun/@aws-sdk+core@3.974.17/node_modules/@aws-sdk/core/dist-cjs/submodules/client",Y_=k_(),m=a(),qG=o_(),IG=i_(),t_=N("os"),P=N("process"),z=hG(),r_=N("fs/promises"),E=N("path"),C=DG(),d={warningEmitted:!1},TG=(_)=>{if(_&&!d.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){d.warningEmitted=!0;return}let W=parseInt(_.substring(1,_.indexOf("."))),K=22;if(W<K)d.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
4
4
|
versions published after the first week of January 2027
|
|
5
5
|
will require node >=${K}. You are running node ${_}.
|
|
6
6
|
|
|
7
7
|
To continue receiving updates to AWS services, bug fixes,
|
|
8
8
|
and security updates please upgrade to node >=${K}.
|
|
9
9
|
|
|
10
|
-
More information can be found at: https://a.co/c895JFp`)}},SG=()=>(_,W)=>async(K)=>{return W.__retryLongPoll=!0,_(K)},PG={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},RG=(_)=>({applyToStack:(W)=>{W.add(SG(),PG)}});function AG(_,W,K){if(!_.$source)_.$source={};return _.$source[W]=K,_}Y_.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function H(_,W,K){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[W]=K}function kG(_,W,K){if(!_.$source)_.$source={};return _.$source[W]=K,_}function vG(_){return _}var GW=(_)=>(W)=>async(K)=>{if(!m.HttpRequest.isInstance(K.request))return W(K);let{request:G}=K,{handlerProtocol:Y=""}=_.requestHandler.metadata||{};if(Y.indexOf("h2")>=0&&!G.headers[":authority"])delete G.headers.host,G.headers[":authority"]=G.hostname+(G.port?":"+G.port:"");else if(!G.headers.host){let X=G.hostname;if(G.port!=null)X+=`:${G.port}`;G.headers.host=X}return W(K)},XW={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},xG=(_)=>({applyToStack:(W)=>{W.add(GW(_),XW)}}),YW=()=>(_,W)=>async(K)=>{try{let G=await _(K),{clientName:Y,commandName:X,logger:$,dynamoDbDocumentClientOptions:Z={}}=W,{overrideInputFilterSensitiveLog:L,overrideOutputFilterSensitiveLog:b}=Z,j=L??W.inputFilterSensitiveLog,Q=b??W.outputFilterSensitiveLog,{$metadata:J,...w}=G.output;return $?.info?.({clientName:Y,commandName:X,input:j(K.input),output:Q(w),metadata:J}),G}catch(G){let{clientName:Y,commandName:X,logger:$,dynamoDbDocumentClientOptions:Z={}}=W,{overrideInputFilterSensitiveLog:L}=Z,b=L??W.inputFilterSensitiveLog;throw $?.error?.({clientName:Y,commandName:X,input:b(K.input),error:G,metadata:G.$metadata}),G}},$W={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},fG=(_)=>({applyToStack:(W)=>{W.add(YW(),$W)}}),ZW={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},K_="X-Amzn-Trace-Id",yG="AWS_LAMBDA_FUNCTION_NAME",lG="_X_AMZN_TRACE_ID",bW=()=>(_)=>async(W)=>{let{request:K}=W;if(!m.HttpRequest.isInstance(K))return _(W);let G=Object.keys(K.headers??{}).find((j)=>j.toLowerCase()===K_.toLowerCase())??K_;if(K.headers.hasOwnProperty(G))return _(W);let Y=process.env[yG],X=process.env[lG],L=(await qG.InvokeStore.getInstanceAsync())?.getXRayTraceId()??X,b=(j)=>typeof j==="string"&&j.length>0;if(b(Y)&&b(L))K.headers[K_]=L;return _({...W,request:K})},cG=(_)=>({applyToStack:(W)=>{W.add(bW(),ZW)}}),$_=void 0;function dG(_){if(_===void 0)return!0;return typeof _==="string"&&_.length<=50}function mG(_){let W=IG.normalizeProvider(_.userAgentAppId??$_),{customUserAgent:K}=_;return Object.assign(_,{customUserAgent:typeof K==="string"?[[K]]:K,userAgentAppId:async()=>{let G=await W();if(!dG(G)){let Y=_.logger?.constructor?.name==="NoOpLogger"||!_.logger?console:_.logger;if(typeof G!=="string")Y?.warn("userAgentAppId must be a string or undefined.");else if(G.length>50)Y?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return G}})}var LW={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"},QW=LW,jW="",JW=(_)=>{let{partitions:W}=QW;for(let G of W){let{regions:Y,outputs:X}=G;for(let[$,Z]of Object.entries(Y))if($===_)return{...X,...Z}}for(let G of W){let{regionRegex:Y,outputs:X}=G;if(new RegExp(Y).test(_))return{...X}}let K=W.find((G)=>G.id==="aws");if(!K)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...K.outputs}},OW=(_,W="")=>{QW=_,jW=W},gG=()=>{OW(LW,"")},wW=()=>jW,uG=/\d{12}\.ddb/;async function pG(_,W,K){if(K.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")H(_,"PROTOCOL_RPC_V2_CBOR","M");if(typeof W.retryStrategy==="function"){let X=await W.retryStrategy();if(typeof X.mode==="string")switch(X.mode){case Y_.RETRY_MODES.ADAPTIVE:H(_,"RETRY_MODE_ADAPTIVE","F");break;case Y_.RETRY_MODES.STANDARD:H(_,"RETRY_MODE_STANDARD","E");break}}if(typeof W.accountIdEndpointMode==="function"){let X=_.endpointV2;if(String(X?.url?.hostname).match(uG))H(_,"ACCOUNT_ID_ENDPOINT","O");switch(await W.accountIdEndpointMode?.()){case"disabled":H(_,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":H(_,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":H(_,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let Y=_.__smithy_context?.selectedHttpAuthScheme?.identity;if(Y?.$source){let X=Y;if(X.accountId)H(_,"RESOLVED_ACCOUNT_ID","T");for(let[$,Z]of Object.entries(X.$source??{}))H(_,$,Z)}}var e_="user-agent",G_="x-amz-user-agent",_W=" ",X_="/",sG=/[^!$%&'*+\-.^_`|~\w]/g,aG=/[^!$%&'*+\-.^_`|~\w#]/g,WW="-",iG=1024;function nG(_){let W="";for(let K in _){let G=_[K];if(W.length+G.length+1<=iG){if(W.length)W+=","+G;else W+=G;continue}break}return W}var BW=(_)=>(W,K)=>async(G)=>{let{request:Y}=G;if(!m.HttpRequest.isInstance(Y))return W(G);let{headers:X}=Y,$=K?.userAgent?.map(c)||[],Z=(await _.defaultUserAgentProvider()).map(c);await pG(K,_,G);let L=K;Z.push(`m/${nG(Object.assign({},K.__smithy_context?.features,L.__aws_sdk_context?.features))}`);let b=_?.customUserAgent?.map(c)||[],j=await _.userAgentAppId();if(j)Z.push(c(["app",`${j}`]));let Q=wW(),J=(Q?[Q]:[]).concat([...Z,...$,...b]).join(_W),w=[...Z.filter((F)=>F.startsWith("aws-sdk-")),...b].join(_W);if(_.runtime!=="browser"){if(w)X[G_]=X[G_]?`${X[e_]} ${w}`:w;X[e_]=J}else X[G_]=J;return W({...G,request:Y})},c=(_)=>{let W=_[0].split(X_).map(($)=>$.replace(sG,WW)).join(X_),K=_[1]?.replace(aG,WW),G=W.indexOf(X_),Y=W.substring(0,G),X=W.substring(G+1);if(Y==="api")X=X.toLowerCase();return[Y,X,K].filter(($)=>$&&$.length>0).reduce(($,Z,L)=>{switch(L){case 0:return Z;case 1:return`${$}/${Z}`;default:return`${$}#${Z}`}},"")},HW={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},oG=(_)=>({applyToStack:(W)=>{W.add(BW(_),HW)}}),tG=()=>{let _=["deno","bun","llrt"];for(let W of _)if(P.versions[W])return[`md/${W}`,P.versions[W]];return["md/nodejs",P.versions.node]},rG=(_)=>{let W=process.cwd();if(!_)return[W];let K=E.normalize(_),G=K.split(E.sep),Y=G.indexOf("node_modules"),X=Y!==-1?G.slice(0,Y).join(E.sep):K;if(W===X)return[W];return[X,W]},eG=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,zW=(_="")=>{let W=_.match(eG);if(!W)return;let[K,G,Y,X]=[W[1],W[2],W[3],W[4]];return X?`${K}.${G}.${Y}-${X}`:`${K}.${G}.${Y}`},_1=["^","~",">=","<=",">","<"],W1=["latest","beta","dev","rc","insiders","next"],K1=(_="")=>{if(W1.includes(_))return _;let W=_1.find((G)=>_.startsWith(G))??"",K=zW(_.slice(W.length));if(!K)return;return`${W}${K}`},B,G1=E.join("node_modules","typescript","package.json"),X1=async()=>{if(B===null)return;else if(typeof B==="string")return["md/tsc",B];let _=!1;try{_=z.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",z.SelectorType.ENV)||!1}catch{}if(_){B=null;return}let K=rG(typeof __dirname<"u"?__dirname:void 0),G;for(let $ of K)try{let Z=E.join($,"package.json"),L=await r_.readFile(Z,"utf-8"),{dependencies:b,devDependencies:j}=JSON.parse(L),Q=j?.typescript??b?.typescript;if(typeof Q!=="string")continue;G=Q;break}catch{}if(!G){B=null;return}let Y;for(let $ of K)try{let Z=E.join($,G1),L=await r_.readFile(Z,"utf-8"),{version:b}=JSON.parse(L),j=zW(b);if(typeof j!=="string")continue;Y=j;break}catch{}if(Y)return B=Y,["md/tsc",B];let X=K1(G);if(typeof X!=="string"){B=null;return}return B=`dev_${X}`,["md/tsc",B]},FW={isCrtAvailable:!1},Y1=()=>{if(FW.isCrtAvailable)return["md/crt-avail"];return null},MW=({serviceId:_,clientVersion:W})=>{let K=tG();return async(G)=>{let Y=[["aws-sdk-js",W],["ua","2.1"],[`os/${t_.platform()}`,t_.release()],["lang/js"],K],X=await X1();if(X)Y.push(X);let $=Y1();if($)Y.push($);if(_)Y.push([`api/${_}`,W]);if(P.env.AWS_EXECUTION_ENV)Y.push([`exec-env/${P.env.AWS_EXECUTION_ENV}`]);let Z=await G?.userAgentAppId?.();return Z?[...Y,[`app/${Z}`]]:[...Y]}},$1=MW,VW="AWS_SDK_UA_APP_ID",NW="sdk_ua_app_id",Z1="sdk-ua-app-id",b1={environmentVariableSelector:(_)=>_[VW],configFileSelector:(_)=>_[NW]??_[Z1],default:$_},L1=({serviceId:_,clientVersion:W})=>async(K)=>{let G=await import("./chunk-24rkf2gk.js"),Y=G.parse??G.default.parse??(()=>""),X=typeof window<"u"&&window?.navigator?.userAgent?Y(window.navigator.userAgent):void 0,$=[["aws-sdk-js",W],["ua","2.1"],[`os/${X?.os?.name||"other"}`,X?.os?.version],["lang/js"],["md/browser",`${X?.browser?.name??"unknown"}_${X?.browser?.version??"unknown"}`]];if(_)$.push([`api/${_}`,W]);let Z=await K?.userAgentAppId?.();if(Z)$.push([`app/${Z}`]);return $},Q1={os(_){if(/iPhone|iPad|iPod/.test(_))return"iOS";if(/Macintosh|Mac OS X/.test(_))return"macOS";if(/Windows NT/.test(_))return"Windows";if(/Android/.test(_))return"Android";if(/Linux/.test(_))return"Linux";return},browser(_){if(/EdgiOS|EdgA|Edg\//.test(_))return"Microsoft Edge";if(/Firefox\//.test(_))return"Firefox";if(/Chrome\//.test(_))return"Chrome";if(/Safari\//.test(_))return"Safari";return}},Z_=(_,W=!1)=>{if(W){for(let K of _.split("."))if(!Z_(K))return!1;return!0}if(!C.isValidHostLabel(_))return!1;if(_.length<3||_.length>63)return!1;if(_!==_.toLowerCase())return!1;if(C.isIpAddress(_))return!1;return!0},KW=":",j1="/",UW=(_)=>{let W=_.split(KW);if(W.length<6)return null;let[K,G,Y,X,$,...Z]=W;if(K!=="arn"||G===""||Y===""||Z.join(KW)==="")return null;let L=Z.map((b)=>b.split(j1)).flat();return{partition:G,service:Y,region:X,accountId:$,resourceId:L}},EW={isVirtualHostableS3Bucket:Z_,parseArn:UW,partition:JW};C.customEndpointFunctions.aws=EW;var J1=(_)=>{if(typeof _.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:W}=_;if(W===void 0)_.endpoint=async()=>{return CW(_.endpointProvider({Region:typeof _.region==="function"?await _.region():_.region,UseDualStack:typeof _.useDualstackEndpoint==="function"?await _.useDualstackEndpoint():_.useDualstackEndpoint,UseFIPS:typeof _.useFipsEndpoint==="function"?await _.useFipsEndpoint():_.useFipsEndpoint,Endpoint:void 0},{logger:_.logger}))};return _},CW=(_)=>m.parseUrl(_.url);function O1(_={}){return z.loadConfig({...z.NODE_REGION_CONFIG_OPTIONS,async default(){if(!hW.silence)console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");return"us-east-1"}},{...z.NODE_REGION_CONFIG_FILE_OPTIONS,..._})}var hW={silence:!1},w1=(_)=>{return{setRegion(W){_.region=W},region(){return _.region}}},B1=(_)=>{return{region:_.region()}};H1.NODE_REGION_CONFIG_FILE_OPTIONS=z.NODE_REGION_CONFIG_FILE_OPTIONS;H1.NODE_REGION_CONFIG_OPTIONS=z.NODE_REGION_CONFIG_OPTIONS;H1.REGION_ENV_NAME=z.REGION_ENV_NAME;H1.REGION_INI_NAME=z.REGION_INI_NAME;H1.resolveRegionConfig=z.resolveRegionConfig;H1.EndpointError=C.EndpointError;H1.isIpAddress=C.isIpAddress;H1.resolveEndpoint=C.resolveEndpoint;H1.DEFAULT_UA_APP_ID=$_;H1.NODE_APP_ID_CONFIG_OPTIONS=b1;H1.UA_APP_ID_ENV_NAME=VW;H1.UA_APP_ID_INI_NAME=NW;H1.awsEndpointFunctions=EW;H1.createDefaultUserAgentProvider=MW;H1.createUserAgentStringParsingProvider=L1;H1.crtAvailability=FW;H1.defaultUserAgent=$1;H1.emitWarningIfUnsupportedVersion=TG;H1.fallback=Q1;H1.getAwsRegionExtensionConfiguration=w1;H1.getHostHeaderPlugin=xG;H1.getLoggerPlugin=fG;H1.getLongPollPlugin=RG;H1.getRecursionDetectionPlugin=cG;H1.getUserAgentMiddlewareOptions=HW;H1.getUserAgentPlugin=oG;H1.getUserAgentPrefix=wW;H1.hostHeaderMiddleware=GW;H1.hostHeaderMiddlewareOptions=XW;H1.isVirtualHostableS3Bucket=Z_;H1.loggerMiddleware=YW;H1.loggerMiddlewareOptions=$W;H1.parseArn=UW;H1.partition=JW;H1.recursionDetectionMiddleware=bW;H1.recursionDetectionMiddlewareOptions=ZW;H1.resolveAwsRegionExtensionConfiguration=B1;H1.resolveDefaultAwsRegionalEndpointsConfig=J1;H1.resolveHostHeaderConfig=vG;H1.resolveUserAgentConfig=mG;H1.setCredentialFeature=AG;H1.setFeature=H;H1.setPartitionInfo=OW;H1.setTokenFeature=kG;H1.state=d;H1.stsRegionDefaultResolver=O1;H1.stsRegionWarning=hW;H1.toEndpointV1=CW;H1.useDefaultPartitionInfo=gG;H1.userAgentMiddleware=BW});
|
|
11
|
-
export{k_ as
|
|
10
|
+
More information can be found at: https://a.co/c895JFp`)}},SG=()=>(_,W)=>async(K)=>{return W.__retryLongPoll=!0,_(K)},PG={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},RG=(_)=>({applyToStack:(W)=>{W.add(SG(),PG)}});function AG(_,W,K){if(!_.$source)_.$source={};return _.$source[W]=K,_}Y_.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function H(_,W,K){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[W]=K}function kG(_,W,K){if(!_.$source)_.$source={};return _.$source[W]=K,_}function vG(_){return _}var GW=(_)=>(W)=>async(K)=>{if(!m.HttpRequest.isInstance(K.request))return W(K);let{request:G}=K,{handlerProtocol:Y=""}=_.requestHandler.metadata||{};if(Y.indexOf("h2")>=0&&!G.headers[":authority"])delete G.headers.host,G.headers[":authority"]=G.hostname+(G.port?":"+G.port:"");else if(!G.headers.host){let X=G.hostname;if(G.port!=null)X+=`:${G.port}`;G.headers.host=X}return W(K)},XW={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},xG=(_)=>({applyToStack:(W)=>{W.add(GW(_),XW)}}),YW=()=>(_,W)=>async(K)=>{try{let G=await _(K),{clientName:Y,commandName:X,logger:$,dynamoDbDocumentClientOptions:Z={}}=W,{overrideInputFilterSensitiveLog:L,overrideOutputFilterSensitiveLog:b}=Z,j=L??W.inputFilterSensitiveLog,Q=b??W.outputFilterSensitiveLog,{$metadata:J,...w}=G.output;return $?.info?.({clientName:Y,commandName:X,input:j(K.input),output:Q(w),metadata:J}),G}catch(G){let{clientName:Y,commandName:X,logger:$,dynamoDbDocumentClientOptions:Z={}}=W,{overrideInputFilterSensitiveLog:L}=Z,b=L??W.inputFilterSensitiveLog;throw $?.error?.({clientName:Y,commandName:X,input:b(K.input),error:G,metadata:G.$metadata}),G}},$W={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},fG=(_)=>({applyToStack:(W)=>{W.add(YW(),$W)}}),ZW={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},K_="X-Amzn-Trace-Id",yG="AWS_LAMBDA_FUNCTION_NAME",lG="_X_AMZN_TRACE_ID",bW=()=>(_)=>async(W)=>{let{request:K}=W;if(!m.HttpRequest.isInstance(K))return _(W);let G=Object.keys(K.headers??{}).find((j)=>j.toLowerCase()===K_.toLowerCase())??K_;if(K.headers.hasOwnProperty(G))return _(W);let Y=process.env[yG],X=process.env[lG],L=(await qG.InvokeStore.getInstanceAsync())?.getXRayTraceId()??X,b=(j)=>typeof j==="string"&&j.length>0;if(b(Y)&&b(L))K.headers[K_]=L;return _({...W,request:K})},cG=(_)=>({applyToStack:(W)=>{W.add(bW(),ZW)}}),$_=void 0;function dG(_){if(_===void 0)return!0;return typeof _==="string"&&_.length<=50}function mG(_){let W=IG.normalizeProvider(_.userAgentAppId??$_),{customUserAgent:K}=_;return Object.assign(_,{customUserAgent:typeof K==="string"?[[K]]:K,userAgentAppId:async()=>{let G=await W();if(!dG(G)){let Y=_.logger?.constructor?.name==="NoOpLogger"||!_.logger?console:_.logger;if(typeof G!=="string")Y?.warn("userAgentAppId must be a string or undefined.");else if(G.length>50)Y?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return G}})}var LW={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"},QW=LW,jW="",JW=(_)=>{let{partitions:W}=QW;for(let G of W){let{regions:Y,outputs:X}=G;for(let[$,Z]of Object.entries(Y))if($===_)return{...X,...Z}}for(let G of W){let{regionRegex:Y,outputs:X}=G;if(new RegExp(Y).test(_))return{...X}}let K=W.find((G)=>G.id==="aws");if(!K)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...K.outputs}},OW=(_,W="")=>{QW=_,jW=W},gG=()=>{OW(LW,"")},wW=()=>jW,uG=/\d{12}\.ddb/;async function pG(_,W,K){if(K.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")H(_,"PROTOCOL_RPC_V2_CBOR","M");if(typeof W.retryStrategy==="function"){let X=await W.retryStrategy();if(typeof X.mode==="string")switch(X.mode){case Y_.RETRY_MODES.ADAPTIVE:H(_,"RETRY_MODE_ADAPTIVE","F");break;case Y_.RETRY_MODES.STANDARD:H(_,"RETRY_MODE_STANDARD","E");break}}if(typeof W.accountIdEndpointMode==="function"){let X=_.endpointV2;if(String(X?.url?.hostname).match(uG))H(_,"ACCOUNT_ID_ENDPOINT","O");switch(await W.accountIdEndpointMode?.()){case"disabled":H(_,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":H(_,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":H(_,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let Y=_.__smithy_context?.selectedHttpAuthScheme?.identity;if(Y?.$source){let X=Y;if(X.accountId)H(_,"RESOLVED_ACCOUNT_ID","T");for(let[$,Z]of Object.entries(X.$source??{}))H(_,$,Z)}}var e_="user-agent",G_="x-amz-user-agent",_W=" ",X_="/",sG=/[^!$%&'*+\-.^_`|~\w]/g,aG=/[^!$%&'*+\-.^_`|~\w#]/g,WW="-",iG=1024;function nG(_){let W="";for(let K in _){let G=_[K];if(W.length+G.length+1<=iG){if(W.length)W+=","+G;else W+=G;continue}break}return W}var BW=(_)=>(W,K)=>async(G)=>{let{request:Y}=G;if(!m.HttpRequest.isInstance(Y))return W(G);let{headers:X}=Y,$=K?.userAgent?.map(c)||[],Z=(await _.defaultUserAgentProvider()).map(c);await pG(K,_,G);let L=K;Z.push(`m/${nG(Object.assign({},K.__smithy_context?.features,L.__aws_sdk_context?.features))}`);let b=_?.customUserAgent?.map(c)||[],j=await _.userAgentAppId();if(j)Z.push(c(["app",`${j}`]));let Q=wW(),J=(Q?[Q]:[]).concat([...Z,...$,...b]).join(_W),w=[...Z.filter((F)=>F.startsWith("aws-sdk-")),...b].join(_W);if(_.runtime!=="browser"){if(w)X[G_]=X[G_]?`${X[e_]} ${w}`:w;X[e_]=J}else X[G_]=J;return W({...G,request:Y})},c=(_)=>{let W=_[0].split(X_).map(($)=>$.replace(sG,WW)).join(X_),K=_[1]?.replace(aG,WW),G=W.indexOf(X_),Y=W.substring(0,G),X=W.substring(G+1);if(Y==="api")X=X.toLowerCase();return[Y,X,K].filter(($)=>$&&$.length>0).reduce(($,Z,L)=>{switch(L){case 0:return Z;case 1:return`${$}/${Z}`;default:return`${$}#${Z}`}},"")},HW={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},oG=(_)=>({applyToStack:(W)=>{W.add(BW(_),HW)}}),tG=()=>{let _=["deno","bun","llrt"];for(let W of _)if(P.versions[W])return[`md/${W}`,P.versions[W]];return["md/nodejs",P.versions.node]},rG=(_)=>{let W=process.cwd();if(!_)return[W];let K=E.normalize(_),G=K.split(E.sep),Y=G.indexOf("node_modules"),X=Y!==-1?G.slice(0,Y).join(E.sep):K;if(W===X)return[W];return[X,W]},eG=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,zW=(_="")=>{let W=_.match(eG);if(!W)return;let[K,G,Y,X]=[W[1],W[2],W[3],W[4]];return X?`${K}.${G}.${Y}-${X}`:`${K}.${G}.${Y}`},_1=["^","~",">=","<=",">","<"],W1=["latest","beta","dev","rc","insiders","next"],K1=(_="")=>{if(W1.includes(_))return _;let W=_1.find((G)=>_.startsWith(G))??"",K=zW(_.slice(W.length));if(!K)return;return`${W}${K}`},B,G1=E.join("node_modules","typescript","package.json"),X1=async()=>{if(B===null)return;else if(typeof B==="string")return["md/tsc",B];let _=!1;try{_=z.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",z.SelectorType.ENV)||!1}catch{}if(_){B=null;return}let K=rG(typeof __dirname<"u"?__dirname:void 0),G;for(let $ of K)try{let Z=E.join($,"package.json"),L=await r_.readFile(Z,"utf-8"),{dependencies:b,devDependencies:j}=JSON.parse(L),Q=j?.typescript??b?.typescript;if(typeof Q!=="string")continue;G=Q;break}catch{}if(!G){B=null;return}let Y;for(let $ of K)try{let Z=E.join($,G1),L=await r_.readFile(Z,"utf-8"),{version:b}=JSON.parse(L),j=zW(b);if(typeof j!=="string")continue;Y=j;break}catch{}if(Y)return B=Y,["md/tsc",B];let X=K1(G);if(typeof X!=="string"){B=null;return}return B=`dev_${X}`,["md/tsc",B]},FW={isCrtAvailable:!1},Y1=()=>{if(FW.isCrtAvailable)return["md/crt-avail"];return null},MW=({serviceId:_,clientVersion:W})=>{let K=tG();return async(G)=>{let Y=[["aws-sdk-js",W],["ua","2.1"],[`os/${t_.platform()}`,t_.release()],["lang/js"],K],X=await X1();if(X)Y.push(X);let $=Y1();if($)Y.push($);if(_)Y.push([`api/${_}`,W]);if(P.env.AWS_EXECUTION_ENV)Y.push([`exec-env/${P.env.AWS_EXECUTION_ENV}`]);let Z=await G?.userAgentAppId?.();return Z?[...Y,[`app/${Z}`]]:[...Y]}},$1=MW,VW="AWS_SDK_UA_APP_ID",NW="sdk_ua_app_id",Z1="sdk-ua-app-id",b1={environmentVariableSelector:(_)=>_[VW],configFileSelector:(_)=>_[NW]??_[Z1],default:$_},L1=({serviceId:_,clientVersion:W})=>async(K)=>{let G=await import("./chunk-9qzwmt76.js"),Y=G.parse??G.default.parse??(()=>""),X=typeof window<"u"&&window?.navigator?.userAgent?Y(window.navigator.userAgent):void 0,$=[["aws-sdk-js",W],["ua","2.1"],[`os/${X?.os?.name||"other"}`,X?.os?.version],["lang/js"],["md/browser",`${X?.browser?.name??"unknown"}_${X?.browser?.version??"unknown"}`]];if(_)$.push([`api/${_}`,W]);let Z=await K?.userAgentAppId?.();if(Z)$.push([`app/${Z}`]);return $},Q1={os(_){if(/iPhone|iPad|iPod/.test(_))return"iOS";if(/Macintosh|Mac OS X/.test(_))return"macOS";if(/Windows NT/.test(_))return"Windows";if(/Android/.test(_))return"Android";if(/Linux/.test(_))return"Linux";return},browser(_){if(/EdgiOS|EdgA|Edg\//.test(_))return"Microsoft Edge";if(/Firefox\//.test(_))return"Firefox";if(/Chrome\//.test(_))return"Chrome";if(/Safari\//.test(_))return"Safari";return}},Z_=(_,W=!1)=>{if(W){for(let K of _.split("."))if(!Z_(K))return!1;return!0}if(!C.isValidHostLabel(_))return!1;if(_.length<3||_.length>63)return!1;if(_!==_.toLowerCase())return!1;if(C.isIpAddress(_))return!1;return!0},KW=":",j1="/",UW=(_)=>{let W=_.split(KW);if(W.length<6)return null;let[K,G,Y,X,$,...Z]=W;if(K!=="arn"||G===""||Y===""||Z.join(KW)==="")return null;let L=Z.map((b)=>b.split(j1)).flat();return{partition:G,service:Y,region:X,accountId:$,resourceId:L}},EW={isVirtualHostableS3Bucket:Z_,parseArn:UW,partition:JW};C.customEndpointFunctions.aws=EW;var J1=(_)=>{if(typeof _.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:W}=_;if(W===void 0)_.endpoint=async()=>{return CW(_.endpointProvider({Region:typeof _.region==="function"?await _.region():_.region,UseDualStack:typeof _.useDualstackEndpoint==="function"?await _.useDualstackEndpoint():_.useDualstackEndpoint,UseFIPS:typeof _.useFipsEndpoint==="function"?await _.useFipsEndpoint():_.useFipsEndpoint,Endpoint:void 0},{logger:_.logger}))};return _},CW=(_)=>m.parseUrl(_.url);function O1(_={}){return z.loadConfig({...z.NODE_REGION_CONFIG_OPTIONS,async default(){if(!hW.silence)console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");return"us-east-1"}},{...z.NODE_REGION_CONFIG_FILE_OPTIONS,..._})}var hW={silence:!1},w1=(_)=>{return{setRegion(W){_.region=W},region(){return _.region}}},B1=(_)=>{return{region:_.region()}};H1.NODE_REGION_CONFIG_FILE_OPTIONS=z.NODE_REGION_CONFIG_FILE_OPTIONS;H1.NODE_REGION_CONFIG_OPTIONS=z.NODE_REGION_CONFIG_OPTIONS;H1.REGION_ENV_NAME=z.REGION_ENV_NAME;H1.REGION_INI_NAME=z.REGION_INI_NAME;H1.resolveRegionConfig=z.resolveRegionConfig;H1.EndpointError=C.EndpointError;H1.isIpAddress=C.isIpAddress;H1.resolveEndpoint=C.resolveEndpoint;H1.DEFAULT_UA_APP_ID=$_;H1.NODE_APP_ID_CONFIG_OPTIONS=b1;H1.UA_APP_ID_ENV_NAME=VW;H1.UA_APP_ID_INI_NAME=NW;H1.awsEndpointFunctions=EW;H1.createDefaultUserAgentProvider=MW;H1.createUserAgentStringParsingProvider=L1;H1.crtAvailability=FW;H1.defaultUserAgent=$1;H1.emitWarningIfUnsupportedVersion=TG;H1.fallback=Q1;H1.getAwsRegionExtensionConfiguration=w1;H1.getHostHeaderPlugin=xG;H1.getLoggerPlugin=fG;H1.getLongPollPlugin=RG;H1.getRecursionDetectionPlugin=cG;H1.getUserAgentMiddlewareOptions=HW;H1.getUserAgentPlugin=oG;H1.getUserAgentPrefix=wW;H1.hostHeaderMiddleware=GW;H1.hostHeaderMiddlewareOptions=XW;H1.isVirtualHostableS3Bucket=Z_;H1.loggerMiddleware=YW;H1.loggerMiddlewareOptions=$W;H1.parseArn=UW;H1.partition=JW;H1.recursionDetectionMiddleware=bW;H1.recursionDetectionMiddlewareOptions=ZW;H1.resolveAwsRegionExtensionConfiguration=B1;H1.resolveDefaultAwsRegionalEndpointsConfig=J1;H1.resolveHostHeaderConfig=vG;H1.resolveUserAgentConfig=mG;H1.setCredentialFeature=AG;H1.setFeature=H;H1.setPartitionInfo=OW;H1.setTokenFeature=kG;H1.state=d;H1.stsRegionDefaultResolver=O1;H1.stsRegionWarning=hW;H1.toEndpointV1=CW;H1.useDefaultPartitionInfo=gG;H1.userAgentMiddleware=BW});
|
|
11
|
+
export{k_ as Le,i_ as Me,OX as Ne};
|