@claudiolabs/claudin 0.6.3 → 0.6.5
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/dist/chunks/AgentTool-0.6.5-9pre88qb.mjs +1 -0
- package/dist/chunks/App-0.6.5-syfacmqb.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.5-2rrtj277.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.5-8deawh7z.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.5-8e3v3cgx.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.5-3pjygvs2.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.5-s2js1wag.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.5-36z08571.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.5-g256mdz0.mjs +3 -0
- package/dist/chunks/Doctor-0.6.5-vty8ec8n.mjs +1 -0
- package/dist/chunks/Grove-0.6.5-p00f24rh.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.5-53j2wh9w.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.5-gtpj7hn7.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.5-3d3v9kn1.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.5-mnbsk1bz.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.5-9r9rkgj0.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.5-yb8w75gs.mjs +1 -0
- package/dist/chunks/REPL-0.6.5-wqyg8nfv.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.5-0d1tkqfd.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.5-n5pa0d9r.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.5-t863eyfb.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.5-11ykz8de.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.5-dn6dvzvv.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.5-yd46t6dv.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.5-6kssfnkp.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.5-mdbqw8dc.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.5-wpe1bnhr.mjs +1 -0
- package/dist/chunks/add-dir-0.6.5-zphaxr62.mjs +1 -0
- package/dist/chunks/agents-0.6.5-9rhdp3vp.mjs +110 -0
- package/dist/chunks/agents-0.6.5-krnahvn4.mjs +3 -0
- package/dist/chunks/api-0.6.5-vfnxfssn.mjs +1 -0
- package/dist/chunks/asciicast-0.6.5-hr205c81.mjs +1 -0
- package/dist/chunks/assistant-0.6.5-nfbsgssx.mjs +1 -0
- package/dist/chunks/auth-0.6.5-9baxvtxg.mjs +1 -0
- package/dist/chunks/auth-0.6.5-cq4yrhn2.mjs +1 -0
- package/dist/chunks/autoMode-0.6.5-kzhwpmfg.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.5-bkzpv0pd.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.5-2mkev4qh.mjs +1 -0
- package/dist/chunks/branch-0.6.5-8vtt7esr.mjs +4 -0
- package/dist/chunks/bridge-0.6.5-9c1v2e52.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.5-w77y3p5n.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.5-k6hvamvf.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.5-pea2hztr.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.5-87t92nmh.mjs +1 -0
- package/dist/chunks/btw-0.6.5-xhyyarh0.mjs +1 -0
- package/dist/chunks/buddy-0.6.5-g9csmkdw.mjs +3 -0
- package/dist/chunks/cacache-0.6.5-kzjmbjve.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.5-c2br8x9m.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.5-kbdcab9q.mjs +4 -0
- package/dist/chunks/caches-0.6.5-nwzvsny2.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.5-51tkmdr1.mjs +1 -0
- package/dist/chunks/claudemd-0.6.5-212twher.mjs +1 -0
- package/dist/chunks/clear-0.6.5-yg0wcbw4.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.5-0c24f1yy.mjs +1 -0
- package/dist/chunks/cli-0.6.5-00kbsd9f.mjs +2 -0
- package/dist/chunks/cli-0.6.5-0356tc6y.mjs +2 -0
- package/dist/chunks/cli-0.6.5-06d8zge2.mjs +2 -0
- package/dist/chunks/cli-0.6.5-0j7fzwkx.mjs +2 -0
- package/dist/chunks/cli-0.6.5-0pt0eq6a.mjs +3 -0
- package/dist/chunks/cli-0.6.5-13g3042y.mjs +12 -0
- package/dist/chunks/cli-0.6.5-192npvx3.mjs +2 -0
- package/dist/chunks/cli-0.6.5-19mg5dfx.mjs +6 -0
- package/dist/chunks/cli-0.6.5-1bz46ywp.mjs +2 -0
- package/dist/chunks/cli-0.6.5-1fqhk4mv.mjs +9 -0
- package/dist/chunks/cli-0.6.5-1k5wyv3x.mjs +2 -0
- package/dist/chunks/cli-0.6.5-1m46f13z.mjs +2 -0
- package/dist/chunks/cli-0.6.5-1r4j3nda.mjs +58 -0
- package/dist/chunks/cli-0.6.5-2dq7pa8p.mjs +34 -0
- package/dist/chunks/cli-0.6.5-2s673b9m.mjs +2 -0
- package/dist/chunks/cli-0.6.5-38gqwg2m.mjs +2 -0
- package/dist/chunks/cli-0.6.5-3hemanw8.mjs +15 -0
- package/dist/chunks/cli-0.6.5-3p5vg2yx.mjs +2 -0
- package/dist/chunks/cli-0.6.5-3ybp7ww7.mjs +6 -0
- package/dist/chunks/cli-0.6.5-406dcpxw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-41tc50h9.mjs +2 -0
- package/dist/chunks/cli-0.6.5-477kp2fg.mjs +2 -0
- package/dist/chunks/cli-0.6.5-47s6s6ew.mjs +2 -0
- package/dist/chunks/cli-0.6.5-4k3kk3pr.mjs +17 -0
- package/dist/chunks/cli-0.6.5-4whh4m3h.mjs +2 -0
- package/dist/chunks/cli-0.6.5-54w728vm.mjs +2 -0
- package/dist/chunks/cli-0.6.5-57jmtd2z.mjs +2 -0
- package/dist/chunks/cli-0.6.5-58ck75qn.mjs +2 -0
- package/dist/chunks/cli-0.6.5-5py2stcw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-5rpfanmw.mjs +3 -0
- package/dist/chunks/cli-0.6.5-5t6d3asz.mjs +5347 -0
- package/dist/chunks/cli-0.6.5-5wr197ms.mjs +25 -0
- package/dist/chunks/cli-0.6.5-5ymbb1v4.mjs +2 -0
- package/dist/chunks/cli-0.6.5-60hfev34.mjs +2 -0
- package/dist/chunks/cli-0.6.5-61tnv5c7.mjs +2 -0
- package/dist/chunks/cli-0.6.5-6829jyhh.mjs +9 -0
- package/dist/chunks/cli-0.6.5-69f24h9w.mjs +8 -0
- package/dist/chunks/cli-0.6.5-6ab8b50h.mjs +2 -0
- package/dist/chunks/cli-0.6.5-6e6pv00e.mjs +2 -0
- package/dist/chunks/cli-0.6.5-6ev1k0qv.mjs +133 -0
- package/dist/chunks/cli-0.6.5-6q2d7p49.mjs +2 -0
- package/dist/chunks/cli-0.6.5-6qvtcs5y.mjs +2 -0
- package/dist/chunks/cli-0.6.5-6wpz6mks.mjs +2 -0
- package/dist/chunks/cli-0.6.5-6x91apzw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-72v6gjqf.mjs +2 -0
- package/dist/chunks/cli-0.6.5-7am1hb1v.mjs +2 -0
- package/dist/chunks/cli-0.6.5-7tzhpeyn.mjs +2 -0
- package/dist/chunks/cli-0.6.5-7vnp5x55.mjs +15 -0
- package/dist/chunks/cli-0.6.5-81fzcvec.mjs +4 -0
- package/dist/chunks/cli-0.6.5-87qz97g2.mjs +2 -0
- package/dist/chunks/cli-0.6.5-8hsxq1p3.mjs +2 -0
- package/dist/chunks/cli-0.6.5-8zsy7h21.mjs +2 -0
- package/dist/chunks/cli-0.6.5-95a4872h.mjs +2 -0
- package/dist/chunks/cli-0.6.5-983fq4aj.mjs +7 -0
- package/dist/chunks/cli-0.6.5-987r1x1q.mjs +2 -0
- package/dist/chunks/cli-0.6.5-9cs6r2j7.mjs +2 -0
- package/dist/chunks/cli-0.6.5-9d9gmzev.mjs +2 -0
- package/dist/chunks/cli-0.6.5-9g1pn7jy.mjs +2 -0
- package/dist/chunks/cli-0.6.5-9g7p6wdj.mjs +5 -0
- package/dist/chunks/cli-0.6.5-9hp0d08c.mjs +2 -0
- package/dist/chunks/cli-0.6.5-a0ke5n08.mjs +2 -0
- package/dist/chunks/cli-0.6.5-a1csk51d.mjs +3 -0
- package/dist/chunks/cli-0.6.5-a23zsgke.mjs +3 -0
- package/dist/chunks/cli-0.6.5-a8za8sjg.mjs +2 -0
- package/dist/chunks/cli-0.6.5-akw85jbw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-amtt1tbm.mjs +39 -0
- package/dist/chunks/cli-0.6.5-awhfeefv.mjs +5 -0
- package/dist/chunks/cli-0.6.5-azwzatpd.mjs +20 -0
- package/dist/chunks/cli-0.6.5-b7x38zg8.mjs +2 -0
- package/dist/chunks/cli-0.6.5-bm7v9qp0.mjs +2 -0
- package/dist/chunks/cli-0.6.5-brk2sfdw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-bzz83kdv.mjs +2 -0
- package/dist/chunks/cli-0.6.5-c0nyamvd.mjs +17 -0
- package/dist/chunks/cli-0.6.5-c4v4vgw4.mjs +2 -0
- package/dist/chunks/cli-0.6.5-c7yx03g7.mjs +16 -0
- package/dist/chunks/cli-0.6.5-ce51qb6k.mjs +4 -0
- package/dist/chunks/cli-0.6.5-ckc9hr8m.mjs +2 -0
- package/dist/chunks/cli-0.6.5-cwaewkgb.mjs +2 -0
- package/dist/chunks/cli-0.6.5-czc9nvxh.mjs +133 -0
- package/dist/chunks/cli-0.6.5-d7nvtk63.mjs +2 -0
- package/dist/chunks/cli-0.6.5-dcr7rpqe.mjs +2 -0
- package/dist/chunks/cli-0.6.5-dm2rwpsb.mjs +2 -0
- package/dist/chunks/cli-0.6.5-dy5v4gms.mjs +3 -0
- package/dist/chunks/cli-0.6.5-e47bwdgy.mjs +2 -0
- package/dist/chunks/cli-0.6.5-e5pzxdbx.mjs +2 -0
- package/dist/chunks/cli-0.6.5-e7k35s7j.mjs +2 -0
- package/dist/chunks/cli-0.6.5-e9t7harq.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ef17hb7w.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ef6b5qvc.mjs +193 -0
- package/dist/chunks/cli-0.6.5-efh1xzne.mjs +24 -0
- package/dist/chunks/cli-0.6.5-efsxkpxr.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ej3jf59h.mjs +2 -0
- package/dist/chunks/cli-0.6.5-env00jtm.mjs +1 -0
- package/dist/chunks/cli-0.6.5-eq4cscgw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-eqk6q7pf.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ev41fmky.mjs +2 -0
- package/dist/chunks/cli-0.6.5-f34ttkbg.mjs +2 -0
- package/dist/chunks/cli-0.6.5-f4x1fb90.mjs +4 -0
- package/dist/chunks/cli-0.6.5-f71ncwzk.mjs +59 -0
- package/dist/chunks/cli-0.6.5-fg2a16s4.mjs +2 -0
- package/dist/chunks/cli-0.6.5-g43wnabd.mjs +2 -0
- package/dist/chunks/cli-0.6.5-g7d8vsb2.mjs +2 -0
- package/dist/chunks/cli-0.6.5-g8qt9gm7.mjs +2 -0
- package/dist/chunks/cli-0.6.5-gjzdpmdx.mjs +2 -0
- package/dist/chunks/cli-0.6.5-gk89f6jk.mjs +4 -0
- package/dist/chunks/cli-0.6.5-gw6ygdnq.mjs +3 -0
- package/dist/chunks/cli-0.6.5-h08jc3cj.mjs +18 -0
- package/dist/chunks/cli-0.6.5-h0xnjwg1.mjs +2 -0
- package/dist/chunks/cli-0.6.5-h3cch37f.mjs +2 -0
- package/dist/chunks/cli-0.6.5-h5x9r5ap.mjs +50 -0
- package/dist/chunks/cli-0.6.5-j45setk1.mjs +2 -0
- package/dist/chunks/cli-0.6.5-j5v5jpq8.mjs +2 -0
- package/dist/chunks/cli-0.6.5-je97ssab.mjs +2 -0
- package/dist/chunks/cli-0.6.5-jqbkgjhs.mjs +2 -0
- package/dist/chunks/cli-0.6.5-jrnx4znh.mjs +2 -0
- package/dist/chunks/cli-0.6.5-jygg6ynx.mjs +2 -0
- package/dist/chunks/cli-0.6.5-k15yzap9.mjs +2 -0
- package/dist/chunks/cli-0.6.5-k74repdw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-k8vb0qqx.mjs +2 -0
- package/dist/chunks/cli-0.6.5-k8vgyecf.mjs +2 -0
- package/dist/chunks/cli-0.6.5-kac7d6qe.mjs +2 -0
- package/dist/chunks/cli-0.6.5-kd1sw5qm.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ke48d24y.mjs +2 -0
- package/dist/chunks/cli-0.6.5-khsn0wkk.mjs +21 -0
- package/dist/chunks/cli-0.6.5-kjntnfas.mjs +2 -0
- package/dist/chunks/cli-0.6.5-kqhpzqdw.mjs +67 -0
- package/dist/chunks/cli-0.6.5-kr0q8v74.mjs +2 -0
- package/dist/chunks/cli-0.6.5-kxwg80ye.mjs +42 -0
- package/dist/chunks/cli-0.6.5-kyp268ew.mjs +2 -0
- package/dist/chunks/cli-0.6.5-kzr5p1mv.mjs +2 -0
- package/dist/chunks/cli-0.6.5-kztnt6aq.mjs +2 -0
- package/dist/chunks/cli-0.6.5-m2619f84.mjs +2 -0
- package/dist/chunks/cli-0.6.5-mgv2cvps.mjs +45 -0
- package/dist/chunks/cli-0.6.5-mpdvzrnw.mjs +2 -0
- package/dist/chunks/cli-0.6.5-mtx91sgr.mjs +2 -0
- package/dist/chunks/cli-0.6.5-n4hnag3x.mjs +2 -0
- package/dist/chunks/cli-0.6.5-n64fe6ey.mjs +2 -0
- package/dist/chunks/cli-0.6.5-nd6kqcck.mjs +2 -0
- package/dist/chunks/cli-0.6.5-nngqh0bh.mjs +2 -0
- package/dist/chunks/cli-0.6.5-p6n42hmh.mjs +4 -0
- package/dist/chunks/cli-0.6.5-pa3ap7rs.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pbahk0n4.mjs +12 -0
- package/dist/chunks/cli-0.6.5-pbyhms5s.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pev4540w.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pgs0eeqg.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pky7r4pf.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pv1b8wyy.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pw1077hd.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pynms6t8.mjs +2 -0
- package/dist/chunks/cli-0.6.5-pz5add8h.mjs +4 -0
- package/dist/chunks/cli-0.6.5-q027r0rf.mjs +2 -0
- package/dist/chunks/cli-0.6.5-q1qpax7b.mjs +2 -0
- package/dist/chunks/cli-0.6.5-q2z0n0me.mjs +2 -0
- package/dist/chunks/cli-0.6.5-q4gh8d4w.mjs +6 -0
- package/dist/chunks/cli-0.6.5-q67zwknt.mjs +4 -0
- package/dist/chunks/cli-0.6.5-qhq9tmd4.mjs +24 -0
- package/dist/chunks/cli-0.6.5-qx67z0cv.mjs +2 -0
- package/dist/chunks/cli-0.6.5-r06ahe39.mjs +3 -0
- package/dist/chunks/cli-0.6.5-r2khv6re.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ras9cma3.mjs +2 -0
- package/dist/chunks/cli-0.6.5-rkjw25m5.mjs +2 -0
- package/dist/chunks/cli-0.6.5-rrteyxna.mjs +5 -0
- package/dist/chunks/cli-0.6.5-rsve86mh.mjs +12 -0
- package/dist/chunks/cli-0.6.5-rvnz8f4b.mjs +3 -0
- package/dist/chunks/cli-0.6.5-ry2zfh45.mjs +2 -0
- package/dist/chunks/cli-0.6.5-s1ahtmc1.mjs +2 -0
- package/dist/chunks/cli-0.6.5-s42kf4d5.mjs +2 -0
- package/dist/chunks/cli-0.6.5-s580r0vs.mjs +2 -0
- package/dist/chunks/cli-0.6.5-sph3w6xt.mjs +2 -0
- package/dist/chunks/cli-0.6.5-svr5tx29.mjs +2 -0
- package/dist/chunks/cli-0.6.5-sz8mbg6v.mjs +2 -0
- package/dist/chunks/cli-0.6.5-t0x65qv4.mjs +26 -0
- package/dist/chunks/cli-0.6.5-t4tz7xht.mjs +18 -0
- package/dist/chunks/cli-0.6.5-th48yhz2.mjs +2 -0
- package/dist/chunks/cli-0.6.5-thfwpyjp.mjs +2 -0
- package/dist/chunks/cli-0.6.5-tj3hcx9x.mjs +2 -0
- package/dist/chunks/cli-0.6.5-tqwbfn5c.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ts0kvt5k.mjs +2 -0
- package/dist/chunks/cli-0.6.5-vbw9z7ya.mjs +2 -0
- package/dist/chunks/cli-0.6.5-vj647gqr.mjs +2 -0
- package/dist/chunks/cli-0.6.5-vjydf7v2.mjs +2 -0
- package/dist/chunks/cli-0.6.5-vn8pa80z.mjs +3 -0
- package/dist/chunks/cli-0.6.5-vpebat6v.mjs +4 -0
- package/dist/chunks/cli-0.6.5-vqb4jtcr.mjs +2 -0
- package/dist/chunks/cli-0.6.5-vsmwyh7p.mjs +2 -0
- package/dist/chunks/cli-0.6.5-vywqm5j0.mjs +2 -0
- package/dist/chunks/cli-0.6.5-w2qf3sbz.mjs +2 -0
- package/dist/chunks/cli-0.6.5-wa6b2ksg.mjs +2 -0
- package/dist/chunks/cli-0.6.5-wgdp3ytt.mjs +15 -0
- package/dist/chunks/cli-0.6.5-xbz59an6.mjs +2 -0
- package/dist/chunks/cli-0.6.5-xngsek99.mjs +3 -0
- package/dist/chunks/cli-0.6.5-xwvfjaga.mjs +2 -0
- package/dist/chunks/cli-0.6.5-xxnhfq1f.mjs +3 -0
- package/dist/chunks/cli-0.6.5-xxtrec34.mjs +2 -0
- package/dist/chunks/cli-0.6.5-y4kbaj8m.mjs +3 -0
- package/dist/chunks/cli-0.6.5-ybxktrwn.mjs +4 -0
- package/dist/chunks/cli-0.6.5-ynxewk0a.mjs +18 -0
- package/dist/chunks/cli-0.6.5-yv4805v6.mjs +2 -0
- package/dist/chunks/cli-0.6.5-ywh9eaz9.mjs +3 -0
- package/dist/chunks/cli-0.6.5-yy3mtt7p.mjs +4 -0
- package/dist/chunks/cli-0.6.5-z5qqy4bb.mjs +10 -0
- package/dist/chunks/cli-0.6.5-z64827fd.mjs +2 -0
- package/dist/chunks/cli-0.6.5-zxppzj42.mjs +3 -0
- package/dist/chunks/client-0.6.5-kcsx56gb.mjs +1 -0
- package/dist/chunks/color-0.6.5-m4adc5zy.mjs +1 -0
- package/dist/chunks/compact-0.6.5-pp3jftxy.mjs +3 -0
- package/dist/chunks/config-0.6.5-4t1bbgpf.mjs +1 -0
- package/dist/chunks/config-0.6.5-8j3ajra5.mjs +1 -0
- package/dist/chunks/constants-0.6.5-z1rfnbw0.mjs +1 -0
- package/dist/chunks/context-0.6.5-k4dkxskt.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.5-t2s33qfv.mjs +1 -0
- package/dist/chunks/conversation-0.6.5-wtjv42fh.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.5-t5d64yyd.mjs +1 -0
- package/dist/chunks/copy-0.6.5-r2cah677.mjs +9 -0
- package/dist/chunks/cost-0.6.5-8bs4d6y0.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.5-7p69k83d.mjs +1 -0
- package/dist/chunks/createSession-0.6.5-fwtmdngf.mjs +1 -0
- package/dist/chunks/debug-0.6.5-xmxftwgk.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.5-z6w9jmje.mjs +1367 -0
- package/dist/chunks/desktop-0.6.5-fargeve3.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.5-ymk4cd49.mjs +1 -0
- package/dist/chunks/detection-0.6.5-9v4p8jdz.mjs +1 -0
- package/dist/chunks/diff-0.6.5-8ja76cbj.mjs +1 -0
- package/dist/chunks/doctor-0.6.5-j9ztya6c.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.5-4rk9v7gn.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.5-jnt6pqdj.mjs +1 -0
- package/dist/chunks/effort-0.6.5-wn6gayah.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.5-eptez4tg.mjs +1 -0
- package/dist/chunks/envUtils-0.6.5-62qkktte.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.5-zdqp06ex.mjs +1 -0
- package/dist/chunks/environments-0.6.5-4cxm9f2v.mjs +1 -0
- package/dist/chunks/errors-0.6.5-zrzdygzb.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.5-c4p6gs14.mjs +1 -0
- package/dist/chunks/exit-0.6.5-491d2dm3.mjs +1 -0
- package/dist/chunks/export-0.6.5-ydgbaqvw.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.5-qc1chr9f.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.5-g2ratb24.mjs +1 -0
- package/dist/chunks/fast-0.6.5-19egbvsn.mjs +1 -0
- package/dist/chunks/feedback-0.6.5-r15hzy5x.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.5-h0wam92d.mjs +1 -0
- package/dist/chunks/git-0.6.5-kd4a5hgs.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.5-ahxqf63c.mjs +1 -0
- package/dist/chunks/goal-0.6.5-kyahd6wn.mjs +4 -0
- package/dist/chunks/grove-0.6.5-qjgh7ss3.mjs +1 -0
- package/dist/chunks/growthbook-0.6.5-ax1nfvk4.mjs +1 -0
- package/dist/chunks/headless-0.6.5-4pg9fsvq.mjs +2 -0
- package/dist/chunks/heapdump-0.6.5-9k0vppqs.mjs +6 -0
- package/dist/chunks/help-0.6.5-tfhm2beq.mjs +1 -0
- package/dist/chunks/hookChains-0.6.5-6szjehhz.mjs +3 -0
- package/dist/chunks/hooks-0.6.5-dgpkkjn0.mjs +79 -0
- package/dist/chunks/hooks-0.6.5-w5dctm3q.mjs +1 -0
- package/dist/chunks/ide-0.6.5-13et7be7.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.5-hnw96fqh.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.5-qc951hng.mjs +1 -0
- package/dist/chunks/index-0.6.5-01x1ejhn.mjs +1 -0
- package/dist/chunks/index-0.6.5-0abf9jmk.mjs +1 -0
- package/dist/chunks/index-0.6.5-1mp331dd.mjs +1 -0
- package/dist/chunks/index-0.6.5-1sg6s6z6.mjs +1 -0
- package/dist/chunks/index-0.6.5-4q6jjbs7.mjs +1 -0
- package/dist/chunks/index-0.6.5-6sk15ws5.mjs +2 -0
- package/dist/chunks/index-0.6.5-6t864t2c.mjs +1 -0
- package/dist/chunks/index-0.6.5-6xqpvv54.mjs +30 -0
- package/dist/chunks/index-0.6.5-7zhnqzn2.mjs +1 -0
- package/dist/chunks/index-0.6.5-89hxhv95.mjs +1 -0
- package/dist/chunks/index-0.6.5-aty810n8.mjs +1 -0
- package/dist/chunks/index-0.6.5-c2hwywv3.mjs +1 -0
- package/dist/chunks/index-0.6.5-e2wq7gh6.mjs +2 -0
- package/dist/chunks/index-0.6.5-g0kwgaqr.mjs +17 -0
- package/dist/chunks/index-0.6.5-gtcspa71.mjs +1 -0
- package/dist/chunks/index-0.6.5-h3efeppv.mjs +1 -0
- package/dist/chunks/index-0.6.5-m5ejvtqa.mjs +1 -0
- package/dist/chunks/index-0.6.5-mh7r1b3g.mjs +1 -0
- package/dist/chunks/index-0.6.5-pvve2ng4.mjs +5 -0
- package/dist/chunks/index-0.6.5-snpzxxv3.mjs +9 -0
- package/dist/chunks/index-0.6.5-tfw7v414.mjs +9 -0
- package/dist/chunks/index-0.6.5-wjkwk8e7.mjs +1 -0
- package/dist/chunks/index-0.6.5-z62wqvcx.mjs +1 -0
- package/dist/chunks/init-0.6.5-zhc6fyd5.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.5-7r1y5662.mjs +1 -0
- package/dist/chunks/ink-0.6.5-tndp68zg.mjs +1 -0
- package/dist/chunks/insights-0.6.5-vqzkktqr.mjs +870 -0
- package/dist/chunks/install-0.6.5-5gr23h3m.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.5-tng076rr.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.5-gsz9yrym.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.5-nqsng4g6.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.5-k1pvqxme.mjs +1 -0
- package/dist/chunks/keybindings-0.6.5-xerpw7ac.mjs +2 -0
- package/dist/chunks/knowledge-0.6.5-3cqswtp3.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.5-mvrgq9dd.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.5-h16ggtfs.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.5-35e6kcw6.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.5-qm874zd2.mjs +1 -0
- package/dist/chunks/log-0.6.5-xge4vs13.mjs +1 -0
- package/dist/chunks/main-0.6.5-4pf8xcyc.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.5-qbgyznrt.mjs +1 -0
- package/dist/chunks/mcp-0.6.5-293k7n7h.mjs +4 -0
- package/dist/chunks/mcp-0.6.5-45d2qxwd.mjs +17 -0
- package/dist/chunks/mcp-0.6.5-b5jvd286.mjs +1 -0
- package/dist/chunks/mcpb-0.6.5-e68tqw35.mjs +1 -0
- package/dist/chunks/memory-0.6.5-9htftc81.mjs +3 -0
- package/dist/chunks/model-0.6.5-rpyjsh6m.mjs +1 -0
- package/dist/chunks/model-0.6.5-zsk9vwg7.mjs +2 -0
- package/dist/chunks/node-0.6.5-j42ec4dm.mjs +12 -0
- package/dist/chunks/oauth-0.6.5-d8r75abq.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.5-deev7qr4.mjs +14 -0
- package/dist/chunks/output-style-0.6.5-t4my27zb.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.6.5-a34phgmb.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.5-3rw1krw2.mjs +1 -0
- package/dist/chunks/parser-0.6.5-hnbj9e8f.mjs +1 -0
- package/dist/chunks/passes-0.6.5-9x43pms7.mjs +1 -0
- package/dist/chunks/permissions-0.6.5-aymv501j.mjs +1 -0
- package/dist/chunks/permissions-0.6.5-y4jnw514.mjs +3 -0
- package/dist/chunks/plan-0.6.5-kct7xqkt.mjs +1 -0
- package/dist/chunks/plist-0.6.5-gp660say.mjs +1 -0
- package/dist/chunks/plugin-0.6.5-5vnph48t.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.5-y74n8rfx.mjs +1 -0
- package/dist/chunks/plugins-0.6.5-y0xna858.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.5-gd8pge33.mjs +2 -0
- package/dist/chunks/print-0.6.5-zr884wv0.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.5-gm8tkeqk.mjs +1 -0
- package/dist/chunks/process-0.6.5-ha5587zb.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.5-qpanbrjt.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.5-0zzej132.mjs +9 -0
- package/dist/chunks/prompt-0.6.5-n2e16857.mjs +1 -0
- package/dist/chunks/prompt-0.6.5-yd9wwvye.mjs +1 -0
- package/dist/chunks/prompts-0.6.5-4h181zjj.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.5-btkqsev6.mjs +13 -0
- package/dist/chunks/provider-0.6.5-pk6rtf1a.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.5-spn4hk2w.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.5-j9fqm33r.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.5-n0s4jxw7.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.5-s6pemg0a.mjs +34 -0
- package/dist/chunks/registry-0.6.5-q9cda2p7.mjs +1 -0
- package/dist/chunks/release-notes-0.6.5-5s8sv8ea.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.5-bqh5fz13.mjs +2 -0
- package/dist/chunks/remote-env-0.6.5-29f08tqs.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.5-gk9afz22.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.5-w7r3dh6h.mjs +1 -0
- package/dist/chunks/rename-0.6.5-es4wyt7z.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.5-66va2rkv.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.5-xzbbew8q.mjs +1 -0
- package/dist/chunks/resume-0.6.5-q2e001ra.mjs +2 -0
- package/dist/chunks/rewind-0.6.5-hhxvb1pk.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.5-smyb5d6s.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.5-6zvjjrgg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.5-ch59ryyz.mjs +1 -0
- package/dist/chunks/session-0.6.5-22r80wyd.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.5-aae5t467.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.5-a6xg367a.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.5-dqg82tdb.mjs +1 -0
- package/dist/chunks/settings-0.6.5-egjxpxrx.mjs +1 -0
- package/dist/chunks/setup-0.6.5-ks0cjhc0.mjs +5 -0
- package/dist/chunks/sinks-0.6.5-vnqdp1xs.mjs +1 -0
- package/dist/chunks/skills-0.6.5-fhq4v7kx.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.5-qg0j96r8.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.5-kgegmr3s.mjs +1 -0
- package/dist/chunks/state-0.6.5-s7hqk377.mjs +1 -0
- package/dist/chunks/stats-0.6.5-1c35kfn8.mjs +6 -0
- package/dist/chunks/status-0.6.5-wxfn3y7k.mjs +1 -0
- package/dist/chunks/stickers-0.6.5-vr2yr1fh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.5-p4nz5egm.mjs +1 -0
- package/dist/chunks/tasks-0.6.5-jq5x8fny.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.5-s5tew7t1.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.5-0yh7b47q.mjs +1 -0
- package/dist/chunks/teleport-0.6.5-hmv7mh01.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.5-k9d4e82r.mjs +1 -0
- package/dist/chunks/theme-0.6.5-24hr0s0e.mjs +1 -0
- package/dist/chunks/thinkback-0.6.5-6997cmgj.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.5-5bm6dv3e.mjs +1 -0
- package/dist/chunks/toolPool-0.6.5-599y15ba.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.5-acm72rsk.mjs +1 -0
- package/dist/chunks/tools-0.6.5-kydccz7r.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.5-44vjv9at.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.5-s2n7faa4.mjs +69 -0
- package/dist/chunks/types-0.6.5-h60ghfcx.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.5-vhpd8cxc.mjs +4 -0
- package/dist/chunks/update-0.6.5-j61jnpbt.mjs +86 -0
- package/dist/chunks/upgrade-0.6.5-yg323wxz.mjs +1 -0
- package/dist/chunks/upload-0.6.5-5tsm3bt7.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.5-0ayrwt4t.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.5-6sb73p95.mjs +1 -0
- package/dist/chunks/usage-0.6.5-0tjr5c54.mjs +1 -0
- package/dist/chunks/util-0.6.5-xcfvn255.mjs +1 -0
- package/dist/chunks/utils-0.6.5-gjqewwe3.mjs +1 -0
- package/dist/chunks/vim-0.6.5-hmp35ayy.mjs +1 -0
- package/dist/chunks/watcher-0.6.5-jra6eh4m.mjs +1 -0
- package/dist/chunks/wiki-0.6.5-0k1cftcn.mjs +132 -0
- package/dist/chunks/worktree-0.6.5-a5vvycs0.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.5-rva8222w.mjs +1 -0
- package/dist/chunks/wrapper-0.6.5-0bxnwc77.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.3-w39w1tm9.mjs +0 -1
- package/dist/chunks/App-0.6.3-bf23q7fe.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.3-kmctgnz2.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.3-0ep3n5s0.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.3-vxra859t.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.3-sw13k2p8.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.3-60awaqwr.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.3-kk7w26bg.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.3-xvx07sv4.mjs +0 -3
- package/dist/chunks/Doctor-0.6.3-4jwxgrk8.mjs +0 -1
- package/dist/chunks/Grove-0.6.3-g8cwnttq.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.3-jdkqh9bh.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.3-0k9mawc3.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.3-j8rff6m8.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.3-car6y4n7.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.3-m7danhhz.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.3-pwe3440b.mjs +0 -1
- package/dist/chunks/REPL-0.6.3-fgapj6pt.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.3-8m1y0n85.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.3-btb0czta.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.3-0cvtw4gc.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.3-3ns6hahg.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.3-82jmwxw0.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.3-ampabjvv.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.3-8nqsgt07.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.3-vd2hj09s.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.3-b2vqxf8h.mjs +0 -1
- package/dist/chunks/add-dir-0.6.3-g1q6rzd5.mjs +0 -1
- package/dist/chunks/agents-0.6.3-q5xaz38q.mjs +0 -3
- package/dist/chunks/agents-0.6.3-x369fczx.mjs +0 -110
- package/dist/chunks/api-0.6.3-c8cpd5e4.mjs +0 -1
- package/dist/chunks/asciicast-0.6.3-ph0g3j31.mjs +0 -1
- package/dist/chunks/assistant-0.6.3-zzx692bw.mjs +0 -1
- package/dist/chunks/auth-0.6.3-4t0t2nkn.mjs +0 -1
- package/dist/chunks/auth-0.6.3-s9a1xnxb.mjs +0 -1
- package/dist/chunks/autoMode-0.6.3-aha41tt9.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.3-nknpfabv.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.3-t18m5mxn.mjs +0 -1
- package/dist/chunks/branch-0.6.3-mm6nsq5m.mjs +0 -4
- package/dist/chunks/bridgePointer-0.6.3-96b73p4h.mjs +0 -1
- package/dist/chunks/btw-0.6.3-3ad5s4cs.mjs +0 -1
- package/dist/chunks/buddy-0.6.3-fv2jmxew.mjs +0 -3
- package/dist/chunks/cacache-0.6.3-8n06prq8.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.3-vwte845g.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.3-3knz38ev.mjs +0 -4
- package/dist/chunks/caches-0.6.3-ab262f7m.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.3-sw2jgmfw.mjs +0 -1
- package/dist/chunks/claudemd-0.6.3-ppznmrv5.mjs +0 -1
- package/dist/chunks/clear-0.6.3-q5ygewg2.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.3-k13xzp29.mjs +0 -1
- package/dist/chunks/cli-0.6.3-0cpgmzyt.mjs +0 -2
- package/dist/chunks/cli-0.6.3-0d5cxdkq.mjs +0 -2
- package/dist/chunks/cli-0.6.3-0f2ybbnq.mjs +0 -2
- package/dist/chunks/cli-0.6.3-0xzsm005.mjs +0 -2
- package/dist/chunks/cli-0.6.3-1h3a97cb.mjs +0 -2
- package/dist/chunks/cli-0.6.3-1hr1gfgx.mjs +0 -2
- package/dist/chunks/cli-0.6.3-20mtfrec.mjs +0 -2
- package/dist/chunks/cli-0.6.3-29t031py.mjs +0 -2
- package/dist/chunks/cli-0.6.3-2seqm104.mjs +0 -4
- package/dist/chunks/cli-0.6.3-2znr1dn6.mjs +0 -2
- package/dist/chunks/cli-0.6.3-307m09be.mjs +0 -3
- package/dist/chunks/cli-0.6.3-32ma4ryx.mjs +0 -58
- package/dist/chunks/cli-0.6.3-3k3fr10v.mjs +0 -2
- package/dist/chunks/cli-0.6.3-3sga01kt.mjs +0 -2
- package/dist/chunks/cli-0.6.3-40mx2zxs.mjs +0 -2
- package/dist/chunks/cli-0.6.3-4jyjt985.mjs +0 -2
- package/dist/chunks/cli-0.6.3-4k4zf43b.mjs +0 -2
- package/dist/chunks/cli-0.6.3-4n393st8.mjs +0 -2
- package/dist/chunks/cli-0.6.3-4tqk3dby.mjs +0 -12
- package/dist/chunks/cli-0.6.3-4y6pfyfp.mjs +0 -2
- package/dist/chunks/cli-0.6.3-4z9781g7.mjs +0 -2
- package/dist/chunks/cli-0.6.3-4zj0d42m.mjs +0 -18
- package/dist/chunks/cli-0.6.3-5nfphar2.mjs +0 -3
- package/dist/chunks/cli-0.6.3-5pxyd9b0.mjs +0 -4
- package/dist/chunks/cli-0.6.3-5rwq19xb.mjs +0 -2
- package/dist/chunks/cli-0.6.3-5t2m3g99.mjs +0 -2
- package/dist/chunks/cli-0.6.3-6a21y020.mjs +0 -2
- package/dist/chunks/cli-0.6.3-6ax8m5hv.mjs +0 -6
- package/dist/chunks/cli-0.6.3-6cgyr2zy.mjs +0 -4
- package/dist/chunks/cli-0.6.3-6cvpnccg.mjs +0 -4
- package/dist/chunks/cli-0.6.3-6ee9dyyg.mjs +0 -3
- package/dist/chunks/cli-0.6.3-6h30fzt5.mjs +0 -17
- package/dist/chunks/cli-0.6.3-6n6gtkcy.mjs +0 -2
- package/dist/chunks/cli-0.6.3-6njpepxe.mjs +0 -2
- package/dist/chunks/cli-0.6.3-6yfw5hn3.mjs +0 -2
- package/dist/chunks/cli-0.6.3-7adzjn5q.mjs +0 -34
- package/dist/chunks/cli-0.6.3-7g460zkw.mjs +0 -2
- package/dist/chunks/cli-0.6.3-7qg9g8tc.mjs +0 -2
- package/dist/chunks/cli-0.6.3-81rrwwcp.mjs +0 -2
- package/dist/chunks/cli-0.6.3-8cn32ma4.mjs +0 -2
- package/dist/chunks/cli-0.6.3-8dsgn7hp.mjs +0 -2
- package/dist/chunks/cli-0.6.3-8ea1a14z.mjs +0 -2
- package/dist/chunks/cli-0.6.3-8ggghhkx.mjs +0 -2
- package/dist/chunks/cli-0.6.3-8qad2cfe.mjs +0 -3
- package/dist/chunks/cli-0.6.3-8syjpqfr.mjs +0 -4
- package/dist/chunks/cli-0.6.3-92dx7xfh.mjs +0 -2
- package/dist/chunks/cli-0.6.3-92mddczk.mjs +0 -2
- package/dist/chunks/cli-0.6.3-94pqfzn3.mjs +0 -2
- package/dist/chunks/cli-0.6.3-97118c51.mjs +0 -2
- package/dist/chunks/cli-0.6.3-99kq55gd.mjs +0 -2
- package/dist/chunks/cli-0.6.3-99tcx5qw.mjs +0 -2
- package/dist/chunks/cli-0.6.3-9swe2gr2.mjs +0 -45
- package/dist/chunks/cli-0.6.3-a9z41xw7.mjs +0 -2
- package/dist/chunks/cli-0.6.3-aa0b2a2r.mjs +0 -2
- package/dist/chunks/cli-0.6.3-aazxr34f.mjs +0 -2
- package/dist/chunks/cli-0.6.3-aexkp8kj.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ajqkhkc8.mjs +0 -3
- package/dist/chunks/cli-0.6.3-apnw4sqn.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ar7px1cs.mjs +0 -3
- package/dist/chunks/cli-0.6.3-aw337kkj.mjs +0 -3
- package/dist/chunks/cli-0.6.3-b773k4ts.mjs +0 -2
- package/dist/chunks/cli-0.6.3-b8vfg8at.mjs +0 -2
- package/dist/chunks/cli-0.6.3-bcqjyxwt.mjs +0 -2
- package/dist/chunks/cli-0.6.3-be9988sa.mjs +0 -67
- package/dist/chunks/cli-0.6.3-bm4fb040.mjs +0 -2
- package/dist/chunks/cli-0.6.3-bv459f1w.mjs +0 -50
- package/dist/chunks/cli-0.6.3-cbyjhbhd.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ce093xrt.mjs +0 -2
- package/dist/chunks/cli-0.6.3-cfgaczs0.mjs +0 -9
- package/dist/chunks/cli-0.6.3-cn73stdt.mjs +0 -2
- package/dist/chunks/cli-0.6.3-cry1qz3j.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ct7rzynk.mjs +0 -25
- package/dist/chunks/cli-0.6.3-cz70v0dc.mjs +0 -193
- package/dist/chunks/cli-0.6.3-dcddpada.mjs +0 -2
- package/dist/chunks/cli-0.6.3-djx10r48.mjs +0 -2
- package/dist/chunks/cli-0.6.3-dv7ypjqm.mjs +0 -42
- package/dist/chunks/cli-0.6.3-dvsz6151.mjs +0 -26
- package/dist/chunks/cli-0.6.3-dx1n041e.mjs +0 -4
- package/dist/chunks/cli-0.6.3-e56v1kt5.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ecnnpsad.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ee53b5tf.mjs +0 -2
- package/dist/chunks/cli-0.6.3-efydy6w2.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ejr47y1x.mjs +0 -2
- package/dist/chunks/cli-0.6.3-eqnnyg8r.mjs +0 -10
- package/dist/chunks/cli-0.6.3-es8pf0wd.mjs +0 -5
- package/dist/chunks/cli-0.6.3-eytmae68.mjs +0 -2
- package/dist/chunks/cli-0.6.3-f2hnrcvv.mjs +0 -2
- package/dist/chunks/cli-0.6.3-f6vwjwer.mjs +0 -2
- package/dist/chunks/cli-0.6.3-fdr38m0k.mjs +0 -2
- package/dist/chunks/cli-0.6.3-fdye25f4.mjs +0 -21
- package/dist/chunks/cli-0.6.3-fhets69t.mjs +0 -2
- package/dist/chunks/cli-0.6.3-fws87r5f.mjs +0 -2
- package/dist/chunks/cli-0.6.3-fz79skca.mjs +0 -133
- package/dist/chunks/cli-0.6.3-g48fakzt.mjs +0 -4
- package/dist/chunks/cli-0.6.3-g4gt6qj9.mjs +0 -18
- package/dist/chunks/cli-0.6.3-g4y759q5.mjs +0 -2
- package/dist/chunks/cli-0.6.3-g7nc10fr.mjs +0 -2
- package/dist/chunks/cli-0.6.3-g7yry9cm.mjs +0 -2
- package/dist/chunks/cli-0.6.3-gcncppqh.mjs +0 -2
- package/dist/chunks/cli-0.6.3-gm6gpvcp.mjs +0 -2
- package/dist/chunks/cli-0.6.3-gmb75jnx.mjs +0 -2
- package/dist/chunks/cli-0.6.3-grerfrmn.mjs +0 -2
- package/dist/chunks/cli-0.6.3-gywe2011.mjs +0 -2
- package/dist/chunks/cli-0.6.3-gz3mwtfc.mjs +0 -15
- package/dist/chunks/cli-0.6.3-h1yy6vwa.mjs +0 -3
- package/dist/chunks/cli-0.6.3-h9dw5s07.mjs +0 -2
- package/dist/chunks/cli-0.6.3-h9pgh5g6.mjs +0 -3
- package/dist/chunks/cli-0.6.3-hccmsmnq.mjs +0 -2
- package/dist/chunks/cli-0.6.3-hz8r1b9m.mjs +0 -2
- package/dist/chunks/cli-0.6.3-jc158pav.mjs +0 -3
- package/dist/chunks/cli-0.6.3-jh5sabys.mjs +0 -2
- package/dist/chunks/cli-0.6.3-jwkcjnvk.mjs +0 -2
- package/dist/chunks/cli-0.6.3-k2n0q631.mjs +0 -39
- package/dist/chunks/cli-0.6.3-k5rdtkfr.mjs +0 -3
- package/dist/chunks/cli-0.6.3-kay5e0jz.mjs +0 -2
- package/dist/chunks/cli-0.6.3-kfn8srsd.mjs +0 -2
- package/dist/chunks/cli-0.6.3-kwnp45kq.mjs +0 -2
- package/dist/chunks/cli-0.6.3-kz9egvgw.mjs +0 -5323
- package/dist/chunks/cli-0.6.3-m74nx2m5.mjs +0 -2
- package/dist/chunks/cli-0.6.3-mc6kp3j9.mjs +0 -18
- package/dist/chunks/cli-0.6.3-mcmskrq3.mjs +0 -7
- package/dist/chunks/cli-0.6.3-mwmvdr0y.mjs +0 -2
- package/dist/chunks/cli-0.6.3-mwvq805r.mjs +0 -2
- package/dist/chunks/cli-0.6.3-n0nvqsep.mjs +0 -2
- package/dist/chunks/cli-0.6.3-n2d97bhc.mjs +0 -2
- package/dist/chunks/cli-0.6.3-n3f5zh7x.mjs +0 -2
- package/dist/chunks/cli-0.6.3-n95caxs7.mjs +0 -6
- package/dist/chunks/cli-0.6.3-nawttnnp.mjs +0 -16
- package/dist/chunks/cli-0.6.3-ny9veqgk.mjs +0 -2
- package/dist/chunks/cli-0.6.3-p3cb5wr9.mjs +0 -4
- package/dist/chunks/cli-0.6.3-p6tkk7cq.mjs +0 -2
- package/dist/chunks/cli-0.6.3-pj26ahpb.mjs +0 -15
- package/dist/chunks/cli-0.6.3-pqq8j8h2.mjs +0 -2
- package/dist/chunks/cli-0.6.3-przsjt5w.mjs +0 -2
- package/dist/chunks/cli-0.6.3-pt8n31ph.mjs +0 -2
- package/dist/chunks/cli-0.6.3-q35m6zsh.mjs +0 -2
- package/dist/chunks/cli-0.6.3-qh59pqrb.mjs +0 -2
- package/dist/chunks/cli-0.6.3-qj1bfrer.mjs +0 -15
- package/dist/chunks/cli-0.6.3-qse47680.mjs +0 -5
- package/dist/chunks/cli-0.6.3-qt063vx3.mjs +0 -2
- package/dist/chunks/cli-0.6.3-r08n6yst.mjs +0 -2
- package/dist/chunks/cli-0.6.3-r0chaj0m.mjs +0 -2
- package/dist/chunks/cli-0.6.3-r0pavcpp.mjs +0 -2
- package/dist/chunks/cli-0.6.3-r8snnnev.mjs +0 -2
- package/dist/chunks/cli-0.6.3-r9spk5d9.mjs +0 -2
- package/dist/chunks/cli-0.6.3-razq4hma.mjs +0 -2
- package/dist/chunks/cli-0.6.3-rbhgbyc8.mjs +0 -24
- package/dist/chunks/cli-0.6.3-rcd74wx6.mjs +0 -9
- package/dist/chunks/cli-0.6.3-rha5x3b1.mjs +0 -2
- package/dist/chunks/cli-0.6.3-rm69szc5.mjs +0 -2
- package/dist/chunks/cli-0.6.3-rxzhhezk.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ry8ff2h4.mjs +0 -4
- package/dist/chunks/cli-0.6.3-rz3jyy54.mjs +0 -133
- package/dist/chunks/cli-0.6.3-rzva33s6.mjs +0 -2
- package/dist/chunks/cli-0.6.3-s12drscf.mjs +0 -2
- package/dist/chunks/cli-0.6.3-sxj65pz4.mjs +0 -2
- package/dist/chunks/cli-0.6.3-syb9w8h5.mjs +0 -2
- package/dist/chunks/cli-0.6.3-sz0yt1ax.mjs +0 -59
- package/dist/chunks/cli-0.6.3-te71cc6c.mjs +0 -8
- package/dist/chunks/cli-0.6.3-tjykjtxh.mjs +0 -6
- package/dist/chunks/cli-0.6.3-v3fjzj8a.mjs +0 -12
- package/dist/chunks/cli-0.6.3-v522ej7z.mjs +0 -3
- package/dist/chunks/cli-0.6.3-vcpzn6r6.mjs +0 -2
- package/dist/chunks/cli-0.6.3-vdzjz0qm.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ve8f981m.mjs +0 -3
- package/dist/chunks/cli-0.6.3-vp1zy3b1.mjs +0 -2
- package/dist/chunks/cli-0.6.3-vsvcyfnd.mjs +0 -17
- package/dist/chunks/cli-0.6.3-w038em13.mjs +0 -2
- package/dist/chunks/cli-0.6.3-w3rq9jx1.mjs +0 -2
- package/dist/chunks/cli-0.6.3-wfrn6z2y.mjs +0 -24
- package/dist/chunks/cli-0.6.3-whtn6spz.mjs +0 -2
- package/dist/chunks/cli-0.6.3-wr2sys6k.mjs +0 -2
- package/dist/chunks/cli-0.6.3-wvdzc276.mjs +0 -1
- package/dist/chunks/cli-0.6.3-wwmrkyrs.mjs +0 -20
- package/dist/chunks/cli-0.6.3-wws3zqpm.mjs +0 -2
- package/dist/chunks/cli-0.6.3-x6f1pr27.mjs +0 -2
- package/dist/chunks/cli-0.6.3-x78bwn0g.mjs +0 -5
- package/dist/chunks/cli-0.6.3-xe5mxfxe.mjs +0 -2
- package/dist/chunks/cli-0.6.3-xewp168m.mjs +0 -2
- package/dist/chunks/cli-0.6.3-y1aakb6y.mjs +0 -2
- package/dist/chunks/cli-0.6.3-y1mm0v8x.mjs +0 -2
- package/dist/chunks/cli-0.6.3-y30hptm0.mjs +0 -2
- package/dist/chunks/cli-0.6.3-y61armem.mjs +0 -2
- package/dist/chunks/cli-0.6.3-y8ymw6ed.mjs +0 -2
- package/dist/chunks/cli-0.6.3-yk56wjb7.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ym6dcvjc.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ymhjs7dc.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ysazbe18.mjs +0 -2
- package/dist/chunks/cli-0.6.3-ywk23cbf.mjs +0 -2
- package/dist/chunks/cli-0.6.3-z19b5v43.mjs +0 -2
- package/dist/chunks/cli-0.6.3-z6sz55zd.mjs +0 -2
- package/dist/chunks/cli-0.6.3-z8vc44s1.mjs +0 -2
- package/dist/chunks/cli-0.6.3-zd6bnvyc.mjs +0 -4
- package/dist/chunks/cli-0.6.3-zmn1fgaa.mjs +0 -2
- package/dist/chunks/cli-0.6.3-zqvgfprs.mjs +0 -2
- package/dist/chunks/cli-0.6.3-zy0jc7vm.mjs +0 -12
- package/dist/chunks/cli-0.6.3-zyrsvq59.mjs +0 -2
- package/dist/chunks/client-0.6.3-6pn9sb4n.mjs +0 -1
- package/dist/chunks/color-0.6.3-2hpfj774.mjs +0 -1
- package/dist/chunks/compact-0.6.3-dnwdmmz1.mjs +0 -3
- package/dist/chunks/config-0.6.3-tjhtvb07.mjs +0 -1
- package/dist/chunks/config-0.6.3-z2wgyz10.mjs +0 -1
- package/dist/chunks/constants-0.6.3-qha9fz15.mjs +0 -1
- package/dist/chunks/context-0.6.3-vka61j1y.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.3-eztt7zsf.mjs +0 -1
- package/dist/chunks/conversation-0.6.3-2ek3hdrq.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.3-62c0y07g.mjs +0 -1
- package/dist/chunks/copy-0.6.3-gekdww8z.mjs +0 -9
- package/dist/chunks/cost-0.6.3-a2yhjbn3.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.3-5tn04mse.mjs +0 -1
- package/dist/chunks/createSession-0.6.3-kyn5dc4w.mjs +0 -1
- package/dist/chunks/debug-0.6.3-66czfwwr.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.3-x9wk9j9m.mjs +0 -1365
- package/dist/chunks/desktop-0.6.3-p8kgbeab.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.3-8698wvb5.mjs +0 -1
- package/dist/chunks/detection-0.6.3-1y7661gd.mjs +0 -1
- package/dist/chunks/diff-0.6.3-mk0y1bzd.mjs +0 -1
- package/dist/chunks/doctor-0.6.3-xvwcr7dp.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.3-th9mec17.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.3-642zt7fp.mjs +0 -1
- package/dist/chunks/effort-0.6.3-zvkntxpn.mjs +0 -10
- package/dist/chunks/envUtils-0.6.3-yazqghf2.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.3-0bcr6rhg.mjs +0 -1
- package/dist/chunks/environments-0.6.3-2tyy264w.mjs +0 -1
- package/dist/chunks/errors-0.6.3-65brz247.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.3-ktqksq57.mjs +0 -1
- package/dist/chunks/exit-0.6.3-0ce6gh5m.mjs +0 -1
- package/dist/chunks/export-0.6.3-e2mjekav.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.3-hqp8h6yy.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.3-rfyx9kw2.mjs +0 -1
- package/dist/chunks/fast-0.6.3-1jg7ysjx.mjs +0 -1
- package/dist/chunks/feedback-0.6.3-1tb6qds2.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.3-c9kfz0k1.mjs +0 -1
- package/dist/chunks/git-0.6.3-vzgvhd0s.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.3-9qcrf80c.mjs +0 -1
- package/dist/chunks/goal-0.6.3-mf91z3fg.mjs +0 -4
- package/dist/chunks/grove-0.6.3-mmn276sp.mjs +0 -1
- package/dist/chunks/growthbook-0.6.3-4p9xew93.mjs +0 -1
- package/dist/chunks/headless-0.6.3-qgmxgj70.mjs +0 -2
- package/dist/chunks/heapdump-0.6.3-2w4fe2zs.mjs +0 -6
- package/dist/chunks/help-0.6.3-wf4xf793.mjs +0 -1
- package/dist/chunks/hookChains-0.6.3-q342m95f.mjs +0 -3
- package/dist/chunks/hooks-0.6.3-0r48akk8.mjs +0 -79
- package/dist/chunks/hooks-0.6.3-r14ya7wn.mjs +0 -1
- package/dist/chunks/ide-0.6.3-ad8afpp9.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.3-tva04ya1.mjs +0 -1
- package/dist/chunks/index-0.6.3-0hyrtrrm.mjs +0 -9
- package/dist/chunks/index-0.6.3-0vhzk5yx.mjs +0 -5
- package/dist/chunks/index-0.6.3-1ykp8wv0.mjs +0 -2
- package/dist/chunks/index-0.6.3-2bzz31fe.mjs +0 -1
- package/dist/chunks/index-0.6.3-55v75g6w.mjs +0 -1
- package/dist/chunks/index-0.6.3-6rpbscw7.mjs +0 -17
- package/dist/chunks/index-0.6.3-7mch7z3a.mjs +0 -1
- package/dist/chunks/index-0.6.3-858y11er.mjs +0 -1
- package/dist/chunks/index-0.6.3-a40sh9ap.mjs +0 -1
- package/dist/chunks/index-0.6.3-aj0c98mr.mjs +0 -1
- package/dist/chunks/index-0.6.3-b9fkqrrw.mjs +0 -1
- package/dist/chunks/index-0.6.3-f5732qxw.mjs +0 -1
- package/dist/chunks/index-0.6.3-f5w18za6.mjs +0 -1
- package/dist/chunks/index-0.6.3-f6h116cn.mjs +0 -2
- package/dist/chunks/index-0.6.3-htq5dpvs.mjs +0 -30
- package/dist/chunks/index-0.6.3-hv4mfh2n.mjs +0 -1
- package/dist/chunks/index-0.6.3-kadhv0zg.mjs +0 -9
- package/dist/chunks/index-0.6.3-tsd8ykv3.mjs +0 -1
- package/dist/chunks/index-0.6.3-w2hywyvr.mjs +0 -1
- package/dist/chunks/index-0.6.3-wk9kzbcz.mjs +0 -1
- package/dist/chunks/index-0.6.3-ygqhtfnf.mjs +0 -1
- package/dist/chunks/index-0.6.3-yvah3e6g.mjs +0 -1
- package/dist/chunks/init-0.6.3-xaeb8hxb.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.3-nmmr7v8v.mjs +0 -1
- package/dist/chunks/ink-0.6.3-6m2sw7dq.mjs +0 -1
- package/dist/chunks/insights-0.6.3-6b93b8nm.mjs +0 -870
- package/dist/chunks/install-0.6.3-y9zek66z.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.3-899pnvtd.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.3-f8saspck.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.3-defghs68.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.3-7ec0qnvv.mjs +0 -1
- package/dist/chunks/keybindings-0.6.3-eh7rjbha.mjs +0 -2
- package/dist/chunks/knowledge-0.6.3-a7pn2e1w.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.3-vf3mkz2d.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.3-ykqa9b2g.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.3-jxaehczd.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.3-mfka3vhj.mjs +0 -1
- package/dist/chunks/log-0.6.3-g789gq0t.mjs +0 -1
- package/dist/chunks/main-0.6.3-50ac806r.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.3-q5zxn368.mjs +0 -1
- package/dist/chunks/mcp-0.6.3-4x3akzq5.mjs +0 -4
- package/dist/chunks/mcp-0.6.3-e3me04x4.mjs +0 -17
- package/dist/chunks/mcp-0.6.3-z1ebxf4w.mjs +0 -1
- package/dist/chunks/mcpb-0.6.3-sh1jp60e.mjs +0 -1
- package/dist/chunks/memory-0.6.3-03636fpt.mjs +0 -3
- package/dist/chunks/mobile-0.6.3-xz0z3r1b.mjs +0 -2
- package/dist/chunks/model-0.6.3-s0ftwaqt.mjs +0 -1
- package/dist/chunks/model-0.6.3-yzwee2pm.mjs +0 -2
- package/dist/chunks/node-0.6.3-ne7h3hdm.mjs +0 -12
- package/dist/chunks/oauth-0.6.3-vxgkeqfx.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.3-4y4sanm3.mjs +0 -14
- package/dist/chunks/output-style-0.6.3-y1p13wj7.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.3-x4wa2xz2.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.3-her0fmnw.mjs +0 -1
- package/dist/chunks/parser-0.6.3-c46sjdq2.mjs +0 -1
- package/dist/chunks/passes-0.6.3-egz6jv5r.mjs +0 -1
- package/dist/chunks/permissions-0.6.3-8bgzzv8a.mjs +0 -3
- package/dist/chunks/plan-0.6.3-2fftma7h.mjs +0 -1
- package/dist/chunks/plist-0.6.3-h310zzhq.mjs +0 -1
- package/dist/chunks/plugin-0.6.3-5vjh0ct6.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.3-jqsmye9d.mjs +0 -1
- package/dist/chunks/plugins-0.6.3-feg1sfss.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.3-7zkaatsy.mjs +0 -2
- package/dist/chunks/print-0.6.3-q8j3mpqd.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.3-7td307c8.mjs +0 -1
- package/dist/chunks/process-0.6.3-xfesfn5r.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.3-jh7fc2p4.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.3-bf00222w.mjs +0 -9
- package/dist/chunks/prompt-0.6.3-2n702z0c.mjs +0 -1
- package/dist/chunks/prompt-0.6.3-61gvwdqd.mjs +0 -1
- package/dist/chunks/prompts-0.6.3-gctcm2tt.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.3-nkgq5zh2.mjs +0 -13
- package/dist/chunks/provider-0.6.3-dz35mvz8.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.3-sc68wn0p.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.3-tz2xs2w2.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.3-q18p5fyf.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.3-68qc2fq7.mjs +0 -34
- package/dist/chunks/registry-0.6.3-ftde6jbj.mjs +0 -1
- package/dist/chunks/release-notes-0.6.3-sape6p4t.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.3-1ww9raz4.mjs +0 -2
- package/dist/chunks/remote-env-0.6.3-3ck8cv8d.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.3-5s27069y.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.3-h9rgyr6h.mjs +0 -1
- package/dist/chunks/rename-0.6.3-f6d3tb9q.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.3-03kbs579.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.3-m72mhx4g.mjs +0 -1
- package/dist/chunks/resume-0.6.3-ddb3xb3e.mjs +0 -2
- package/dist/chunks/rewind-0.6.3-rr4jn9nq.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.3-z0z2w1ta.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.3-h9z3rn4v.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.3-1z9yck8k.mjs +0 -1
- package/dist/chunks/session-0.6.3-697bvb39.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.3-k3n13gqg.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.3-kgecz2s9.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.3-04ceqntr.mjs +0 -1
- package/dist/chunks/settings-0.6.3-1wnc9skg.mjs +0 -1
- package/dist/chunks/setup-0.6.3-7eq77dy4.mjs +0 -5
- package/dist/chunks/sinks-0.6.3-ph10xa21.mjs +0 -1
- package/dist/chunks/skills-0.6.3-sk53kf9f.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.3-mmnjxrje.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.3-0hwcpdc7.mjs +0 -1
- package/dist/chunks/state-0.6.3-e3zvped3.mjs +0 -1
- package/dist/chunks/stats-0.6.3-8wqbhpqy.mjs +0 -6
- package/dist/chunks/status-0.6.3-xjt0xtzy.mjs +0 -1
- package/dist/chunks/stickers-0.6.3-vs74c03z.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.3-5dg03vx3.mjs +0 -1
- package/dist/chunks/tasks-0.6.3-dxy60zkj.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.3-jqpd5tn3.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.3-fpdghs7t.mjs +0 -1
- package/dist/chunks/teleport-0.6.3-46bbcspy.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.3-ww94vcqs.mjs +0 -1
- package/dist/chunks/theme-0.6.3-kjdtgstr.mjs +0 -1
- package/dist/chunks/thinkback-0.6.3-1txnapj2.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.3-96tda7vb.mjs +0 -1
- package/dist/chunks/toolPool-0.6.3-0e12cvy1.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.3-d1pppx0c.mjs +0 -1
- package/dist/chunks/tools-0.6.3-w0rtmt3t.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.3-qap15xhb.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.3-9pgbeyf6.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.6.3-v4wvkr58.mjs +0 -4
- package/dist/chunks/update-0.6.3-6tah7v14.mjs +0 -86
- package/dist/chunks/upgrade-0.6.3-mtpg4ynr.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.6.3-fg6qwves.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.3-4zzkq08v.mjs +0 -1
- package/dist/chunks/usage-0.6.3-1b3cmsnk.mjs +0 -1
- package/dist/chunks/util-0.6.3-e72k34ck.mjs +0 -1
- package/dist/chunks/utils-0.6.3-ahkqyjmy.mjs +0 -1
- package/dist/chunks/vim-0.6.3-r0f9g732.mjs +0 -1
- package/dist/chunks/watcher-0.6.3-5xzd92av.mjs +0 -1
- package/dist/chunks/wiki-0.6.3-ytee2j21.mjs +0 -132
- package/dist/chunks/worktree-0.6.3-cmybg2s4.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.3-8k06dfjq.mjs +0 -1
- package/dist/chunks/wrapper-0.6.3-hct87zwr.mjs +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ppa as cH}from"./cli-0.6.5-bm7v9qp0.mjs";import{createRequire as lH}from"module";function NC(H,C){if(typeof H=="function")C=H,H={};return this.ondata=C,H}function HJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC],function(K){return YC(cC(K.data[0],K.data[1]))},0,J)}function cC(H,C){return RC(H,C||{},0,0)}function rH(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC],function(K){return YC(vC(K.data[0],YH(K.data[1])))},1,J)}function vC(H,C){return zC(H,{i:2},C&&C.out,C&&C.dictionary)}function EJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC,vH,function(){return[LH]}],function(K){return YC(LH(K.data[0],K.data[1]))},2,J)}function LH(H,C){if(!C)C={};var J=TC(),K=H.length;J.p(H);var Q=RC(H,C,NH(C),8),V=Q.length;return $H(Q,C),g(Q,V-8,J.d()),g(Q,V-4,K),Q}function KJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,kH,function(){return[JH]}],function(K){return YC(JH(K.data[0],K.data[1]))},3,J)}function JH(H,C){var J=RH(H);if(J+8>H.length)B(6,"invalid gzip data");return zC(H.subarray(J,-8),{i:2},C&&C.out||new Z(mH(H)),C&&C.dictionary)}function BJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC,hH,function(){return[PH]}],function(K){return YC(PH(K.data[0],K.data[1]))},4,J)}function PH(H,C){if(!C)C={};var J=aC();J.p(H);var K=RC(H,C,C.dictionary?6:2,4);return EH(K,C),g(K,K.length-4,J.d()),K}function VJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,_H,function(){return[QH]}],function(K){return YC(QH(K.data[0],YH(K.data[1])))},5,J)}function QH(H,C){return zC(H.subarray(WH(H,C&&C.dictionary),-4),{i:2},C&&C.out,C&&C.dictionary)}function qJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return H[0]==31&&H[1]==139&&H[2]==8?KJ(H,C,J):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?rH(H,C,J):VJ(H,C,J)}function OJ(H,C){return H[0]==31&&H[1]==139&&H[2]==8?JH(H,C):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?vC(H,C):QH(H,C)}function $C(H,C){if(C){var J=new Z(H.length);for(var K=0;K<H.length;++K)J[K]=H.charCodeAt(K);return J}if(GH)return GH.encode(H);var Q=H.length,V=new Z(H.length+(H.length>>1)),X=0,Y=function(R){V[X++]=R};for(var K=0;K<Q;++K){if(X+5>V.length){var E=new Z(X+8+(Q-K<<1));E.set(V),V=E}var $=H.charCodeAt(K);if($<128||C)Y($);else if($<2048)Y(192|$>>6),Y(128|$&63);else if($>55295&&$<57344)$=65536+($&1047552)|H.charCodeAt(++K)&1023,Y(240|$>>18),Y(128|$>>12&63),Y(128|$>>6&63),Y(128|$&63);else Y(224|$>>12),Y(128|$>>6&63),Y(128|$&63)}return d(V,0,X)}function nH(H,C){if(C){var J="";for(var K=0;K<H.length;K+=16384)J+=String.fromCharCode.apply(null,H.subarray(K,K+16384));return J}else if(VH)return VH.decode(H);else{var Q=oH(H),V=Q.s,J=Q.r;if(J.length)B(8);return V}}function TJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K={};BH(H,"",K,C);var Q=Object.keys(K),V=Q.length,X=0,Y=0,E=V,$=Array(V),R=[],N=function(){for(var F=0;F<R.length;++F)R[F]()},W=function(F,P){eC(function(){J(F,P)})};eC(function(){W=J});var T=function(){var F=new Z(Y+22),P=X,U=Y-X;Y=0;for(var j=0;j<E;++j){var O=$[j];try{var x=O.c.length;MC(F,Y,O,O.f,O.u,x);var z=30+O.f.length+XC(O.extra),A=Y+z;F.set(O.c,A),MC(F,X,O,O.f,O.u,x,Y,O.m),X+=16+z+(O.m?O.m.length:0),Y=A+x}catch(L){return W(L,null)}}FH(F,X,$.length,U,P),W(null,F)};if(!V)T();var M=function(F){var P=Q[F],U=K[P],j=U[0],O=U[1],x=TC(),z=j.length;x.p(j);var A=$C(P),L=A.length,q=O.comment,y=q&&$C(q),S=y&&y.length,v=XC(O.extra),r=O.level==0?0:8,h=function(m,w){if(m)N(),W(m,null);else{var D=w.length;if($[F]=yC(O,{size:z,crc:x.d(),c:w,f:A,m:y,u:L!=P.length||y&&q.length!=S,compression:r}),X+=30+L+v+D,Y+=76+2*(L+v)+(S||0)+D,!--V)T()}};if(L>65535)h(B(11,0,1),null);if(!r)h(null,j);else if(z<160000)try{h(null,cC(j,O))}catch(m){h(m,null)}else R.push(HJ(j,O,h))};for(var G=0;G<E;++G)M(G);return N}function ZJ(H,C){if(!C)C={};var J={},K=[];BH(H,"",J,C);var Q=0,V=0;for(var X in J){var Y=J[X],E=Y[0],$=Y[1],R=$.level==0?0:8,N=$C(X),W=N.length,T=$.comment,M=T&&$C(T),G=M&&M.length,F=XC($.extra);if(W>65535)B(11);var P=R?cC(E,$):E,U=P.length,j=TC();j.p(E),K.push(yC($,{size:E.length,crc:j.d(),c:P,f:N,m:M,u:W!=X.length||M&&T.length!=G,o:Q,compression:R})),Q+=30+W+F+U,V+=76+2*(W+F)+(G||0)+U}var O=new Z(V+22),x=Q,z=V-Q;for(var A=0;A<K.length;++A){var N=K[A];MC(O,N.o,N,N.f,N.u,N.c.length);var L=30+N.f.length+XC(N.extra);O.set(N.c,N.o+L),MC(O,Q,N,N.f,N.u,N.c.length,N.o,N.m),Q+=16+L+(N.m?N.m.length:0)}return FH(O,Q,K.length,z,x),O}function DJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K=[],Q=function(){for(var F=0;F<K.length;++F)K[F]()},V={},X=function(F,P){eC(function(){J(F,P)})};eC(function(){X=J});var Y=H.length-22;for(;k(H,Y)!=101010256;--Y)if(!Y||H.length-Y>65558)return X(B(13,0,1),null),Q;var E=b(H,Y+8);if(E){var $=E,R=k(H,Y+16),N=k(H,Y-20)==117853008;if(N){var W=k(H,Y-12);if(N=k(H,W)==101075792,N)$=E=k(H,W+32),R=k(H,W+48)}var T=C&&C.filter,M=function(F){var P=fH(H,R,N),U=P[0],j=P[1],O=P[2],x=P[3],z=P[4],A=P[5],L=eH(H,A);R=z;var q=function(S,v){if(S)Q(),X(S,null);else{if(v)V[x]=v;if(!--E)X(null,V)}};if(!T||T({name:x,size:j,originalSize:O,compression:U}))if(!U)q(null,d(H,L,L+j));else if(U==8){var y=H.subarray(L,L+j);if(O<524288||j>0.8*O)try{q(null,vC(y,{out:new Z(O)}))}catch(S){q(S,null)}else K.push(rH(y,{size:O},q))}else q(B(14,"unknown compression type "+U,1),null);else q(null,null)};for(var G=0;G<$;++G)M(G)}else X(null,{});return Q}function SJ(H,C){var J={},K=H.length-22;for(;k(H,K)!=101010256;--K)if(!K||H.length-K>65558)B(13);var Q=b(H,K+8);if(!Q)return{};var V=k(H,K+16),X=k(H,K-20)==117853008;if(X){var Y=k(H,K-12);if(X=k(H,Y)==101075792,X)Q=k(H,Y+32),V=k(H,Y+48)}var E=C&&C.filter;for(var $=0;$<Q;++$){var R=fH(H,V,X),N=R[0],W=R[1],T=R[2],M=R[3],G=R[4],F=R[5],P=eH(H,F);if(V=G,!E||E({name:M,size:W,originalSize:T,compression:N}))if(!N)J[M]=d(H,P,P+W);else if(N==8)J[M]=vC(H.subarray(P,P+W),{out:new Z(T)});else B(14,"unknown compression type "+N)}return J}var dH,OC,mC,iC,iH=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",sH,Z,e,wC,PC,jC,gC,TH=function(H,C){var J=new e(31);for(var K=0;K<31;++K)J[K]=C+=1<<H[K-1];var Q=new wC(J[30]);for(var K=1;K<30;++K)for(var V=J[K];V<J[K+1];++V)Q[V]=V-J[K]<<5|K;return{b:J,r:Q}},OC,XH,oC,ZH,IH,sC,xC,HC,I,l=function(H,C,J){var K=H.length,Q=0,V=new e(C);for(;Q<K;++Q)if(H[Q])++V[H[Q]-1];var X=new e(C);for(Q=1;Q<C;++Q)X[Q]=X[Q-1]+V[Q-1]<<1;var Y;if(J){Y=new e(1<<C);var E=15-C;for(Q=0;Q<K;++Q)if(H[Q]){var $=Q<<4|H[Q],R=C-H[Q],N=X[H[Q]-1]++<<R;for(var W=N|(1<<R)-1;N<=W;++N)Y[xC[N]>>E]=$}}else{Y=new e(K);for(Q=0;Q<K;++Q)if(H[Q])Y[Q]=xC[X[H[Q]-1]++]>>15-H[Q]}return Y},QC,I,I,I,I,LC,I,UH,AH,DH,SH,uC=function(H){var C=H[0];for(var J=1;J<H.length;++J)if(H[J]>C)C=H[J];return C},c=function(H,C,J){var K=C/8|0;return(H[K]|H[K+1]<<8)>>(C&7)&J},rC=function(H,C){var J=C/8|0;return(H[J]|H[J+1]<<8|H[J+2]<<16)>>(C&7)},GC=function(H){return(H+7)/8|0},d=function(H,C,J){if(C==null||C<0)C=0;if(J==null||J>H.length)J=H.length;return new Z(H.subarray(C,J))},RJ,gH,B=function(H,C,J){var K=Error(C||gH[H]);if(K.code=H,Error.captureStackTrace)Error.captureStackTrace(K,B);if(!J)throw K;return K},zC=function(H,C,J,K){var Q=H.length,V=K?K.length:0;if(!Q||C.f&&!C.l)return J||new Z(0);var X=!J,Y=X||C.i!=2,E=C.i;if(X)J=new Z(Q*3);var $=function(DC){var SC=J.length;if(DC>SC){var BC=new Z(Math.max(SC*2,DC));BC.set(J),J=BC}},R=C.f||0,N=C.p||0,W=C.b||0,T=C.l,M=C.d,G=C.m,F=C.n,P=Q*8;do{if(!T){R=c(H,N,1);var U=c(H,N+1,3);if(N+=3,!U){var j=GC(N)+4,O=H[j-4]|H[j-3]<<8,x=j+O;if(x>Q){if(E)B(0);break}if(Y)$(W+O);J.set(H.subarray(j,x),W),C.b=W+=O,C.p=N=x*8,C.f=R;continue}else if(U==1)T=AH,M=SH,G=9,F=5;else if(U==2){var z=c(H,N,31)+257,A=c(H,N+10,15)+4,L=z+c(H,N+5,31)+1;N+=14;var q=new Z(L),y=new Z(19);for(var S=0;S<A;++S)y[gC[S]]=c(H,N+S*3,7);N+=A*3;var v=uC(y),r=(1<<v)-1,h=l(y,v,1);for(var S=0;S<L;){var m=h[c(H,N,r)];N+=m&15;var j=m>>4;if(j<16)q[S++]=j;else{var w=0,D=0;if(j==16)D=3+c(H,N,3),N+=2,w=q[S-1];else if(j==17)D=3+c(H,N,7),N+=3;else if(j==18)D=11+c(H,N,127),N+=7;while(D--)q[S++]=w}}var p=q.subarray(0,z),u=q.subarray(z);G=uC(p),F=uC(u),T=l(p,G,1),M=l(u,F,1)}else B(1);if(N>P){if(E)B(0);break}}if(Y)$(W+131072);var VC=(1<<G)-1,f=(1<<F)-1,s=N;for(;;s=N){var w=T[rC(H,N)&VC],o=w>>4;if(N+=w&15,N>P){if(E)B(0);break}if(!w)B(2);if(o<256)J[W++]=o;else if(o==256){s=N,T=null;break}else{var n=o-254;if(o>264){var S=o-257,_=PC[S];n=c(H,N,(1<<_)-1)+XH[S],N+=_}var CC=M[rC(H,N)&f],EC=CC>>4;if(!CC)B(3);N+=CC&15;var u=IH[EC];if(EC>3){var _=jC[EC];u+=rC(H,N)&(1<<_)-1,N+=_}if(N>P){if(E)B(0);break}if(Y)$(W+131072);var WC=W+n;if(W<u){var kC=V-u,hC=Math.min(u,WC);if(kC+W<0)B(3);for(;W<hC;++W)J[W]=K[kC+W]}for(;W<WC;++W)J[W]=J[W-u]}}if(C.l=T,C.p=s,C.b=W,C.f=R,T)R=1,C.m=G,C.d=M,C.n=F}while(!R);return W!=J.length&&X?d(J,0,W):J.subarray(0,W)},JC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8},FC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8,H[K+2]|=J>>16},pC=function(H,C){var J=[];for(var K=0;K<H.length;++K)if(H[K])J.push({s:K,f:H[K]});var Q=J.length,V=J.slice();if(!Q)return{t:KC,l:0};if(Q==1){var X=new Z(J[0].s+1);return X[J[0].s]=1,{t:X,l:1}}J.sort(function(x,z){return x.f-z.f}),J.push({s:-1,f:25001});var Y=J[0],E=J[1],$=0,R=1,N=2;J[0]={s:-1,f:Y.f+E.f,l:Y,r:E};while(R!=Q-1)Y=J[J[$].f<J[N].f?$++:N++],E=J[$!=R&&J[$].f<J[N].f?$++:N++],J[R++]={s:-1,f:Y.f+E.f,l:Y,r:E};var W=V[0].s;for(var K=1;K<Q;++K)if(V[K].s>W)W=V[K].s;var T=new e(W+1),M=nC(J[R-1],T,0);if(M>C){var K=0,G=0,F=M-C,P=1<<F;V.sort(function(z,A){return T[A.s]-T[z.s]||z.f-A.f});for(;K<Q;++K){var U=V[K].s;if(T[U]>C)G+=P-(1<<M-T[U]),T[U]=C;else break}G>>=F;while(G>0){var j=V[K].s;if(T[j]<C)G-=1<<C-T[j]++-1;else++K}for(;K>=0&&G;--K){var O=V[K].s;if(T[O]==C)--T[O],++G}M=C}return{t:new Z(T),l:M}},nC=function(H,C,J){return H.s==-1?Math.max(nC(H.l,C,J+1),nC(H.r,C,J+1)):C[H.s]=J},tC=function(H){var C=H.length;while(C&&!H[--C]);var J=new e(++C),K=0,Q=H[0],V=1,X=function(E){J[K++]=E};for(var Y=1;Y<=C;++Y)if(H[Y]==Q&&Y!=C)++V;else{if(!Q&&V>2){for(;V>138;V-=138)X(32754);if(V>2)X(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){X(Q),--V;for(;V>6;V-=6)X(8304);if(V>2)X(V-3<<5|8208),V=0}while(V--)X(Q);V=1,Q=H[Y]}return{c:J.subarray(0,K),n:C}},qC=function(H,C){var J=0;for(var K=0;K<C.length;++K)J+=H[K]*C[K];return J},fC=function(H,C,J){var K=J.length,Q=GC(C+2);H[Q]=K&255,H[Q+1]=K>>8,H[Q+2]=H[Q]^255,H[Q+3]=H[Q+1]^255;for(var V=0;V<K;++V)H[Q+V+4]=J[V];return(Q+4+K)*8},CH=function(H,C,J,K,Q,V,X,Y,E,$,R){JC(C,R++,J),++Q[256];var N=pC(Q,15),W=N.t,T=N.l,M=pC(V,15),G=M.t,F=M.l,P=tC(W),U=P.c,j=P.n,O=tC(G),x=O.c,z=O.n,A=new e(19);for(var L=0;L<U.length;++L)++A[U[L]&31];for(var L=0;L<x.length;++L)++A[x[L]&31];var q=pC(A,7),y=q.t,S=q.l,v=19;for(;v>4&&!y[gC[v-1]];--v);var r=$+5<<3,h=qC(Q,QC)+qC(V,LC)+X,m=qC(Q,W)+qC(V,G)+X+14+3*v+qC(A,y)+2*A[16]+3*A[17]+7*A[18];if(E>=0&&r<=h&&r<=m)return fC(C,R,H.subarray(E,E+$));var w,D,p,u;if(JC(C,R,1+(m<h)),R+=2,m<h){w=l(W,T,0),D=W,p=l(G,F,0),u=G;var VC=l(y,S,0);JC(C,R,j-257),JC(C,R+5,z-1),JC(C,R+10,v-4),R+=14;for(var L=0;L<v;++L)JC(C,R+3*L,y[gC[L]]);R+=3*v;var f=[U,x];for(var s=0;s<2;++s){var o=f[s];for(var L=0;L<o.length;++L){var n=o[L]&31;if(JC(C,R,VC[n]),R+=y[n],n>15)JC(C,R,o[L]>>5&127),R+=o[L]>>12}}}else w=UH,D=QC,p=DH,u=LC;for(var L=0;L<Y;++L){var _=K[L];if(_>255){var n=_>>18&31;if(FC(C,R,w[n+257]),R+=D[n+257],n>7)JC(C,R,_>>23&31),R+=PC[n];var CC=_&31;if(FC(C,R,p[CC]),R+=u[CC],CC>3)FC(C,R,_>>5&8191),R+=jC[CC]}else FC(C,R,w[_]),R+=D[_]}return FC(C,R,w[256]),R+D[256]},xH,KC,wH=function(H,C,J,K,Q,V){var X=V.z||H.length,Y=new Z(K+X+5*(1+Math.ceil(X/7000))+Q),E=Y.subarray(K,Y.length-Q),$=V.l,R=(V.r||0)&7;if(C){if(R)E[0]=V.r>>3;var N=xH[C-1],W=N>>13,T=N&8191,M=(1<<J)-1,G=V.p||new e(32768),F=V.h||new e(M+1),P=Math.ceil(J/3),U=2*P,j=function(lC){return(H[lC]^H[lC+1]<<P^H[lC+2]<<U)&M},O=new wC(25000),x=new e(288),z=new e(32),A=0,L=0,q=V.i||0,y=0,S=V.w||0,v=0;for(;q+2<X;++q){var r=j(q),h=q&32767,m=F[r];if(G[h]=m,F[r]=h,S<=q){var w=X-q;if((A>7000||y>24576)&&(w>423||!$)){R=CH(H,E,0,O,x,z,L,y,v,q-v,R),y=A=L=0,v=q;for(var D=0;D<286;++D)x[D]=0;for(var D=0;D<30;++D)z[D]=0}var p=2,u=0,VC=T,f=h-m&32767;if(w>2&&r==j(q-f)){var s=Math.min(W,w)-1,o=Math.min(32767,q),n=Math.min(258,w);while(f<=o&&--VC&&h!=m){if(H[q+p]==H[q+p-f]){var _=0;for(;_<n&&H[q+_]==H[q+_-f];++_);if(_>p){if(p=_,u=f,_>s)break;var CC=Math.min(f,_-2),EC=0;for(var D=0;D<CC;++D){var WC=q-f+D&32767,kC=G[WC],hC=WC-kC&32767;if(hC>EC)EC=hC,m=WC}}}h=m,m=G[h],f+=h-m&32767}}if(u){O[y++]=268435456|oC[p]<<18|sC[u];var DC=oC[p]&31,SC=sC[u]&31;L+=PC[DC]+jC[SC],++x[257+DC],++z[SC],S=q+p,++A}else O[y++]=H[q],++x[H[q]]}}for(q=Math.max(q,S);q<X;++q)O[y++]=H[q],++x[H[q]];if(R=CH(H,E,$,O,x,z,L,y,v,q-v,R),!$)V.r=R&7|E[R/8|0]<<3,R-=7,V.h=F,V.p=G,V.i=q,V.w=S}else{for(var q=V.w||0;q<X+$;q+=65535){var BC=q+65535;if(BC>=X)E[R/8|0]=$,BC=X;R=fC(E,R+1,H.subarray(q,BC))}V.i=X}return d(Y,0,K+GC(R)+Q)},zH,TC=function(){var H=-1;return{p:function(C){var J=H;for(var K=0;K<C.length;++K)J=zH[J&255^C[K]]^J>>>8;H=J},d:function(){return~H}}},aC=function(){var H=1,C=0;return{p:function(J){var K=H,Q=C,V=J.length|0;for(var X=0;X!=V;){var Y=Math.min(X+2655,V);for(;X<Y;++X)Q+=K+=J[X];K=(K&65535)+15*(K>>16),Q=(Q&65535)+15*(Q>>16)}H=K,C=Q},d:function(){return H%=65521,C%=65521,(H&255)<<24|(H&65280)<<8|(C&255)<<8|C>>8}}},RC=function(H,C,J,K,Q){if(!Q){if(Q={l:1},C.dictionary){var V=C.dictionary.subarray(-32768),X=new Z(V.length+H.length);X.set(V),X.set(H,V.length),H=X,Q.w=V.length}}return wH(H,C.level==null?6:C.level,C.mem==null?Q.l?Math.ceil(Math.max(8,Math.min(13,Math.log(H.length)))*1.5):20:12+C.mem,J,K,Q)},yC=function(H,C){var J={};for(var K in H)J[K]=H[K];for(var K in C)J[K]=C[K];return J},qH=function(H,C,J){var K=H(),Q=H.toString(),V=Q.slice(Q.indexOf("[")+1,Q.lastIndexOf("]")).replace(/\s+/g,"").split(",");for(var X=0;X<K.length;++X){var Y=K[X],E=V[X];if(typeof Y=="function"){C+=";"+E+"=";var $=Y.toString();if(Y.prototype)if($.indexOf("[native code]")!=-1){var R=$.indexOf(" ",8)+1;C+=$.slice(R,$.indexOf("(",R))}else{C+=$;for(var N in Y.prototype)C+=";"+E+".prototype."+N+"="+Y.prototype[N].toString()}else C+=$}else J[E]=Y}return C},_C,tH=function(H){var C=[];for(var J in H)if(H[J].buffer)C.push((H[J]=new H[J].constructor(H[J])).buffer);return C},yH=function(H,C,J,K){if(!_C[J]){var Q="",V={},X=H.length-1;for(var Y=0;Y<X;++Y)Q=qH(H[Y],Q,V);_C[J]={c:qH(H[X],Q,V),e:V}}var E=yC({},_C[J].e);return sH(_C[J].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+C.toString()+"}",J,E,tH(E),K)},ZC=function(){return[Z,e,wC,PC,jC,gC,XH,IH,AH,SH,xC,gH,l,uC,c,rC,GC,d,B,zC,vC,YC,YH]},IC=function(){return[Z,e,wC,PC,jC,gC,oC,sC,UH,QC,DH,LC,xC,xH,KC,l,JC,FC,pC,nC,tC,qC,fC,CH,GC,d,wH,RC,cC,YC]},vH=function(){return[$H,NH,g,TC,zH]},kH=function(){return[RH,mH]},hH=function(){return[EH,g,aC]},_H=function(){return[WH]},YC=function(H){return postMessage(H,[H.buffer])},YH=function(H){return H&&{out:H.size&&new Z(H.size),dictionary:H.dictionary}},UC=function(H,C,J,K,Q,V){var X=yH(J,K,Q,function(Y,E){X.terminate(),V(Y,E)});return X.postMessage([H,C],C.consume?[H.buffer]:[]),function(){X.terminate()}},i=function(H){return H.ondata=function(C,J){return postMessage([C,J],[C.buffer])},function(C){if(C.data[0])H.push(C.data[0],C.data[1]),postMessage([C.data[0].length]);else H.flush(C.data[1])}},AC=function(H,C,J,K,Q,V,X){var Y,E=yH(H,K,Q,function($,R){if($)E.terminate(),C.ondata.call(C,$);else if(!Array.isArray(R))X(R);else if(R.length==1){if(C.queuedSize-=R[0],C.ondrain)C.ondrain(R[0])}else{if(R[1])E.terminate();C.ondata.call(C,$,R[0],R[1])}});if(E.postMessage(J),C.queuedSize=0,C.push=function($,R){if(!C.ondata)B(5);if(Y)C.ondata(B(4,0,1),null,!!R);C.queuedSize+=$.length,E.postMessage([$,Y=R],$.buffer instanceof ArrayBuffer?[$.buffer]:[])},C.terminate=function(){E.terminate()},V)C.flush=function($){E.postMessage([0,$])}},b=function(H,C){return H[C]|H[C+1]<<8},k=function(H,C){return(H[C]|H[C+1]<<8|H[C+2]<<16|H[C+3]<<24)>>>0},dC=function(H,C){return k(H,C)+k(H,C+4)*4294967296},g=function(H,C,J){for(;J;++C)H[C]=J,J>>>=8},$H=function(H,C){var J=C.filename;if(H[0]=31,H[1]=139,H[2]=8,H[8]=C.level<2?4:C.level==9?2:0,H[9]=3,C.mtime!=0)g(H,4,Math.floor(new Date(C.mtime||Date.now())/1000));if(J){H[3]=8;for(var K=0;K<=J.length;++K)H[K+10]=J.charCodeAt(K)}},RH=function(H){if(H[0]!=31||H[1]!=139||H[2]!=8)B(6,"invalid gzip data");var C=H[3],J=10;if(C&4)J+=(H[10]|H[11]<<8)+2;for(var K=(C>>3&1)+(C>>4&1);K>0;K-=!H[J++]);return J+(C&2)},mH=function(H){var C=H.length;return(H[C-4]|H[C-3]<<8|H[C-2]<<16|H[C-1]<<24)>>>0},NH=function(H){return 10+(H.filename?H.filename.length+1:0)},EH=function(H,C){var J=C.level,K=J==0?0:J<6?1:J==9?3:2;if(H[0]=120,H[1]=K<<6|(C.dictionary&&32),H[1]|=31-(H[0]<<8|H[1])%31,C.dictionary){var Q=aC();Q.p(C.dictionary),g(H,2,Q.d())}},WH=function(H,C){if((H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31)B(6,"invalid zlib data");if((H[1]>>5&1)==+!C)B(6,"invalid zlib data: "+(H[1]&32?"need":"unexpected")+" dictionary");return(H[1]>>3&4)+2},t,CJ,a,uH,OH,NJ,HH,JJ,MH,WJ,KH,QJ,jH,FJ,BH=function(H,C,J,K){for(var Q in H){var V=H[Q],X=C+Q,Y=K;if(Array.isArray(V))Y=yC(K,V[1]),V=V[0];if(ArrayBuffer.isView(V))J[X]=[V,Y];else J[X+="/"]=[new Z(0),Y],BH(V,X,J,K)}},GH,VH,pH=0,oH=function(H){for(var C="",J=0;;){var K=H[J++],Q=(K>127)+(K>223)+(K>239);if(J+Q>H.length)return{s:C,r:d(H,J-1)};if(!Q)C+=String.fromCharCode(K);else if(Q==3)K=((K&15)<<18|(H[J++]&63)<<12|(H[J++]&63)<<6|H[J++]&63)-65536,C+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Q&1)C+=String.fromCharCode((K&31)<<6|H[J++]&63);else C+=String.fromCharCode((K&15)<<12|(H[J++]&63)<<6|H[J++]&63)}},LJ,MJ,bH=function(H){return H==1?3:H<6?2:H==9?1:0},eH=function(H,C){return C+30+b(H,C+26)+b(H,C+28)},fH=function(H,C,J){var K=b(H,C+28),Q=b(H,C+30),V=nH(H.subarray(C+46,C+46+K),!(b(H,C+8)&2048)),X=C+46+K,Y=aH(H,X,Q,J,k(H,C+20),k(H,C+24),k(H,C+42)),E=Y[0],$=Y[1],R=Y[2];return[b(H,C+10),E,$,V,X+Q+b(H,C+32),R]},aH=function(H,C,J,K,Q,V,X){var Y=Q==4294967295,E=V==4294967295,$=X==4294967295,R=C+J,N=Y+E+$;if(K&&N){for(;C+4<R;C+=4+b(H,C+2))if(b(H,C)==1)return[Y?dC(H,C+4+8*E):Q,E?dC(H,C+4):V,$?dC(H,C+4+8*(E+Y)):X,1];if(K<2)B(13)}return[Q,V,X,0]},XC=function(H){var C=0;if(H)for(var J in H){var K=H[J].length;if(K>65535)B(9);C+=K+4}return C},MC=function(H,C,J,K,Q,V,X,Y){var E=K.length,$=J.extra,R=Y&&Y.length,N=XC($);if(g(H,C,X!=null?33639248:67324752),C+=4,X!=null)H[C++]=20,H[C++]=J.os;H[C]=20,C+=2,H[C++]=J.flag<<1|(V<0&&8),H[C++]=Q&&8,H[C++]=J.compression&255,H[C++]=J.compression>>8;var W=new Date(J.mtime==null?Date.now():J.mtime),T=W.getFullYear()-1980;if(T<0||T>119)B(10);if(g(H,C,T<<25|W.getMonth()+1<<21|W.getDate()<<16|W.getHours()<<11|W.getMinutes()<<5|W.getSeconds()>>1),C+=4,V!=-1)g(H,C,J.crc),g(H,C+4,V<0?-V-2:V),g(H,C+8,J.size);if(g(H,C+12,E),g(H,C+14,N),C+=16,X!=null)g(H,C,R),g(H,C+6,J.attrs),g(H,C+10,X),C+=14;if(H.set(K,C),C+=E,N)for(var M in $){var G=$[M],F=G.length;g(H,C,+M),g(H,C+2,F),H.set(G,C+4),C+=4+F}if(R)H.set(Y,C),C+=R;return C},FH=function(H,C,J,K,Q){g(H,C,101010256),g(H,C+8,J),g(H,C+10,J),g(H,C+12,K),g(H,C+16,Q)},bC,PJ,jJ,GJ,XJ,IJ,UJ,AJ,eC;var YJ=cH(()=>{dH=lH("/");try{OC=dH("worker_threads"),mC=OC.Worker,iC=OC.isMarkedAsUntransferable}catch(H){}sH=mC?function(H,C,J,K,Q){var V=!1,X=new mC(H+iH,{eval:!0}).on("error",function(Y){return Q(Y,null)}).on("message",function(Y){return Q(null,Y)}).on("exit",function(Y){if(Y&&!V)Q(Error("exited with code "+Y),null)});if(iC)K=K.filter(function(Y){return!iC(Y)});return X.postMessage(J,K),X.terminate=function(){return V=!0,mC.prototype.terminate.call(X)},X}:function(H,C,J,K,Q){setImmediate(function(){return Q(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var V=function(){};return{terminate:V,postMessage:V}},Z=Uint8Array,e=Uint16Array,wC=Int32Array,PC=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jC=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gC=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),OC=TH(PC,2),XH=OC.b,oC=OC.r;XH[28]=258,oC[258]=28;ZH=TH(jC,0),IH=ZH.b,sC=ZH.r,xC=new e(32768);for(I=0;I<32768;++I)HC=(I&43690)>>1|(I&21845)<<1,HC=(HC&52428)>>2|(HC&13107)<<2,HC=(HC&61680)>>4|(HC&3855)<<4,xC[I]=((HC&65280)>>8|(HC&255)<<8)>>1;QC=new Z(288);for(I=0;I<144;++I)QC[I]=8;for(I=144;I<256;++I)QC[I]=9;for(I=256;I<280;++I)QC[I]=7;for(I=280;I<288;++I)QC[I]=8;LC=new Z(32);for(I=0;I<32;++I)LC[I]=5;UH=l(QC,9,0),AH=l(QC,9,1),DH=l(LC,5,0),SH=l(LC,5,1),RJ={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},gH=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],xH=new wC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),KC=new Z(0),zH=function(){var H=new Int32Array(256);for(var C=0;C<256;++C){var J=C,K=9;while(--K)J=(J&1&&-306674912)^J>>>1;H[C]=J}return H}(),_C=[];t=function(){function H(C,J){if(typeof C=="function")J=C,C={};if(this.ondata=J,this.o=C||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Z(98304),this.o.dictionary){var K=this.o.dictionary.subarray(-32768);this.b.set(K,32768-K.length),this.s.i=32768-K.length}}return H.prototype.p=function(C,J){this.ondata(RC(C,this.o,0,0,this.s),J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.s.l)B(4);var K=C.length+this.s.z;if(K>this.b.length){if(K>2*this.b.length-32768){var Q=new Z(K&-32768);Q.set(this.b.subarray(0,this.s.z)),this.b=Q}var V=this.b.length-this.s.z;this.b.set(C.subarray(0,V),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(C.subarray(V),32768),this.s.z=C.length-V+32768,this.s.i=32766,this.s.w=32768}else this.b.set(C,this.s.z),this.s.z+=C.length;if(this.s.l=J&1,this.s.z>this.s.w+8191||J)this.p(this.b,J||!1),this.s.w=this.s.i,this.s.i-=2;if(J)this.s=this.o={},this.b=KC},H.prototype.flush=function(C){if(!this.ondata)B(5);if(this.s.l)B(4);if(this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,C){var J=new Z(6);J[0]=this.s.r>>3;var K=fC(J,this.s.r,KC);this.s.r=0,this.ondata(J.subarray(0,K>>3),!1)}},H}(),CJ=function(){function H(C,J){AC([IC,function(){return[i,t]}],this,NC.call(this,C,J),function(K){var Q=new t(K.data);onmessage=i(Q)},6,1)}return H}();a=function(){function H(C,J){if(typeof C=="function")J=C,C={};this.ondata=J;var K=C&&C.dictionary&&C.dictionary.subarray(-32768);if(this.s={i:0,b:K?K.length:0},this.o=new Z(32768),this.p=new Z(0),K)this.o.set(K)}return H.prototype.e=function(C){if(!this.ondata)B(5);if(this.d)B(4);if(!this.p.length)this.p=C;else if(C.length){var J=new Z(this.p.length+C.length);J.set(this.p),J.set(C,this.p.length),this.p=J}},H.prototype.c=function(C){this.s.i=+(this.d=C||!1);var J=this.s.b,K=zC(this.p,this.s,this.o);this.ondata(d(K,J,this.s.b),this.d),this.o=d(K,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},H.prototype.push=function(C,J){this.e(C),this.c(J)},H}(),uH=function(){function H(C,J){AC([ZC,function(){return[i,a]}],this,NC.call(this,C,J),function(K){var Q=new a(K.data);onmessage=i(Q)},7,0)}return H}();OH=function(){function H(C,J){this.c=TC(),this.l=0,this.v=1,t.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),this.l+=C.length,t.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&NH(this.o),J&&8,this.s);if(this.v)$H(K,this.o),this.v=0;if(J)g(K,K.length-8,this.c.d()),g(K,K.length-4,this.l);this.ondata(K,J)},H.prototype.flush=function(C){t.prototype.flush.call(this,C)},H}(),NJ=function(){function H(C,J){AC([IC,vH,function(){return[i,t,OH]}],this,NC.call(this,C,J),function(K){var Q=new OH(K.data);onmessage=i(Q)},8,1)}return H}();HH=function(){function H(C,J){this.v=1,this.r=0,a.call(this,C,J)}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.r+=C.length,this.v){var K=this.p.subarray(this.v-1),Q=K.length>3?RH(K):4;if(Q>K.length){if(!J)return}else if(this.v>1&&this.onmember)this.onmember(this.r-K.length);this.p=K.subarray(Q),this.v=0}if(a.prototype.c.call(this,0),this.s.f&&!this.s.l)this.v=GC(this.s.p)+9,this.s={i:0},this.o=new Z(0),this.push(new Z(0),J);else if(J)a.prototype.c.call(this,J)},H}(),JJ=function(){function H(C,J){var K=this;AC([ZC,kH,function(){return[i,a,HH]}],this,NC.call(this,C,J),function(Q){var V=new HH(Q.data);V.onmember=function(X){return postMessage(X)},onmessage=i(V)},9,0,function(Q){return K.onmember&&K.onmember(Q)})}return H}();MH=function(){function H(C,J){this.c=aC(),this.v=1,t.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),t.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&(this.o.dictionary?6:2),J&&4,this.s);if(this.v)EH(K,this.o),this.v=0;if(J)g(K,K.length-4,this.c.d());this.ondata(K,J)},H.prototype.flush=function(C){t.prototype.flush.call(this,C)},H}(),WJ=function(){function H(C,J){AC([IC,hH,function(){return[i,t,MH]}],this,NC.call(this,C,J),function(K){var Q=new MH(K.data);onmessage=i(Q)},10,1)}return H}();KH=function(){function H(C,J){a.call(this,C,J),this.v=C&&C.dictionary?2:1}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.v){if(this.p.length<6&&!J)return;this.p=this.p.subarray(WH(this.p,this.v-1)),this.v=0}if(J){if(this.p.length<4)B(6,"invalid zlib data");this.p=this.p.subarray(0,-4)}a.prototype.c.call(this,J)},H}(),QJ=function(){function H(C,J){AC([ZC,_H,function(){return[i,a,KH]}],this,NC.call(this,C,J),function(K){var Q=new KH(K.data);onmessage=i(Q)},11,0)}return H}();jH=function(){function H(C,J){this.o=NC.call(this,C,J)||{},this.G=HH,this.I=a,this.Z=KH}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K){C.ondata(J,K)}},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(!this.s){if(this.p&&this.p.length){var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length)}else this.p=C;if(this.p.length>2)this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,J),this.p=null}else this.s.push(C,J)},H}(),FJ=function(){function H(C,J){jH.call(this,C,J),this.queuedSize=0,this.G=JJ,this.I=uH,this.Z=QJ}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K,Q){C.ondata(J,K,Q)},this.s.ondrain=function(J){if(C.queuedSize-=J,C.ondrain)C.ondrain(J)}},H.prototype.push=function(C,J){this.queuedSize+=C.length,jH.prototype.push.call(this,C,J)},H}();GH=typeof TextEncoder<"u"&&new TextEncoder,VH=typeof TextDecoder<"u"&&new TextDecoder;try{VH.decode(KC,{stream:!0}),pH=1}catch(H){}LJ=function(){function H(C){if(this.ondata=C,pH)this.t=new TextDecoder;else this.p=KC}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(J=!!J,this.t){if(this.ondata(this.t.decode(C,{stream:!0}),J),J){if(this.t.decode().length)B(8);this.t=null}return}if(!this.p)B(4);var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length);var Q=oH(K),V=Q.s,X=Q.r;if(J){if(X.length)B(8);this.p=null}else this.p=X;this.ondata(V,J)},H}(),MJ=function(){function H(C){this.ondata=C}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.d)B(4);this.ondata($C(C),this.d=J||!1)},H}();bC=function(){function H(C){this.filename=C,this.c=TC(),this.size=0,this.compression=0}return H.prototype.process=function(C,J){this.ondata(null,C,J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.c.p(C),this.size+=C.length,J)this.crc=this.c.d();this.process(C,J||!1)},H}(),PJ=function(){function H(C,J){var K=this;if(!J)J={};bC.call(this,C),this.d=new t(J,function(Q,V){K.ondata(null,Q,V)}),this.compression=8,this.flag=bH(J.level)}return H.prototype.process=function(C,J){try{this.d.push(C,J)}catch(K){this.ondata(K,null,J)}},H.prototype.push=function(C,J){bC.prototype.push.call(this,C,J)},H}(),jJ=function(){function H(C,J){var K=this;if(!J)J={};bC.call(this,C),this.d=new CJ(J,function(Q,V,X){K.ondata(Q,V,X)}),this.compression=8,this.flag=bH(J.level),this.terminate=this.d.terminate}return H.prototype.process=function(C,J){this.d.push(C,J)},H.prototype.push=function(C,J){bC.prototype.push.call(this,C,J)},H}(),GJ=function(){function H(C){this.ondata=C,this.u=[],this.d=1}return H.prototype.add=function(C){var J=this;if(!this.ondata)B(5);if(this.d&2)this.ondata(B(4+(this.d&1)*8,0,1),null,!1);else{var K=$C(C.filename),Q=K.length,V=C.comment,X=V&&$C(V),Y=Q!=C.filename.length||X&&V.length!=X.length,E=Q+XC(C.extra)+30;if(Q>65535)this.ondata(B(11,0,1),null,!1);var $=new Z(E);MC($,0,C,K,Y,-1);var R=[$],N=function(){for(var F=0,P=R;F<P.length;F++){var U=P[F];J.ondata(null,U,!1)}R=[]},W=this.d;this.d=0;var T=this.u.length,M=yC(C,{f:K,u:Y,o:X,t:function(){if(C.terminate)C.terminate()},r:function(){if(N(),W){var F=J.u[T+1];if(F)F.r();else J.d=1}W=1}}),G=0;C.ondata=function(F,P,U){if(F)J.ondata(F,P,U),J.terminate();else if(G+=P.length,R.push(P),U){var j=new Z(16);if(g(j,0,134695760),g(j,4,C.crc),g(j,8,G),g(j,12,C.size),R.push(j),M.c=G,M.b=E+G+16,M.crc=C.crc,M.size=C.size,W)M.r();W=1}else if(W)N()},this.u.push(M)}},H.prototype.end=function(){var C=this;if(this.d&2){this.ondata(B(4+(this.d&1)*8,0,1),null,!0);return}if(this.d)this.e();else this.u.push({r:function(){if(!(C.d&1))return;C.u.splice(-1,1),C.e()},t:function(){}});this.d=3},H.prototype.e=function(){var C=0,J=0,K=0;for(var Q=0,V=this.u;Q<V.length;Q++){var X=V[Q];K+=46+X.f.length+XC(X.extra)+(X.o?X.o.length:0)}var Y=new Z(K+22);for(var E=0,$=this.u;E<$.length;E++){var X=$[E];MC(Y,C,X,X.f,X.u,-X.c-2,J,X.o),C+=46+X.f.length+XC(X.extra)+(X.o?X.o.length:0),J+=X.b}FH(Y,C,this.u.length,K,J),this.ondata(null,Y,!0),this.d=2},H.prototype.terminate=function(){for(var C=0,J=this.u;C<J.length;C++){var K=J[C];K.t()}this.d=2},H}();XJ=function(){function H(){}return H.prototype.push=function(C,J){this.ondata(null,C,J)},H.compression=0,H}(),IJ=function(){function H(){var C=this;this.i=new a(function(J,K){C.ondata(null,J,K)})}return H.prototype.push=function(C,J){try{this.i.push(C,J)}catch(K){this.ondata(K,null,J)}},H.compression=8,H}(),UJ=function(){function H(C,J){var K=this;if(J<320000)this.i=new a(function(Q,V){K.ondata(null,Q,V)});else this.i=new uH(function(Q,V,X){K.ondata(Q,V,X)}),this.terminate=this.i.terminate}return H.prototype.push=function(C,J){if(this.i.terminate)C=d(C,0);this.i.push(C,J)},H.compression=8,H}(),AJ=function(){function H(C){this.onfile=C,this.k=[],this.o={0:XJ},this.p=KC}return H.prototype.push=function(C,J){var K=this;if(!this.onfile)B(5);if(!this.p)B(4);if(this.c>0){var Q=Math.min(this.c,C.length),V=C.subarray(0,Q);if(this.c-=Q,this.d)this.d.push(V,!this.c);else this.k[0].push(V);if(C=C.subarray(Q),C.length)return this.push(C,J)}else{var X=0,Y=0,E=void 0,$=void 0;if(!this.p.length)$=C;else if(!C.length)$=this.p;else $=new Z(this.p.length+C.length),$.set(this.p),$.set(C,this.p.length);var R=$.length,N=this.c,W=N&&this.d,T=function(){var P=k($,Y);if(P==67324752){X=1,E=Y,M.d=null,M.c=0;var U=b($,Y+6),j=b($,Y+8),O=U&2048,x=U&8,z=b($,Y+26),A=b($,Y+28);if(R>Y+30+z+A){var L=[];M.k.unshift(L),X=2;var q=k($,Y+18),y=k($,Y+22),S=nH($.subarray(Y+30,Y+=30+z),!O),v=aH($,Y,A,2,q,y,0),r=v[0],h=v[1],m=v[3];if(x)r=-1-m;Y+=A,M.c=r;var w,D={name:S,compression:j,start:function(){if(!D.ondata)B(5);if(!r)D.ondata(null,KC,!0);else{var p=K.o[j];if(!p)D.ondata(B(14,"unknown compression type "+j,1),null,!1);w=r<0?new p(S):new p(S,r,h),w.ondata=function(s,o,n){D.ondata(s,o,n)};for(var u=0,VC=L;u<VC.length;u++){var f=VC[u];w.push(f,!1)}if(K.k[0]==L&&K.c)K.d=w;else w.push(KC,!0)}},terminate:function(){if(w&&w.terminate)w.terminate()}};if(r>=0)D.size=r,D.originalSize=h;M.onfile(D)}return"break"}else if(N){if(P==134695760)return E=Y+=12+(N==-2&&8),X=3,M.c=0,"break";else if(P==33639248)return E=Y-=4,X=3,M.c=0,"break"}},M=this;for(;Y<R-4;++Y){var G=T();if(G==="break")break}if(this.p=KC,N<0){var F=X?$.subarray(0,E-12-(N==-2&&8)-(k($,E-16)==134695760&&4)):$.subarray(0,Y);if(W)W.push(F,!!X);else this.k[+(X==2)].push(F)}if(X&2)return this.push($.subarray(Y),J);this.p=$.subarray(Y)}if(J){if(this.c)B(13);this.p=null}},H.prototype.register=function(C){this.o[C.compression]=C},H}(),eC=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(H){H()}});YJ();export{PH as zlibSync,BJ as zlib,ZJ as zipSync,TJ as zip,QH as unzlibSync,VJ as unzlib,SJ as unzipSync,DJ as unzip,$C as strToU8,nH as strFromU8,vC as inflateSync,rH as inflate,LH as gzipSync,EJ as gzip,JH as gunzipSync,KJ as gunzip,cC as deflateSync,HJ as deflate,OJ as decompressSync,qJ as decompress,LH as compressSync,EJ as compress,MH as Zlib,bC as ZipPassThrough,PJ as ZipDeflate,GJ as Zip,KH as Unzlib,XJ as UnzipPassThrough,IJ as UnzipInflate,AJ as Unzip,a as Inflate,OH as Gzip,HH as Gunzip,RJ as FlateErrorCode,MJ as EncodeUTF8,t as Deflate,jH as Decompress,LJ as DecodeUTF8,OH as Compress,WJ as AsyncZlib,jJ as AsyncZipDeflate,QJ as AsyncUnzlib,UJ as AsyncUnzipInflate,uH as AsyncInflate,NJ as AsyncGzip,JJ as AsyncGunzip,CJ as AsyncDeflate,FJ as AsyncDecompress,NJ as AsyncCompress};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dpa as a}from"./cli-0.6.5-q67zwknt.mjs";import"./cli-0.6.5-4k3kk3pr.mjs";import"./cli-0.6.5-bm7v9qp0.mjs";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K6 as S}from"./cli-0.6.5-5wr197ms.mjs";import"./cli-0.6.5-azwzatpd.mjs";import"./cli-0.6.5-zxppzj42.mjs";import{l7 as A}from"./cli-0.6.5-ts0kvt5k.mjs";import{bpa as I,cpa as h}from"./cli-0.6.5-6829jyhh.mjs";import"./cli-0.6.5-q67zwknt.mjs";import"./cli-0.6.5-4k3kk3pr.mjs";import{npa as p,qpa as F}from"./cli-0.6.5-bm7v9qp0.mjs";var d=p((n)=>{var w=n&&n.__createBinding||(Object.create?function(e,r,o,t){if(t===void 0)t=o;var _=Object.getOwnPropertyDescriptor(r,o);if(!_||("get"in _?!r.__esModule:_.writable||_.configurable))_={enumerable:!0,get:function(){return r[o]}};Object.defineProperty(e,t,_)}:function(e,r,o,t){if(t===void 0)t=o;e[t]=r[o]}),v=n&&n.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),j=n&&n.__importStar||function(){var e=function(r){return e=Object.getOwnPropertyNames||function(o){var t=[];for(var _ in o)if(Object.prototype.hasOwnProperty.call(o,_))t[t.length]=_;return t},e(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null){for(var t=e(r),_=0;_<t.length;_++)if(t[_]!=="default")w(o,r,t[_])}return v(o,r),o}}();Object.defineProperty(n,"__esModule",{value:!0});n.fromWebToken=void 0;var m=(e)=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:t,webIdentityToken:_,providerId:s,policyArns:y,policy:b,durationSeconds:T}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:N}=await Promise.resolve().then(()=>j(S()));l=N({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...r?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:_,ProviderId:s,PolicyArns:y,Policy:b,DurationSeconds:T})};n.fromWebToken=m});var u=p((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.fromTokenFile=void 0;var P=I(),g=h(),k=A(),R=F("node:fs"),q=d(),O="AWS_WEB_IDENTITY_TOKEN_FILE",L="AWS_ROLE_ARN",W="AWS_ROLE_SESSION_NAME",V=(e={})=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[O],t=e?.roleArn??process.env[L],_=e?.roleSessionName??process.env[W];if(!o||!t)throw new g.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let s=await(0,q.fromWebToken)({...e,webIdentityToken:k.externalDataInterceptor?.getTokenRecord?.()[o]??(0,R.readFileSync)(o,{encoding:"ascii"}),roleArn:t,roleSessionName:_})(r);if(o===process.env[O])(0,P.setCredentialFeature)(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};E.fromTokenFile=V});var x=p((c)=>{var i=u(),a=d();Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:i.__proto__});Object.keys(i).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=i[e]});Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:a.__proto__});Object.keys(a).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=a[e]})});export default x();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J6 as a}from"./cli-0.6.5-h3cch37f.mjs";import"./cli-0.6.5-6829jyhh.mjs";import"./cli-0.6.5-4k3kk3pr.mjs";import"./cli-0.6.5-bm7v9qp0.mjs";export default a();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{L6 as F,M6 as Nr,N6 as Dr,O6 as br,P6 as Ge,Q6 as Zt,R6 as Et,S6 as $r,T6 as Is,U6 as Ar,V6 as Fr,W6 as hs,X6 as G,Y6 as tt,Z6 as pr,_6 as _r,a7 as Er,b7 as Sr,c7 as Rr,d7 as xr,e7 as vr,f7 as Kt,g7 as kt,h7 as er,i7 as Ur,j7 as Mr}from"./cli-0.6.5-azwzatpd.mjs";import{k7 as ps}from"./cli-0.6.5-zxppzj42.mjs";import{l7 as we}from"./cli-0.6.5-ts0kvt5k.mjs";import{apa as dr,bpa as Z,cpa as Ce}from"./cli-0.6.5-6829jyhh.mjs";import{dpa as ir}from"./cli-0.6.5-q67zwknt.mjs";import{fpa as Xe}from"./cli-0.6.5-4k3kk3pr.mjs";import{lpa as ge,npa as S,ppa as no,qpa as X}from"./cli-0.6.5-bm7v9qp0.mjs";var De=S((Zs)=>{var Ls=Z(),Ts=F(),p=Ce(),w=we(),zs=X("node:fs"),Hs=({logger:e,signingName:s}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!s)throw new p.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let t=Ts.getBearerTokenEnvKey(s);if(!(t in process.env))throw new p.TokenProviderError(`Token not present in '${t}' environment variable`,{logger:e});let o={token:process.env[t]};return Ls.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},Vs=300000,K="To refresh this SSO session run 'aws sso login' with the corresponding profile.",Bs=async(e,s={},t)=>{let{SSOOIDCClient:o}=await import("./index-0.6.5-gtcspa71.mjs").then((m)=>ge(m.default)),r=(c)=>s.clientConfig?.[c]??s.parentClientConfig?.[c]??t?.[c];return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:r("logger"),userAgentAppId:r("userAgentAppId")}))},Ys=async(e,s,t={},o)=>{let{CreateTokenCommand:r}=await import("./index-0.6.5-gtcspa71.mjs").then((m)=>ge(m.default));return(await Bs(s,t,o)).send(new r({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},Pe=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new p.TokenProviderError(`Token is expired. ${K}`,!1)},h=(e,s,t=!1)=>{if(typeof s>"u")throw new p.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${K}`,!1)},{writeFile:Qs}=zs.promises,Js=(e,s)=>{let t=w.getSSOTokenFilepath(e),o=JSON.stringify(s,null,2);return Qs(t,o)},ye=new Date(0),Ne=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let t=await w.parseKnownFiles(e),o=w.getProfileName({profile:e.profile??s?.profile}),r=t[o];if(!r)throw new p.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new p.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`);let n=r.sso_session,_=(await w.loadSsoSessionData(e))[n];if(!_)throw new p.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let a of["sso_start_url","sso_region"])if(!_[a])throw new p.TokenProviderError(`Sso session '${n}' is missing required property '${a}'.`,!1);_.sso_start_url;let d=_.sso_region,l;try{l=await w.getSSOTokenFromFile(n)}catch(a){throw new p.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${K}`,!1)}h("accessToken",l.accessToken),h("expiresAt",l.expiresAt);let{accessToken:u,expiresAt:C}=l,x={token:u,expiration:new Date(C)};if(x.expiration.getTime()-Date.now()>Vs)return x;if(Date.now()-ye.getTime()<30000)return Pe(x),x;h("clientId",l.clientId,!0),h("clientSecret",l.clientSecret,!0),h("refreshToken",l.refreshToken,!0);try{ye.setTime(Date.now());let a=await Ys(l,d,e,s);h("accessToken",a.accessToken),h("expiresIn",a.expiresIn);let v=new Date(Date.now()+a.expiresIn*1000);try{await Js(n,{...l,accessToken:a.accessToken,expiresAt:v.toISOString(),refreshToken:a.refreshToken})}catch(J){}return{token:a.accessToken,expiration:v}}catch(a){return Pe(x),x}},Ws=({token:e,logger:s})=>async()=>{if(s?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new p.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},Xs=(e={})=>p.memoize(p.chain(Ne(e),async()=>{throw new p.TokenProviderError("Could not load token from any providers",!1)}),(s)=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<300000,(s)=>s.expiration!==void 0);Zs.fromEnvSigningName=Hs;Zs.fromSso=Ne;Zs.fromStatic=Ws;Zs.nodeProvider=Xs});var ee=S((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.resolveHttpAuthSchemeConfig=be.defaultSSOHttpAuthSchemeProvider=be.defaultSSOHttpAuthSchemeParametersProvider=void 0;var rt=F(),k=tt(),ot=async(e,s,t)=>{return{operation:(0,k.getSmithyContext)(s).operation,region:await(0,k.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};be.defaultSSOHttpAuthSchemeParametersProvider=ot;function nt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}}function at(e){return{schemeId:"smithy.api#noAuth"}}var ct=(e)=>{let s=[];switch(e.operation){case"GetRoleCredentials":{s.push(at(e));break}default:s.push(nt(e))}return s};be.defaultSSOHttpAuthSchemeProvider=ct;var lt=(e)=>{let s=(0,rt.resolveAwsSdkSigV4Config)(e);return Object.assign(s,{authSchemePreference:(0,k.normalizeProvider)(e.authSchemePreference??[])})};be.resolveHttpAuthSchemeConfig=lt});var Te=S((je)=>{Object.defineProperty(je,"__esModule",{value:!0});je.bdd=void 0;var dt=Ge(),N="ref",f=-1,U=!0,Ae="isSet",me="PartitionResult",M="booleanEquals",se="getAttr",Fe={[N]:"Endpoint"},te={[N]:me},g={},Ue=[{[N]:"Region"}],Me={conditions:[[Ae,[Fe]],[Ae,Ue],["aws.partition",Ue,me],[M,[{[N]:"UseFIPS"},U]],[M,[{[N]:"UseDualStack"},U]],[M,[{fn:se,argv:[te,"supportsDualStack"]},U]],[M,[{fn:se,argv:[te,"supportsFIPS"]},U]],["stringEquals",[{fn:se,argv:[te,"name"]},"aws-us-gov"]]],results:[[f],[f,"Invalid Configuration: FIPS and custom endpoint are not supported"],[f,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Fe,g],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",g],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",g],[f,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",g],[f,"Invalid Configuration: Missing Region"]]},pt=2,i=1e8,_t=new Int32Array([-1,1,-1,0,13,3,1,4,i+12,2,5,i+12,3,8,6,4,7,i+11,5,i+9,i+10,4,11,9,6,10,i+8,7,i+6,i+7,5,12,i+5,6,i+4,i+5,3,i+1,14,4,i+2,i+3]);je.bdd=dt.BinaryDecisionDiagram.from(_t,pt,Me.conditions,Me.results)});var Ve=S((ze)=>{Object.defineProperty(ze,"__esModule",{value:!0});ze.defaultEndpointResolver=void 0;var St=Et(),re=Ge(),Rt=Te(),xt=new re.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vt=(e,s={})=>{return xt.get(e,()=>(0,re.decideEndpoint)(Rt.bdd,{endpointParams:e,logger:s.logger}))};ze.defaultEndpointResolver=vt;re.customEndpointFunctions.aws=St.awsEndpointFunctions});var m=S((ne)=>{Object.defineProperty(ne,"__esModule",{value:!0});ne.SSOServiceException=ne.__ServiceException=void 0;var Be=G();Object.defineProperty(ne,"__ServiceException",{enumerable:!0,get:function(){return Be.ServiceException}});class oe extends Be.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,oe.prototype)}}ne.SSOServiceException=oe});var ie=S((Qe)=>{Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UnauthorizedException=Qe.TooManyRequestsException=Qe.ResourceNotFoundException=Qe.InvalidRequestException=void 0;var j=m();class ae extends j.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,ae.prototype)}}Qe.InvalidRequestException=ae;class ce extends j.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ce.prototype)}}Qe.ResourceNotFoundException=ce;class le extends j.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}Qe.TooManyRequestsException=le;class ue extends j.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}Qe.UnauthorizedException=ue});var de=S((es)=>{Object.defineProperty(es,"__esModule",{value:!0});es.GetRoleCredentials$=es.RoleCredentials$=es.GetRoleCredentialsResponse$=es.GetRoleCredentialsRequest$=es.errorTypeRegistries=es.UnauthorizedException$=es.TooManyRequestsException$=es.ResourceNotFoundException$=es.InvalidRequestException$=es.SSOServiceException$=void 0;var ft="AccessTokenType",qt="GetRoleCredentials",Pt="GetRoleCredentialsRequest",yt="GetRoleCredentialsResponse",gt="InvalidRequestException",Ct="RoleCredentials",wt="ResourceNotFoundException",Nt="SecretAccessKeyType",Dt="SessionTokenType",bt="TooManyRequestsException",$t="UnauthorizedException",At="accountId",Ft="accessKeyId",Ut="accessToken",Mt="account_id",L="client",T="error",Gt="expiration",mt="http",z="httpError",jt="httpHeader",We="httpQuery",H="message",Lt="roleCredentials",Tt="roleName",zt="role_name",Ze="smithy.ts.sdk.synthetic.com.amazonaws.sso",Ht="secretAccessKey",Vt="sessionToken",Bt="x-amz-sso_bearer_token",E="com.amazonaws.sso",Ke=Xe(),V=ie(),Yt=m(),ke=Ke.TypeRegistry.for(Ze);es.SSOServiceException$=[-3,Ze,"SSOServiceException",0,[],[]];ke.registerError(es.SSOServiceException$,Yt.SSOServiceException);var D=Ke.TypeRegistry.for(E);es.InvalidRequestException$=[-3,E,gt,{[T]:L,[z]:400},[H],[0]];D.registerError(es.InvalidRequestException$,V.InvalidRequestException);es.ResourceNotFoundException$=[-3,E,wt,{[T]:L,[z]:404},[H],[0]];D.registerError(es.ResourceNotFoundException$,V.ResourceNotFoundException);es.TooManyRequestsException$=[-3,E,bt,{[T]:L,[z]:429},[H],[0]];D.registerError(es.TooManyRequestsException$,V.TooManyRequestsException);es.UnauthorizedException$=[-3,E,$t,{[T]:L,[z]:401},[H],[0]];D.registerError(es.UnauthorizedException$,V.UnauthorizedException);es.errorTypeRegistries=[ke,D];var Qt=[0,E,ft,8,0],Jt=[0,E,Nt,8,0],Wt=[0,E,Dt,8,0];es.GetRoleCredentialsRequest$=[3,E,Pt,0,[Tt,At,Ut],[[0,{[We]:zt}],[0,{[We]:Mt}],[()=>Qt,{[jt]:Bt}]],3];es.GetRoleCredentialsResponse$=[3,E,yt,0,[Lt],[[()=>es.RoleCredentials$,0]]];es.RoleCredentials$=[3,E,Ct,0,[Ft,Ht,Vt,Gt],[0,[()=>Jt,0],[()=>Wt,0],1]];es.GetRoleCredentials$=[9,E,qt,{[mt]:["GET","/federation/credentials",200]},()=>es.GetRoleCredentialsRequest$,()=>es.GetRoleCredentialsResponse$]});var Ss=S((_s)=>{Object.defineProperty(_s,"__esModule",{value:!0});_s.getRuntimeConfig=void 0;var sr=F(),tr=kt(),rr=ps(),or=G(),nr=Zt(),is=er(),ds=Kt(),ar=ee(),cr=Ve(),lr=de(),ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??is.fromBase64,base64Encoder:e?.base64Encoder??is.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??cr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ar.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new sr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new rr.NoAuthSigner}],logger:e?.logger??new or.NoOpLogger,protocol:e?.protocol??tr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:lr.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??nr.parseUrl,utf8Decoder:e?.utf8Decoder??ds.fromUtf8,utf8Encoder:e?.utf8Encoder??ds.toUtf8}};_s.getRuntimeConfig=ur});var Ps=S((fs)=>{Object.defineProperty(fs,"__esModule",{value:!0});fs.getRuntimeConfig=void 0;var Or=pr(),Ir=Or.__importDefault(_r()),hr=Z(),fr=F(),Rs=Er(),B=Is(),qr=Sr(),xs=hs(),q=Rr(),vs=ir(),Os=G(),Pr=xr(),yr=vr(),gr=dr(),Cr=Ss(),wr=(e)=>{(0,Os.emitWarningIfUnsupportedVersion)(process.version);let s=(0,yr.resolveDefaultsModeConfig)(e),t=()=>s().then(Os.loadConfigsForDefaultMode),o=(0,Cr.getRuntimeConfig)(e);(0,hr.emitWarningIfUnsupportedVersion)(process.version);let r={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:s,authSchemePreference:e?.authSchemePreference??(0,q.loadConfig)(fr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,r),bodyLengthChecker:e?.bodyLengthChecker??Pr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Rs.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:Ir.default.version}),maxAttempts:e?.maxAttempts??(0,q.loadConfig)(xs.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,q.loadConfig)(B.NODE_REGION_CONFIG_OPTIONS,{...B.NODE_REGION_CONFIG_FILE_OPTIONS,...r}),requestHandler:vs.NodeHttpHandler.create(e?.requestHandler??t),retryMode:e?.retryMode??(0,q.loadConfig)({...xs.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||gr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??qr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??vs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,q.loadConfig)(B.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,r),useFipsEndpoint:e?.useFipsEndpoint??(0,q.loadConfig)(B.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,r),userAgentAppId:e?.userAgentAppId??(0,q.loadConfig)(Rs.NODE_APP_ID_CONFIG_OPTIONS,r)}};fs.getRuntimeConfig=wr});var $s=S((O)=>{var ys=Nr(),Gr=Dr(),mr=br(),gs=$r(),jr=Is(),pe=ps(),Lr=Xe(),Tr=Ar(),bs=Fr(),Cs=hs(),P=G(),ws=ee(),zr=Ps(),Ns=Ur(),Ds=Mr(),b=de(),Y=ie(),Hr=m(),Vr=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Br={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Yr=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:t,credentials:o}=e;return{setHttpAuthScheme(r){let n=s.findIndex((c)=>c.schemeId===r.schemeId);if(n===-1)s.push(r);else s.splice(n,1,r)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){o=r},credentials(){return o}}},Qr=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},Jr=(e,s)=>{let t=Object.assign(Ns.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),Ds.getHttpHandlerExtensionConfiguration(e),Yr(e));return s.forEach((o)=>o.configure(t)),Object.assign(e,Ns.resolveAwsRegionExtensionConfiguration(t),P.resolveDefaultRuntimeConfig(t),Ds.resolveHttpHandlerRuntimeConfig(t),Qr(t))};class _e extends P.Client{config;constructor(...[e]){let s=zr.getRuntimeConfig(e||{});super(s);this.initConfig=s;let t=Vr(s),o=gs.resolveUserAgentConfig(t),r=Cs.resolveRetryConfig(o),n=jr.resolveRegionConfig(r),c=ys.resolveHostHeaderConfig(n),_=bs.resolveEndpointConfig(c),d=ws.resolveHttpAuthSchemeConfig(_),l=Jr(d,e?.extensions||[]);this.config=l,this.middlewareStack.use(Lr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(gs.getUserAgentPlugin(this.config)),this.middlewareStack.use(Cs.getRetryPlugin(this.config)),this.middlewareStack.use(Tr.getContentLengthPlugin(this.config)),this.middlewareStack.use(ys.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Gr.getLoggerPlugin(this.config)),this.middlewareStack.use(mr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(pe.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ws.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(u)=>new pe.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(pe.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Ee extends P.Command.classBuilder().ep(Br).m(function(e,s,t,o){return[bs.getEndpointPlugin(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(b.GetRoleCredentials$).build(){}var Wr={GetRoleCredentialsCommand:Ee};class Se extends _e{}P.createAggregatedClient(Wr,Se);O.$Command=P.Command;O.__Client=P.Client;O.SSOServiceException=Hr.SSOServiceException;O.GetRoleCredentialsCommand=Ee;O.SSO=Se;O.SSOClient=_e;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=b[e]});Object.prototype.hasOwnProperty.call(Y,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:Y.__proto__});Object.keys(Y).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=Y[e]})});var Fs=S((to)=>{var As=$s();to.GetRoleCredentialsCommand=As.GetRoleCredentialsCommand;to.SSOClient=As.SSOClient});var R,Q,Us,ao,Gs=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),$=!1,Ms=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:t,ssoRegion:o,ssoRoleName:r,ssoClient:n,clientConfig:c,parentClientConfig:_,callerClientConfig:d,profile:l,filepath:u,configFilepath:C,ignoreCache:x,logger:a})=>{let v,J="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let I=await ao.fromSso({profile:l,filepath:u,configFilepath:C,ignoreCache:x})();v={accessToken:I.token,expiresAt:new Date(I.expiration).toISOString()}}catch(I){throw new R.CredentialsProviderError(I.message,{tryNextLink:$,logger:a})}else try{v=await Q.getSSOTokenFromFile(e)}catch(I){throw new R.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a})}if(new Date(v.expiresAt).getTime()-Date.now()<=0)throw new R.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a});let{accessToken:Re}=v,{SSOClient:y,GetRoleCredentialsCommand:A}=await Promise.resolve().then(function(){return Fs()}),js=n||new y(Object.assign({},c??{},{logger:c?.logger??d?.logger??_?.logger,region:c?.region??o,userAgentAppId:c?.userAgentAppId??d?.userAgentAppId??_?.userAgentAppId})),xe;try{xe=await js.send(new A({accountId:t,roleName:r,accessToken:Re}))}catch(I){throw new R.CredentialsProviderError(I,{tryNextLink:$,logger:a})}let{roleCredentials:{accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:he,credentialScope:fe,accountId:qe}={}}=xe;if(!ve||!Oe||!Ie||!he)throw new R.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:$,logger:a});let W={accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:new Date(he),...fe&&{credentialScope:fe},...qe&&{accountId:qe}};if(s)Us.setCredentialFeature(W,"CREDENTIALS_SSO","s");else Us.setCredentialFeature(W,"CREDENTIALS_SSO_LEGACY","u");return W},ms=(e,s)=>{let{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:n}=e;if(!t||!o||!r||!n)throw new R.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
|
|
2
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e},co=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:t,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoSession:c}=e,{ssoClient:_}=e,d=Q.getProfileName({profile:e.profile??s?.profile});if(!t&&!o&&!r&&!n&&!c){let u=(await Q.parseKnownFiles(e))[d];if(!u)throw new R.CredentialsProviderError(`Profile ${d} was not found.`,{logger:e.logger});if(!Gs(u))throw new R.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`,{logger:e.logger});if(u?.sso_session){let y=(await Q.loadSsoSessionData(e))[u.sso_session],A=` configurations in profile ${d} and sso-session ${u.sso_session}`;if(r&&r!==y.sso_region)throw new R.CredentialsProviderError("Conflicting SSO region"+A,{tryNextLink:!1,logger:e.logger});if(t&&t!==y.sso_start_url)throw new R.CredentialsProviderError("Conflicting SSO start_url"+A,{tryNextLink:!1,logger:e.logger});u.sso_region=y.sso_region,u.sso_start_url=y.sso_start_url}let{sso_start_url:C,sso_account_id:x,sso_region:a,sso_role_name:v,sso_session:J}=ms(u,e.logger);return Ms({ssoStartUrl:C,ssoSession:J,ssoAccountId:x,ssoRegion:a,ssoRoleName:v,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!t||!o||!r||!n)throw new R.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return Ms({ssoStartUrl:t,ssoSession:c,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},lo,uo,io;var po=no(()=>{R=Ce(),Q=we(),Us=Z(),ao=De();lo=co,uo=Gs,io=ms});po();export{io as validateSsoProfile,uo as isSsoProfile,lo as fromSSO};export default {get validateSsoProfile(){return io},get isSsoProfile(){return uo},get fromSSO(){return lo}};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{Kh as a6,Lh as m8}from"./cli-0.6.5-g8qt9gm7.mjs";import{L0 as n6,M0 as y8}from"./cli-0.6.5-19mg5dfx.mjs";import{Toa as Q$,Uoa as M6,Voa as W8,Woa as N1,Xoa as Z8}from"./cli-0.6.5-13g3042y.mjs";import"./cli-0.6.5-ev41fmky.mjs";import{lpa as p4,npa as Q4,opa as V$,ppa as I,qpa as m0}from"./cli-0.6.5-bm7v9qp0.mjs";function i0($,Y){return function(){return $.apply(Y,arguments)}}var g4=()=>{};function n0($){return $!==null&&!x0($)&&$.constructor!==null&&!x0($.constructor)&&t($.constructor.isBuffer)&&$.constructor.isBuffer($)}function X2($){let Y;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Y=ArrayBuffer.isView($);else Y=$&&$.buffer&&p1($.buffer);return Y}function U2(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function t0($,Y,{allOwnKeys:G=!1}={}){if($===null||typeof $>"u")return;let Q,X;if(typeof $!=="object")$=[$];if(v0($))for(Q=0,X=$.length;Q<X;Q++)Y.call(null,$[Q],Q,$);else{if(n0($))return;let W=G?Object.getOwnPropertyNames($):Object.keys($),Z=W.length,J;for(Q=0;Q<Z;Q++)J=W[Q],Y.call(null,$[J],J,$)}}function n1($,Y){if(n0($))return null;Y=Y.toLowerCase();let G=Object.keys($),Q=G.length,X;while(Q-- >0)if(X=G[Q],Y===X.toLowerCase())return X;return null}function u4(...$){let{caseless:Y,skipUndefined:G}=a1(this)&&this||{},Q={},X=(W,Z)=>{if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return;let J=Y&&n1(Q,Z)||Z,M=c4(Q,J)?Q[J]:void 0;if(P4(M)&&P4(W))Q[J]=u4(M,W);else if(P4(W))Q[J]=u4({},W);else if(v0(W))Q[J]=W.slice();else if(!G||!x0(W))Q[J]=W};for(let W=0,Z=$.length;W<Z;W++)$[W]&&t0($[W],X);return Q}function h2($){return!!($&&t($.append)&&$[d1]==="FormData"&&$[H4])}var Q2,O4,H4,d1,F4,X0=($)=>{return $=$.toLowerCase(),(Y)=>F4(Y)===$},C4=($)=>(Y)=>typeof Y===$,v0,x0,p1,W2,t,i1,a0=($)=>$!==null&&typeof $==="object",Z2=($)=>$===!0||$===!1,P4=($)=>{if(F4($)!=="object")return!1;let Y=O4($);return(Y===null||Y===Object.prototype||Object.getPrototypeOf(Y)===null)&&!(d1 in $)&&!(H4 in $)},J2=($)=>{if(!a0($)||n0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(Y){return!1}},N2,M2,K2=($)=>{return!!($&&typeof $.uri<"u")},V2=($)=>$&&typeof $.getParts<"u",B2,z2,L2=($)=>a0($)&&t($.pipe),c1,l1,_2=($)=>{if(!$)return!1;if(l1&&$ instanceof l1)return!0;let Y=O4($);if(!Y||Y===Object.prototype)return!1;if(!t($.append))return!1;let G=F4($);return G==="formdata"||G==="object"&&t($.toString)&&$.toString()==="[object FormData]"},P2,O2,H2,F2,C2,T2=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},I0,a1=($)=>!x0($)&&$!==I0,I2=($,Y,G,{allOwnKeys:Q}={})=>{return t0(Y,(X,W)=>{if(G&&t(X))Object.defineProperty($,W,{__proto__:null,value:i0(X,G),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,W,{__proto__:null,value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),$},R2=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},D2=($,Y,G,Q)=>{$.prototype=Object.create(Y.prototype,Q),Object.defineProperty($.prototype,"constructor",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{__proto__:null,value:Y.prototype}),G&&Object.assign($.prototype,G)},S2=($,Y,G,Q)=>{let X,W,Z,J={};if(Y=Y||{},$==null)return Y;do{X=Object.getOwnPropertyNames($),W=X.length;while(W-- >0)if(Z=X[W],(!Q||Q(Z,$,Y))&&!J[Z])Y[Z]=$[Z],J[Z]=!0;$=G!==!1&&O4($)}while($&&(!G||G($,Y))&&$!==Object.prototype);return Y},w2=($,Y,G)=>{if($=String($),G===void 0||G>$.length)G=$.length;G-=Y.length;let Q=$.indexOf(Y,G);return Q!==-1&&Q===G},E2=($)=>{if(!$)return null;if(v0($))return $;let Y=$.length;if(!i1(Y))return null;let G=Array(Y);while(Y-- >0)G[Y]=$[Y];return G},q2,A2=($,Y)=>{let Q=($&&$[H4]).call($),X;while((X=Q.next())&&!X.done){let W=X.value;Y.call($,W[0],W[1])}},k2=($,Y)=>{let G,Q=[];while((G=$.exec(Y))!==null)Q.push(G);return Q},j2,x2=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(G,Q,X){return Q.toUpperCase()+X})},c4,v2,t1=($,Y)=>{let G=Object.getOwnPropertyDescriptors($),Q={};t0(G,(X,W)=>{let Z;if((Z=Y(X,W,$))!==!1)Q[W]=Z||X}),Object.defineProperties($,Q)},b2=($)=>{t1($,(Y,G)=>{if(t($)&&["arguments","caller","callee"].includes(G))return!1;let Q=$[G];if(!t(Q))return;if(Y.enumerable=!1,"writable"in Y){Y.writable=!1;return}if(!Y.set)Y.set=()=>{throw Error("Can not rewrite read-only method '"+G+"'")}})},f2=($,Y)=>{let G={},Q=(X)=>{X.forEach((W)=>{G[W]=!0})};return v0($)?Q($):Q(String($).split(Y)),G},y2=()=>{},m2=($,Y)=>{return $!=null&&Number.isFinite($=+$)?$:Y},g2=($)=>{let Y=new WeakSet,G=(Q)=>{if(a0(Q)){if(Y.has(Q))return;if(n0(Q))return Q;if(!("toJSON"in Q)){Y.add(Q);let X=v0(Q)?[]:{};return t0(Q,(W,Z)=>{let J=G(W);!x0(J)&&(X[Z]=J)}),Y.delete(Q),X}}return Q};return G($)},u2,c2=($)=>$&&(a0($)||t($))&&t($.then)&&t($.catch),s1,l2,d2=($)=>$!=null&&t($[H4]),N;var j=I(()=>{g4();({toString:Q2}=Object.prototype),{getPrototypeOf:O4}=Object,{iterator:H4,toStringTag:d1}=Symbol,F4=(($)=>(Y)=>{let G=Q2.call(Y);return $[G]||($[G]=G.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:v0}=Array,x0=C4("undefined");p1=X0("ArrayBuffer");W2=C4("string"),t=C4("function"),i1=C4("number"),N2=X0("Date"),M2=X0("File"),B2=X0("Blob"),z2=X0("FileList");c1=U2(),l1=typeof c1.FormData<"u"?c1.FormData:void 0,P2=X0("URLSearchParams"),[O2,H2,F2,C2]=["ReadableStream","Request","Response","Headers"].map(X0);I0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();q2=(($)=>{return(Y)=>{return $&&Y instanceof $}})(typeof Uint8Array<"u"&&O4(Uint8Array)),j2=X0("HTMLFormElement"),c4=(({hasOwnProperty:$})=>(Y,G)=>$.call(Y,G))(Object.prototype),v2=X0("RegExp");u2=X0("AsyncFunction"),s1=(($,Y)=>{if($)return setImmediate;return Y?((G,Q)=>{return I0.addEventListener("message",({source:X,data:W})=>{if(X===I0&&W===G)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),I0.postMessage(G,"*")}})(`axios@${Math.random()}`,[]):(G)=>setTimeout(G)})(typeof setImmediate==="function",t(I0.postMessage)),l2=typeof queueMicrotask<"u"?queueMicrotask.bind(I0):typeof process<"u"&&process.nextTick||s1,N={isArray:v0,isArrayBuffer:p1,isBuffer:n0,isFormData:_2,isArrayBufferView:X2,isString:W2,isNumber:i1,isBoolean:Z2,isObject:a0,isPlainObject:P4,isEmptyObject:J2,isReadableStream:O2,isRequest:H2,isResponse:F2,isHeaders:C2,isUndefined:x0,isDate:N2,isFile:M2,isReactNativeBlob:K2,isReactNative:V2,isBlob:B2,isRegExp:v2,isFunction:t,isStream:L2,isURLSearchParams:P2,isTypedArray:q2,isFileList:z2,forEach:t0,merge:u4,extend:I2,trim:T2,stripBOM:R2,inherits:D2,toFlatObject:S2,kindOf:F4,kindOfTest:X0,endsWith:w2,toArray:E2,forEachEntry:A2,matchAll:k2,isHTMLForm:j2,hasOwnProperty:c4,hasOwnProp:c4,reduceDescriptors:t1,freezeMethods:b2,toObjectSet:f2,toCamelCase:x2,noop:y2,toFiniteNumber:m2,findKey:n1,global:I0,isContextDefined:a1,isSpecCompliantForm:h2,toJSONObject:g2,isAsyncFn:u2,isThenable:c2,setImmediate:s1,asap:l2,isIterable:d2}});var p2,o1=($)=>{let Y={},G,Q,X;return $&&$.split(`
|
|
2
|
+
`).forEach(function(Z){if(X=Z.indexOf(":"),G=Z.substring(0,X).trim().toLowerCase(),Q=Z.substring(X+1).trim(),!G||Y[G]&&p2[G])return;if(G==="set-cookie")if(Y[G])Y[G].push(Q);else Y[G]=[Q];else Y[G]=Y[G]?Y[G]+", "+Q:Q}),Y};var r1=I(()=>{j();p2=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"])});function i2($){let Y=0,G=$.length;while(Y<G){let Q=$.charCodeAt(Y);if(Q!==9&&Q!==32)break;Y+=1}while(G>Y){let Q=$.charCodeAt(G-1);if(Q!==9&&Q!==32)break;G-=1}return Y===0&&G===$.length?$:$.slice(Y,G)}function l4($,Y){if(N.isArray($))return $.map((G)=>l4(G,Y));return i2(String($).replace(Y,""))}function b0($){let Y=Object.create(null);return N.forEach($.toJSON(),(G,Q)=>{Y[Q]=t2(G)}),Y}var n2,a2,e1=($)=>l4($,n2),t2=($)=>l4($,a2);var s0=I(()=>{j();n2=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),a2=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g")});function o0($){return $&&String($).trim().toLowerCase()}function T4($){if($===!1||$==null)return $;return N.isArray($)?$.map(T4):e1(String($))}function s2($){let Y=Object.create(null),G=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=G.exec($))Y[Q[1]]=Q[2];return Y}function d4($,Y,G,Q,X){if(N.isFunction(Q))return Q.call(this,Y,G);if(X)Y=G;if(!N.isString(Y))return;if(N.isString(Q))return Y.indexOf(Q)!==-1;if(N.isRegExp(Q))return Q.test(Y)}function r2($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Y,G,Q)=>{return G.toUpperCase()+Q})}function e2($,Y){let G=N.toCamelCase(" "+Y);["get","set","has"].forEach((Q)=>{Object.defineProperty($,Q+G,{__proto__:null,value:function(X,W,Z){return this[Q].call(this,Y,X,W,Z)},configurable:!0})})}var $5,o2=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim()),r0,v;var W0=I(()=>{j();r1();s0();$5=Symbol("internals");r0=class r0{constructor($){$&&this.set($)}set($,Y,G){let Q=this;function X(Z,J,M){let K=o0(J);if(!K)throw Error("header name must be a non-empty string");let V=N.findKey(Q,K);if(!V||Q[V]===void 0||M===!0||M===void 0&&Q[V]!==!1)Q[V||J]=T4(Z)}let W=(Z,J)=>N.forEach(Z,(M,K)=>X(M,K,J));if(N.isPlainObject($)||$ instanceof this.constructor)W($,Y);else if(N.isString($)&&($=$.trim())&&!o2($))W(o1($),Y);else if(N.isObject($)&&N.isIterable($)){let Z={},J,M;for(let K of $){if(!N.isArray(K))throw TypeError("Object iterator must return a key-value pair");Z[M=K[0]]=(J=Z[M])?N.isArray(J)?[...J,K[1]]:[J,K[1]]:K[1]}W(Z,Y)}else $!=null&&X(Y,$,G);return this}get($,Y){if($=o0($),$){let G=N.findKey(this,$);if(G){let Q=this[G];if(!Y)return Q;if(Y===!0)return s2(Q);if(N.isFunction(Y))return Y.call(this,Q,G);if(N.isRegExp(Y))return Y.exec(Q);throw TypeError("parser must be boolean|regexp|function")}}}has($,Y){if($=o0($),$){let G=N.findKey(this,$);return!!(G&&this[G]!==void 0&&(!Y||d4(this,this[G],G,Y)))}return!1}delete($,Y){let G=this,Q=!1;function X(W){if(W=o0(W),W){let Z=N.findKey(G,W);if(Z&&(!Y||d4(G,G[Z],Z,Y)))delete G[Z],Q=!0}}if(N.isArray($))$.forEach(X);else X($);return Q}clear($){let Y=Object.keys(this),G=Y.length,Q=!1;while(G--){let X=Y[G];if(!$||d4(this,this[X],X,$,!0))delete this[X],Q=!0}return Q}normalize($){let Y=this,G={};return N.forEach(this,(Q,X)=>{let W=N.findKey(G,X);if(W){Y[W]=T4(Q),delete Y[X];return}let Z=$?r2(X):String(X).trim();if(Z!==X)delete Y[X];Y[Z]=T4(Q),G[Z]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let Y=Object.create(null);return N.forEach(this,(G,Q)=>{G!=null&&G!==!1&&(Y[Q]=$&&N.isArray(G)?G.join(", "):G)}),Y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,Y])=>$+": "+Y).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...Y){let G=new this($);return Y.forEach((Q)=>G.set(Q)),G}static accessor($){let G=(this[$5]=this[$5]={accessors:{}}).accessors,Q=this.prototype;function X(W){let Z=o0(W);if(!G[Z])e2(Q,W),G[Z]=!0}return N.isArray($)?$.forEach(X):X($),this}};r0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(r0.prototype,({value:$},Y)=>{let G=Y[0].toUpperCase()+Y.slice(1);return{get:()=>$,set(Q){this[G]=Q}}});N.freezeMethods(r0);v=r0});function Y$($){if(N.hasOwnProp($,"toJSON"))return!0;let Y=Object.getPrototypeOf($);while(Y&&Y!==Object.prototype){if(N.hasOwnProp(Y,"toJSON"))return!0;Y=Object.getPrototypeOf(Y)}return!1}function G$($,Y){let G=new Set(Y.map((W)=>String(W).toLowerCase())),Q=[],X=(W)=>{if(W===null||typeof W!=="object")return W;if(N.isBuffer(W))return W;if(Q.indexOf(W)!==-1)return;if(W instanceof v)W=W.toJSON();Q.push(W);let Z;if(N.isArray(W))Z=[],W.forEach((J,M)=>{let K=X(J);if(!N.isUndefined(K))Z[M]=K});else{if(!N.isPlainObject(W)&&Y$(W))return Q.pop(),W;Z=Object.create(null);for(let[J,M]of Object.entries(W)){let K=G.has(J.toLowerCase())?$$:X(M);if(!N.isUndefined(K))Z[J]=K}}return Q.pop(),Z};return X($)}var $$="[REDACTED ****]",d,L;var r=I(()=>{j();W0();d=class d extends Error{static from($,Y,G,Q,X,W){let Z=new d($.message,Y||$.code,G,Q,X);if(Z.cause=$,Z.name=$.name,$.status!=null&&Z.status==null)Z.status=$.status;return W&&Object.assign(Z,W),Z}constructor($,Y,G,Q,X){super($);if(Object.defineProperty(this,"message",{__proto__:null,value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Y&&(this.code=Y),G&&(this.config=G),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){let $=this.config,Y=$&&N.hasOwnProp($,"redact")?$.redact:void 0,G=N.isArray(Y)&&Y.length>0?G$($,Y):N.toJSONObject($);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G,code:this.code,status:this.status}}};d.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";d.ERR_BAD_OPTION="ERR_BAD_OPTION";d.ECONNABORTED="ECONNABORTED";d.ETIMEDOUT="ETIMEDOUT";d.ECONNREFUSED="ECONNREFUSED";d.ERR_NETWORK="ERR_NETWORK";d.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";d.ERR_DEPRECATED="ERR_DEPRECATED";d.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";d.ERR_BAD_REQUEST="ERR_BAD_REQUEST";d.ERR_CANCELED="ERR_CANCELED";d.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";d.ERR_INVALID_URL="ERR_INVALID_URL";d.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";L=d});var Y5,I4;var i4=I(()=>{Y5=p4(Q$(),1),I4=Y5.default});function a4($){return N.isPlainObject($)||N.isArray($)}function G5($){return N.endsWith($,"[]")?$.slice(0,-2):$}function n4($,Y,G){if(!$)return Y;return $.concat(Y).map(function(X,W){return X=G5(X),!G&&W?"["+X+"]":X}).join(G?".":"")}function X$($){return N.isArray($)&&!$.some(a4)}function Z$($,Y,G){if(!N.isObject($))throw TypeError("target must be an object");Y=Y||new(I4||FormData),G=N.toFlatObject(G,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,_){return!N.isUndefined(_[O])});let Q=G.metaTokens,X=G.visitor||B,W=G.dots,Z=G.indexes,J=G.Blob||typeof Blob<"u"&&Blob,M=G.maxDepth===void 0?100:G.maxDepth,K=J&&N.isSpecCompliantForm(Y);if(!N.isFunction(X))throw TypeError("visitor must be a function");function V(H){if(H===null)return"";if(N.isDate(H))return H.toISOString();if(N.isBoolean(H))return H.toString();if(!K&&N.isBlob(H))throw new L("Blob is not supported. Use a Buffer instead.");if(N.isArrayBuffer(H)||N.isTypedArray(H))return K&&typeof Blob==="function"?new Blob([H]):Buffer.from(H);return H}function B(H,O,_){let R=H;if(N.isReactNative(Y)&&N.isReactNativeBlob(H))return Y.append(n4(_,O,W),V(H)),!1;if(H&&!_&&typeof H==="object"){if(N.endsWith(O,"{}"))O=Q?O:O.slice(0,-2),H=JSON.stringify(H);else if(N.isArray(H)&&X$(H)||(N.isFileList(H)||N.endsWith(O,"[]"))&&(R=N.toArray(H)))return O=G5(O),R.forEach(function(w,b){!(N.isUndefined(w)||w===null)&&Y.append(Z===!0?n4([O],b,W):Z===null?O:O+"[]",V(w))}),!1}if(a4(H))return!0;return Y.append(n4(_,O,W),V(H)),!1}let z=[],U=Object.assign(W$,{defaultVisitor:B,convertValue:V,isVisitable:a4});function F(H,O,_=0){if(N.isUndefined(H))return;if(_>M)throw new L("Object is too deeply nested ("+_+" levels). Max depth: "+M,L.ERR_FORM_DATA_DEPTH_EXCEEDED);if(z.indexOf(H)!==-1)throw Error("Circular reference detected in "+O.join("."));z.push(H),N.forEach(H,function(S,w){if((!(N.isUndefined(S)||S===null)&&X.call(Y,S,N.isString(w)?w.trim():w,O,U))===!0)F(S,O?O.concat(w):[w],_+1)}),z.pop()}if(!N.isObject($))throw TypeError("data must be an object");return F($),Y}var W$,_0;var e0=I(()=>{j();r();i4();W$=N.toFlatObject(N,{},null,function(Y){return/^is[A-Z]/.test(Y)});_0=Z$});function Q5($){let Y={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent($).replace(/[!'()~]|%20/g,function(Q){return Y[Q]})}function X5($,Y){this._pairs=[],$&&_0($,this,Y)}var W5,Z5;var J5=I(()=>{e0();W5=X5.prototype;W5.append=function(Y,G){this._pairs.push([Y,G])};W5.toString=function(Y){let G=Y?function(Q){return Y.call(this,Q,Q5)}:Q5;return this._pairs.map(function(X){return G(X[0])+"="+G(X[1])},"").join("&")};Z5=X5});function J$($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function R0($,Y,G){if(!Y)return $;let Q=G&&G.encode||J$,X=N.isFunction(G)?{serialize:G}:G,W=X&&X.serialize,Z;if(W)Z=W(Y,X);else Z=N.isURLSearchParams(Y)?Y.toString():new Z5(Y,X).toString(Q);if(Z){let J=$.indexOf("#");if(J!==-1)$=$.slice(0,J);$+=($.indexOf("?")===-1?"?":"&")+Z}return $}var R4=I(()=>{j();J5()});class N5{constructor(){this.handlers=[]}use($,Y,G){return this.handlers.push({fulfilled:$,rejected:Y,synchronous:G?G.synchronous:!1,runWhen:G?G.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){N.forEach(this.handlers,function(G){if(G!==null)$(G)})}}var t4;var M5=I(()=>{j();t4=N5});var P0;var $4=I(()=>{P0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0}});import N$ from"url";var K5;var V5=I(()=>{K5=N$.URLSearchParams});import M$ from"crypto";var s4="abcdefghijklmnopqrstuvwxyz",B5="0123456789",z5,K$=($=16,Y=z5.ALPHA_DIGIT)=>{let G="",{length:Q}=Y,X=new Uint32Array($);M$.randomFillSync(X);for(let W=0;W<$;W++)G+=Y[X[W]%Q];return G},L5;var U5=I(()=>{V5();i4();z5={DIGIT:B5,ALPHA:s4,ALPHA_DIGIT:s4+s4.toUpperCase()+B5},L5={isNode:!0,classes:{URLSearchParams:K5,FormData:I4,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:z5,generateString:K$,protocols:["http","https","file","data"]}});var e4={};V$(e4,{origin:()=>L$,navigator:()=>o4,hasStandardBrowserWebWorkerEnv:()=>z$,hasStandardBrowserEnv:()=>B$,hasBrowserEnv:()=>r4});var r4,o4,B$,z$,L$;var _5=I(()=>{r4=typeof window<"u"&&typeof document<"u",o4=typeof navigator==="object"&&navigator||void 0,B$=r4&&(!o4||["ReactNative","NativeScript","NS"].indexOf(o4.product)<0),z$=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),L$=r4&&window.location.href||"http://localhost"});var q;var Z0=I(()=>{U5();_5();q={...e4,...L5}});function $1($,Y){return _0($,new q.classes.URLSearchParams,{visitor:function(G,Q,X,W){if(q.isNode&&N.isBuffer(G))return this.append(Q,G.toString("base64")),!1;return W.defaultVisitor.apply(this,arguments)},...Y})}var P5=I(()=>{j();e0();Z0()});function U$($){return N.matchAll(/\w+|\[(\w*)]/g,$).map((Y)=>{return Y[0]==="[]"?"":Y[1]||Y[0]})}function _$($){let Y={},G=Object.keys($),Q,X=G.length,W;for(Q=0;Q<X;Q++)W=G[Q],Y[W]=$[W];return Y}function P$($){function Y(G,Q,X,W){let Z=G[W++];if(Z==="__proto__")return!0;let J=Number.isFinite(+Z),M=W>=G.length;if(Z=!Z&&N.isArray(X)?X.length:Z,M){if(N.hasOwnProp(X,Z))X[Z]=N.isArray(X[Z])?X[Z].concat(Q):[X[Z],Q];else X[Z]=Q;return!J}if(!N.hasOwnProp(X,Z)||!N.isObject(X[Z]))X[Z]=[];if(Y(G,Q,X[Z],W)&&N.isArray(X[Z]))X[Z]=_$(X[Z]);return!J}if(N.isFormData($)&&N.isFunction($.entries)){let G={};return N.forEachEntry($,(Q,X)=>{Y(U$(Q),X,G,0)}),G}return null}var D4;var Y1=I(()=>{j();D4=P$});function O$($,Y,G){if(N.isString($))try{return(Y||JSON.parse)($),N.trim($)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(G||JSON.stringify)($)}var f0=($,Y)=>$!=null&&N.hasOwnProp($,Y)?$[Y]:void 0,G1,y0;var S4=I(()=>{j();r();$4();e0();P5();Z0();Y1();G1={transitional:P0,adapter:["xhr","http","fetch"],transformRequest:[function(Y,G){let Q=G.getContentType()||"",X=Q.indexOf("application/json")>-1,W=N.isObject(Y);if(W&&N.isHTMLForm(Y))Y=new FormData(Y);if(N.isFormData(Y))return X?JSON.stringify(D4(Y)):Y;if(N.isArrayBuffer(Y)||N.isBuffer(Y)||N.isStream(Y)||N.isFile(Y)||N.isBlob(Y)||N.isReadableStream(Y))return Y;if(N.isArrayBufferView(Y))return Y.buffer;if(N.isURLSearchParams(Y))return G.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Y.toString();let J;if(W){let M=f0(this,"formSerializer");if(Q.indexOf("application/x-www-form-urlencoded")>-1)return $1(Y,M).toString();if((J=N.isFileList(Y))||Q.indexOf("multipart/form-data")>-1){let K=f0(this,"env"),V=K&&K.FormData;return _0(J?{"files[]":Y}:Y,V&&new V,M)}}if(W||X)return G.setContentType("application/json",!1),O$(Y);return Y}],transformResponse:[function(Y){let G=f0(this,"transitional")||G1.transitional,Q=G&&G.forcedJSONParsing,X=f0(this,"responseType"),W=X==="json";if(N.isResponse(Y)||N.isReadableStream(Y))return Y;if(Y&&N.isString(Y)&&(Q&&!X||W)){let J=!(G&&G.silentJSONParsing)&&W;try{return JSON.parse(Y,f0(this,"parseReviver"))}catch(M){if(J){if(M.name==="SyntaxError")throw L.from(M,L.ERR_BAD_RESPONSE,this,null,f0(this,"response"));throw M}}}return Y}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:q.classes.FormData,Blob:q.classes.Blob},validateStatus:function(Y){return Y>=200&&Y<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch","query"],($)=>{G1.headers[$]={}});y0=G1});function Y4($,Y){let G=this||y0,Q=Y||G,X=v.from(Q.headers),W=Q.data;return N.forEach($,function(J){W=J.call(G,W,X.normalize(),Y?Y.status:void 0)}),X.normalize(),W}var O5=I(()=>{j();S4();W0()});function G4($){return!!($&&$.__CANCEL__)}var Q1=()=>{};var H5,e;var D0=I(()=>{r();H5=class H5 extends L{constructor($,Y,G){super($==null?"canceled":$,L.ERR_CANCELED,Y,G);this.name="CanceledError",this.__CANCEL__=!0}};e=H5});function V0($,Y,G){let Q=G.config.validateStatus;if(!G.status||!Q||Q(G.status))$(G);else Y(new L("Request failed with status code "+G.status,G.status>=400&&G.status<500?L.ERR_BAD_REQUEST:L.ERR_BAD_RESPONSE,G.config,G.request,G))}var w4=I(()=>{r()});function X1($){if(typeof $!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}var F5=()=>{};function W1($,Y){return Y?$.replace(/\/?\/$/,"")+"/"+Y.replace(/^\/+/,""):$}var C5=()=>{};function S0($,Y,G){let Q=!X1(Y);if($&&(Q||G===!1))return W1($,Y);return Y}var E4=I(()=>{F5();C5()});var I5=Q4((T5)=>{Object.defineProperty(T5,"__esModule",{value:!0});function H$($){return function(Y,G){return new Promise((Q,X)=>{$.call(this,Y,G,(W,Z)=>{if(W)X(W);else Q(Z)})})}}T5.default=H$});var S5=Q4((J1,D5)=>{var R5=J1&&J1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},C$=m0("events"),T$=R5(N1()),I$=R5(I5()),X4=T$.default("agent-base");function R$($){return Boolean($)&&typeof $.addRequest==="function"}function Z1(){let{stack:$}=Error();if(typeof $!=="string")return!1;return $.split(`
|
|
4
|
+
`).some((Y)=>Y.indexOf("(https.js:")!==-1||Y.indexOf("node:https:")!==-1)}function q4($,Y){return new q4.Agent($,Y)}(function($){class Y extends C$.EventEmitter{constructor(G,Q){super();let X=Q;if(typeof G==="function")this.callback=G;else if(G)X=G;if(this.timeout=null,X&&typeof X.timeout==="number")this.timeout=X.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return Z1()?443:80}set defaultPort(G){this.explicitDefaultPort=G}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return Z1()?"https:":"http:"}set protocol(G){this.explicitProtocol=G}callback(G,Q,X){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(G,Q){let X=Object.assign({},Q);if(typeof X.secureEndpoint!=="boolean")X.secureEndpoint=Z1();if(X.host==null)X.host="localhost";if(X.port==null)X.port=X.secureEndpoint?443:80;if(X.protocol==null)X.protocol=X.secureEndpoint?"https:":"http:";if(X.host&&X.path)delete X.path;delete X.agent,delete X.hostname,delete X._defaultAgent,delete X.defaultPort,delete X.createConnection,G._last=!0,G.shouldKeepAlive=!1;let W=!1,Z=null,J=X.timeout||this.timeout,M=(z)=>{if(G._hadError)return;G.emit("error",z),G._hadError=!0},K=()=>{Z=null,W=!0;let z=Error(`A "socket" was not created for HTTP request before ${J}ms`);z.code="ETIMEOUT",M(z)},V=(z)=>{if(W)return;if(Z!==null)clearTimeout(Z),Z=null;M(z)},B=(z)=>{if(W)return;if(Z!=null)clearTimeout(Z),Z=null;if(R$(z)){X4("Callback returned another Agent instance %o",z.constructor.name),z.addRequest(G,X);return}if(z){z.once("free",()=>{this.freeSocket(z,X)}),G.onSocket(z);return}let U=Error(`no Duplex stream was returned to agent-base for \`${G.method} ${G.path}\``);M(U)};if(typeof this.callback!=="function"){M(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)X4("Converting legacy callback function to promise"),this.promisifiedCallback=I$.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof J==="number"&&J>0)Z=setTimeout(K,J);if("port"in X&&typeof X.port!=="number")X.port=Number(X.port);try{X4("Resolving socket for %o request: %o",X.protocol,`${G.method} ${G.path}`),Promise.resolve(this.promisifiedCallback(G,X)).then(B,V)}catch(z){Promise.reject(z).catch(V)}}freeSocket(G,Q){X4("Freeing socket %o %o",G.constructor.name,Q),G.destroy()}destroy(){X4("Destroying agent %o",this.constructor.name)}}$.Agent=Y,$.prototype=$.Agent.prototype})(q4||(q4={}));D5.exports=q4});var w5=Q4((Z4)=>{var D$=Z4&&Z4.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Z4,"__esModule",{value:!0});var S$=D$(N1()),W4=S$.default("https-proxy-agent:parse-proxy-response");function w$($){return new Promise((Y,G)=>{let Q=0,X=[];function W(){let B=$.read();if(B)V(B);else $.once("readable",W)}function Z(){$.removeListener("end",M),$.removeListener("error",K),$.removeListener("close",J),$.removeListener("readable",W)}function J(B){W4("onclose had error %o",B)}function M(){W4("onend")}function K(B){Z(),W4("onerror %o",B),G(B)}function V(B){X.push(B),Q+=B.length;let z=Buffer.concat(X,Q);if(z.indexOf(`\r
|
|
5
|
+
\r
|
|
6
|
+
`)===-1){W4("have not received end of HTTP headers yet..."),W();return}let F=z.toString("ascii",0,z.indexOf(`\r
|
|
7
|
+
`)),H=+F.split(" ")[1];W4("got proxy server response: %o",F),Y({statusCode:H,buffered:z})}$.on("error",K),$.on("close",J),$.on("end",M),W()})}Z4.default=w$});var k5=Q4((w0)=>{var E$=w0&&w0.__awaiter||function($,Y,G,Q){function X(W){return W instanceof G?W:new G(function(Z){Z(W)})}return new(G||(G=Promise))(function(W,Z){function J(V){try{K(Q.next(V))}catch(B){Z(B)}}function M(V){try{K(Q.throw(V))}catch(B){Z(B)}}function K(V){V.done?W(V.value):X(V.value).then(J,M)}K((Q=Q.apply($,Y||[])).next())})},h0=w0&&w0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(w0,"__esModule",{value:!0});var E5=h0(m0("net")),q5=h0(m0("tls")),q$=h0(m0("url")),A$=h0(m0("assert")),k$=h0(N1()),j$=S5(),x$=h0(w5()),J4=k$.default("https-proxy-agent:agent");class A5 extends j$.Agent{constructor($){let Y;if(typeof $==="string")Y=q$.default.parse($);else Y=$;if(!Y)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");J4("creating new HttpsProxyAgent instance: %o",Y);super(Y);let G=Object.assign({},Y);if(this.secureProxy=Y.secureProxy||f$(G.protocol),G.host=G.hostname||G.host,typeof G.port==="string")G.port=parseInt(G.port,10);if(!G.port&&G.host)G.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in G))G.ALPNProtocols=["http 1.1"];if(G.host&&G.path)delete G.path,delete G.pathname;this.proxy=G}callback($,Y){return E$(this,void 0,void 0,function*(){let{proxy:G,secureProxy:Q}=this,X;if(Q)J4("Creating `tls.Socket`: %o",G),X=q5.default.connect(G);else J4("Creating `net.Socket`: %o",G),X=E5.default.connect(G);let W=Object.assign({},G.headers),J=`CONNECT ${`${Y.host}:${Y.port}`} HTTP/1.1\r
|
|
8
|
+
`;if(G.auth)W["Proxy-Authorization"]=`Basic ${Buffer.from(G.auth).toString("base64")}`;let{host:M,port:K,secureEndpoint:V}=Y;if(!b$(K,V))M+=`:${K}`;W.Host=M,W.Connection="close";for(let H of Object.keys(W))J+=`${H}: ${W[H]}\r
|
|
9
|
+
`;let B=x$.default(X);X.write(`${J}\r
|
|
10
|
+
`);let{statusCode:z,buffered:U}=yield B;if(z===200){if($.once("socket",v$),Y.secureEndpoint){J4("Upgrading socket connection to TLS");let H=Y.servername||Y.host;return q5.default.connect(Object.assign(Object.assign({},y$(Y,"host","hostname","path","port")),{socket:X,servername:H}))}return X}X.destroy();let F=new E5.default.Socket({writable:!1});return F.readable=!0,$.once("socket",(H)=>{J4("replaying proxy buffer for failed request"),A$.default(H.listenerCount("data")>0),H.push(U),H.push(null)}),F})}}w0.default=A5;function v$($){$.resume()}function b$($,Y){return Boolean(!Y&&$===80||Y&&$===443)}function f$($){return typeof $==="string"?/^https:?$/i.test($):!1}function y$($,...Y){let G={},Q;for(Q in $)if(!Y.includes(Q))G[Q]=$[Q];return G}});var x5=Q4((V1,j5)=>{var m$=V1&&V1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},M1=m$(k5());function K1($){return new M1.default($)}(function($){$.HttpsProxyAgent=M1.default,$.prototype=M1.default.prototype})(K1||(K1={}));j5.exports=K1});var B0="1.16.1";var N4=()=>{};function M4($){let Y=/^([-+\w]{1,25}):(?:\/\/)?/.exec($);return Y&&Y[1]||""}var B1=()=>{};function z1($,Y,G){let Q=G&&G.Blob||q.classes.Blob,X=M4($);if(Y===void 0&&Q)Y=!0;if(X==="data"){$=X.length?$.slice(X.length+1):$;let W=h$.exec($);if(!W)throw new L("Invalid URL",L.ERR_INVALID_URL);let Z=W[1],J=W[2],M=W[3]?"base64":"utf8",K=W[4],V;if(Z)V=J?Z+J:Z;else if(J)V="text/plain"+J;let B=Buffer.from(decodeURIComponent(K),M);if(Y){if(!Q)throw new L("Blob is not supported",L.ERR_NOT_SUPPORT);return new Q([B],{type:V})}return B}throw new L("Unsupported protocol "+X,L.ERR_NOT_SUPPORT)}var h$;var v5=I(()=>{r();B1();Z0();h$=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/});import g$ from"stream";var L1,b5,U1;var f5=I(()=>{j();L1=Symbol("internals");b5=class b5 extends g$.Transform{constructor($){$=N.toFlatObject($,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(G,Q)=>{return!N.isUndefined(Q[G])});super({readableHighWaterMark:$.chunkSize});let Y=this[L1]={timeWindow:$.timeWindow,chunkSize:$.chunkSize,maxRate:$.maxRate,minChunkSize:$.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(G)=>{if(G==="progress"){if(!Y.isCaptured)Y.isCaptured=!0}})}_read($){let Y=this[L1];if(Y.onReadCallback)Y.onReadCallback();return super._read($)}_transform($,Y,G){let Q=this[L1],X=Q.maxRate,W=this.readableHighWaterMark,Z=Q.timeWindow,J=1000/Z,M=X/J,K=Q.minChunkSize!==!1?Math.max(Q.minChunkSize,M*0.01):0,V=(z,U)=>{let F=Buffer.byteLength(z);if(Q.bytesSeen+=F,Q.bytes+=F,Q.isCaptured&&this.emit("progress",Q.bytesSeen),this.push(z))process.nextTick(U);else Q.onReadCallback=()=>{Q.onReadCallback=null,process.nextTick(U)}},B=(z,U)=>{let F=Buffer.byteLength(z),H=null,O=W,_,R=0;if(X){let S=Date.now();if(!Q.ts||(R=S-Q.ts)>=Z)Q.ts=S,_=M-Q.bytes,Q.bytes=_<0?-_:0,R=0;_=M-Q.bytes}if(X){if(_<=0)return setTimeout(()=>{U(null,z)},Z-R);if(_<O)O=_}if(O&&F>O&&F-O>K)H=z.subarray(O),z=z.subarray(0,O);V(z,H?()=>{process.nextTick(U,null,H)}:U)};B($,function z(U,F){if(U)return G(U);if(F)B(F,z);else G(null)})}};U1=b5});var y5,u$=async function*($){if($.stream)yield*$.stream();else if($.arrayBuffer)yield await $.arrayBuffer();else if($[y5])yield*$[y5]();else yield $},A4;var _1=I(()=>{({asyncIterator:y5}=Symbol),A4=u$});import c$ from"util";import{Readable as l$}from"stream";class m5{constructor($,Y){let{escapeName:G}=this.constructor,Q=N.isString(Y),X=`Content-Disposition: form-data; name="${G($)}"${!Q&&Y.name?`; filename="${G(Y.name)}"`:""}${E0}`;if(Q)Y=K4.encode(String(Y).replace(/\r?\n|\r\n?/g,E0));else{let W=String(Y.type||"application/octet-stream").replace(/[\r\n]/g,"");X+=`Content-Type: ${W}${E0}`}this.headers=K4.encode(X+E0),this.contentLength=Q?Y.byteLength:Y.size,this.size=this.headers.byteLength+this.contentLength+i$,this.name=$,this.value=Y}async*encode(){yield this.headers;let{value:$}=this;if(N.isTypedArray($))yield $;else yield*A4($);yield p$}static escapeName($){return String($).replace(/[\r\n"]/g,(Y)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Y])}}var d$,K4,E0=`\r
|
|
11
|
+
`,p$,i$=2,n$=($,Y,G)=>{let{tag:Q="form-data-boundary",size:X=25,boundary:W=Q+"-"+q.generateString(X,d$)}=G||{};if(!N.isFormData($))throw TypeError("FormData instance required");if(W.length<1||W.length>70)throw Error("boundary must be 1-70 characters long");let Z=K4.encode("--"+W+E0),J=K4.encode("--"+W+"--"+E0),M=J.byteLength,K=Array.from($.entries()).map(([B,z])=>{let U=new m5(B,z);return M+=U.size,U});M+=Z.byteLength*K.length,M=N.toFiniteNumber(M);let V={"Content-Type":`multipart/form-data; boundary=${W}`};if(Number.isFinite(M))V["Content-Length"]=M;return Y&&Y(V),l$.from(async function*(){for(let B of K)yield Z,yield*B.encode();yield J}())},h5;var g5=I(()=>{j();_1();Z0();d$=q.ALPHABET.ALPHA_DIGIT+"-_",K4=typeof TextEncoder==="function"?new TextEncoder:new c$.TextEncoder,p$=K4.encode(E0);h5=n$});import a$ from"stream";var u5,c5;var l5=I(()=>{u5=class u5 extends a$.Transform{__transform($,Y,G){this.push($),G()}_transform($,Y,G){if($.length!==0){if(this._transform=this.__transform,$[0]!==120){let Q=Buffer.alloc(2);Q[0]=120,Q[1]=156,this.push(Q,Y)}}this.__transform($,Y,G)}};c5=u5});var t$=($,Y)=>{return N.isAsyncFn($)?function(...G){let Q=G.pop();$.apply(this,G).then((X)=>{try{Y?Q(null,...Y(X)):Q(null,X)}catch(W){Q(W)}},Q)}:$},d5;var p5=I(()=>{j();d5=t$});function P1($){let Y;try{Y=new URL($)}catch(W){return!1}let G=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!G)return!1;if(G==="*")return!0;let Q=Number.parseInt(Y.port,10)||r$[Y.protocol.split(":",1)[0]]||0,X=n5(Y.hostname.toLowerCase());return G.split(/[\s,]+/).some((W)=>{if(!W)return!1;let[Z,J]=e$(W);if(Z=n5(Z),!Z)return!1;if(J&&J!==Q)return!1;if(Z.charAt(0)==="*")Z=Z.slice(1);if(Z.charAt(0)===".")return X.endsWith(Z);return X===Z||i5(X)&&i5(Z)})}var s$,a5=($)=>{let Y=$.split(".");if(Y.length!==4)return!1;if(Y[0]!=="127")return!1;return Y.every((G)=>/^\d+$/.test(G)&&Number(G)>=0&&Number(G)<=255)},o$=($)=>{if($==="::1")return!0;let Y=$.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Y)return a5(Y[1]);let G=$.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(G){let X=parseInt(G[1],16);return X>=32512&&X<=32767}let Q=$.split(":");if(Q.length===8){for(let X=0;X<7;X++)if(!/^0+$/.test(Q[X]))return!1;return/^0*1$/.test(Q[7])}return!1},i5=($)=>{if(!$)return!1;if(s$.has($))return!0;if(a5($))return!0;return o$($)},r$,e$=($)=>{let Y=$,G=0;if(Y.charAt(0)==="["){let W=Y.indexOf("]");if(W!==-1){let Z=Y.slice(1,W),J=Y.slice(W+1);if(J.charAt(0)===":"&&/^\d+$/.test(J.slice(1)))G=Number.parseInt(J.slice(1),10);return[Z,G]}}let Q=Y.indexOf(":"),X=Y.lastIndexOf(":");if(Q!==-1&&Q===X&&/^\d+$/.test(Y.slice(X+1)))G=Number.parseInt(Y.slice(X+1),10),Y=Y.slice(0,X);return[Y,G]},$8,Y8,G8=($)=>{if(typeof $!=="string"||$.indexOf(":")===-1)return $;let Y=$.match($8);if(Y)return Y[1];let G=$.match(Y8);if(G){let Q=parseInt(G[1],16),X=parseInt(G[2],16);return`${Q>>8}.${Q&255}.${X>>8}.${X&255}`}return $},n5=($)=>{if(!$)return $;if($.charAt(0)==="["&&$.charAt($.length-1)==="]")$=$.slice(1,-1);return G8($.replace(/\.+$/,""))};var t5=I(()=>{s$=new Set(["localhost"]),r$={http:80,https:443,ws:80,wss:443,ftp:21},$8=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Y8=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i});function Q8($,Y){$=$||10;let G=Array($),Q=Array($),X=0,W=0,Z;return Y=Y!==void 0?Y:1000,function(M){let K=Date.now(),V=Q[W];if(!Z)Z=K;G[X]=M,Q[X]=K;let B=W,z=0;while(B!==X)z+=G[B++],B=B%$;if(X=(X+1)%$,X===W)W=(W+1)%$;if(K-Z<Y)return;let U=V&&K-V;return U?Math.round(z*1000/U):void 0}}var s5;var o5=I(()=>{s5=Q8});function X8($,Y){let G=0,Q=1000/Y,X,W,Z=(K,V=Date.now())=>{if(G=V,X=null,W)clearTimeout(W),W=null;$(...K)};return[(...K)=>{let V=Date.now(),B=V-G;if(B>=Q)Z(K,V);else if(X=K,!W)W=setTimeout(()=>{W=null,Z(X)},Q-B)},()=>X&&Z(X)]}var r5;var e5=I(()=>{r5=X8});var z0=($,Y,G=3)=>{let Q=0,X=s5(50,250);return r5((W)=>{if(!W||typeof W.loaded!=="number")return;let Z=W.loaded,J=W.lengthComputable?W.total:void 0,M=J!=null?Math.min(Z,J):Z,K=Math.max(0,M-Q),V=X(K);Q=Math.max(Q,M);let B={loaded:M,total:J,progress:J?M/J:void 0,bytes:K,rate:V?V:void 0,estimated:V&&J?(J-M)/V:void 0,event:W,lengthComputable:J!=null,[Y?"download":"upload"]:!0};$(B)},G)},g0=($,Y)=>{let G=$!=null;return[(Q)=>Y[0]({lengthComputable:G,total:$,loaded:Q}),Y[1]]},u0=($)=>(...Y)=>N.asap(()=>$(...Y));var k4=I(()=>{o5();e5();j()});function V4($){if(!$||typeof $!=="string")return 0;if(!$.startsWith("data:"))return 0;let Y=$.indexOf(",");if(Y<0)return 0;let G=$.slice(5,Y),Q=$.slice(Y+1);if(/;base64/i.test(G)){let{length:Z,length:J}=Q;for(let U=0;U<J;U++)if(Q.charCodeAt(U)===37&&U+2<J){let F=Q.charCodeAt(U+1),H=Q.charCodeAt(U+2);if((F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102)&&(H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102))Z-=2,U+=2}let M=0,K=J-1,V=(U)=>U>=2&&Q.charCodeAt(U-2)===37&&Q.charCodeAt(U-1)===51&&(Q.charCodeAt(U)===68||Q.charCodeAt(U)===100);if(K>=0){if(Q.charCodeAt(K)===61)M++,K--;else if(V(K))M++,K-=3}if(M===1&&K>=0){if(Q.charCodeAt(K)===61)M++;else if(V(K))M++}let z=Math.floor(Z/4)*3-(M||0);return z>0?z:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength==="function")return Buffer.byteLength(Q,"utf8");let W=0;for(let Z=0,J=Q.length;Z<J;Z++){let M=Q.charCodeAt(Z);if(M<128)W+=1;else if(M<2048)W+=2;else if(M>=55296&&M<=56319&&Z+1<J){let K=Q.charCodeAt(Z+1);if(K>=56320&&K<=57343)W+=4,Z++;else W+=3}else W+=3}return W}var O1=()=>{};import J8 from"http";import N8 from"https";import K6 from"http2";import V6 from"util";import{resolve as $6}from"path";import O0 from"zlib";import J0 from"stream";import{EventEmitter as M8}from"events";function L8($,Y,G){if(G!=="content-only"){$.set(Y);return}Object.entries(Y).forEach(([Q,X])=>{if(z8.includes(Q.toLowerCase()))$.set(Q,X)})}function _8($,Y){let G=$.protocol+"//"+$.hostname+":"+($.port||"")+"#"+($.auth||""),Q=Y?X6.get(Y)||X6.set(Y,new Map).get(Y):U8,X=Q.get(G);if(X)return X;let W=Y&&Y.options?{...Y.options,...$}:$;return X=new H1.default(W),X[L6]=!0,Q.set(G,X),X}class U6{constructor(){this.sessions=Object.create(null)}getSession($,Y){Y=Object.assign({sessionTimeout:1000},Y);let G=this.sessions[$];if(G){let K=G.length;for(let V=0;V<K;V++){let[B,z]=G[V];if(!B.destroyed&&!B.closed&&V6.isDeepStrictEqual(z,Y))return B}}let Q=K6.connect($,Y),X,W=()=>{if(X)return;X=!0;let K=G,V=K.length,B=V;while(B--)if(K[B][0]===Q){if(V===1)delete this.sessions[$];else K.splice(B,1);if(!Q.closed)Q.close();return}},Z=Q.request,{sessionTimeout:J}=Y;if(J!=null){let K,V=0;Q.request=function(){let B=Z.apply(this,arguments);if(V++,K)clearTimeout(K),K=null;return B.once("close",()=>{if(!--V)K=setTimeout(()=>{K=null,W()},J)}),B}}Q.once("close",W);let M=[Q,Y];return G?G.push(M):G=this.sessions[$]=[M],Q}}function O8($,Y,G){if($.beforeRedirects.proxy)$.beforeRedirects.proxy($);if($.beforeRedirects.config)$.beforeRedirects.config($,Y,G)}function _6($,Y,G,Q,X){let W=Y;if(!W&&W!==!1){let Z=M6(G);if(Z){if(!P1(G))W=new URL(Z)}}if(Q&&$.headers){for(let Z of Object.keys($.headers))if(Z.toLowerCase()==="proxy-authorization")delete $.headers[Z]}if(Q&&$.agent&&$.agent[L6])$.agent=void 0;if(W){let Z=W instanceof URL,J=(z)=>Z||N.hasOwnProp(W,z)?W[z]:void 0,M=J("username"),K=J("password"),V=N.hasOwnProp(W,"auth")?W.auth:void 0;if(M)V=(M||"")+":"+(K||"");if(V){let z=typeof V==="object",U=z&&N.hasOwnProp(V,"username")?V.username:void 0,F=z&&N.hasOwnProp(V,"password")?V.password:void 0;if(Boolean(U||F))V=(U||"")+":"+(F||"");else if(z)throw new L("Invalid proxy authorization",L.ERR_BAD_OPTION,{proxy:W})}if(z6.test($.protocol)){if(!(X instanceof H1.default)){let z=J("hostname")||J("host"),U=J("port"),F=J("protocol"),H=F?F.includes(":")?F:`${F}:`:"http:",O=z&&z.includes(":")&&!z.startsWith("[")?`[${z}]`:z,_=new URL(`${H}//${O}${U?":"+U:""}`),R={protocol:_.protocol,hostname:_.hostname.replace(/^\[|\]$/g,""),port:_.port,auth:V&&typeof V==="string"?V:void 0};if(_.protocol==="https:")R.ALPNProtocols=["http/1.1"];let S=_8(R,X);if($.agent=S,$.agents)$.agents.https=S}}else{if(V){let H=Buffer.from(V,"utf8").toString("base64");$.headers["Proxy-Authorization"]="Basic "+H}let z=!1;for(let H of Object.keys($.headers))if(H.toLowerCase()==="host"){z=!0;break}if(!z)$.headers.host=$.hostname+($.port?":"+$.port:"");let U=J("hostname")||J("host");$.hostname=U,$.host=U,$.port=J("port"),$.path=G;let F=J("protocol");if(F)$.protocol=F.includes(":")?F:`${F}:`}}$.beforeRedirects.proxy=function(J){_6(J,Y,J.href,!0,X)}}var H1,B6,Y6,K8,G6,V8,B8,z6,z8,Q6,j4,L6,U8,X6,W6,Z6=($)=>{if(!N.isString($))return $;try{return decodeURIComponent($)}catch(Y){return $}},J6=($,[Y,G])=>{return $.on("end",G).on("error",G),Y},P8,H8,F8=($)=>{return new Promise((Y,G)=>{let Q,X,W=(M,K)=>{if(X)return;X=!0,Q&&Q(M,K)},Z=(M)=>{W(M),Y(M)},J=(M)=>{W(M,!0),G(M)};$(Z,J,(M)=>Q=M).catch(J)})},C8=({address:$,family:Y})=>{if(!N.isString($))throw TypeError("address must be a string");return{address:$,family:Y||($.indexOf(".")<0?6:4)}},N6=($,Y)=>C8(N.isObject($)?$:{address:$,family:Y}),T8,P6;var O6=I(()=>{j();w4();E4();R4();W8();N4();$4();r();D0();Z0();v5();W0();f5();g5();_1();l5();p5();t5();s0();k4();O1();H1=p4(x5(),1),B6=p4(Z8(),1),Y6={flush:O0.constants.Z_SYNC_FLUSH,finishFlush:O0.constants.Z_SYNC_FLUSH},K8={flush:O0.constants.BROTLI_OPERATION_FLUSH,finishFlush:O0.constants.BROTLI_OPERATION_FLUSH},G6=N.isFunction(O0.createBrotliDecompress),{http:V8,https:B8}=B6.default,z6=/https:?/,z8=["content-type","content-length"];Q6=Symbol("axios.http.socketListener"),j4=Symbol("axios.http.currentReq"),L6=Symbol("axios.http.installedTunnel"),U8=new Map,X6=new WeakMap;W6=q.protocols.map(($)=>{return $+":"});P8=new U6;H8=typeof process<"u"&&N.kindOf(process)==="process",T8={request($,Y){let G=$.protocol+"//"+$.hostname+":"+($.port||($.protocol==="https:"?443:80)),{http2Options:Q,headers:X}=$,W=P8.getSession(G,Q),{HTTP2_HEADER_SCHEME:Z,HTTP2_HEADER_METHOD:J,HTTP2_HEADER_PATH:M,HTTP2_HEADER_STATUS:K}=K6.constants,V={[Z]:$.protocol.replace(":",""),[J]:$.method,[M]:$.path};N.forEach(X,(z,U)=>{U.charAt(0)!==":"&&(V[U]=z)});let B=W.request(V);return B.once("response",(z)=>{let U=B;z=Object.assign({},z);let F=z[K];delete z[K],U.headers=z,U.statusCode=+F,Y(U)}),B}},P6=H8&&function(Y){return F8(async function(Q,X,W){let Z=(T)=>N.hasOwnProp(Y,T)?Y[T]:void 0,J=Z("data"),M=Z("lookup"),K=Z("family"),V=Z("httpVersion");if(V===void 0)V=1;let B=Z("http2Options"),z=Z("responseType"),U=Z("responseEncoding"),F=Y.method.toUpperCase(),H,O=!1,_,R;if(V=+V,Number.isNaN(V))throw TypeError(`Invalid protocol version: '${Y.httpVersion}' is not a number`);if(V!==1&&V!==2)throw TypeError(`Unsupported protocol version '${V}'`);let S=V===2;if(M){let T=d5(M,(P)=>N.isArray(P)?P:[P]);M=(P,A,m)=>{T(P,A,(k,l,o)=>{if(k)return m(k);let x=N.isArray(l)?l.map((j0)=>N6(j0)):[N6(l,o)];A.all?m(k,x):m(k,x[0].address,x[0].family)})}}let w=new M8;function b(T){try{w.emit("abort",!T||T.type?new e(null,Y,_):T)}catch(P){console.warn("emit error",P)}}function Y0(){if(R)clearTimeout(R),R=null}function F0(){let T=Y.timeout?"timeout of "+Y.timeout+"ms exceeded":"timeout exceeded",P=Y.transitional||P0;if(Y.timeoutErrorMessage)T=Y.timeoutErrorMessage;return new L(T,P.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,Y,_)}w.once("abort",X);let C0=()=>{if(Y0(),Y.cancelToken)Y.cancelToken.unsubscribe(b);if(Y.signal)Y.signal.removeEventListener("abort",b);w.removeAllListeners()};if(Y.cancelToken||Y.signal){if(Y.cancelToken&&Y.cancelToken.subscribe(b),Y.signal)Y.signal.aborted?b():Y.signal.addEventListener("abort",b)}W((T,P)=>{if(H=!0,Y0(),P){O=!0,C0();return}let{data:A}=T;if(A instanceof J0.Readable||A instanceof J0.Duplex){let m=J0.finished(A,()=>{m(),C0()})}else C0()});let d0=S0(Y.baseURL,Y.url,Y.allowAbsoluteUrls),f=new URL(d0,q.hasBrowserEnv?q.origin:void 0),s=f.protocol||W6[0];if(s==="data:"){if(Y.maxContentLength>-1){let P=String(Y.url||d0||"");if(V4(P)>Y.maxContentLength)return X(new L("maxContentLength size of "+Y.maxContentLength+" exceeded",L.ERR_BAD_RESPONSE,Y))}let T;if(F!=="GET")return V0(Q,X,{status:405,statusText:"method not allowed",headers:{},config:Y});try{T=z1(Y.url,z==="blob",{Blob:Y.env&&Y.env.Blob})}catch(P){throw L.from(P,L.ERR_BAD_REQUEST,Y)}if(z==="text"){if(T=T.toString(U),!U||U==="utf8")T=N.stripBOM(T)}else if(z==="stream")T=J0.Readable.from(T);return V0(Q,X,{data:T,status:200,statusText:"OK",headers:new v,config:Y})}if(W6.indexOf(s)===-1)return X(new L("Unsupported protocol "+s,L.ERR_BAD_REQUEST,Y));let g=v.from(Y.headers).normalize();g.set("User-Agent","axios/"+B0,!1);let{onUploadProgress:A0,onDownloadProgress:i}=Y,U0=Y.maxRate,M0=void 0,k0=void 0;if(N.isSpecCompliantForm(J)){let T=g.getContentType(/boundary=([-_\w\d]{10,70})/i);J=h5(J,(P)=>{g.set(P)},{tag:`axios-${B0}-boundary`,boundary:T&&T[1]||void 0})}else if(N.isFormData(J)&&N.isFunction(J.getHeaders)&&J.getHeaders!==Object.prototype.getHeaders){if(L8(g,J.getHeaders(),Z("formDataHeaderPolicy")),!g.hasContentLength())try{let T=await V6.promisify(J.getLength).call(J);Number.isFinite(T)&&T>=0&&g.setContentLength(T)}catch(T){}}else if(N.isBlob(J)||N.isFile(J))J.size&&g.setContentType(J.type||"application/octet-stream"),g.setContentLength(J.size||0),J=J0.Readable.from(A4(J));else if(J&&!N.isStream(J)){if(Buffer.isBuffer(J));else if(N.isArrayBuffer(J))J=Buffer.from(new Uint8Array(J));else if(N.isString(J))J=Buffer.from(J,"utf-8");else return X(new L("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",L.ERR_BAD_REQUEST,Y));if(g.setContentLength(J.length,!1),Y.maxBodyLength>-1&&J.length>Y.maxBodyLength)return X(new L("Request body larger than maxBodyLength limit",L.ERR_BAD_REQUEST,Y))}let _4=N.toFiniteNumber(g.getContentLength());if(N.isArray(U0))M0=U0[0],k0=U0[1];else M0=k0=U0;if(J&&(A0||M0)){if(!N.isStream(J))J=J0.Readable.from(J,{objectMode:!1});J=J0.pipeline([J,new U1({maxRate:N.toFiniteNumber(M0)})],N.noop),A0&&J.on("progress",J6(J,g0(_4,z0(u0(A0),!1,3))))}let n=void 0,p=Z("auth");if(p){let T=p.username||"",P=p.password||"";n=T+":"+P}if(!n&&f.username){let T=Z6(f.username),P=Z6(f.password);n=T+":"+P}n&&g.delete("authorization");let K0;try{K0=R0(f.pathname+f.search,Y.params,Y.paramsSerializer).replace(/^\?/,"")}catch(T){let P=Error(T.message);return P.config=Y,P.url=Y.url,P.exists=!0,X(P)}g.set("Accept-Encoding","gzip, compress, deflate"+(G6?", br":""),!1);let u=Object.assign(Object.create(null),{path:K0,method:F,headers:b0(g),agents:{http:Y.httpAgent,https:Y.httpsAgent},auth:n,protocol:s,family:K,beforeRedirect:O8,beforeRedirects:Object.create(null),http2Options:B});if(!N.isUndefined(M)&&(u.lookup=M),Y.socketPath){if(typeof Y.socketPath!=="string")return X(new L("socketPath must be a string",L.ERR_BAD_OPTION_VALUE,Y));if(Y.allowedSocketPaths!=null){let T=Array.isArray(Y.allowedSocketPaths)?Y.allowedSocketPaths:[Y.allowedSocketPaths],P=$6(Y.socketPath);if(!T.some((m)=>typeof m==="string"&&$6(m)===P))return X(new L(`socketPath "${Y.socketPath}" is not permitted by allowedSocketPaths`,L.ERR_BAD_OPTION_VALUE,Y))}u.socketPath=Y.socketPath}else u.hostname=f.hostname.startsWith("[")?f.hostname.slice(1,-1):f.hostname,u.port=f.port,_6(u,Y.proxy,s+"//"+f.hostname+(f.port?":"+f.port:"")+u.path,!1,Y.httpsAgent);let y,Q0=!1,a=z6.test(u.protocol);if(u.agent==null)u.agent=a?Y.httpsAgent:Y.httpAgent;if(S)y=T8;else{let T=Z("transport");if(T)y=T;else if(Y.maxRedirects===0)y=a?N8:J8,Q0=!0;else{if(Y.maxRedirects)u.maxRedirects=Y.maxRedirects;let P=Z("beforeRedirect");if(P)u.beforeRedirects.config=P;y=a?B8:V8}}if(Y.maxBodyLength>-1)u.maxBodyLength=Y.maxBodyLength;else u.maxBodyLength=1/0;u.insecureHTTPParser=Boolean(Z("insecureHTTPParser")),_=y.request(u,function(P){if(Y0(),_.destroyed)return;let A=[P],m=N.toFiniteNumber(P.headers["content-length"]);if(i||k0){let x=new U1({maxRate:N.toFiniteNumber(k0)});i&&x.on("progress",J6(x,g0(m,z0(u0(i),!0,3)))),A.push(x)}let k=P,l=P.req||_;if(Y.decompress!==!1&&P.headers["content-encoding"]){if(F==="HEAD"||P.statusCode===204)delete P.headers["content-encoding"];switch((P.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":A.push(O0.createUnzip(Y6)),delete P.headers["content-encoding"];break;case"deflate":A.push(new c5),A.push(O0.createUnzip(Y6)),delete P.headers["content-encoding"];break;case"br":if(G6)A.push(O0.createBrotliDecompress(K8)),delete P.headers["content-encoding"]}}k=A.length>1?J0.pipeline(A,N.noop):A[0];let o={status:P.statusCode,statusText:P.statusMessage,headers:new v(P.headers),config:Y,request:l};if(z==="stream"){if(Y.maxContentLength>-1){let x=Y.maxContentLength,j0=k;async function*p0(){let c=0;for await(let u1 of j0){if(c+=u1.length,c>x)throw new L("maxContentLength size of "+x+" exceeded",L.ERR_BAD_RESPONSE,Y,l);yield u1}}k=J0.Readable.from(p0(),{objectMode:!1})}o.data=k,V0(Q,X,o)}else{let x=[],j0=0;k.on("data",function(c){if(x.push(c),j0+=c.length,Y.maxContentLength>-1&&j0>Y.maxContentLength)O=!0,k.destroy(),b(new L("maxContentLength size of "+Y.maxContentLength+" exceeded",L.ERR_BAD_RESPONSE,Y,l))}),k.on("aborted",function(){if(O)return;let c=new L("stream has been aborted",L.ERR_BAD_RESPONSE,Y,l,o);k.destroy(c),X(c)}),k.on("error",function(c){if(O)return;X(L.from(c,null,Y,l,o))}),k.on("end",function(){try{let c=x.length===1?x[0]:Buffer.concat(x);if(z!=="arraybuffer"){if(c=c.toString(U),!U||U==="utf8")c=N.stripBOM(c)}o.data=c}catch(c){return X(L.from(c,null,Y,o.request,o))}V0(Q,X,o)})}w.once("abort",(x)=>{if(!k.destroyed)k.emit("error",x),k.destroy()})}),w.once("abort",(T)=>{if(_.close)_.close();else _.destroy(T)}),_.on("error",function(P){X(L.from(P,null,Y,_))});let T0=new Set;if(_.on("socket",function(P){if(P.setKeepAlive(!0,60000),!P[Q6])P.on("error",function(m){let k=P[j4];if(k&&!k.destroyed)k.destroy(m)}),P[Q6]=!0;P[j4]=_,T0.add(P)}),_.once("close",function(){Y0();for(let P of T0)if(P[j4]===_)P[j4]=null;T0.clear()}),Y.timeout){let T=parseInt(Y.timeout,10);if(Number.isNaN(T)){b(new L("error trying to parse `config.timeout` to int",L.ERR_BAD_OPTION_VALUE,Y,_));return}let P=function(){if(H)return;b(F0())};if(Q0&&T>0)R=setTimeout(P,T);_.setTimeout(T,P)}else _.setTimeout(0);if(N.isStream(J)){let T=!1,P=!1;J.on("end",()=>{T=!0}),J.once("error",(m)=>{P=!0,_.destroy(m)}),J.on("close",()=>{if(!T&&!P)b(new e("Request stream has been aborted",Y,_))});let A=J;if(Y.maxBodyLength>-1&&Y.maxRedirects===0){let m=Y.maxBodyLength,k=0;A=J0.pipeline([J,new J0.Transform({transform(l,o,x){if(k+=l.length,k>m)return x(new L("Request body larger than maxBodyLength limit",L.ERR_BAD_REQUEST,Y,_));x(null,l)}})],N.noop),A.on("error",(l)=>{if(!_.destroyed)_.destroy(l)})}A.pipe(_)}else J&&_.write(J),_.end()})}});var H6;var F6=I(()=>{Z0();H6=q.hasStandardBrowserEnv?(($,Y)=>(G)=>{return G=new URL(G,q.origin),$.protocol===G.protocol&&$.host===G.host&&(Y||$.port===G.port)})(new URL(q.origin),q.navigator&&/(msie|trident)/i.test(q.navigator.userAgent)):()=>!0});var C6;var T6=I(()=>{j();Z0();C6=q.hasStandardBrowserEnv?{write($,Y,G,Q,X,W,Z){if(typeof document>"u")return;let J=[`${$}=${encodeURIComponent(Y)}`];if(N.isNumber(G))J.push(`expires=${new Date(G).toUTCString()}`);if(N.isString(Q))J.push(`path=${Q}`);if(N.isString(X))J.push(`domain=${X}`);if(W===!0)J.push("secure");if(N.isString(Z))J.push(`SameSite=${Z}`);document.cookie=J.join("; ")},read($){if(typeof document>"u")return null;let Y=document.cookie.split(";");for(let G=0;G<Y.length;G++){let Q=Y[G].replace(/^\s+/,""),X=Q.indexOf("=");if(X!==-1&&Q.slice(0,X)===$)return decodeURIComponent(Q.slice(X+1))}return null},remove($){this.write($,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}}});function N0($,Y){Y=Y||{};let G=Object.create(null);Object.defineProperty(G,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function Q(K,V,B,z){if(N.isPlainObject(K)&&N.isPlainObject(V))return N.merge.call({caseless:z},K,V);else if(N.isPlainObject(V))return N.merge({},V);else if(N.isArray(V))return V.slice();return V}function X(K,V,B,z){if(!N.isUndefined(V))return Q(K,V,B,z);else if(!N.isUndefined(K))return Q(void 0,K,B,z)}function W(K,V){if(!N.isUndefined(V))return Q(void 0,V)}function Z(K,V){if(!N.isUndefined(V))return Q(void 0,V);else if(!N.isUndefined(K))return Q(void 0,K)}function J(K,V,B){if(N.hasOwnProp(Y,B))return Q(K,V);else if(N.hasOwnProp($,B))return Q(void 0,K)}let M={url:W,method:W,data:W,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,withXSRFToken:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,allowedSocketPaths:Z,responseEncoding:Z,validateStatus:J,headers:(K,V,B)=>X(I6(K),I6(V),B,!0)};return N.forEach(Object.keys({...$,...Y}),function(V){if(V==="__proto__"||V==="constructor"||V==="prototype")return;let B=N.hasOwnProp(M,V)?M[V]:X,z=N.hasOwnProp($,V)?$[V]:void 0,U=N.hasOwnProp(Y,V)?Y[V]:void 0,F=B(z,U,V);N.isUndefined(F)&&B!==J||(G[V]=F)}),G}var I6=($)=>$ instanceof v?{...$}:$;var x4=I(()=>{j();W0()});function R8($,Y,G){if(G!=="content-only"){$.set(Y);return}Object.entries(Y).forEach(([Q,X])=>{if(I8.includes(Q.toLowerCase()))$.set(Q,X)})}var I8,D8=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Y,G)=>String.fromCharCode(parseInt(G,16))),v4=($)=>{let Y=N0({},$),G=(z)=>N.hasOwnProp(Y,z)?Y[z]:void 0,Q=G("data"),X=G("withXSRFToken"),W=G("xsrfHeaderName"),Z=G("xsrfCookieName"),J=G("headers"),M=G("auth"),K=G("baseURL"),V=G("allowAbsoluteUrls"),B=G("url");if(Y.headers=J=v.from(J),Y.url=R0(S0(K,B,V),$.params,$.paramsSerializer),M)J.set("Authorization","Basic "+btoa((M.username||"")+":"+(M.password?D8(M.password):"")));if(N.isFormData(Q)){if(q.hasStandardBrowserEnv||q.hasStandardBrowserWebWorkerEnv)J.setContentType(void 0);else if(N.isFunction(Q.getHeaders))R8(J,Q.getHeaders(),G("formDataHeaderPolicy"))}if(q.hasStandardBrowserEnv){if(N.isFunction(X))X=X(Y);if(X===!0||X==null&&H6(Y.url)){let U=W&&Z&&C6.read(Z);if(U)J.set(W,U)}}return Y};var F1=I(()=>{Z0();j();F6();T6();E4();x4();W0();R4();I8=["content-type","content-length"]});var S8,R6;var D6=I(()=>{j();w4();$4();r();D0();B1();Z0();W0();k4();F1();s0();S8=typeof XMLHttpRequest<"u",R6=S8&&function($){return new Promise(function(G,Q){let X=v4($),W=X.data,Z=v.from(X.headers).normalize(),{responseType:J,onUploadProgress:M,onDownloadProgress:K}=X,V,B,z,U,F;function H(){U&&U(),F&&F(),X.cancelToken&&X.cancelToken.unsubscribe(V),X.signal&&X.signal.removeEventListener("abort",V)}let O=new XMLHttpRequest;O.open(X.method.toUpperCase(),X.url,!0),O.timeout=X.timeout;function _(){if(!O)return;let S=v.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),b={data:!J||J==="text"||J==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:S,config:$,request:O};V0(function(F0){G(F0),H()},function(F0){Q(F0),H()},b),O=null}if("onloadend"in O)O.onloadend=_;else O.onreadystatechange=function(){if(!O||O.readyState!==4)return;if(O.status===0&&!(O.responseURL&&O.responseURL.startsWith("file:")))return;setTimeout(_)};if(O.onabort=function(){if(!O)return;Q(new L("Request aborted",L.ECONNABORTED,$,O)),H(),O=null},O.onerror=function(w){let b=w&&w.message?w.message:"Network Error",Y0=new L(b,L.ERR_NETWORK,$,O);Y0.event=w||null,Q(Y0),H(),O=null},O.ontimeout=function(){let w=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",b=X.transitional||P0;if(X.timeoutErrorMessage)w=X.timeoutErrorMessage;Q(new L(w,b.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,$,O)),H(),O=null},W===void 0&&Z.setContentType(null),"setRequestHeader"in O)N.forEach(b0(Z),function(w,b){O.setRequestHeader(b,w)});if(!N.isUndefined(X.withCredentials))O.withCredentials=!!X.withCredentials;if(J&&J!=="json")O.responseType=X.responseType;if(K)[z,F]=z0(K,!0),O.addEventListener("progress",z);if(M&&O.upload)[B,U]=z0(M),O.upload.addEventListener("progress",B),O.upload.addEventListener("loadend",U);if(X.cancelToken||X.signal){if(V=(S)=>{if(!O)return;Q(!S||S.type?new e(null,$,O):S),O.abort(),H(),O=null},X.cancelToken&&X.cancelToken.subscribe(V),X.signal)X.signal.aborted?V():X.signal.addEventListener("abort",V)}let R=M4(X.url);if(R&&!q.protocols.includes(R)){Q(new L("Unsupported protocol "+R+":",L.ERR_BAD_REQUEST,$));return}O.send(W||null)})}});var w8=($,Y)=>{if($=$?$.filter(Boolean):[],!Y&&!$.length)return;let G=new AbortController,Q=!1,X=function(M){if(!Q){Q=!0,Z();let K=M instanceof Error?M:this.reason;G.abort(K instanceof L?K:new e(K instanceof Error?K.message:K))}},W=Y&&setTimeout(()=>{W=null,X(new L(`timeout of ${Y}ms exceeded`,L.ETIMEDOUT))},Y),Z=()=>{if(!$)return;W&&clearTimeout(W),W=null,$.forEach((M)=>{M.unsubscribe?M.unsubscribe(X):M.removeEventListener("abort",X)}),$=null};$.forEach((M)=>M.addEventListener("abort",X));let{signal:J}=G;return J.unsubscribe=()=>N.asap(Z),J},S6;var w6=I(()=>{D0();r();j();S6=w8});var E8=function*($,Y){let G=$.byteLength;if(!Y||G<Y){yield $;return}let Q=0,X;while(Q<G)X=Q+Y,yield $.slice(Q,X),Q=X},q8=async function*($,Y){for await(let G of A8($))yield*E8(G,Y)},A8=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let Y=$.getReader();try{for(;;){let{done:G,value:Q}=await Y.read();if(G)break;yield Q}}finally{await Y.cancel()}},C1=($,Y,G,Q)=>{let X=q8($,Y),W=0,Z,J=(M)=>{if(!Z)Z=!0,Q&&Q(M)};return new ReadableStream({async pull(M){try{let{done:K,value:V}=await X.next();if(K){J(),M.close();return}let B=V.byteLength;if(G){let z=W+=B;G(z)}M.enqueue(new Uint8Array(V))}catch(K){throw J(K),K}},cancel(M){return J(M),X.return()}},{highWaterMark:2})};var E6=()=>{};var q6=65536,b4,A6=($,...Y)=>{try{return!!$(...Y)}catch(G){return!1}},k8=($)=>{let Y=N.global!==void 0&&N.global!==null?N.global:globalThis,{ReadableStream:G,TextEncoder:Q}=Y;$=N.merge.call({skipUndefined:!0},{Request:Y.Request,Response:Y.Response},$);let{fetch:X,Request:W,Response:Z}=$,J=X?b4(X):typeof fetch==="function",M=b4(W),K=b4(Z);if(!J)return!1;let V=J&&b4(G),B=J&&(typeof Q==="function"?((_)=>(R)=>_.encode(R))(new Q):async(_)=>new Uint8Array(await new W(_).arrayBuffer())),z=M&&V&&A6(()=>{let _=!1,R=new W(q.origin,{body:new G,method:"POST",get duplex(){return _=!0,"half"}}),S=R.headers.has("Content-Type");if(R.body!=null)R.body.cancel();return _&&!S}),U=K&&V&&A6(()=>N.isReadableStream(new Z("").body)),F={stream:U&&((_)=>_.body)};J&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((_)=>{!F[_]&&(F[_]=(R,S)=>{let w=R&&R[_];if(w)return w.call(R);throw new L(`Response type '${_}' is not supported`,L.ERR_NOT_SUPPORT,S)})})})();let H=async(_)=>{if(_==null)return 0;if(N.isBlob(_))return _.size;if(N.isSpecCompliantForm(_))return(await new W(q.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(N.isArrayBufferView(_)||N.isArrayBuffer(_))return _.byteLength;if(N.isURLSearchParams(_))_=_+"";if(N.isString(_))return(await B(_)).byteLength},O=async(_,R)=>{let S=N.toFiniteNumber(_.getContentLength());return S==null?H(R):S};return async(_)=>{let{url:R,method:S,data:w,signal:b,cancelToken:Y0,timeout:F0,onDownloadProgress:C0,onUploadProgress:d0,responseType:f,headers:s,withCredentials:g="same-origin",fetchOptions:A0,maxContentLength:i,maxBodyLength:U0}=v4(_),M0=N.isNumber(i)&&i>-1,k0=N.isNumber(U0)&&U0>-1,_4=X||fetch;f=f?(f+"").toLowerCase():"text";let n=S6([b,Y0&&Y0.toAbortSignal()],F0),p=null,K0=n&&n.unsubscribe&&(()=>{n.unsubscribe()}),u;try{if(M0&&typeof R==="string"&&R.startsWith("data:")){if(V4(R)>i)throw new L("maxContentLength size of "+i+" exceeded",L.ERR_BAD_RESPONSE,_,p)}if(k0&&S!=="get"&&S!=="head"){let P=await O(s,w);if(typeof P==="number"&&isFinite(P)&&P>U0)throw new L("Request body larger than maxBodyLength limit",L.ERR_BAD_REQUEST,_,p)}if(d0&&z&&S!=="get"&&S!=="head"&&(u=await O(s,w))!==0){let P=new W(R,{method:"POST",body:w,duplex:"half"}),A;if(N.isFormData(w)&&(A=P.headers.get("content-type")))s.setContentType(A);if(P.body){let[m,k]=g0(u,z0(u0(d0)));w=C1(P.body,q6,m,k)}}if(!N.isString(g))g=g?"include":"omit";let y=M&&"credentials"in W.prototype;if(N.isFormData(w)){let P=s.getContentType();if(P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P))s.delete("content-type")}s.set("User-Agent","axios/"+B0,!1);let Q0={...A0,signal:n,method:S.toUpperCase(),headers:b0(s.normalize()),body:w,duplex:"half",credentials:y?g:void 0};p=M&&new W(R,Q0);let a=await(M?_4(p,A0):_4(R,Q0));if(M0){let P=N.toFiniteNumber(a.headers.get("content-length"));if(P!=null&&P>i)throw new L("maxContentLength size of "+i+" exceeded",L.ERR_BAD_RESPONSE,_,p)}let T0=U&&(f==="stream"||f==="response");if(U&&a.body&&(C0||M0||T0&&K0)){let P={};["status","statusText","headers"].forEach((x)=>{P[x]=a[x]});let A=N.toFiniteNumber(a.headers.get("content-length")),[m,k]=C0&&g0(A,z0(u0(C0),!0))||[],l=0,o=(x)=>{if(M0){if(l=x,l>i)throw new L("maxContentLength size of "+i+" exceeded",L.ERR_BAD_RESPONSE,_,p)}m&&m(x)};a=new Z(C1(a.body,q6,o,()=>{k&&k(),K0&&K0()}),P)}f=f||"text";let T=await F[N.findKey(F,f)||"text"](a,_);if(M0&&!U&&!T0){let P;if(T!=null){if(typeof T.byteLength==="number")P=T.byteLength;else if(typeof T.size==="number")P=T.size;else if(typeof T==="string")P=typeof Q==="function"?new Q().encode(T).byteLength:T.length}if(typeof P==="number"&&P>i)throw new L("maxContentLength size of "+i+" exceeded",L.ERR_BAD_RESPONSE,_,p)}return!T0&&K0&&K0(),await new Promise((P,A)=>{V0(P,A,{data:T,headers:v.from(a.headers),status:a.status,statusText:a.statusText,config:_,request:p})})}catch(y){if(K0&&K0(),n&&n.aborted&&n.reason instanceof L){let Q0=n.reason;throw Q0.config=_,p&&(Q0.request=p),y!==Q0&&(Q0.cause=y),Q0}if(y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message))throw Object.assign(new L("Network Error",L.ERR_NETWORK,_,p,y&&y.response),{cause:y.cause||y});throw L.from(y,y&&y.code,_,p,y&&y.response)}}},j8,T1=($)=>{let Y=$&&$.env||{},{fetch:G,Request:Q,Response:X}=Y,W=[Q,X,G],Z=W.length,J=Z,M,K,V=j8;while(J--)M=W[J],K=V.get(M),K===void 0&&V.set(M,K=J?new Map:k8(Y)),V=K;return K},$Q;var k6=I(()=>{Z0();j();r();w6();E6();W0();k4();F1();w4();O1();N4();s0();({isFunction:b4}=N),j8=new Map,$Q=T1()});function b8($,Y){$=N.isArray($)?$:[$];let{length:G}=$,Q,X,W={};for(let Z=0;Z<G;Z++){Q=$[Z];let J;if(X=Q,!v8(Q)){if(X=I1[(J=String(Q)).toLowerCase()],X===void 0)throw new L(`Unknown adapter '${J}'`)}if(X&&(N.isFunction(X)||(X=X.get(Y))))break;W[J||"#"+Z]=X}if(!X){let Z=Object.entries(W).map(([M,K])=>`adapter ${M} `+(K===!1?"is not supported by the environment":"is not available in the build")),J=G?Z.length>1?`since :
|
|
12
|
+
`+Z.map(j6).join(`
|
|
13
|
+
`):" "+j6(Z[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+J,"ERR_NOT_SUPPORT")}return X}var I1,j6=($)=>`- ${$}`,v8=($)=>N.isFunction($)||$===null||$===!1,f4;var R1=I(()=>{j();O6();D6();k6();r();I1={http:P6,xhr:R6,fetch:{get:T1}};N.forEach(I1,($,Y)=>{if($){try{Object.defineProperty($,"name",{__proto__:null,value:Y})}catch(G){}Object.defineProperty($,"adapterName",{__proto__:null,value:Y})}});f4={getAdapter:b8,adapters:I1}});function D1($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new e(null,$)}function y4($){if(D1($),$.headers=v.from($.headers),$.data=Y4.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return f4.getAdapter($.adapter||y0.adapter,$)($).then(function(Q){D1($),$.response=Q;try{Q.data=Y4.call($,$.transformResponse,Q)}finally{delete $.response}return Q.headers=v.from(Q.headers),Q},function(Q){if(!G4(Q)){if(D1($),Q&&Q.response){$.response=Q.response;try{Q.response.data=Y4.call($,$.transformResponse,Q.response)}finally{delete $.response}Q.response.headers=v.from(Q.response.headers)}}return Promise.reject(Q)})}var x6=I(()=>{O5();Q1();S4();D0();W0();R1()});function f8($,Y,G){if(typeof $!=="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);let Q=Object.keys($),X=Q.length;while(X-- >0){let W=Q[X],Z=Object.prototype.hasOwnProperty.call(Y,W)?Y[W]:void 0;if(Z){let J=$[W],M=J===void 0||Z(J,W,$);if(M!==!0)throw new L("option "+W+" must be "+M,L.ERR_BAD_OPTION_VALUE);continue}if(G!==!0)throw new L("Unknown option "+W,L.ERR_BAD_OPTION)}}var m4,v6,B4;var b6=I(()=>{N4();r();m4={};["object","boolean","number","function","string","symbol"].forEach(($,Y)=>{m4[$]=function(Q){return typeof Q===$||"a"+(Y<1?"n ":" ")+$}});v6={};m4.transitional=function(Y,G,Q){function X(W,Z){return"[Axios v"+B0+"] Transitional option '"+W+"'"+Z+(Q?". "+Q:"")}return(W,Z,J)=>{if(Y===!1)throw new L(X(Z," has been removed"+(G?" in "+G:"")),L.ERR_DEPRECATED);if(G&&!v6[Z])v6[Z]=!0,console.warn(X(Z," has been deprecated since v"+G+" and will be removed in the near future"));return Y?Y(W,Z,J):!0}};m4.spelling=function(Y){return(G,Q)=>{return console.warn(`${Q} is likely a misspelling of ${Y}`),!0}};B4={assertOptions:f8,validators:m4}});class z4{constructor($){this.defaults=$||{},this.interceptors={request:new t4,response:new t4}}async request($,Y){try{return await this._request($,Y)}catch(G){if(G instanceof Error){let Q={};Error.captureStackTrace?Error.captureStackTrace(Q):Q=Error();let X=(()=>{if(!Q.stack)return"";let W=Q.stack.indexOf(`
|
|
14
|
+
`);return W===-1?"":Q.stack.slice(W+1)})();try{if(!G.stack)G.stack=X;else if(X){let W=X.indexOf(`
|
|
15
|
+
`),Z=W===-1?-1:X.indexOf(`
|
|
16
|
+
`,W+1),J=Z===-1?"":X.slice(Z+1);if(!String(G.stack).endsWith(J))G.stack+=`
|
|
17
|
+
`+X}}catch(W){}}throw G}}_request($,Y){if(typeof $==="string")Y=Y||{},Y.url=$;else Y=$||{};Y=N0(this.defaults,Y);let{transitional:G,paramsSerializer:Q,headers:X}=Y;if(G!==void 0)B4.assertOptions(G,{silentJSONParsing:G0.transitional(G0.boolean),forcedJSONParsing:G0.transitional(G0.boolean),clarifyTimeoutError:G0.transitional(G0.boolean),legacyInterceptorReqResOrdering:G0.transitional(G0.boolean)},!1);if(Q!=null)if(N.isFunction(Q))Y.paramsSerializer={serialize:Q};else B4.assertOptions(Q,{encode:G0.function,serialize:G0.function},!0);if(Y.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Y.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Y.allowAbsoluteUrls=!0;B4.assertOptions(Y,{baseUrl:G0.spelling("baseURL"),withXsrfToken:G0.spelling("withXSRFToken")},!0),Y.method=(Y.method||this.defaults.method||"get").toLowerCase();let W=X&&N.merge(X.common,X[Y.method]);X&&N.forEach(["delete","get","head","post","put","patch","query","common"],(U)=>{delete X[U]}),Y.headers=v.concat(W,X);let Z=[],J=!0;this.interceptors.request.forEach(function(F){if(typeof F.runWhen==="function"&&F.runWhen(Y)===!1)return;J=J&&F.synchronous;let H=Y.transitional||P0;if(H&&H.legacyInterceptorReqResOrdering)Z.unshift(F.fulfilled,F.rejected);else Z.push(F.fulfilled,F.rejected)});let M=[];this.interceptors.response.forEach(function(F){M.push(F.fulfilled,F.rejected)});let K,V=0,B;if(!J){let U=[y4.bind(this),void 0];U.unshift(...Z),U.push(...M),B=U.length,K=Promise.resolve(Y);while(V<B)K=K.then(U[V++],U[V++]);return K}B=Z.length;let z=Y;while(V<B){let U=Z[V++],F=Z[V++];try{z=U(z)}catch(H){F.call(this,H);break}}try{K=y4.call(this,z)}catch(U){return Promise.reject(U)}V=0,B=M.length;while(V<B)K=K.then(M[V++],M[V++]);return K}getUri($){$=N0(this.defaults,$);let Y=S0($.baseURL,$.url,$.allowAbsoluteUrls);return R0(Y,$.params,$.paramsSerializer)}}var G0,L4;var f6=I(()=>{j();R4();M5();x6();x4();E4();b6();W0();$4();G0=B4.validators;N.forEach(["delete","get","head","options"],function(Y){z4.prototype[Y]=function(G,Q){return this.request(N0(Q||{},{method:Y,url:G,data:(Q||{}).data}))}});N.forEach(["post","put","patch","query"],function(Y){function G(Q){return function(W,Z,J){return this.request(N0(J||{},{method:Y,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:W,data:Z}))}}if(z4.prototype[Y]=G(),Y!=="query")z4.prototype[Y+"Form"]=G(!0)});L4=z4});class S1{constructor($){if(typeof $!=="function")throw TypeError("executor must be a function.");let Y;this.promise=new Promise(function(X){Y=X});let G=this;this.promise.then((Q)=>{if(!G._listeners)return;let X=G._listeners.length;while(X-- >0)G._listeners[X](Q);G._listeners=null}),this.promise.then=(Q)=>{let X,W=new Promise((Z)=>{G.subscribe(Z),X=Z}).then(Q);return W.cancel=function(){G.unsubscribe(X)},W},$(function(X,W,Z){if(G.reason)return;G.reason=new e(X,W,Z),Y(G.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;let Y=this._listeners.indexOf($);if(Y!==-1)this._listeners.splice(Y,1)}toAbortSignal(){let $=new AbortController,Y=(G)=>{$.abort(G)};return this.subscribe(Y),$.signal.unsubscribe=()=>this.unsubscribe(Y),$.signal}static source(){let $;return{token:new S1(function(Q){$=Q}),cancel:$}}}var y6;var m6=I(()=>{D0();y6=S1});function w1($){return function(G){return $.apply(null,G)}}var h6=()=>{};function E1($){return N.isObject($)&&$.isAxiosError===!0}var g6=I(()=>{j()});var q1,u6;var c6=I(()=>{q1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(q1).forEach(([$,Y])=>{q1[Y]=$});u6=q1});function l6($){let Y=new L4($),G=i0(L4.prototype.request,Y);return N.extend(G,L4.prototype,Y,{allOwnKeys:!0}),N.extend(G,Y,null,{allOwnKeys:!0}),G.create=function(X){return l6(N0($,X))},G}var h,L0;var d6=I(()=>{j();g4();f6();x4();S4();Y1();D0();m6();Q1();N4();e0();r();h6();g6();W0();R1();c6();h=l6(y0);h.Axios=L4;h.CanceledError=e;h.CancelToken=y6;h.isCancel=G4;h.VERSION=B0;h.toFormData=_0;h.AxiosError=L;h.Cancel=h.CanceledError;h.all=function(Y){return Promise.all(Y)};h.spread=w1;h.isAxiosError=E1;h.mergeConfig=N0;h.AxiosHeaders=v;h.formToJSON=($)=>D4(N.isHTMLForm($)?new FormData($):$);h.getAdapter=f4.getAdapter;h.HttpStatusCode=u6;h.default=h;L0=h});var oQ,h4,rQ,eQ,$X,YX,GX,QX,XX,WX,ZX,JX,NX,MX,KX,VX,BX;var A1=I(()=>{d6();({Axios:oQ,AxiosError:h4,CanceledError:rQ,isCancel:eQ,CancelToken:$X,VERSION:YX,all:GX,Cancel:QX,isAxiosError:XX,spread:WX,toFormData:ZX,AxiosHeaders:JX,HttpStatusCode:NX,formToJSON:MX,getAdapter:KX,mergeConfig:VX,create:BX}=L0)});import{EventEmitter as b7}from"events";function t6(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return a6()?.version||"3.x.x"}catch{return"3.x.x"}}function l0($){if(!$||typeof $!=="object")return!1;let Y=$,G="_def"in Y&&(typeof Y.safeParse==="function"||typeof Y.parse==="function"),Q="_zod"in Y&&typeof Y._zod==="object";return G||Q}function g8($){if(!$||typeof $!=="object")return!1;return"_zod"in $&&typeof $._zod==="object"}function u8($){if(!g8($))return null;try{let Y=$.constructor?.prototype?.constructor;if(Y&&typeof Y.toJSONSchema==="function")return Y.toJSONSchema($)}catch{}return null}function $0($){if(!l0($))return $;let Y=u8($);if(Y)return Y;try{return n6($)}catch{return $}}function x1($){if(!$||typeof $!=="object"||Array.isArray($))return!1;let Y=Object.values($);if(Y.length===0)return!1;return Y.some((G)=>G&&typeof G==="object"&&G._def&&typeof G.safeParse==="function")}function c8($){if(!$)return;for(let Y of $){if(typeof Y==="string"){if(Y==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");continue}if(Y.type==="json"){let G=Y;if(!G.prompt&&!G.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let Q=G.schema;if(l0(Q))G.schema=$0(Q);else if(x1(Q))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(Y.type==="changeTracking"){let G=Y,Q=G.schema;if(l0(Q))G.schema=$0(Q);else if(x1(Q))throw Error("changeTracking format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(Y.type==="question"){let G=Y;if(typeof G.question!=="string"||G.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(Y.type==="highlights"){let G=Y;if(typeof G.query!=="string"||G.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(Y.type==="query"){let G=Y;if(typeof G.prompt!=="string"||G.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if(G.mode!=null&&G.mode!=="freeform"&&G.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'");continue}if(Y.type==="screenshot"){let G=Y;if(G.quality!=null&&(typeof G.quality!=="number"||G.quality<0))throw Error("screenshot.quality must be a non-negative number")}}}function U4($){if(!$)return;if($.timeout!=null&&$.timeout<=0)throw Error("timeout must be positive");if($.waitFor!=null&&$.waitFor<0)throw Error("waitFor must be non-negative");c8($.formats)}function l8($){if(!$)return;for(let Y of $){if(typeof Y==="string"){if(Y==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");if(Y==="screenshot")throw Error("parse does not support screenshot format");if(Y==="changeTracking")throw Error("parse does not support changeTracking format");if(Y==="branding")throw Error("parse does not support branding format");if(Y==="audio"||Y==="video")throw Error(`parse does not support ${Y} format`);continue}let G=Y.type;if(G==="changeTracking")throw Error("parse does not support changeTracking format");if(G==="screenshot")throw Error("parse does not support screenshot format");if(G==="branding")throw Error("parse does not support branding format");if(G==="audio"||G==="video")throw Error(`parse does not support ${G} format`);if(Y.type==="json"){let Q=Y;if(!Q.prompt&&!Q.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let X=Q.schema;if(l0(X))Q.schema=$0(X);else if(x1(X))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(Y.type==="question"){let Q=Y;if(typeof Q.question!=="string"||Q.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(Y.type==="highlights"){let Q=Y;if(typeof Q.query!=="string"||Q.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(Y.type==="query"){let Q=Y;if(typeof Q.prompt!=="string"||Q.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if(Q.mode!=null&&Q.mode!=="freeform"&&Q.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'")}}}function d8($){if(!$)return;if($.timeout!=null&&$.timeout<=0)throw Error("timeout must be positive");let Y=$;if(Y.waitFor!==void 0)throw Error("parse does not support waitFor");if(Y.actions!==void 0)throw Error("parse does not support actions");if(Y.location!==void 0)throw Error("parse does not support location overrides");if(Y.mobile!==void 0)throw Error("parse does not support mobile rendering");if(Y.maxAge!==void 0||Y.minAge!==void 0||Y.storeInCache!==void 0||Y.lockdown!==void 0)throw Error("parse does not support cache/index options");if(Y.proxy!==void 0&&Y.proxy!=="basic"&&Y.proxy!=="auto")throw Error("parse only supports proxy values of 'basic' or 'auto'");l8($.formats)}function E($,Y){let G=$.status,Q=$.data||{},X=Q?.error||Q?.message||`Request failed (${G}) while trying to ${Y}`;throw new H0(X,G,void 0,Q?.details)}function D($,Y){let G=$.response?.status,Q=$.response?.data,X=Q?.error||$.message||`Request failed${G?` (${G})`:""} while trying to ${Y}`,W=Q?.code||$.code;throw new H0(X,G,W,Q?.details??Q)}function s6($){if($ instanceof f1)return!1;if($ instanceof H0||$&&typeof $==="object"&&"status"in $){let Y=$.status;if(Y&&Y>=400&&Y<500)return!1;if(Y&&Y>=500)return!0}if($?.isAxiosError&&!$.response)return!0;if($?.code==="ECONNABORTED"||$?.message?.includes("timeout"))return!0;return!0}async function p8($,Y,G){if(!Y||!Y.trim())throw Error("URL cannot be empty");if(G)U4(G);let Q={url:Y.trim()};if(G)Object.assign(Q,G);try{let X=await $.post("/v2/scrape",Q,typeof G?.timeout==="number"?{timeoutMs:G.timeout+5000}:{});if(X.status!==200||!X.data?.success)E(X,"scrape");return X.data.data||{}}catch(X){if(X?.isAxiosError)return D(X,"scrape");throw X}}async function i8($,Y,G){if(!Y||!Y.trim())throw Error("Job ID cannot be empty");let Q=G?.code&&G.code.trim(),X=G?.prompt&&G.prompt.trim();if(!Q&&!X)throw Error("Either 'code' or 'prompt' must be provided");let W={};if(Q)W.code=G.code;if(X)W.prompt=G.prompt;if(W.language=G.language??"node",G.timeout!=null)W.timeout=G.timeout;if(G.origin)W.origin=G.origin;try{let Z=await $.post(`/v2/scrape/${Y}/interact`,W,G.timeout!=null?{timeoutMs:G.timeout*1000+5000}:{});if(Z.status!==200)E(Z,"interact with scrape browser");return Z.data}catch(Z){if(Z?.isAxiosError)return D(Z,"interact with scrape browser");throw Z}}async function n8($,Y){if(!Y||!Y.trim())throw Error("Job ID cannot be empty");try{let G=await $.delete(`/v2/scrape/${Y}/interact`);if(G.status!==200)E(G,"stop interaction");return G.data}catch(G){if(G?.isAxiosError)return D(G,"stop interaction");throw G}}function p6($,Y){if(typeof Blob<"u"&&$ instanceof Blob){if(Y&&$.type!==Y)return new Blob([$],{type:Y});return $}if(typeof Buffer<"u"&&Buffer.isBuffer($))return new Blob([$],{type:Y});if($ instanceof ArrayBuffer)return new Blob([$],{type:Y});if(ArrayBuffer.isView($))return new Blob([$],{type:Y});if(typeof $==="string")return new Blob([$],{type:Y??"text/plain; charset=utf-8"});throw Error("Unsupported parse file data type")}async function a8($,Y,G){if(!Y||!Y.filename||!Y.filename.trim())throw Error("filename cannot be empty");if(Y.data==null)throw Error("file data cannot be empty");if(p6(Y.data,Y.contentType).size===0)throw Error("file data cannot be empty");if(G)d8(G);let X=t6(),W={...G??{},origin:typeof G?.origin==="string"&&G.origin.includes("mcp")?G.origin:G?.origin??`js-sdk@${X}`},Z=new FormData;Z.append("options",JSON.stringify(W)),Z.append("file",p6(Y.data,Y.contentType),Y.filename.trim());try{let J=await $.postMultipart("/v2/parse",Z,typeof W.timeout==="number"?{timeoutMs:W.timeout+5000}:{});if(J.status!==200||!J.data?.success)E(J,"parse");return J.data.data||{}}catch(J){if(J?.isAxiosError)return D(J,"parse");throw J}}function t8($){if(!$.query||!$.query.trim())throw Error("Query cannot be empty");if($.limit!=null&&$.limit<=0)throw Error("limit must be positive");if($.timeout!=null&&$.timeout<=0)throw Error("timeout must be positive");if($.includeDomains?.length&&$.excludeDomains?.length)throw Error("includeDomains and excludeDomains cannot both be specified");let Y={query:$.query};if($.sources)Y.sources=$.sources;if($.categories)Y.categories=$.categories;if($.includeDomains)Y.includeDomains=$.includeDomains;if($.excludeDomains)Y.excludeDomains=$.excludeDomains;if($.limit!=null)Y.limit=$.limit;if($.tbs!=null)Y.tbs=$.tbs;if($.location!=null)Y.location=$.location;if($.ignoreInvalidURLs!=null)Y.ignoreInvalidURLs=$.ignoreInvalidURLs;if($.timeout!=null)Y.timeout=$.timeout;if($.integration&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.scrapeOptions)U4($.scrapeOptions),Y.scrapeOptions=$.scrapeOptions;return Y}function k1($){let Y=[];for(let G of $)if(G&&typeof G==="object")if("markdown"in G||"html"in G||"rawHtml"in G||"links"in G||"screenshot"in G||"changeTracking"in G||"summary"in G||"json"in G)Y.push(G);else Y.push(G);else Y.push({url:G});return Y}async function s8($,Y){let G=t8(Y);try{let Q=await $.post("/v2/search",G,typeof Y.timeout==="number"?{timeoutMs:Y.timeout+5000}:{});if(Q.status!==200||!Q.data?.success)E(Q,"search");let X=Q.data.data||{},W={};if(X.web)W.web=k1(X.web);if(X.news)W.news=k1(X.news);if(X.images)W.images=k1(X.images);return Object.defineProperty(W,"data",{get(){let Z=[];if(W.web?.length)Z.push(`.web (${W.web.length} results)`);if(W.news?.length)Z.push(`.news (${W.news.length} results)`);if(W.images?.length)Z.push(`.images (${W.images.length} results)`);let J=Z.length?Z.join(", "):".web, .news, or .images";throw Error(`SearchData has no '.data'. Results are grouped by source: ${J}`)},enumerable:!1,configurable:!0}),W}catch(Q){if(Q?.isAxiosError)return D(Q,"search");throw Q}}function o8($,Y){if(!$||!$.trim())throw Error("URL cannot be empty");let G={url:$.trim()};if(Y){if(Y.sitemap!=null)G.sitemap=Y.sitemap;if(Y.search!=null)G.search=Y.search;if(Y.includeSubdomains!=null)G.includeSubdomains=Y.includeSubdomains;if(Y.ignoreQueryParameters!=null)G.ignoreQueryParameters=Y.ignoreQueryParameters;if(Y.limit!=null)G.limit=Y.limit;if(Y.timeout!=null)G.timeout=Y.timeout;if(Y.integration!=null&&Y.integration.trim())G.integration=Y.integration.trim();if(Y.origin)G.origin=Y.origin;if(Y.location!=null)G.location=Y.location}return G}async function r8($,Y,G){let Q=o8(Y,G);try{let X=await $.post("/v2/map",Q,typeof G?.timeout==="number"?{timeoutMs:G.timeout+5000}:{});if(X.status!==200||!X.data?.success)E(X,"map");let W=X.data.links||[],Z=[];for(let J of W)if(typeof J==="string")Z.push({url:J});else if(J&&typeof J==="object")Z.push({url:J.url,title:J.title,description:J.description});return{links:Z}}catch(X){if(X?.isAxiosError)return D(X,"map");throw X}}async function y1($,Y,G,Q){let X=G.slice(),W=Y,Z=0,J=Q?.maxPages??void 0,M=Q?.maxResults??void 0,K=Q?.maxWaitTime??void 0,V=Date.now();while(W){if(J!=null&&Z>=J)break;if(K!=null&&(Date.now()-V)/1000>K)break;let B=null;try{B=(await $.get(W)).data}catch{break}if(!B?.success)break;let z=Array.isArray(B.data)?B.data:B.data?.pages||[];for(let U of z){if(M!=null&&X.length>=M)break;X.push(U)}if(M!=null&&X.length>=M)break;W=B.next??(Array.isArray(B.data)?null:B.data?.next)??null,Z+=1}return X}function e8($){if(!$.url||!$.url.trim())throw Error("URL cannot be empty");let Y={url:$.url.trim()};if($.prompt)Y.prompt=$.prompt;if($.excludePaths)Y.excludePaths=$.excludePaths;if($.includePaths)Y.includePaths=$.includePaths;if($.maxDiscoveryDepth!=null)Y.maxDiscoveryDepth=$.maxDiscoveryDepth;if($.sitemap!=null)Y.sitemap=$.sitemap;if($.robotsUserAgent!=null)Y.robotsUserAgent=$.robotsUserAgent;if($.ignoreQueryParameters!=null)Y.ignoreQueryParameters=$.ignoreQueryParameters;if($.deduplicateSimilarURLs!=null)Y.deduplicateSimilarURLs=$.deduplicateSimilarURLs;if($.limit!=null)Y.limit=$.limit;if($.crawlEntireDomain!=null)Y.crawlEntireDomain=$.crawlEntireDomain;if($.allowExternalLinks!=null)Y.allowExternalLinks=$.allowExternalLinks;if($.allowSubdomains!=null)Y.allowSubdomains=$.allowSubdomains;if($.delay!=null)Y.delay=$.delay;if($.maxConcurrency!=null)Y.maxConcurrency=$.maxConcurrency;if($.regexOnFullURL!=null)Y.regexOnFullURL=$.regexOnFullURL;if($.webhook!=null)Y.webhook=$.webhook;if($.integration!=null&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.scrapeOptions)U4($.scrapeOptions),Y.scrapeOptions=$.scrapeOptions;if($.zeroDataRetention!=null)Y.zeroDataRetention=$.zeroDataRetention;return Y}async function o6($,Y){let G=e8(Y);try{let Q=await $.post("/v2/crawl",G);if(Q.status!==200||!Q.data?.success)E(Q,"start crawl");return{id:Q.data.id,url:Q.data.url}}catch(Q){if(Q?.isAxiosError)return D(Q,"start crawl");throw Q}}async function m1($,Y,G){try{let Q=await $.get(`/v2/crawl/${Y}`);if(Q.status!==200||!Q.data?.success)E(Q,"get crawl status");let X=Q.data,W=X.data||[];if(!(G?.autoPaginate??!0)||!X.next)return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:X.next??null,data:W};let J=await y1($,X.next,W,G);return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:null,data:J}}catch(Q){if(Q?.isAxiosError)return D(Q,"get crawl status");throw Q}}async function $7($,Y){try{let G=await $.delete(`/v2/crawl/${Y}`);if(G.status!==200)E(G,"cancel crawl");return G.data?.status==="cancelled"}catch(G){if(G?.isAxiosError)return D(G,"cancel crawl");throw G}}async function Y7($,Y,G=2,Q){let X=Date.now();while(!0){try{let W=await m1($,Y);if(["completed","failed","cancelled"].includes(W.status))return W}catch(W){if(!s6(W)){if(W instanceof H0)throw new H0(W.message,W.status,W.code,W.details,Y);throw W}}if(Q!=null&&Date.now()-X>Q*1000)throw new f1(Y,Q,"crawl");await new Promise((W)=>setTimeout(W,Math.max(1000,G*1000)))}}async function G7($,Y,G=2,Q){let X=await o6($,Y);return Y7($,X.id,G,Q)}async function Q7($,Y){try{let G=await $.get(`/v2/crawl/${Y}/errors`);if(G.status!==200)E(G,"get crawl errors");let Q=G.data?.data??G.data;return{errors:Q.errors||[],robotsBlocked:Q.robotsBlocked||[]}}catch(G){if(G?.isAxiosError)return D(G,"get crawl errors");throw G}}async function X7($){try{let Y=await $.get("/v2/crawl/active");if(Y.status!==200||!Y.data?.success)E(Y,"get active crawls");return{success:!0,crawls:(Y.data?.crawls||[]).map((X)=>({id:X.id,teamId:X.teamId??X.team_id,url:X.url,options:X.options??null}))}}catch(Y){if(Y?.isAxiosError)return D(Y,"get active crawls");throw Y}}async function W7($,Y,G){if(!Y||!Y.trim())throw Error("URL cannot be empty");if(!G||!G.trim())throw Error("Prompt cannot be empty");try{let Q=await $.post("/v2/crawl/params-preview",{url:Y.trim(),prompt:G});if(Q.status!==200||!Q.data?.success)E(Q,"crawl params preview");let X=Q.data.data||{};if(Q.data.warning)X.warning=Q.data.warning;return X}catch(Q){if(Q?.isAxiosError)return D(Q,"crawl params preview");throw Q}}async function r6($,Y,{options:G,webhook:Q,appendToId:X,ignoreInvalidURLs:W,maxConcurrency:Z,zeroDataRetention:J,idempotencyKey:M,integration:K,origin:V}={}){if(!Array.isArray(Y)||Y.length===0)throw Error("URLs list cannot be empty");let B={urls:Y};if(G)U4(G),Object.assign(B,G);if(Q!=null)B.webhook=Q;if(X!=null)B.appendToId=X;if(W!=null)B.ignoreInvalidURLs=W;if(Z!=null)B.maxConcurrency=Z;if(J!=null)B.zeroDataRetention=J;if(K!=null&&K.trim())B.integration=K.trim();if(V)B.origin=V;try{let z=$.prepareHeaders(M),U=await $.post("/v2/batch/scrape",B,{headers:z});if(U.status!==200||!U.data?.success)E(U,"start batch scrape");return{id:U.data.id,url:U.data.url,invalidURLs:U.data.invalidURLs||void 0}}catch(z){if(z?.isAxiosError)return D(z,"start batch scrape");throw z}}async function h1($,Y,G){try{let Q=await $.get(`/v2/batch/scrape/${Y}`);if(Q.status!==200||!Q.data?.success)E(Q,"get batch scrape status");let X=Q.data,W=X.data||[];if(!(G?.autoPaginate??!0)||!X.next)return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:X.next??null,data:W};let J=await y1($,X.next,W,G);return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:null,data:J}}catch(Q){if(Q?.isAxiosError)return D(Q,"get batch scrape status");throw Q}}async function Z7($,Y){try{let G=await $.delete(`/v2/batch/scrape/${Y}`);if(G.status!==200)E(G,"cancel batch scrape");return G.data?.status==="cancelled"}catch(G){if(G?.isAxiosError)return D(G,"cancel batch scrape");throw G}}async function J7($,Y){try{let G=await $.get(`/v2/batch/scrape/${Y}/errors`);if(G.status!==200)E(G,"get batch scrape errors");let Q=G.data?.data??G.data;return{errors:Q.errors||[],robotsBlocked:Q.robotsBlocked||[]}}catch(G){if(G?.isAxiosError)return D(G,"get batch scrape errors");throw G}}async function N7($,Y,G=2,Q){let X=Date.now();while(!0){try{let W=await h1($,Y);if(["completed","failed","cancelled"].includes(W.status))return W}catch(W){if(!s6(W)){if(W instanceof H0)throw new H0(W.message,W.status,W.code,W.details,Y);throw W}}if(Q!=null&&Date.now()-X>Q*1000)throw new f1(Y,Q,"batch");await new Promise((W)=>setTimeout(W,Math.max(1000,G*1000)))}}async function M7($,Y,G={}){let Q=await r6($,Y,G);return N7($,Q.id,G.pollInterval??2,G.timeout)}function K7($){let Y={};if($.urls)Y.urls=$.urls;if($.prompt!=null)Y.prompt=$.prompt;if($.schema!=null)Y.schema=l0($.schema)?$0($.schema):$.schema;if($.systemPrompt!=null)Y.systemPrompt=$.systemPrompt;if($.allowExternalLinks!=null)Y.allowExternalLinks=$.allowExternalLinks;if($.enableWebSearch!=null)Y.enableWebSearch=$.enableWebSearch;if($.showSources!=null)Y.showSources=$.showSources;if($.ignoreInvalidURLs!=null)Y.ignoreInvalidURLs=$.ignoreInvalidURLs;if($.integration&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.agent)Y.agent=$.agent;if($.scrapeOptions)U4($.scrapeOptions),Y.scrapeOptions=$.scrapeOptions;return Y}async function e6($,Y){let G=K7(Y);try{let Q=await $.post("/v2/extract",G);if(Q.status!==200)E(Q,"extract");return Q.data}catch(Q){if(Q?.isAxiosError)return D(Q,"extract");throw Q}}async function $2($,Y){try{let G=await $.get(`/v2/extract/${Y}`);if(G.status!==200)E(G,"extract status");return G.data}catch(G){if(G?.isAxiosError)return D(G,"extract status");throw G}}async function V7($,Y,G=2,Q){let X=Date.now();while(!0){let W=await $2($,Y);if(["completed","failed","cancelled"].includes(W.status||""))return W;if(Q!=null&&Date.now()-X>Q*1000)return W;await new Promise((Z)=>setTimeout(Z,Math.max(1000,G*1000)))}}async function B7($,Y){let G=await e6($,Y),Q=G.id;if(!Q)return G;return V7($,Q,Y.pollInterval??2,Y.timeout)}function z7($){let Y={};if($.urls)Y.urls=$.urls;if(Y.prompt=$.prompt,$.schema!=null)Y.schema=l0($.schema)?$0($.schema):$.schema;if($.integration&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.maxCredits!==null&&$.maxCredits!==void 0)Y.maxCredits=$.maxCredits;if($.strictConstrainToURLs!==null&&$.strictConstrainToURLs!==void 0)Y.strictConstrainToURLs=$.strictConstrainToURLs;if($.model!==null&&$.model!==void 0)Y.model=$.model;if($.webhook!=null)Y.webhook=$.webhook;return Y}async function Y2($,Y){let G=z7(Y);try{let Q=await $.post("/v2/agent",G);if(Q.status!==200)E(Q,"agent");return Q.data}catch(Q){if(Q?.isAxiosError)return D(Q,"agent");throw Q}}async function G2($,Y){try{let G=await $.get(`/v2/agent/${Y}`);if(G.status!==200)E(G,"agent status");return G.data}catch(G){if(G?.isAxiosError)return D(G,"agent status");throw G}}async function L7($,Y,G=2,Q){let X=Date.now();while(!0){let W=await G2($,Y);if(["completed","failed","cancelled"].includes(W.status||""))return W;if(Q!=null&&Date.now()-X>Q*1000)return W;await new Promise((Z)=>setTimeout(Z,Math.max(1000,G*1000)))}}async function U7($,Y){let G=await Y2($,Y),Q=G.id;if(!Q)return G;return L7($,Q,Y.pollInterval??2,Y.timeout)}async function _7($,Y){try{let G=await $.delete(`/v2/agent/${Y}`);if(G.status!==200)E(G,"cancel agent");return G.data?.success===!0}catch(G){if(G?.isAxiosError)return D(G,"cancel agent");throw G}}async function P7($,Y={}){let G={};if(Y.ttl!=null)G.ttl=Y.ttl;if(Y.activityTtl!=null)G.activityTtl=Y.activityTtl;if(Y.streamWebView!=null)G.streamWebView=Y.streamWebView;if(Y.profile!=null)G.profile=Y.profile;if(Y.integration!=null)G.integration=Y.integration;if(Y.origin)G.origin=Y.origin;try{let Q=await $.post("/v2/browser",G);if(Q.status!==200)E(Q,"create browser session");return Q.data}catch(Q){if(Q?.isAxiosError)return D(Q,"create browser session");throw Q}}async function O7($,Y,G){let Q={code:G.code,language:G.language??"bash"};if(G.timeout!=null)Q.timeout=G.timeout;try{let X=await $.post(`/v2/browser/${Y}/execute`,Q,G.timeout!=null?{timeoutMs:G.timeout*1000+5000}:{});if(X.status!==200)E(X,"execute browser code");return X.data}catch(X){if(X?.isAxiosError)return D(X,"execute browser code");throw X}}async function H7($,Y){try{let G=await $.delete(`/v2/browser/${Y}`);if(G.status!==200)E(G,"delete browser session");return G.data}catch(G){if(G?.isAxiosError)return D(G,"delete browser session");throw G}}async function F7($,Y={}){let G="/v2/browser";if(Y.status)G+=`?status=${Y.status}`;try{let Q=await $.get(G);if(Q.status!==200)E(Q,"list browser sessions");return Q.data}catch(Q){if(Q?.isAxiosError)return D(Q,"list browser sessions");throw Q}}async function C7($){try{let Y=await $.get("/v2/concurrency-check");if(Y.status!==200||!Y.data?.success)E(Y,"get concurrency");let G=Y.data.data||Y.data;return{concurrency:G.concurrency,maxConcurrency:G.maxConcurrency??G.max_concurrency}}catch(Y){if(Y?.isAxiosError)return D(Y,"get concurrency");throw Y}}async function T7($){try{let Y=await $.get("/v2/team/credit-usage");if(Y.status!==200||!Y.data?.success)E(Y,"get credit usage");let G=Y.data.data||Y.data;return{remainingCredits:G.remainingCredits??G.remaining_credits??0,planCredits:G.planCredits??G.plan_credits,billingPeriodStart:G.billingPeriodStart??G.billing_period_start??null,billingPeriodEnd:G.billingPeriodEnd??G.billing_period_end??null}}catch(Y){if(Y?.isAxiosError)return D(Y,"get credit usage");throw Y}}async function I7($){try{let Y=await $.get("/v2/team/token-usage");if(Y.status!==200||!Y.data?.success)E(Y,"get token usage");let G=Y.data.data||Y.data;return{remainingTokens:G.remainingTokens??G.remaining_tokens??0,planTokens:G.planTokens??G.plan_tokens,billingPeriodStart:G.billingPeriodStart??G.billing_period_start??null,billingPeriodEnd:G.billingPeriodEnd??G.billing_period_end??null}}catch(Y){if(Y?.isAxiosError)return D(Y,"get token usage");throw Y}}async function R7($){try{let Y=await $.get("/v2/team/queue-status");if(Y.status!==200||!Y.data?.success)E(Y,"get queue status");return Y.data}catch(Y){if(Y?.isAxiosError)return D(Y,"get queue status");throw Y}}async function D7($,Y){try{let G=Y?"?byApiKey=true":"",Q=await $.get(`/v2/team/credit-usage/historical${G}`);if(Q.status!==200||!Q.data?.success)E(Q,"get credit usage historical");return Q.data}catch(G){if(G?.isAxiosError)return D(G,"get credit usage historical");throw G}}async function S7($,Y){try{let G=Y?"?byApiKey=true":"",Q=await $.get(`/v2/team/token-usage/historical${G}`);if(Q.status!==200||!Q.data?.success)E(Q,"get token usage historical");return Q.data}catch(G){if(G?.isAxiosError)return D(G,"get token usage historical");throw G}}function g1($){if(!$)return"";let Y=new URLSearchParams;for(let[Q,X]of Object.entries($))if(X!==void 0&&X!==null)Y.set(Q,String(X));let G=Y.toString();return G?`?${G}`:""}function q0($,Y){if($.status!==200||!$.data?.success||$.data.data==null)E($,Y);return $.data.data}async function w7($,Y){try{let G=await $.post("/v2/monitor",Y);return q0(G,"create monitor")}catch(G){if(G?.isAxiosError)return D(G,"create monitor");throw G}}async function E7($,Y){try{let G=await $.get(`/v2/monitor${g1(Y)}`);return q0(G,"list monitors")}catch(G){if(G?.isAxiosError)return D(G,"list monitors");throw G}}async function q7($,Y){try{let G=await $.get(`/v2/monitor/${Y}`);return q0(G,"get monitor")}catch(G){if(G?.isAxiosError)return D(G,"get monitor");throw G}}async function A7($,Y,G){try{let Q=await $.patch(`/v2/monitor/${Y}`,G);return q0(Q,"update monitor")}catch(Q){if(Q?.isAxiosError)return D(Q,"update monitor");throw Q}}async function k7($,Y){try{let G=await $.delete(`/v2/monitor/${Y}`);if(G.status!==200||!G.data?.success)E(G,"delete monitor");return!0}catch(G){if(G?.isAxiosError)return D(G,"delete monitor");throw G}}async function j7($,Y){try{let G=await $.post(`/v2/monitor/${Y}/run`,{});return q0(G,"run monitor")}catch(G){if(G?.isAxiosError)return D(G,"run monitor");throw G}}async function x7($,Y,G){try{let Q=await $.get(`/v2/monitor/${Y}/checks${g1(G)}`);return q0(Q,"list monitor checks")}catch(Q){if(Q?.isAxiosError)return D(Q,"list monitor checks");throw Q}}async function v7($,Y,G,Q){try{let{autoPaginate:X,maxPages:W,maxResults:Z,maxWaitTime:J,...M}=Q??{},K=await $.get(`/v2/monitor/${Y}/checks/${G}${g1(M)}`),V=q0(K,"get monitor check"),B=K.data?.next??V.next??null;if(!(Q?.autoPaginate??!0)||!B)return{...V,next:B};return{...V,pages:await y1($,B,V.pages||[],Q),next:null}}catch(X){if(X?.isAxiosError)return D(X,"get monitor check");throw X}}var h8=class{instance;apiKey;apiUrl;maxRetries;backoffFactor;constructor($){this.apiKey=$.apiKey,this.apiUrl=$.apiUrl.replace(/\/$/,""),this.maxRetries=$.maxRetries??3,this.backoffFactor=$.backoffFactor??0.5,this.instance=L0.create({baseURL:this.apiUrl,timeout:$.timeoutMs??300000,headers:{Authorization:`Bearer ${this.apiKey}`},transitional:{clarifyTimeoutError:!0}})}getApiUrl(){return this.apiUrl}getApiKey(){return this.apiKey}async request($){let Y=t6();$.headers={...$.headers||{}};let G;for(let Q=0;Q<this.maxRetries;Q++)try{let X={...$},W=typeof FormData<"u"&&X.data instanceof FormData;if(!W&&X.data!=null&&typeof X.data==="object"&&!Array.isArray(X.data)&&X.method&&["post","put","patch"].includes(X.method.toLowerCase())){let M=X.data??{};X.data={...M,origin:typeof M.origin==="string"&&M.origin.includes("mcp")?M.origin:`js-sdk@${Y}`}}if(W)X.headers={...X.headers||{}},delete X.headers["Content-Type"],delete X.headers["content-type"];let J=await this.instance.request(X);if(J.status===502&&Q<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,Q));continue}return J}catch(X){if(G=X,X?.response?.status===502&&Q<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,Q));continue}throw X}throw G??Error("Unexpected HTTP client error")}sleep($){return new Promise((Y)=>setTimeout(Y,$*1000))}post($,Y,G){return this.request({method:"post",url:$,data:Y,headers:G?.headers,timeout:G?.timeoutMs})}postMultipart($,Y,G){return this.request({method:"post",url:$,data:Y,headers:G?.headers,timeout:G?.timeoutMs})}get($,Y){return this.request({method:"get",url:$,headers:Y})}delete($,Y){return this.request({method:"delete",url:$,headers:Y})}patch($,Y,G){return this.request({method:"patch",url:$,data:Y,headers:G?.headers,timeout:G?.timeoutMs})}prepareHeaders($){let Y={};if($)Y["x-idempotency-key"]=$;return Y}},H0,f1,f7=()=>{if(typeof globalThis>"u")return;let $=globalThis.WebSocket;return typeof $==="function"?$:void 0},y7=()=>typeof process<"u"&&!!process.versions?.node,c0,j1,m7=async()=>{if(!y7())return;try{let $=await import("./index-0.6.5-mh7r1b3g.mjs"),Y=$.WebSocket??$.default?.WebSocket;return typeof Y==="function"?Y:void 0}catch{return}},h7=async()=>{if(c0)return c0;let $=f7();if($)return c0=$,c0;if(!j1)j1=m7();return c0=await j1,c0},g7,u7=($)=>{if(typeof $==="string")return $;if(typeof Buffer<"u"&&Buffer.isBuffer($))return $.toString("utf8");let Y=(G)=>{if(typeof Buffer<"u")return Buffer.from(G.buffer,G.byteOffset,G.byteLength).toString("utf8");return g7?.decode(G)};if(ArrayBuffer.isView($))return Y($);if($ instanceof ArrayBuffer)return Y(new Uint8Array($));return},c7,v1=class{http;isCloudService($){return $.includes("api.firecrawl.dev")}constructor($={}){let Y=typeof $==="string"?{apiKey:$}:$,G=(Y.apiKey??process.env.FIRECRAWL_API_KEY??"").trim(),Q=(Y.apiUrl??process.env.FIRECRAWL_API_URL??"https://api.firecrawl.dev").replace(/\/$/,"");if(this.isCloudService(Q)&&!G)throw Error("API key is required for the cloud API. Set FIRECRAWL_API_KEY env or pass apiKey.");this.http=new h8({apiKey:G,apiUrl:Q,timeoutMs:Y.timeoutMs,maxRetries:Y.maxRetries,backoffFactor:Y.backoffFactor})}async scrape($,Y){return p8(this.http,$,Y)}async interact($,Y){return i8(this.http,$,Y)}async stopInteraction($){return n8(this.http,$)}async scrapeExecute($,Y){return this.interact($,Y)}async stopInteractiveBrowser($){return this.stopInteraction($)}async deleteScrapeBrowser($){return this.stopInteraction($)}async parse($,Y){return a8(this.http,$,Y)}async search($,Y={}){return s8(this.http,{query:$,...Y})}async map($,Y){return r8(this.http,$,Y)}async startCrawl($,Y={}){return o6(this.http,{url:$,...Y})}async getCrawlStatus($,Y){return m1(this.http,$,Y)}async cancelCrawl($){return $7(this.http,$)}async crawl($,Y={}){return G7(this.http,{url:$,...Y},Y.pollInterval,Y.timeout)}async getCrawlErrors($){return Q7(this.http,$)}async getActiveCrawls(){return X7(this.http)}async crawlParamsPreview($,Y){return W7(this.http,$,Y)}async createMonitor($){return w7(this.http,$)}async listMonitors($){return E7(this.http,$)}async getMonitor($){return q7(this.http,$)}async updateMonitor($,Y){return A7(this.http,$,Y)}async deleteMonitor($){return k7(this.http,$)}async runMonitor($){return j7(this.http,$)}async listMonitorChecks($,Y){return x7(this.http,$,Y)}async getMonitorCheck($,Y,G){return v7(this.http,$,Y,G)}async startBatchScrape($,Y){return r6(this.http,$,Y)}async getBatchScrapeStatus($,Y){return h1(this.http,$,Y)}async getBatchScrapeErrors($){return J7(this.http,$)}async cancelBatchScrape($){return Z7(this.http,$)}async batchScrape($,Y){return M7(this.http,$,Y)}async startExtract($){return e6(this.http,$)}async getExtractStatus($){return $2(this.http,$)}async extract($){return B7(this.http,$)}async startAgent($){return Y2(this.http,$)}async getAgentStatus($){return G2(this.http,$)}async agent($){return U7(this.http,$)}async cancelAgent($){return _7(this.http,$)}async browser($={}){return P7(this.http,$)}async browserExecute($,Y){return O7(this.http,$,Y)}async deleteBrowser($){return H7(this.http,$)}async listBrowsers($={}){return F7(this.http,$)}async getConcurrency(){return C7(this.http)}async getCreditUsage(){return T7(this.http)}async getTokenUsage(){return I7(this.http)}async getCreditUsageHistorical($){return D7(this.http,$)}async getTokenUsageHistorical($){return S7(this.http,$)}async getQueueStatus(){return R7(this.http)}watcher($,Y={}){return new c7(this.http,$,Y)}async scrapeUrl($,Y){return this.scrape($,Y)}async crawlUrl($,Y={}){return this.crawl($,Y)}async asyncCrawlUrl($,Y={}){return this.startCrawl($,Y)}async checkCrawlStatus($,Y){return this.getCrawlStatus($,Y)}async checkCrawlErrors($){return this.getCrawlErrors($)}async mapUrl($,Y){return this.map($,Y)}async batchScrapeUrls($,Y){return this.batchScrape($,Y)}async asyncBatchScrapeUrls($,Y){return this.startBatchScrape($,Y)}async checkBatchScrapeStatus($,Y){return this.getBatchScrapeStatus($,Y)}async checkBatchScrapeErrors($){return this.getBatchScrapeErrors($)}},l7,C,d7=class{apiKey;apiUrl;version="1.25.1";isCloudService($){return $.includes("api.firecrawl.dev")}async getVersion(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return(await import("./package-D6422PQU-0.6.5-a34phgmb.mjs")).default.version}catch($){if(!(typeof process<"u"&&(process.env.JEST_WORKER_ID!=null||!1)))console.error("Error getting version:",$);return"1.25.1"}}async init(){this.version=await this.getVersion()}constructor({apiKey:$=null,apiUrl:Y=null}){let G=Y||"https://api.firecrawl.dev";if(this.isCloudService(G)&&typeof $!=="string")throw new C("No API key provided",401);this.apiKey=$||"",this.apiUrl=G,this.init()}async scrapeUrl($,Y){let G={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},Q={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};if(Q?.extract?.schema)Q={...Q,extract:{...Q.extract,schema:$0(Q.extract.schema)}};if(Q?.jsonOptions?.schema)Q={...Q,jsonOptions:{...Q.jsonOptions,schema:$0(Q.jsonOptions.schema)}};try{let X=await L0.post(this.apiUrl+"/v1/scrape",Q,{headers:G,timeout:Y?.timeout!==void 0?Y.timeout+5000:void 0});if(X.status===200){let W=X.data;if(W.success)return{success:!0,warning:W.warning,error:W.error,...W.data};else throw new C(`Failed to scrape URL. Error: ${W.error}`,X.status)}else this.handleError(X,"scrape URL")}catch(X){this.handleError(X.response,"scrape URL")}return{success:!1,error:"Internal server error."}}async search($,Y){let G={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},Q={query:$,limit:Y?.limit??5,tbs:Y?.tbs,filter:Y?.filter,lang:Y?.lang??"en",country:Y?.country??"us",location:Y?.location,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`,timeout:Y?.timeout??60000,scrapeOptions:Y?.scrapeOptions??{formats:[]}};if(Q?.scrapeOptions?.extract?.schema)Q={...Q,scrapeOptions:{...Q.scrapeOptions,extract:{...Q.scrapeOptions.extract,schema:$0(Q.scrapeOptions.extract.schema)}}};try{let X=await this.postRequest(this.apiUrl+"/v1/search",Q,G);if(X.status===200){let W=X.data;if(W.success)return{success:!0,data:W.data,warning:W.warning};else throw new C(`Failed to search. Error: ${W.error}`,X.status)}else this.handleError(X,"search")}catch(X){if(X.response?.data?.error)throw new C(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new C(X.message,500)}return{success:!1,error:"Internal server error.",data:[]}}async crawlUrl($,Y,G=2,Q){let X=this.prepareHeaders(Q),W={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let Z=await this.postRequest(this.apiUrl+"/v1/crawl",W,X);if(Z.status===200){let J=Z.data.id;return this.monitorJobStatus(J,X,G)}else this.handleError(Z,"start crawl job")}catch(Z){if(Z.response?.data?.error)throw new C(`Request failed with status code ${Z.response.status}. Error: ${Z.response.data.error} ${Z.response.data.details?` - ${JSON.stringify(Z.response.data.details)}`:""}`,Z.response.status);else throw new C(Z.message,500)}return{success:!1,error:"Internal server error."}}async asyncCrawlUrl($,Y,G){let Q=this.prepareHeaders(G),X={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let W=await this.postRequest(this.apiUrl+"/v1/crawl",X,Q);if(W.status===200)return W.data;else this.handleError(W,"start crawl job")}catch(W){if(W.response?.data?.error)throw new C(`Request failed with status code ${W.response.status}. Error: ${W.response.data.error} ${W.response.data.details?` - ${JSON.stringify(W.response.data.details)}`:""}`,W.response.status);else throw new C(W.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlStatus($,Y=!1,G,Q,X){if(!$)throw new C("No crawl ID provided",400);let W=this.prepareHeaders(),Z=new URL(G??`${this.apiUrl}/v1/crawl/${$}`);if(Q!==void 0)Z.searchParams.set("skip",Q.toString());if(X!==void 0)Z.searchParams.set("limit",X.toString());try{let J=await this.getRequest(Z.href,W);if(J.status===200){let M=J.data.data;if(Y&&J.data.status==="completed"){let V=J.data;if("data"in V){let B=V.data;while(typeof V==="object"&&"next"in V){if(B.length===0)break;V=(await this.getRequest(V.next,W)).data,B=B.concat(V.data)}M=B}}let K={success:J.data.success,status:J.data.status,total:J.data.total,completed:J.data.completed,creditsUsed:J.data.creditsUsed,next:Y?void 0:J.data.next,expiresAt:new Date(J.data.expiresAt),data:M};if(!J.data.success&&J.data.error)K={...K,success:!1,error:J.data.error};if(J.data.next)K.next=J.data.next;return K}else this.handleError(J,"check crawl status")}catch(J){throw new C(J.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlErrors($){let Y=this.prepareHeaders();try{let G=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${$}/errors`,Y);if(G.status===200)return G.data;else this.handleError(G,"check crawl errors")}catch(G){throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async cancelCrawl($){let Y=this.prepareHeaders();try{let G=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${$}`,Y);if(G.status===200)return G.data;else this.handleError(G,"cancel crawl job")}catch(G){throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async crawlUrlAndWatch($,Y,G){let Q=await this.asyncCrawlUrl($,Y,G);if(Q.success&&Q.id){let X=Q.id;return new i6(X,this)}throw new C("Crawl job failed to start",400)}async mapUrl($,Y){let G=this.prepareHeaders(),Q={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let X=await this.postRequest(this.apiUrl+"/v1/map",Q,G);if(X.status===200)return X.data;else this.handleError(X,"map")}catch(X){throw new C(X.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrls($,Y,G=2,Q,X,W,Z){let J=this.prepareHeaders(Q),M={urls:$,webhook:X,ignoreInvalidURLs:W,maxConcurrency:Z,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};if(M?.extract?.schema)M={...M,extract:{...M.extract,schema:$0(M.extract.schema)}};if(M?.jsonOptions?.schema)M={...M,jsonOptions:{...M.jsonOptions,schema:$0(M.jsonOptions.schema)}};try{let K=await this.postRequest(this.apiUrl+"/v1/batch/scrape",M,J);if(K.status===200){let V=K.data.id;return this.monitorJobStatus(V,J,G)}else this.handleError(K,"start batch scrape job")}catch(K){if(K.response?.data?.error)throw new C(`Request failed with status code ${K.response.status}. Error: ${K.response.data.error} ${K.response.data.details?` - ${JSON.stringify(K.response.data.details)}`:""}`,K.response.status);else throw new C(K.message,500)}return{success:!1,error:"Internal server error."}}async asyncBatchScrapeUrls($,Y,G,Q,X){let W=this.prepareHeaders(G),Z={urls:$,webhook:Q,ignoreInvalidURLs:X,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let J=await this.postRequest(this.apiUrl+"/v1/batch/scrape",Z,W);if(J.status===200)return J.data;else this.handleError(J,"start batch scrape job")}catch(J){if(J.response?.data?.error)throw new C(`Request failed with status code ${J.response.status}. Error: ${J.response.data.error} ${J.response.data.details?` - ${JSON.stringify(J.response.data.details)}`:""}`,J.response.status);else throw new C(J.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrlsAndWatch($,Y,G,Q,X){let W=await this.asyncBatchScrapeUrls($,Y,G,Q,X);if(W.success&&W.id){let Z=W.id;return new i6(Z,this)}throw new C("Batch scrape job failed to start",400)}async checkBatchScrapeStatus($,Y=!1,G,Q,X){if(!$)throw new C("No batch scrape ID provided",400);let W=this.prepareHeaders(),Z=new URL(G??`${this.apiUrl}/v1/batch/scrape/${$}`);if(Q!==void 0)Z.searchParams.set("skip",Q.toString());if(X!==void 0)Z.searchParams.set("limit",X.toString());try{let J=await this.getRequest(Z.href,W);if(J.status===200){let M=J.data.data;if(Y&&J.data.status==="completed"){let V=J.data;if("data"in V){let B=V.data;while(typeof V==="object"&&"next"in V){if(B.length===0)break;V=(await this.getRequest(V.next,W)).data,B=B.concat(V.data)}M=B}}let K={success:J.data.success,status:J.data.status,total:J.data.total,completed:J.data.completed,creditsUsed:J.data.creditsUsed,next:Y?void 0:J.data.next,expiresAt:new Date(J.data.expiresAt),data:M};if(!J.data.success&&J.data.error)K={...K,success:!1,error:J.data.error};if(J.data.next)K.next=J.data.next;return K}else this.handleError(J,"check batch scrape status")}catch(J){throw new C(J.message,500)}return{success:!1,error:"Internal server error."}}async checkBatchScrapeErrors($){let Y=this.prepareHeaders();try{let G=await this.deleteRequest(`${this.apiUrl}/v1/batch/scrape/${$}/errors`,Y);if(G.status===200)return G.data;else this.handleError(G,"check batch scrape errors")}catch(G){throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async extract($,Y){let G=this.prepareHeaders(),Q={urls:$,...Y},X=Y?.schema?$0(Y.schema):void 0;try{let W=await this.postRequest(this.apiUrl+"/v1/extract",{...Q,schema:X,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`},G);if(W.status===200){let Z=W.data.id,J;do{let M=await this.getRequest(`${this.apiUrl}/v1/extract/${Z}`,G);if(J=M.data,J.status==="completed")if(J.success)return{success:!0,data:J.data,warning:J.warning,error:J.error,sources:J?.sources||void 0};else throw new C(`Failed to extract data. Error: ${J.error}`,M.status);else if(J.status==="failed"||J.status==="cancelled")throw new C(`Extract job ${J.status}. Error: ${J.error}`,M.status);await new Promise((K)=>setTimeout(K,1000))}while(J.status!=="completed")}else this.handleError(W,"extract")}catch(W){throw new C(W.message,500,W.response?.data?.details)}return{success:!1,error:"Internal server error."}}async asyncExtract($,Y,G){let Q=this.prepareHeaders(G),X={urls:$,...Y},W=Y?.schema?$0(Y.schema):void 0;try{let Z=await this.postRequest(this.apiUrl+"/v1/extract",{...X,schema:W,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`},Q);if(Z.status===200)return Z.data;else this.handleError(Z,"start extract job")}catch(Z){throw new C(Z.message,500,Z.response?.data?.details)}return{success:!1,error:"Internal server error."}}async getExtractStatus($){try{let Y=await this.getRequest(`${this.apiUrl}/v1/extract/${$}`,this.prepareHeaders());if(Y.status===200)return Y.data;else this.handleError(Y,"get extract status")}catch(Y){throw new C(Y.message,500)}}prepareHeaders($){return{"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`,...$?{"x-idempotency-key":$}:{}}}postRequest($,Y,G){return L0.post($,Y,{headers:G,timeout:Y?.timeout?Y.timeout+5000:void 0})}async getRequest($,Y){try{return await L0.get($,{headers:Y})}catch(G){if(G instanceof h4&&G.response)return G.response;else throw G}}async deleteRequest($,Y){try{return await L0.delete($,{headers:Y})}catch(G){if(G instanceof h4&&G.response)return G.response;else throw G}}async monitorJobStatus($,Y,G){let Q=0,X=0,W=3;while(!0)try{let Z=await this.getRequest(`${this.apiUrl}/v1/crawl/${$}`,Y);if(Z.status===200){Q=0,X=0;let J=Z.data;if(J.status==="completed")if("data"in J){let M=J.data;while(typeof J==="object"&&"next"in J){if(M.length===0)break;Z=await this.getRequest(J.next,Y),J=Z.data,M=M.concat(J.data)}return J.data=M,J}else throw new C("Crawl job completed but no data was returned",500);else if(["active","paused","pending","queued","waiting","scraping"].includes(J.status))G=Math.max(G,2),await new Promise((M)=>setTimeout(M,G*1000));else throw new C(`Crawl job failed or was stopped. Status: ${J.status}`,500)}else if(Q++,Q>=3)this.handleError(Z,"check crawl status")}catch(Z){if(this.isRetryableError(Z)&&X<W){X++;let J=Math.min(1000*Math.pow(2,X-1),1e4);await new Promise((M)=>setTimeout(M,J));continue}throw new C(Z,500)}}isRetryableError($){if($ instanceof h4){if(!$.response){let Y=$.code,G=$.message?.toLowerCase()||"";return Y==="ECONNRESET"||Y==="ETIMEDOUT"||Y==="ENOTFOUND"||Y==="ECONNREFUSED"||G.includes("socket hang up")||G.includes("network error")||G.includes("timeout")}if($.response?.status===408||$.response?.status===504)return!0}if($&&typeof $==="object"){let Y=$.code,G=$.message?.toLowerCase()||"";if(Y==="ECONNRESET"||Y==="ETIMEDOUT"||Y==="ENOTFOUND"||Y==="ECONNREFUSED"||G.includes("socket hang up")||G.includes("network error")||G.includes("timeout"))return!0;if($.response?.status===408||$.response?.status===504)return!0}return!1}handleError($,Y){if(!$)throw new C(`No response received while trying to ${Y}. This may be a network error or the server is unreachable.`,0);if([400,402,403,408,409,500].includes($.status)){let G=$.data.error||"Unknown error occurred",Q=$.data.details?` - ${JSON.stringify($.data.details)}`:"";throw new C(`Failed to ${Y}. Status code: ${$.status}. Error: ${G}${Q}`,$.status,$?.data?.details)}else throw new C(`Unexpected error occurred while trying to ${Y}. Status code: ${$.status}`,$.status)}async deepResearch($,Y,G,Q){try{let X=await this.asyncDeepResearch($,Y);if(!X.success||"error"in X)return{success:!1,error:"error"in X?X.error:"Unknown error"};if(!X.id)throw new C("Failed to start research. No job ID returned.",500);let W=X.id,Z,J=0,M=0;while(!0){if(Z=await this.checkDeepResearchStatus(W),"error"in Z&&!Z.success)return Z;if(G&&Z.activities){let K=Z.activities.slice(J);for(let V of K)G(V);J=Z.activities.length}if(Q&&Z.sources){let K=Z.sources.slice(M);for(let V of K)Q(V);M=Z.sources.length}if(Z.status==="completed")return Z;if(Z.status==="failed")throw new C(`Research job ${Z.status}. Error: ${Z.error}`,500);if(Z.status!=="processing")break;await new Promise((K)=>setTimeout(K,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(X){throw new C(X.message,500,X.response?.data?.details)}}async asyncDeepResearch($,Y){let G=this.prepareHeaders(),Q={query:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};if(Q?.jsonOptions?.schema)Q={...Q,jsonOptions:{...Q.jsonOptions,schema:$0(Q.jsonOptions.schema)}};try{let X=await this.postRequest(`${this.apiUrl}/v1/deep-research`,Q,G);if(X.status===200)return X.data;else this.handleError(X,"start deep research")}catch(X){if(X.response?.data?.error)throw new C(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new C(X.message,500)}return{success:!1,error:"Internal server error."}}async checkDeepResearchStatus($){let Y=this.prepareHeaders();try{let G=await this.getRequest(`${this.apiUrl}/v1/deep-research/${$}`,Y);if(G.status===200)return G.data;else if(G.status===404)throw new C("Deep research job not found",404);else this.handleError(G,"check deep research status")}catch(G){if(G.response?.data?.error)throw new C(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async __deepResearch($,Y,G){try{let Q=await this.__asyncDeepResearch($,Y);if(!Q.success||"error"in Q)return{success:!1,error:"error"in Q?Q.error:"Unknown error"};if(!Q.id)throw new C("Failed to start research. No job ID returned.",500);let X=Q.id,W,Z=0;while(!0){if(W=await this.__checkDeepResearchStatus(X),"error"in W&&!W.success)return W;if(G&&W.activities){let J=W.activities.slice(Z);for(let M of J)G(M);Z=W.activities.length}if(W.status==="completed")return W;if(W.status==="failed")throw new C(`Research job ${W.status}. Error: ${W.error}`,500);if(W.status!=="processing")break;await new Promise((J)=>setTimeout(J,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(Q){throw new C(Q.message,500,Q.response?.data?.details)}}async __asyncDeepResearch($,Y){let G=this.prepareHeaders();try{let Q={topic:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`},X=await this.postRequest(`${this.apiUrl}/v1/deep-research`,Q,G);if(X.status===200)return X.data;else this.handleError(X,"start deep research")}catch(Q){if(Q.response?.data?.error)throw new C(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new C(Q.message,500)}return{success:!1,error:"Internal server error."}}async __checkDeepResearchStatus($){let Y=this.prepareHeaders();try{let G=await this.getRequest(`${this.apiUrl}/v1/deep-research/${$}`,Y);if(G.status===200)return G.data;else if(G.status===404)throw new C("Deep research job not found",404);else this.handleError(G,"check deep research status")}catch(G){if(G.response?.data?.error)throw new C(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async generateLLMsText($,Y){try{let G=await this.asyncGenerateLLMsText($,Y);if(!G.success||"error"in G)return{success:!1,error:"error"in G?G.error:"Unknown error"};if(!G.id)throw new C("Failed to start LLMs.txt generation. No job ID returned.",500);let Q=G.id,X;while(!0){if(X=await this.checkGenerateLLMsTextStatus(Q),"error"in X&&!X.success)return X;if(X.status==="completed")return X;if(X.status==="failed")throw new C(`LLMs.txt generation job ${X.status}. Error: ${X.error}`,500);if(X.status!=="processing")break;await new Promise((W)=>setTimeout(W,2000))}return{success:!1,error:"LLMs.txt generation job terminated unexpectedly"}}catch(G){throw new C(G.message,500,G.response?.data?.details)}}async asyncGenerateLLMsText($,Y){let G=this.prepareHeaders(),Q={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let X=await this.postRequest(`${this.apiUrl}/v1/llmstxt`,Q,G);if(X.status===200)return X.data;else this.handleError(X,"start LLMs.txt generation")}catch(X){if(X.response?.data?.error)throw new C(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new C(X.message,500)}return{success:!1,error:"Internal server error."}}async checkGenerateLLMsTextStatus($){let Y=this.prepareHeaders();try{let G=await this.getRequest(`${this.apiUrl}/v1/llmstxt/${$}`,Y);if(G.status===200)return G.data;else if(G.status===404)throw new C("LLMs.txt generation job not found",404);else this.handleError(G,"check LLMs.txt generation status")}catch(G){if(G.response?.data?.error)throw new C(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async getQueueStatus(){let $=this.prepareHeaders();try{let Y=await this.getRequest(`${this.apiUrl}/v1/team/queue-status`,$);if(Y.status===200)return Y.data;else this.handleError(Y,"get queue status")}catch(Y){if(Y.response?.data?.error)throw new C(`Request failed with status code ${Y.response.status}. Error: ${Y.response.data.error} ${Y.response.data.details?` - ${JSON.stringify(Y.response.data.details)}`:""}`,Y.response.status);else throw new C(Y.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsage(){let $=this.prepareHeaders();try{let Y=await this.getRequest(`${this.apiUrl}/v1/team/credit-usage`,$);if(Y.status===200)return Y.data;else this.handleError(Y,"get credit usage")}catch(Y){if(Y.response?.data?.error)throw new C(`Request failed with status code ${Y.response.status}. Error: ${Y.response.data.error} ${Y.response.data.details?` - ${JSON.stringify(Y.response.data.details)}`:""}`,Y.response.status);else throw new C(Y.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsage(){let $=this.prepareHeaders();try{let Y=await this.getRequest(`${this.apiUrl}/v1/team/token-usage`,$);if(Y.status===200)return Y.data;else this.handleError(Y,"get token usage")}catch(Y){if(Y.response?.data?.error)throw new C(`Request failed with status code ${Y.response.status}. Error: ${Y.response.data.error} ${Y.response.data.details?` - ${JSON.stringify(Y.response.data.details)}`:""}`,Y.response.status);else throw new C(Y.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsageHistorical($){let Y=this.prepareHeaders();try{let G=`${this.apiUrl}/v1/team/credit-usage/historical${$?"?byApiKey=true":""}`,Q=await this.getRequest(G,Y);if(Q.status===200)return Q.data;else this.handleError(Q,"get credit usage historical")}catch(G){if(G.response?.data?.error)throw new C(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsageHistorical($){let Y=this.prepareHeaders();try{let G=`${this.apiUrl}/v1/team/token-usage/historical${$?"?byApiKey=true":""}`,Q=await this.getRequest(G,Y);if(Q.status===200)return Q.data;else this.handleError(Q,"get token usage historical")}catch(G){if(G.response?.data?.error)throw new C(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new C(G.message,500)}return{success:!1,error:"Internal server error."}}},i6,b1,HX;var p7=I(()=>{m8();A1();y8();A1();H0=class extends Error{status;code;details;jobId;constructor($,Y,G,Q,X){super($);this.name="FirecrawlSdkError",this.status=Y,this.code=G,this.details=Q,this.jobId=X}},f1=class extends H0{timeoutSeconds;constructor($,Y,G="batch"){let Q=G==="batch"?"batch scrape":"crawl";super(`${Q.charAt(0).toUpperCase()+Q.slice(1)} job ${$} did not complete within ${Y} seconds`,void 0,"JOB_TIMEOUT",void 0,$);this.name="JobTimeoutError",this.timeoutSeconds=Y}};g7=typeof TextDecoder<"u"?new TextDecoder:void 0,c7=class extends b7{http;jobId;kind;pollInterval;timeout;ws;closed=!1;emittedDocumentKeys=new Set;constructor($,Y,G={}){super();this.http=$,this.jobId=Y,this.kind=G.kind??"crawl",this.pollInterval=G.pollInterval??2,this.timeout=G.timeout}buildWsUrl(){let Y=this.http.getApiUrl().replace(/^http/,"ws"),G=this.kind==="crawl"?`/v2/crawl/${this.jobId}`:`/v2/batch/scrape/${this.jobId}`;return`${Y}${G}`}async start(){return new Promise(($,Y)=>{let G=()=>{X(),$()},Q=(W)=>{X(),$()},X=()=>{this.removeListener("done",G),this.removeListener("error",Q)};this.on("done",G),this.on("error",Q),(async()=>{try{let W=this.buildWsUrl(),Z=await h7();if(!Z){this.pollLoop();return}if(this.ws=new Z(W,this.http.getApiKey()),this.ws&&"binaryType"in this.ws)this.ws.binaryType="arraybuffer";if(this.ws)this.attachWsHandlers(this.ws)}catch(W){this.pollLoop()}})()})}attachWsHandlers($){let Y=Date.now(),G=this.timeout?this.timeout*1000:void 0;$.onmessage=(Q)=>{try{let X=u7(Q.data);if(!X)return;let W=JSON.parse(X),Z=W.type;if(Z==="error"){this.emit("error",{status:"failed",data:[],error:W.error,id:this.jobId});return}if(Z==="catchup"){let M=W.data||{};this.emitDocuments(M.data||[]),this.emitSnapshot(M);return}if(Z==="document"){let M=W.data;if(M)this.emitDocuments([M]);return}if(Z==="done"){let M=W.data||W,K=M.data||[];if(K.length)this.emitDocuments(K);this.emit("done",{status:"completed",data:K,id:this.jobId,total:M.total,completed:M.completed,creditsUsed:M.creditsUsed}),this.close();return}let J=W.data||W;if(J&&J.status)this.emitSnapshot(J)}catch{}if(G&&Date.now()-Y>G)this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close()},$.onerror=()=>{this.emit("error",{status:"failed",data:[],error:"WebSocket error",id:this.jobId}),this.close()},$.onclose=()=>{if(!this.closed)this.pollLoop()}}documentKey($){if($&&typeof $==="object"){let Y=$.id??$.docId??$.url;if(typeof Y==="string"&&Y.length)return Y}try{return JSON.stringify($)}catch{return`${Date.now()}-${Math.random()}`}}emitDocuments($){for(let Y of $){if(!Y)continue;let G=this.documentKey(Y);if(this.emittedDocumentKeys.has(G))continue;this.emittedDocumentKeys.add(G),this.emit("document",{...Y,id:this.jobId})}}emitSnapshot($){let Y=$.status,G=$.data||[],Q=this.kind==="crawl"?{id:this.jobId,status:Y,completed:$.completed??0,total:$.total??0,creditsUsed:$.creditsUsed,expiresAt:$.expiresAt,next:$.next??null,data:G}:{id:this.jobId,status:Y,completed:$.completed??0,total:$.total??0,creditsUsed:$.creditsUsed,expiresAt:$.expiresAt,next:$.next??null,data:G};if(this.emit("snapshot",Q),["completed","failed","cancelled"].includes(Y))this.emit("done",{status:Y,data:G,id:this.jobId,total:$.total??0,completed:$.completed??0,creditsUsed:$.creditsUsed}),this.close()}async pollLoop(){let $=Date.now(),Y=this.timeout?this.timeout*1000:void 0;while(!this.closed){try{let G=this.kind==="crawl"?await m1(this.http,this.jobId):await h1(this.http,this.jobId);if(this.emitDocuments(G.data||[]),this.emit("snapshot",G),["completed","failed","cancelled"].includes(G.status)){this.emit("done",{status:G.status,data:G.data,id:this.jobId,total:G.total??0,completed:G.completed??0,creditsUsed:G.creditsUsed}),this.close();break}}catch{}if(Y&&Date.now()-$>Y){this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close();break}await new Promise((G)=>setTimeout(G,Math.max(1000,this.pollInterval*1000)))}}close(){if(this.closed=!0,this.ws&&this.ws.close)this.ws.close()}},l7=class extends EventTarget{dispatchTypedEvent($,Y){return super.dispatchEvent(Y)}},C=class extends Error{statusCode;details;constructor($,Y,G){super($);this.statusCode=Y,this.details=G}},i6=class extends l7{ws;data;status;id;constructor($,Y){super();this.id=$;let G=Y.apiUrl.replace(/^http/,"ws");this.ws=new WebSocket(`${G}/v1/crawl/${$}`,Y.apiKey),this.status="scraping",this.data=[];let Q=(X)=>{if(X.type==="done")this.status="completed",this.dispatchTypedEvent("done",new CustomEvent("done",{detail:{status:this.status,data:this.data,id:this.id}}));else if(X.type==="error")this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:X.error,id:this.id}}));else if(X.type==="catchup"){this.status=X.data.status,this.data.push(...X.data.data??[]);for(let W of this.data)this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{...W,id:this.id}}))}else if(X.type==="document")this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{...X.data,id:this.id}}))};this.ws.onmessage=((X)=>{if(typeof X.data!=="string"){this.ws.close();return}try{let W=JSON.parse(X.data);Q(W)}catch(W){console.error("Error on message",W)}}).bind(this),this.ws.onclose=((X)=>{try{let W=JSON.parse(X.reason);Q(W)}catch(W){console.error("Error on close",W)}}).bind(this),this.ws.onerror=((X)=>{this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:"WebSocket error",id:this.id}}))}).bind(this)}close(){this.ws.close()}},b1=class extends v1{_v1;_v1Opts;constructor($={}){let Y=typeof $==="string"?{apiKey:$}:$;super(Y);this._v1Opts={apiKey:Y.apiKey,apiUrl:Y.apiUrl}}get v1(){if(!this._v1)this._v1=new d7(this._v1Opts);return this._v1}};(function(){for(let Y of Object.getOwnPropertyNames(v1.prototype)){if(Y==="constructor")continue;if(Object.prototype.hasOwnProperty.call(b1.prototype,Y))continue;let G=Object.getOwnPropertyDescriptor(v1.prototype,Y);if(G)Object.defineProperty(b1.prototype,Y,G)}})();HX=b1});p7();export{HX as default,c7 as Watcher,H0 as SdkError,f1 as JobTimeoutError,v1 as FirecrawlClient,d7 as FirecrawlAppV1,b1 as Firecrawl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L6 as w,M6 as so,N6 as no,O6 as co,P6 as ce,Q6 as Rt,R6 as Rr,S6 as ao,T6 as _e,U6 as po,V6 as lo,W6 as ge,X6 as h,Y6 as vr,Z6 as Vt,_6 as Wt,a7 as Yt,b7 as Jt,c7 as Kt,d7 as Xt,e7 as Ct,f7 as ft,g7 as Ft,h7 as $t,i7 as uo,j7 as Oo}from"./cli-0.6.5-azwzatpd.mjs";import{k7 as Ye}from"./cli-0.6.5-zxppzj42.mjs";import{apa as Tt,bpa as Bt}from"./cli-0.6.5-6829jyhh.mjs";import{dpa as Lt}from"./cli-0.6.5-q67zwknt.mjs";import{fpa as xe}from"./cli-0.6.5-4k3kk3pr.mjs";import{npa as v}from"./cli-0.6.5-bm7v9qp0.mjs";var U=v((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.resolveHttpAuthSchemeConfig=re.defaultSSOOIDCHttpAuthSchemeProvider=re.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var Er=w(),j=vr(),Sr=async(e,r,i)=>{return{operation:(0,j.getSmithyContext)(r).operation,region:await(0,j.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};re.defaultSSOOIDCHttpAuthSchemeParametersProvider=Sr;function Ir(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,i)=>({signingProperties:{config:r,context:i}})}}function Pr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(Pr(e));break}default:r.push(Ir(e))}return r};re.defaultSSOOIDCHttpAuthSchemeProvider=xr;var Dr=(e)=>{let r=(0,Er.resolveAwsSdkSigV4Config)(e);return Object.assign(r,{authSchemePreference:(0,j.normalizeProvider)(e.authSchemePreference??[])})};re.resolveHttpAuthSchemeConfig=Dr});var le=v((ae)=>{Object.defineProperty(ae,"__esModule",{value:!0});ae.bdd=void 0;var yr=ce(),D="ref",S=-1,y=!0,oe="isSet",de="PartitionResult",N="booleanEquals",M="getAttr",ie={[D]:"Endpoint"},A={[D]:de},x={},se=[{[D]:"Region"}],ne={conditions:[[oe,[ie]],[oe,se],["aws.partition",se,de],[N,[{[D]:"UseFIPS"},y]],[N,[{[D]:"UseDualStack"},y]],[N,[{fn:M,argv:[A,"supportsDualStack"]},y]],[N,[{fn:M,argv:[A,"supportsFIPS"]},y]],["stringEquals",[{fn:M,argv:[A,"name"]},"aws-us-gov"]]],results:[[S],[S,"Invalid Configuration: FIPS and custom endpoint are not supported"],[S,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ie,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[S,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[S,"Invalid Configuration: Missing Region"]]},Nr=2,n=1e8,hr=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]);ae.bdd=yr.BinaryDecisionDiagram.from(hr,Nr,ne.conditions,ne.results)});var ve=v((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var fr=Rr(),G=ce(),Fr=le(),$r=new G.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),jr=(e,r={})=>{return $r.get(e,()=>(0,G.decideEndpoint)(Fr.bdd,{endpointParams:e,logger:r.logger}))};ue.defaultEndpointResolver=jr;G.customEndpointFunctions.aws=fr.awsEndpointFunctions});var R=v((z)=>{Object.defineProperty(z,"__esModule",{value:!0});z.SSOOIDCServiceException=z.__ServiceException=void 0;var Ee=h();Object.defineProperty(z,"__ServiceException",{enumerable:!0,get:function(){return Ee.ServiceException}});class m extends Ee.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,m.prototype)}}z.SSOOIDCServiceException=m});var Q=v((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.UnsupportedGrantTypeException=Ie.UnauthorizedClientException=Ie.SlowDownException=Ie.InvalidScopeException=Ie.InvalidRequestException=Ie.InvalidGrantException=Ie.InvalidClientException=Ie.InternalServerException=Ie.ExpiredTokenException=Ie.AuthorizationPendingException=Ie.AccessDeniedException=void 0;var a=R();class H extends a.SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.AccessDeniedException=H;class L extends a.SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.AuthorizationPendingException=L;class T extends a.SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.ExpiredTokenException=T;class B extends a.SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InternalServerException=B;class V extends a.SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidClientException=V;class W extends a.SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidGrantException=W;class Y extends a.SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.InvalidRequestException=Y;class J extends a.SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidScopeException=J;class K extends a.SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.SlowDownException=K;class X extends a.SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnauthorizedClientException=X;class C extends a.SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnsupportedGrantTypeException=C});var Z=v((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.CreateToken$=Re.CreateTokenResponse$=Re.CreateTokenRequest$=Re.errorTypeRegistries=Re.UnsupportedGrantTypeException$=Re.UnauthorizedClientException$=Re.SlowDownException$=Re.InvalidScopeException$=Re.InvalidRequestException$=Re.InvalidGrantException$=Re.InvalidClientException$=Re.InternalServerException$=Re.ExpiredTokenException$=Re.AuthorizationPendingException$=Re.AccessDeniedException$=Re.SSOOIDCServiceException$=void 0;var Br="AccessDeniedException",Vr="AuthorizationPendingException",Wr="AccessToken",Yr="ClientSecret",Jr="CreateToken",Kr="CreateTokenRequest",Xr="CreateTokenResponse",Cr="CodeVerifier",Qr="ExpiredTokenException",Zr="InvalidClientException",kr="InvalidGrantException",_r="InvalidRequestException",gr="InternalServerException",et="InvalidScopeException",rt="IdToken",tt="RefreshToken",ot="SlowDownException",it="UnauthorizedClientException",st="UnsupportedGrantTypeException",nt="accessToken",O="client",ct="clientId",dt="clientSecret",at="codeVerifier",pt="code",lt="deviceCode",t="error",ut="expiresIn",p="error_description",Ot="grantType",vt="http",l="httpError",Et="idToken",De="reason",be="refreshToken",St="redirectUri",qe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",It="scope",Pt="server",xt="tokenType",o="com.amazonaws.ssooidc",ye=xe(),u=Q(),Dt=R(),Ne=ye.TypeRegistry.for(qe);Re.SSOOIDCServiceException$=[-3,qe,"SSOOIDCServiceException",0,[],[]];Ne.registerError(Re.SSOOIDCServiceException$,Dt.SSOOIDCServiceException);var c=ye.TypeRegistry.for(o);Re.AccessDeniedException$=[-3,o,Br,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.AccessDeniedException$,u.AccessDeniedException);Re.AuthorizationPendingException$=[-3,o,Vr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.AuthorizationPendingException$,u.AuthorizationPendingException);Re.ExpiredTokenException$=[-3,o,Qr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.ExpiredTokenException$,u.ExpiredTokenException);Re.InternalServerException$=[-3,o,gr,{[t]:Pt,[l]:500},[t,p],[0,0]];c.registerError(Re.InternalServerException$,u.InternalServerException);Re.InvalidClientException$=[-3,o,Zr,{[t]:O,[l]:401},[t,p],[0,0]];c.registerError(Re.InvalidClientException$,u.InvalidClientException);Re.InvalidGrantException$=[-3,o,kr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidGrantException$,u.InvalidGrantException);Re.InvalidRequestException$=[-3,o,_r,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.InvalidRequestException$,u.InvalidRequestException);Re.InvalidScopeException$=[-3,o,et,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidScopeException$,u.InvalidScopeException);Re.SlowDownException$=[-3,o,ot,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.SlowDownException$,u.SlowDownException);Re.UnauthorizedClientException$=[-3,o,it,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnauthorizedClientException$,u.UnauthorizedClientException);Re.UnsupportedGrantTypeException$=[-3,o,st,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnsupportedGrantTypeException$,u.UnsupportedGrantTypeException);Re.errorTypeRegistries=[Ne,c];var bt=[0,o,Wr,8,0],qt=[0,o,Yr,8,0],yt=[0,o,Cr,8,0],Nt=[0,o,rt,8,0],he=[0,o,tt,8,0];Re.CreateTokenRequest$=[3,o,Kr,0,[ct,dt,Ot,lt,pt,be,It,St,at],[0,[()=>qt,0],0,0,0,[()=>he,0],64,0,[()=>yt,0]],3];Re.CreateTokenResponse$=[3,o,Xr,0,[nt,xt,ut,be,Et],[[()=>bt,0],0,1,[()=>he,0],[()=>Nt,0]]];Re.CreateToken$=[9,o,Jr,{[vt]:["POST","/token",200]},()=>Re.CreateTokenRequest$,()=>Re.CreateTokenResponse$]});var Xe=v((Je)=>{Object.defineProperty(Je,"__esModule",{value:!0});Je.getRuntimeConfig=void 0;var jt=w(),wt=Ft(),Ut=Ye(),Mt=h(),At=Rt(),Ve=$t(),We=ft(),Gt=U(),mt=ve(),zt=Z(),Ht=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ve.fromBase64,base64Encoder:e?.base64Encoder??Ve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??mt.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Gt.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new jt.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ut.NoAuthSigner}],logger:e?.logger??new Mt.NoOpLogger,protocol:e?.protocol??wt.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:zt.errorTypeRegistries,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??At.parseUrl,utf8Decoder:e?.utf8Decoder??We.fromUtf8,utf8Encoder:e?.utf8Encoder??We.toUtf8}};Je.getRuntimeConfig=Ht});var tr=v((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.getRuntimeConfig=void 0;var Qt=Vt(),Zt=Qt.__importDefault(Wt()),kt=Bt(),_t=w(),Ce=Yt(),f=_e(),gt=Jt(),Qe=ge(),I=Kt(),Ze=Lt(),ke=h(),eo=Xt(),ro=Ct(),to=Tt(),oo=Xe(),io=(e)=>{(0,ke.emitWarningIfUnsupportedVersion)(process.version);let r=(0,ro.resolveDefaultsModeConfig)(e),i=()=>r().then(ke.loadConfigsForDefaultMode),d=(0,oo.getRuntimeConfig)(e);(0,kt.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:r,authSchemePreference:e?.authSchemePreference??(0,I.loadConfig)(_t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??eo.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Ce.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Zt.default.version}),maxAttempts:e?.maxAttempts??(0,I.loadConfig)(Qe.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,I.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:Ze.NodeHttpHandler.create(e?.requestHandler??i),retryMode:e?.retryMode??(0,I.loadConfig)({...Qe.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||to.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??gt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ze.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,I.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,I.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,I.loadConfig)(Ce.NODE_APP_ID_CONFIG_OPTIONS,s)}};er.getRuntimeConfig=io});var zo=v((E)=>{var or=so(),vo=no(),Eo=co(),ir=ao(),So=_e(),k=Ye(),Io=xe(),Po=po(),ar=lo(),sr=ge(),P=h(),nr=U(),xo=tr(),cr=uo(),dr=Oo(),b=Z(),F=Q(),Do=R(),bo=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},qo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},yo=(e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:i,credentials:d}=e;return{setHttpAuthScheme(s){let q=r.findIndex(($)=>$.schemeId===s.schemeId);if(q===-1)r.push(s);else r.splice(q,1,s)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(s){i=s},httpAuthSchemeProvider(){return i},setCredentials(s){d=s},credentials(){return d}}},No=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ho=(e,r)=>{let i=Object.assign(cr.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),dr.getHttpHandlerExtensionConfiguration(e),yo(e));return r.forEach((d)=>d.configure(i)),Object.assign(e,cr.resolveAwsRegionExtensionConfiguration(i),P.resolveDefaultRuntimeConfig(i),dr.resolveHttpHandlerRuntimeConfig(i),No(i))};class _ extends P.Client{config;constructor(...[e]){let r=xo.getRuntimeConfig(e||{});super(r);this.initConfig=r;let i=bo(r),d=ir.resolveUserAgentConfig(i),s=sr.resolveRetryConfig(d),q=So.resolveRegionConfig(s),$=or.resolveHostHeaderConfig(q),pr=ar.resolveEndpointConfig($),lr=nr.resolveHttpAuthSchemeConfig(pr),ur=ho(lr,e?.extensions||[]);this.config=ur,this.middlewareStack.use(Io.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(ir.getUserAgentPlugin(this.config)),this.middlewareStack.use(sr.getRetryPlugin(this.config)),this.middlewareStack.use(Po.getContentLengthPlugin(this.config)),this.middlewareStack.use(or.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vo.getLoggerPlugin(this.config)),this.middlewareStack.use(Eo.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(k.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:nr.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Or)=>new k.DefaultIdentityProviderConfig({"aws.auth#sigv4":Or.credentials})})),this.middlewareStack.use(k.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends P.Command.classBuilder().ep(qo).m(function(e,r,i,d){return[ar.getEndpointPlugin(i,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(b.CreateToken$).build(){}var Ro={CreateTokenCommand:g};class ee extends _{}P.createAggregatedClient(Ro,ee);var fo={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Fo={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};E.$Command=P.Command;E.__Client=P.Client;E.SSOOIDCServiceException=Do.SSOOIDCServiceException;E.AccessDeniedExceptionReason=fo;E.CreateTokenCommand=g;E.InvalidRequestExceptionReason=Fo;E.SSOOIDC=ee;E.SSOOIDCClient=_;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=b[e]});Object.prototype.hasOwnProperty.call(F,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:F.__proto__});Object.keys(F).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=F[e]})});export default zo();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AD as f,BD as g,CD as h,DD as i,ED as j,FD as k,vD as a,wD as b,xD as c,yD as d,zD as e}from"./cli-0.6.5-5t6d3asz.mjs";import"./cli-0.6.5-vbw9z7ya.mjs";import"./cli-0.6.5-7vnp5x55.mjs";import"./cli-0.6.5-0356tc6y.mjs";import"./cli-0.6.5-e9t7harq.mjs";import"./cli-0.6.5-41tc50h9.mjs";import"./cli-0.6.5-c0nyamvd.mjs";import"./cli-0.6.5-987r1x1q.mjs";import"./cli-0.6.5-vjydf7v2.mjs";import"./cli-0.6.5-vj647gqr.mjs";import"./cli-0.6.5-pw1077hd.mjs";import"./cli-0.6.5-cwaewkgb.mjs";import"./cli-0.6.5-gw6ygdnq.mjs";import"./cli-0.6.5-kjntnfas.mjs";import"./cli-0.6.5-s1ahtmc1.mjs";import"./cli-0.6.5-qhq9tmd4.mjs";import"./cli-0.6.5-th48yhz2.mjs";import"./cli-0.6.5-c4v4vgw4.mjs";import"./cli-0.6.5-r2khv6re.mjs";import"./cli-0.6.5-6x91apzw.mjs";import"./cli-0.6.5-2dq7pa8p.mjs";import"./cli-0.6.5-f71ncwzk.mjs";import"./cli-0.6.5-y4kbaj8m.mjs";import"./cli-0.6.5-n64fe6ey.mjs";import"./cli-0.6.5-n4hnag3x.mjs";import"./cli-0.6.5-xbz59an6.mjs";import"./cli-0.6.5-6q2d7p49.mjs";import"./cli-0.6.5-wa6b2ksg.mjs";import"./cli-0.6.5-19mg5dfx.mjs";import"./cli-0.6.5-qx67z0cv.mjs";import"./cli-0.6.5-a8za8sjg.mjs";import"./cli-0.6.5-q1qpax7b.mjs";import"./cli-0.6.5-awhfeefv.mjs";import"./cli-0.6.5-8hsxq1p3.mjs";import"./cli-0.6.5-vqb4jtcr.mjs";import"./cli-0.6.5-s42kf4d5.mjs";import"./cli-0.6.5-k74repdw.mjs";import"./cli-0.6.5-95a4872h.mjs";import"./cli-0.6.5-5rpfanmw.mjs";import"./cli-0.6.5-c7yx03g7.mjs";import"./cli-0.6.5-1fqhk4mv.mjs";import"./cli-0.6.5-3ybp7ww7.mjs";import"./cli-0.6.5-6ev1k0qv.mjs";import"./cli-0.6.5-2s673b9m.mjs";import"./cli-0.6.5-87qz97g2.mjs";import"./cli-0.6.5-ef6b5qvc.mjs";import"./cli-0.6.5-pz5add8h.mjs";import"./cli-0.6.5-9cs6r2j7.mjs";import"./cli-0.6.5-ry2zfh45.mjs";import"./cli-0.6.5-kac7d6qe.mjs";import"./cli-0.6.5-kqhpzqdw.mjs";import"./cli-0.6.5-rkjw25m5.mjs";import"./cli-0.6.5-kzr5p1mv.mjs";import"./cli-0.6.5-6qvtcs5y.mjs";import"./cli-0.6.5-q4gh8d4w.mjs";import"./cli-0.6.5-kd1sw5qm.mjs";import"./cli-0.6.5-ce51qb6k.mjs";import"./cli-0.6.5-s580r0vs.mjs";import"./cli-0.6.5-ckc9hr8m.mjs";import"./cli-0.6.5-6ab8b50h.mjs";import"./cli-0.6.5-kxwg80ye.mjs";import"./cli-0.6.5-ynxewk0a.mjs";import"./cli-0.6.5-13g3042y.mjs";import"./cli-0.6.5-ev41fmky.mjs";import"./cli-0.6.5-bm7v9qp0.mjs";k();export{d as waitForPolicyLimitsToLoad,j as stopBackgroundPolling,i as startBackgroundPolling,g as refreshPolicyLimits,f as loadPolicyLimits,c as isPolicyLimitsEligible,e as isPolicyAllowed,b as initializePolicyLimitsLoadingPromise,h as clearPolicyLimitsCache,a as _resetPolicyLimitsForTesting};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aoa as a,Boa as b,Coa as c,Doa as d,Eoa as e,Foa as f,Goa as g,Hoa as h,Ioa as i,Joa as j,Koa as k,Loa as l,Moa as m,Noa as n,Ooa as o,Poa as p,Qoa as q,Roa as r,Soa as s}from"./cli-0.6.5-ynxewk0a.mjs";import"./cli-0.6.5-13g3042y.mjs";import"./cli-0.6.5-ev41fmky.mjs";import"./cli-0.6.5-bm7v9qp0.mjs";s();export{l as toFormData,k as spread,q as mergeConfig,e as isCancel,j as isAxiosError,p as getAdapter,o as formToJSON,a as default,r as create,h as all,g as VERSION,n as HttpStatusCode,d as CanceledError,f as CancelToken,i as Cancel,m as AxiosHeaders,c as AxiosError,b as Axios};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r6 as a}from"./cli-0.6.5-6ev1k0qv.mjs";import"./cli-0.6.5-bm7v9qp0.mjs";export default a();
|