@claudiolabs/claudin 0.6.2 → 0.6.4
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.4-rbaf1y65.mjs +1 -0
- package/dist/chunks/App-0.6.4-rq289jnp.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.4-7d5f28j9.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.4-phb69d3e.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.4-9bf4j0dx.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.4-62rbe590.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.4-5xv95y7k.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.4-7ng7n8ac.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.4-ydwpx8jz.mjs +3 -0
- package/dist/chunks/Doctor-0.6.4-r3nh0zs5.mjs +1 -0
- package/dist/chunks/Grove-0.6.4-8mwvr7ha.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.4-w345qte9.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.4-e1xk1r00.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.4-7pz7en7r.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.4-xgqr16p1.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.4-2735sbgf.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.4-q840wtmd.mjs +1 -0
- package/dist/chunks/REPL-0.6.4-k1gbkvvz.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.4-mpzvada2.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.4-jctmc6zk.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.4-gq0hnh6t.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.4-21sqsahr.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.4-fjbh45wb.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.4-5w2x0jdm.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.4-5qd1qqs9.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.4-rj702s6d.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.4-wdg63cg4.mjs +1 -0
- package/dist/chunks/add-dir-0.6.4-kchsbt43.mjs +1 -0
- package/dist/chunks/agents-0.6.4-99qwf49d.mjs +110 -0
- package/dist/chunks/agents-0.6.4-rdvzbjcr.mjs +3 -0
- package/dist/chunks/api-0.6.4-9emwrek2.mjs +1 -0
- package/dist/chunks/asciicast-0.6.4-v9b43g5d.mjs +1 -0
- package/dist/chunks/assistant-0.6.4-f4m6fp3b.mjs +1 -0
- package/dist/chunks/auth-0.6.4-767mww9n.mjs +1 -0
- package/dist/chunks/auth-0.6.4-sgz2927j.mjs +1 -0
- package/dist/chunks/autoMode-0.6.4-n865xxhg.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.4-bvb6j5ck.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.4-fercqr2y.mjs +1 -0
- package/dist/chunks/branch-0.6.4-0hvhjqr5.mjs +4 -0
- package/dist/chunks/bridgePointer-0.6.4-dgames2b.mjs +1 -0
- package/dist/chunks/btw-0.6.4-fprrp4ch.mjs +1 -0
- package/dist/chunks/buddy-0.6.4-0d1rrwbv.mjs +3 -0
- package/dist/chunks/cacache-0.6.4-6yj2mrct.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.4-x5tn2a2e.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.4-ar55ww2f.mjs +4 -0
- package/dist/chunks/caches-0.6.4-54fb2qc2.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.4-h06j868n.mjs +1 -0
- package/dist/chunks/claudemd-0.6.4-35r4255p.mjs +1 -0
- package/dist/chunks/clear-0.6.4-6chw4mjb.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.4-81zcpvka.mjs +1 -0
- package/dist/chunks/cli-0.6.4-00191v0e.mjs +10 -0
- package/dist/chunks/cli-0.6.4-02v7f4p3.mjs +2 -0
- package/dist/chunks/cli-0.6.4-0gnhakty.mjs +42 -0
- package/dist/chunks/cli-0.6.4-0m6t3msa.mjs +2 -0
- package/dist/chunks/cli-0.6.4-0ngrseg8.mjs +15 -0
- package/dist/chunks/cli-0.6.4-167h8t8x.mjs +2 -0
- package/dist/chunks/cli-0.6.4-1ery4vpn.mjs +50 -0
- package/dist/chunks/cli-0.6.4-1k1e5y32.mjs +2 -0
- package/dist/chunks/cli-0.6.4-1mgm8ymv.mjs +3 -0
- package/dist/chunks/cli-0.6.4-1nzpzrfm.mjs +2 -0
- package/dist/chunks/cli-0.6.4-1qryxm4s.mjs +21 -0
- package/dist/chunks/cli-0.6.4-1s60014f.mjs +2 -0
- package/dist/chunks/cli-0.6.4-28pnb4ka.mjs +18 -0
- package/dist/chunks/cli-0.6.4-29860mke.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2d65trmc.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2dm4scsb.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2dwdm1v9.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2fqxn556.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2mytx51g.mjs +16 -0
- package/dist/chunks/cli-0.6.4-2q70rra3.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2qaa0gp3.mjs +2 -0
- package/dist/chunks/cli-0.6.4-2sh53v7p.mjs +7 -0
- package/dist/chunks/cli-0.6.4-2y7ay1jf.mjs +2 -0
- package/dist/chunks/cli-0.6.4-3d8syj43.mjs +15 -0
- package/dist/chunks/cli-0.6.4-3rqg480e.mjs +2 -0
- package/dist/chunks/cli-0.6.4-43y102gt.mjs +2 -0
- package/dist/chunks/cli-0.6.4-48fcth51.mjs +2 -0
- package/dist/chunks/cli-0.6.4-4b3h6h1j.mjs +2 -0
- package/dist/chunks/cli-0.6.4-4dtvmfyr.mjs +24 -0
- package/dist/chunks/cli-0.6.4-4g9qybcx.mjs +5324 -0
- package/dist/chunks/cli-0.6.4-4jc68p21.mjs +2 -0
- package/dist/chunks/cli-0.6.4-4mfc5kte.mjs +2 -0
- package/dist/chunks/cli-0.6.4-4qg60938.mjs +5 -0
- package/dist/chunks/cli-0.6.4-4qyz0e3r.mjs +2 -0
- package/dist/chunks/cli-0.6.4-55a83gct.mjs +2 -0
- package/dist/chunks/cli-0.6.4-5eshcq2g.mjs +2 -0
- package/dist/chunks/cli-0.6.4-5j8b83wg.mjs +2 -0
- package/dist/chunks/cli-0.6.4-6czv84g6.mjs +2 -0
- package/dist/chunks/cli-0.6.4-771h1906.mjs +2 -0
- package/dist/chunks/cli-0.6.4-78evvtpq.mjs +2 -0
- package/dist/chunks/cli-0.6.4-7djzrbzn.mjs +4 -0
- package/dist/chunks/cli-0.6.4-7htjg50k.mjs +2 -0
- package/dist/chunks/cli-0.6.4-7jvtehkv.mjs +2 -0
- package/dist/chunks/cli-0.6.4-7keg9eew.mjs +45 -0
- package/dist/chunks/cli-0.6.4-7xp2yhpq.mjs +2 -0
- package/dist/chunks/cli-0.6.4-89pes3g1.mjs +2 -0
- package/dist/chunks/cli-0.6.4-8jwbt311.mjs +4 -0
- package/dist/chunks/cli-0.6.4-95vk17cy.mjs +2 -0
- package/dist/chunks/cli-0.6.4-96m5w0az.mjs +2 -0
- package/dist/chunks/cli-0.6.4-9ab34q29.mjs +2 -0
- package/dist/chunks/cli-0.6.4-9j2480tb.mjs +3 -0
- package/dist/chunks/cli-0.6.4-9k5r0pfb.mjs +1 -0
- package/dist/chunks/cli-0.6.4-9wdpd5tf.mjs +2 -0
- package/dist/chunks/cli-0.6.4-9ydhssth.mjs +2 -0
- package/dist/chunks/cli-0.6.4-9z6f4aka.mjs +2 -0
- package/dist/chunks/cli-0.6.4-a1der2pe.mjs +2 -0
- package/dist/chunks/cli-0.6.4-a4wjm2rf.mjs +58 -0
- package/dist/chunks/cli-0.6.4-a7tb1zsc.mjs +3 -0
- package/dist/chunks/cli-0.6.4-aprgpdp6.mjs +2 -0
- package/dist/chunks/cli-0.6.4-bbsbw8kz.mjs +2 -0
- package/dist/chunks/cli-0.6.4-bgwzkgj9.mjs +2 -0
- package/dist/chunks/cli-0.6.4-btcax77x.mjs +2 -0
- package/dist/chunks/cli-0.6.4-bvrcy0gs.mjs +2 -0
- package/dist/chunks/cli-0.6.4-cgktpczq.mjs +2 -0
- package/dist/chunks/cli-0.6.4-cp53mw1m.mjs +2 -0
- package/dist/chunks/cli-0.6.4-cttwajrp.mjs +2 -0
- package/dist/chunks/cli-0.6.4-cxhs267r.mjs +2 -0
- package/dist/chunks/cli-0.6.4-cy7jqdcj.mjs +2 -0
- package/dist/chunks/cli-0.6.4-da88vvgh.mjs +2 -0
- package/dist/chunks/cli-0.6.4-dhyghbjg.mjs +2 -0
- package/dist/chunks/cli-0.6.4-dny0rntq.mjs +2 -0
- package/dist/chunks/cli-0.6.4-dtrjgbbz.mjs +2 -0
- package/dist/chunks/cli-0.6.4-dvh5yb9z.mjs +2 -0
- package/dist/chunks/cli-0.6.4-dz01y28k.mjs +133 -0
- package/dist/chunks/cli-0.6.4-dzer59m8.mjs +2 -0
- package/dist/chunks/cli-0.6.4-e0pqs0qg.mjs +4 -0
- package/dist/chunks/cli-0.6.4-e4nxzjbd.mjs +3 -0
- package/dist/chunks/cli-0.6.4-ehexec8h.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ejrq8g7w.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ekg42ba5.mjs +2 -0
- package/dist/chunks/cli-0.6.4-em2mfvpg.mjs +193 -0
- package/dist/chunks/cli-0.6.4-ex2d76ze.mjs +4 -0
- package/dist/chunks/cli-0.6.4-eykta4ak.mjs +2 -0
- package/dist/chunks/cli-0.6.4-f1ya630v.mjs +39 -0
- package/dist/chunks/cli-0.6.4-f51bqfv1.mjs +4 -0
- package/dist/chunks/cli-0.6.4-fg71wev8.mjs +2 -0
- package/dist/chunks/cli-0.6.4-fh1fzqd2.mjs +133 -0
- package/dist/chunks/cli-0.6.4-fhcsv0k7.mjs +2 -0
- package/dist/chunks/cli-0.6.4-fppw8yjy.mjs +2 -0
- package/dist/chunks/cli-0.6.4-g1kweb8j.mjs +17 -0
- package/dist/chunks/cli-0.6.4-g1qw18ad.mjs +2 -0
- package/dist/chunks/cli-0.6.4-g2a0w8wh.mjs +3 -0
- package/dist/chunks/cli-0.6.4-g37ywszt.mjs +2 -0
- package/dist/chunks/cli-0.6.4-gbc9szsq.mjs +20 -0
- package/dist/chunks/cli-0.6.4-gdvys9qy.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ge6qg76s.mjs +18 -0
- package/dist/chunks/cli-0.6.4-ggxbtbd1.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ghagvvva.mjs +2 -0
- package/dist/chunks/cli-0.6.4-gyb3cp0m.mjs +15 -0
- package/dist/chunks/cli-0.6.4-h2c5gxa3.mjs +2 -0
- package/dist/chunks/cli-0.6.4-h598qtx2.mjs +2 -0
- package/dist/chunks/cli-0.6.4-h9ncym59.mjs +2 -0
- package/dist/chunks/cli-0.6.4-hb3rny4x.mjs +3 -0
- package/dist/chunks/cli-0.6.4-hhaw00mw.mjs +2 -0
- package/dist/chunks/cli-0.6.4-hk0wy6ay.mjs +2 -0
- package/dist/chunks/cli-0.6.4-hrs590q0.mjs +2 -0
- package/dist/chunks/cli-0.6.4-hx250zvn.mjs +2 -0
- package/dist/chunks/cli-0.6.4-j61ta5y1.mjs +2 -0
- package/dist/chunks/cli-0.6.4-j7hr5rd4.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jc2r75s6.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jg4xm27s.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jh0d8t91.mjs +9 -0
- package/dist/chunks/cli-0.6.4-jk0aqvhn.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jmvxa7qj.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jn11nc5a.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jra8pavs.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jrweqe5y.mjs +2 -0
- package/dist/chunks/cli-0.6.4-jvfz5yaf.mjs +2 -0
- package/dist/chunks/cli-0.6.4-k2azfhje.mjs +12 -0
- package/dist/chunks/cli-0.6.4-k498jsqp.mjs +9 -0
- package/dist/chunks/cli-0.6.4-k6a4gc0p.mjs +3 -0
- package/dist/chunks/cli-0.6.4-k76c1cdx.mjs +2 -0
- package/dist/chunks/cli-0.6.4-kkwh828j.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ksf3bj49.mjs +2 -0
- package/dist/chunks/cli-0.6.4-kygb95p8.mjs +2 -0
- package/dist/chunks/cli-0.6.4-m0b0hm20.mjs +2 -0
- package/dist/chunks/cli-0.6.4-n3wmzz8w.mjs +2 -0
- package/dist/chunks/cli-0.6.4-n9mgjg26.mjs +2 -0
- package/dist/chunks/cli-0.6.4-nscxc6w9.mjs +2 -0
- package/dist/chunks/cli-0.6.4-p1yyrrqa.mjs +2 -0
- package/dist/chunks/cli-0.6.4-p56yx5pd.mjs +3 -0
- package/dist/chunks/cli-0.6.4-p7mvm2y6.mjs +5 -0
- package/dist/chunks/cli-0.6.4-pd75v1wy.mjs +6 -0
- package/dist/chunks/cli-0.6.4-pg577m2t.mjs +18 -0
- package/dist/chunks/cli-0.6.4-pjk8hxs1.mjs +4 -0
- package/dist/chunks/cli-0.6.4-pp4r33sa.mjs +4 -0
- package/dist/chunks/cli-0.6.4-pqdfmet2.mjs +4 -0
- package/dist/chunks/cli-0.6.4-prdj94yp.mjs +4 -0
- package/dist/chunks/cli-0.6.4-prv34fmj.mjs +2 -0
- package/dist/chunks/cli-0.6.4-q45r4rnd.mjs +2 -0
- package/dist/chunks/cli-0.6.4-qcpjz3yn.mjs +2 -0
- package/dist/chunks/cli-0.6.4-qxhfaxsk.mjs +2 -0
- package/dist/chunks/cli-0.6.4-rdtbn65d.mjs +2 -0
- package/dist/chunks/cli-0.6.4-rf4gtxa6.mjs +2 -0
- package/dist/chunks/cli-0.6.4-rqmfmwew.mjs +4 -0
- package/dist/chunks/cli-0.6.4-rw4dqk3e.mjs +2 -0
- package/dist/chunks/cli-0.6.4-s062axqp.mjs +67 -0
- package/dist/chunks/cli-0.6.4-sebyspe3.mjs +2 -0
- package/dist/chunks/cli-0.6.4-sg59x1y7.mjs +2 -0
- package/dist/chunks/cli-0.6.4-sk4r23n0.mjs +2 -0
- package/dist/chunks/cli-0.6.4-spysehd5.mjs +2 -0
- package/dist/chunks/cli-0.6.4-sz5jkrwv.mjs +8 -0
- package/dist/chunks/cli-0.6.4-t13eh9gb.mjs +2 -0
- package/dist/chunks/cli-0.6.4-t87tgqs2.mjs +2 -0
- package/dist/chunks/cli-0.6.4-tda6fzwk.mjs +2 -0
- package/dist/chunks/cli-0.6.4-tgtxrvzn.mjs +3 -0
- package/dist/chunks/cli-0.6.4-ttyv846t.mjs +2 -0
- package/dist/chunks/cli-0.6.4-v050kzdd.mjs +2 -0
- package/dist/chunks/cli-0.6.4-v2fsc12w.mjs +2 -0
- package/dist/chunks/cli-0.6.4-v3ym5bjk.mjs +2 -0
- package/dist/chunks/cli-0.6.4-vawbj80d.mjs +5 -0
- package/dist/chunks/cli-0.6.4-vekd5qeh.mjs +3 -0
- package/dist/chunks/cli-0.6.4-vg82smm8.mjs +24 -0
- package/dist/chunks/cli-0.6.4-vyqg6c95.mjs +3 -0
- package/dist/chunks/cli-0.6.4-vyyncn9y.mjs +34 -0
- package/dist/chunks/cli-0.6.4-wpzc8xj5.mjs +3 -0
- package/dist/chunks/cli-0.6.4-x0pe866a.mjs +2 -0
- package/dist/chunks/cli-0.6.4-x3pc9zn1.mjs +6 -0
- package/dist/chunks/cli-0.6.4-x6d6qxpg.mjs +2 -0
- package/dist/chunks/cli-0.6.4-x6npewbm.mjs +6 -0
- package/dist/chunks/cli-0.6.4-x7ss8dse.mjs +2 -0
- package/dist/chunks/cli-0.6.4-x84dfqja.mjs +2 -0
- package/dist/chunks/cli-0.6.4-xf6vdp7p.mjs +2 -0
- package/dist/chunks/cli-0.6.4-xgmmcr56.mjs +25 -0
- package/dist/chunks/cli-0.6.4-xh0mhy0q.mjs +2 -0
- package/dist/chunks/cli-0.6.4-xj949nnt.mjs +2 -0
- package/dist/chunks/cli-0.6.4-xm44y40c.mjs +2 -0
- package/dist/chunks/cli-0.6.4-y9nrcnx6.mjs +2 -0
- package/dist/chunks/cli-0.6.4-yak49q2f.mjs +12 -0
- package/dist/chunks/cli-0.6.4-ymgdd6a7.mjs +2 -0
- package/dist/chunks/cli-0.6.4-yrfkm9my.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ysvx8vre.mjs +12 -0
- package/dist/chunks/cli-0.6.4-yxqfeka0.mjs +2 -0
- package/dist/chunks/cli-0.6.4-z0j0rsqe.mjs +2 -0
- package/dist/chunks/cli-0.6.4-z3hp0qzv.mjs +59 -0
- package/dist/chunks/cli-0.6.4-z63xq66c.mjs +2 -0
- package/dist/chunks/cli-0.6.4-zgzya3hb.mjs +17 -0
- package/dist/chunks/cli-0.6.4-zkfpt86n.mjs +2 -0
- package/dist/chunks/cli-0.6.4-zss3bwjp.mjs +2 -0
- package/dist/chunks/cli-0.6.4-ztqssjbf.mjs +2 -0
- package/dist/chunks/client-0.6.4-ba2mtgjd.mjs +1 -0
- package/dist/chunks/color-0.6.4-2g7drx0s.mjs +1 -0
- package/dist/chunks/compact-0.6.4-tnqd9mmn.mjs +3 -0
- package/dist/chunks/config-0.6.4-3bhr23pq.mjs +1 -0
- package/dist/chunks/config-0.6.4-x56wgtde.mjs +1 -0
- package/dist/chunks/constants-0.6.4-cy9scgrh.mjs +1 -0
- package/dist/chunks/context-0.6.4-sjcg7yxa.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.4-630bqrtn.mjs +1 -0
- package/dist/chunks/conversation-0.6.4-4wkb13gm.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.4-6ygmq0rm.mjs +1 -0
- package/dist/chunks/copy-0.6.4-bgxrhckq.mjs +9 -0
- package/dist/chunks/cost-0.6.4-w83wc8ng.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.4-xcjsx731.mjs +1 -0
- package/dist/chunks/createSession-0.6.4-wsz3r56j.mjs +1 -0
- package/dist/chunks/debug-0.6.4-98yk6kds.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.4-gnr6f4bm.mjs +1365 -0
- package/dist/chunks/desktop-0.6.4-hpbrkj08.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.4-jtg1wvsa.mjs +1 -0
- package/dist/chunks/detection-0.6.4-dqwz1bq1.mjs +1 -0
- package/dist/chunks/diff-0.6.4-6mtph9me.mjs +1 -0
- package/dist/chunks/doctor-0.6.4-rhc37adv.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.4-dwt35xp9.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.4-gwc98r30.mjs +1 -0
- package/dist/chunks/effort-0.6.4-gat4neps.mjs +10 -0
- package/dist/chunks/envUtils-0.6.4-y2b3abdc.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.4-xxrzk7m6.mjs +1 -0
- package/dist/chunks/environments-0.6.4-h1v61wzy.mjs +1 -0
- package/dist/chunks/errors-0.6.4-ca74wb6q.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.4-g36htc09.mjs +1 -0
- package/dist/chunks/exit-0.6.4-z7yj01cx.mjs +1 -0
- package/dist/chunks/export-0.6.4-ffzrse4n.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.4-d23skk9c.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.4-0akfkh19.mjs +1 -0
- package/dist/chunks/fast-0.6.4-dy9ew4g1.mjs +1 -0
- package/dist/chunks/feedback-0.6.4-5pw5kr6j.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.4-58n8gvjr.mjs +1 -0
- package/dist/chunks/git-0.6.4-5p9es5sh.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.4-c75tjtm6.mjs +1 -0
- package/dist/chunks/goal-0.6.4-05yfbtf5.mjs +4 -0
- package/dist/chunks/grove-0.6.4-3mxw3jbp.mjs +1 -0
- package/dist/chunks/growthbook-0.6.4-w1a2ja8q.mjs +1 -0
- package/dist/chunks/headless-0.6.4-1b8pxyk6.mjs +2 -0
- package/dist/chunks/heapdump-0.6.4-ckft18df.mjs +6 -0
- package/dist/chunks/help-0.6.4-1qswzq2t.mjs +1 -0
- package/dist/chunks/hookChains-0.6.4-mc6w2yn4.mjs +3 -0
- package/dist/chunks/hooks-0.6.4-zqycdaww.mjs +1 -0
- package/dist/chunks/hooks-0.6.4-zw8ak2ae.mjs +79 -0
- package/dist/chunks/ide-0.6.4-kjaythhf.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.4-9n32xq4y.mjs +1 -0
- package/dist/chunks/index-0.6.4-1eqjmyfc.mjs +1 -0
- package/dist/chunks/index-0.6.4-5x2zgy8s.mjs +1 -0
- package/dist/chunks/index-0.6.4-6er8ykqb.mjs +1 -0
- package/dist/chunks/index-0.6.4-6z8pdxeg.mjs +1 -0
- package/dist/chunks/index-0.6.4-8gxkz67a.mjs +1 -0
- package/dist/chunks/index-0.6.4-ay6td6v7.mjs +1 -0
- package/dist/chunks/index-0.6.4-bf4fb2rv.mjs +1 -0
- package/dist/chunks/index-0.6.4-cs4qnyse.mjs +9 -0
- package/dist/chunks/index-0.6.4-d8a7z3cd.mjs +1 -0
- package/dist/chunks/index-0.6.4-e1xb3q84.mjs +1 -0
- package/dist/chunks/index-0.6.4-fapqkd13.mjs +30 -0
- package/dist/chunks/index-0.6.4-fsypm1g5.mjs +1 -0
- package/dist/chunks/index-0.6.4-j1dpgmwz.mjs +5 -0
- package/dist/chunks/index-0.6.4-k5z3btpk.mjs +1 -0
- package/dist/chunks/index-0.6.4-kv8v270h.mjs +1 -0
- package/dist/chunks/index-0.6.4-nn5ynnfb.mjs +2 -0
- package/dist/chunks/index-0.6.4-np003dn4.mjs +2 -0
- package/dist/chunks/index-0.6.4-qtcndy07.mjs +1 -0
- package/dist/chunks/index-0.6.4-s0gg7sga.mjs +1 -0
- package/dist/chunks/index-0.6.4-scbwf11t.mjs +9 -0
- package/dist/chunks/index-0.6.4-sqrhv68x.mjs +17 -0
- package/dist/chunks/index-0.6.4-w93mdh3w.mjs +1 -0
- package/dist/chunks/init-0.6.4-ccs2p8cg.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.4-7cnffgw6.mjs +1 -0
- package/dist/chunks/ink-0.6.4-kv9v236j.mjs +1 -0
- package/dist/chunks/insights-0.6.4-v475bskf.mjs +870 -0
- package/dist/chunks/install-0.6.4-9x6x6d7w.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.4-e0hnh1ac.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.4-5m1bq4zr.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.4-j0dm5kvt.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.4-trjfh09v.mjs +1 -0
- package/dist/chunks/keybindings-0.6.4-52xyg2q7.mjs +2 -0
- package/dist/chunks/knowledge-0.6.4-3pd8yspr.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.4-6nv1r43c.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.4-2f1egc65.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.4-6bdefjx0.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.4-jg6hn8q1.mjs +1 -0
- package/dist/chunks/log-0.6.4-byx1v0aw.mjs +1 -0
- package/dist/chunks/main-0.6.4-7kgs4wzg.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.4-seg7a473.mjs +1 -0
- package/dist/chunks/mcp-0.6.4-fme3jax5.mjs +17 -0
- package/dist/chunks/mcp-0.6.4-gw2k9j0s.mjs +4 -0
- package/dist/chunks/mcp-0.6.4-hz4ymzf8.mjs +1 -0
- package/dist/chunks/mcpb-0.6.4-rm87xg1m.mjs +1 -0
- package/dist/chunks/memory-0.6.4-hdem4rfy.mjs +3 -0
- package/dist/chunks/mobile-0.6.4-xga427dx.mjs +2 -0
- package/dist/chunks/model-0.6.4-e7swq7hs.mjs +1 -0
- package/dist/chunks/model-0.6.4-raaz0pn8.mjs +2 -0
- package/dist/chunks/node-0.6.4-2mhf46p7.mjs +12 -0
- package/dist/chunks/oauth-0.6.4-de05kmr6.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.4-shaa1wsv.mjs +14 -0
- package/dist/chunks/output-style-0.6.4-gfd6r8hz.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.6.4-syh17p64.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.4-k2eex22j.mjs +1 -0
- package/dist/chunks/parser-0.6.4-43t4x7r9.mjs +1 -0
- package/dist/chunks/passes-0.6.4-tbj019p0.mjs +1 -0
- package/dist/chunks/permissions-0.6.4-d0fw76d7.mjs +3 -0
- package/dist/chunks/plan-0.6.4-084fq0kq.mjs +1 -0
- package/dist/chunks/plist-0.6.4-439zn1sw.mjs +1 -0
- package/dist/chunks/plugin-0.6.4-mnsbmvwr.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.4-t2kn51a4.mjs +1 -0
- package/dist/chunks/plugins-0.6.4-630t2jf7.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.4-gfadf2sk.mjs +2 -0
- package/dist/chunks/print-0.6.4-pw4vrnzd.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.4-b97bep23.mjs +1 -0
- package/dist/chunks/process-0.6.4-yewqx1g2.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.4-64reh5jq.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.4-46w7k3kw.mjs +9 -0
- package/dist/chunks/prompt-0.6.4-1dfbspxp.mjs +1 -0
- package/dist/chunks/prompt-0.6.4-ax8j0qse.mjs +1 -0
- package/dist/chunks/prompts-0.6.4-avjtc7j4.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.4-z0382sns.mjs +13 -0
- package/dist/chunks/provider-0.6.4-dww4c5j2.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.4-phwwz4cg.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.4-zctdw7r7.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.4-sydaxbv7.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.4-ejhhvkd5.mjs +34 -0
- package/dist/chunks/registry-0.6.4-kb0x4rx3.mjs +1 -0
- package/dist/chunks/release-notes-0.6.4-es6sgycw.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.4-z5560vpf.mjs +2 -0
- package/dist/chunks/remote-env-0.6.4-6ypd7mgt.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.4-r2nre1by.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.4-jhazvxam.mjs +1 -0
- package/dist/chunks/rename-0.6.4-wnm225zc.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.4-90waxyt2.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.4-fqvqymes.mjs +1 -0
- package/dist/chunks/resume-0.6.4-2edgjvxb.mjs +2 -0
- package/dist/chunks/rewind-0.6.4-43tzjabn.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.4-efwh7nb7.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.4-7ccq9g0r.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.4-ca6p1txa.mjs +1 -0
- package/dist/chunks/session-0.6.4-xqz0b6bv.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.4-zhn2re2r.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.4-0s8vv82b.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.4-k27431kx.mjs +1 -0
- package/dist/chunks/settings-0.6.4-xg6qae4k.mjs +1 -0
- package/dist/chunks/setup-0.6.4-zc0wstra.mjs +5 -0
- package/dist/chunks/sinks-0.6.4-3rycgm4d.mjs +1 -0
- package/dist/chunks/skills-0.6.4-jwf0fht6.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.4-6c1wp85a.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.4-xqbvq5b5.mjs +1 -0
- package/dist/chunks/state-0.6.4-p0ddysh2.mjs +1 -0
- package/dist/chunks/stats-0.6.4-hys6q4f4.mjs +6 -0
- package/dist/chunks/status-0.6.4-5f8q60ey.mjs +1 -0
- package/dist/chunks/stickers-0.6.4-tftjq5eh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.4-gz5jdaaq.mjs +1 -0
- package/dist/chunks/tasks-0.6.4-s9qwaetv.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.4-h72qp38f.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.4-ezcvghhw.mjs +1 -0
- package/dist/chunks/teleport-0.6.4-e668czw7.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.4-53azbkac.mjs +1 -0
- package/dist/chunks/theme-0.6.4-zhw8bpdv.mjs +1 -0
- package/dist/chunks/thinkback-0.6.4-cpckywc7.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.4-ke47vrva.mjs +1 -0
- package/dist/chunks/toolPool-0.6.4-whn705s5.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.4-80h4rrgj.mjs +1 -0
- package/dist/chunks/tools-0.6.4-4kf64373.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.4-zbvda07m.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.4-ghgzppms.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.6.4-r028gcax.mjs +4 -0
- package/dist/chunks/update-0.6.4-a233wpzj.mjs +86 -0
- package/dist/chunks/upgrade-0.6.4-mx4jnstf.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.6.4-4cmr0qtj.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.4-vt0a3wdc.mjs +1 -0
- package/dist/chunks/usage-0.6.4-8kncs1zq.mjs +1 -0
- package/dist/chunks/util-0.6.4-afjsm52j.mjs +1 -0
- package/dist/chunks/utils-0.6.4-r5qbctxg.mjs +1 -0
- package/dist/chunks/vim-0.6.4-qb1hpv1s.mjs +1 -0
- package/dist/chunks/watcher-0.6.4-w81paz2g.mjs +1 -0
- package/dist/chunks/wiki-0.6.4-3wc3s65f.mjs +132 -0
- package/dist/chunks/worktree-0.6.4-hy75224j.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.4-7wyg7p08.mjs +1 -0
- package/dist/chunks/wrapper-0.6.4-vqj09efm.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.2-he5a0dam.mjs +0 -1
- package/dist/chunks/App-0.6.2-81hq55t1.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +0 -3
- package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +0 -1
- package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +0 -1
- package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +0 -1
- package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +0 -1
- package/dist/chunks/agents-0.6.2-pwkawpda.mjs +0 -110
- package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +0 -3
- package/dist/chunks/api-0.6.2-r9z30232.mjs +0 -1
- package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +0 -1
- package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +0 -1
- package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +0 -1
- package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +0 -1
- package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +0 -1
- package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +0 -4
- package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +0 -1
- package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +0 -1
- package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +0 -3
- package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +0 -4
- package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +0 -1
- package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +0 -1
- package/dist/chunks/clear-0.6.2-301n503a.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +0 -1
- package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +0 -42
- package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +0 -4
- package/dist/chunks/cli-0.6.2-0p39svq8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1ahapm20.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1b9hx344.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1hrabb68.mjs +0 -3
- package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +0 -9
- package/dist/chunks/cli-0.6.2-1y907j57.mjs +0 -2
- package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-26qywcgz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +0 -3
- package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2z19ppek.mjs +0 -15
- package/dist/chunks/cli-0.6.2-334vw6ys.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3rgtxc9f.mjs +0 -2
- package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-42d88f3r.mjs +0 -2
- package/dist/chunks/cli-0.6.2-43f0sknv.mjs +0 -2
- package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4a5t390f.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +0 -15
- package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +0 -39
- package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +0 -5323
- package/dist/chunks/cli-0.6.2-4py7r63v.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +0 -59
- package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-5jempndm.mjs +0 -133
- package/dist/chunks/cli-0.6.2-657fbmws.mjs +0 -2
- package/dist/chunks/cli-0.6.2-6bacgc39.mjs +0 -3
- package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +0 -5
- package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +0 -2
- package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +0 -3
- package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +0 -3
- package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +0 -4
- package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-7egesyh9.mjs +0 -4
- package/dist/chunks/cli-0.6.2-7rmm482v.mjs +0 -12
- package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +0 -25
- package/dist/chunks/cli-0.6.2-83ennmm8.mjs +0 -21
- package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +0 -2
- package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +0 -5
- package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +0 -10
- package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-974c5e67.mjs +0 -9
- package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9mwrq250.mjs +0 -3
- package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9qtj477e.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +0 -4
- package/dist/chunks/cli-0.6.2-a8atyp18.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-aq30pg47.mjs +0 -2
- package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +0 -6
- package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +0 -2
- package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-bkff60ff.mjs +0 -2
- package/dist/chunks/cli-0.6.2-br678d1b.mjs +0 -8
- package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +0 -4
- package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +0 -2
- package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-d3evezft.mjs +0 -1
- package/dist/chunks/cli-0.6.2-d3y2w089.mjs +0 -2
- package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +0 -12
- package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +0 -2
- package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dv8abe56.mjs +0 -7
- package/dist/chunks/cli-0.6.2-dx6qfese.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dy4zwces.mjs +0 -2
- package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +0 -2
- package/dist/chunks/cli-0.6.2-e26khw0m.mjs +0 -6
- package/dist/chunks/cli-0.6.2-e66qz53g.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +0 -16
- package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +0 -45
- package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +0 -5
- package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +0 -6
- package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +0 -2
- package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +0 -2
- package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-grf75vb7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +0 -2
- package/dist/chunks/cli-0.6.2-h72p44ws.mjs +0 -24
- package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +0 -193
- package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hqmcear6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +0 -34
- package/dist/chunks/cli-0.6.2-j05kmd43.mjs +0 -2
- package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jrb4f391.mjs +0 -15
- package/dist/chunks/cli-0.6.2-jrpted0b.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +0 -2
- package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-k9v931hm.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +0 -4
- package/dist/chunks/cli-0.6.2-ky1drj50.mjs +0 -2
- package/dist/chunks/cli-0.6.2-mabejxsw.mjs +0 -4
- package/dist/chunks/cli-0.6.2-majp93c4.mjs +0 -2
- package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +0 -3
- package/dist/chunks/cli-0.6.2-n9610c8k.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-nwzye174.mjs +0 -2
- package/dist/chunks/cli-0.6.2-p0jszyht.mjs +0 -3
- package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +0 -58
- package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-q45wdma3.mjs +0 -3
- package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-r4p904h3.mjs +0 -67
- package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rde30n8x.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +0 -2
- package/dist/chunks/cli-0.6.2-red287ya.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +0 -17
- package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +0 -24
- package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +0 -133
- package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t038jmme.mjs +0 -3
- package/dist/chunks/cli-0.6.2-t3e59m32.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +0 -50
- package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +0 -20
- package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +0 -18
- package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +0 -3
- package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +0 -12
- package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +0 -2
- package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +0 -18
- package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +0 -2
- package/dist/chunks/cli-0.6.2-yep449sd.mjs +0 -17
- package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +0 -4
- package/dist/chunks/cli-0.6.2-yysvdabq.mjs +0 -2
- package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +0 -4
- package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +0 -3
- package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +0 -4
- package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +0 -2
- package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +0 -18
- package/dist/chunks/cli-0.6.2-zaahyems.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zftyh47j.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zs4qp487.mjs +0 -2
- package/dist/chunks/client-0.6.2-8b0s065m.mjs +0 -1
- package/dist/chunks/color-0.6.2-jza3jez4.mjs +0 -1
- package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +0 -3
- package/dist/chunks/config-0.6.2-qjwjrd75.mjs +0 -1
- package/dist/chunks/config-0.6.2-xac3sjb7.mjs +0 -1
- package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +0 -1
- package/dist/chunks/context-0.6.2-w965073f.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +0 -1
- package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +0 -1
- package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +0 -9
- package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +0 -1
- package/dist/chunks/createSession-0.6.2-axgp009k.mjs +0 -1
- package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +0 -1365
- package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +0 -1
- package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +0 -1
- package/dist/chunks/diff-0.6.2-md180qh9.mjs +0 -1
- package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +0 -1
- package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +0 -10
- package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +0 -1
- package/dist/chunks/environments-0.6.2-fe197syt.mjs +0 -1
- package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +0 -1
- package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +0 -1
- package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +0 -1
- package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +0 -1
- package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +0 -1
- package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +0 -1
- package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +0 -4
- package/dist/chunks/grove-0.6.2-a2wgccag.mjs +0 -1
- package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +0 -1
- package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +0 -2
- package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +0 -6
- package/dist/chunks/help-0.6.2-c49svpae.mjs +0 -1
- package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +0 -3
- package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +0 -1
- package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +0 -79
- package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +0 -1
- package/dist/chunks/index-0.6.2-1kk3erm5.mjs +0 -9
- package/dist/chunks/index-0.6.2-21nak3ad.mjs +0 -1
- package/dist/chunks/index-0.6.2-2vns8v9p.mjs +0 -1
- package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +0 -1
- package/dist/chunks/index-0.6.2-3g92ew8z.mjs +0 -1
- package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +0 -1
- package/dist/chunks/index-0.6.2-88m8k4cp.mjs +0 -1
- package/dist/chunks/index-0.6.2-93bh3w93.mjs +0 -1
- package/dist/chunks/index-0.6.2-9e0qz384.mjs +0 -1
- package/dist/chunks/index-0.6.2-emm65q8h.mjs +0 -17
- package/dist/chunks/index-0.6.2-ff57yvh3.mjs +0 -1
- package/dist/chunks/index-0.6.2-g6xy97jv.mjs +0 -1
- package/dist/chunks/index-0.6.2-h37g7n0s.mjs +0 -9
- package/dist/chunks/index-0.6.2-h8jkf613.mjs +0 -5
- package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +0 -1
- package/dist/chunks/index-0.6.2-jw83xhc8.mjs +0 -2
- package/dist/chunks/index-0.6.2-mehn31e3.mjs +0 -30
- package/dist/chunks/index-0.6.2-naw1d8mg.mjs +0 -2
- package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +0 -1
- package/dist/chunks/index-0.6.2-qn0re7sj.mjs +0 -1
- package/dist/chunks/index-0.6.2-tftj6wdh.mjs +0 -1
- package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +0 -1
- package/dist/chunks/init-0.6.2-47k2caay.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +0 -1
- package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +0 -1
- package/dist/chunks/insights-0.6.2-st861yg4.mjs +0 -870
- package/dist/chunks/install-0.6.2-webkhwz9.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +0 -1
- package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +0 -2
- package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +0 -1
- package/dist/chunks/log-0.6.2-h02k5q0p.mjs +0 -1
- package/dist/chunks/main-0.6.2-51xvrsbq.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +0 -1
- package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +0 -17
- package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +0 -4
- package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +0 -1
- package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +0 -1
- package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +0 -3
- package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +0 -2
- package/dist/chunks/model-0.6.2-49f9g2vz.mjs +0 -2
- package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +0 -1
- package/dist/chunks/node-0.6.2-40bknjza.mjs +0 -12
- package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +0 -14
- package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +0 -1
- package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +0 -1
- package/dist/chunks/passes-0.6.2-kadygcw6.mjs +0 -1
- package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +0 -3
- package/dist/chunks/plan-0.6.2-hzbsezab.mjs +0 -1
- package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +0 -1
- package/dist/chunks/plugin-0.6.2-pr48413e.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +0 -1
- package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +0 -2
- package/dist/chunks/print-0.6.2-ng7p0m66.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +0 -1
- package/dist/chunks/process-0.6.2-7k26fk4b.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +0 -9
- package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +0 -1
- package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +0 -1
- package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +0 -13
- package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +0 -34
- package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +0 -1
- package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +0 -2
- package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +0 -1
- package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +0 -1
- package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +0 -2
- package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +0 -1
- package/dist/chunks/session-0.6.2-k41jbqwf.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +0 -1
- package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +0 -1
- package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +0 -5
- package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +0 -1
- package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +0 -1
- package/dist/chunks/state-0.6.2-nymhw7ey.mjs +0 -1
- package/dist/chunks/stats-0.6.2-skm9nakv.mjs +0 -6
- package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +0 -1
- package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +0 -1
- package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +0 -1
- package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +0 -1
- package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +0 -1
- package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +0 -1
- package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +0 -1
- package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +0 -4
- package/dist/chunks/update-0.6.2-p8edrwg4.mjs +0 -86
- package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +0 -1
- package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +0 -1
- package/dist/chunks/util-0.6.2-yet75ms4.mjs +0 -1
- package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +0 -1
- package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +0 -1
- package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +0 -1
- package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +0 -132
- package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +0 -1
- package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +0 -7
- /package/dist/chunks/{cli-0.6.2-7p1ykg1m.mjs → cli-0.6.4-0dsecg4e.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-1e5p6hw6.mjs → cli-0.6.4-a772rm3j.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-adegz2m3.mjs → cli-0.6.4-ms7sef7r.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-hb4fz4pd.mjs → cli-0.6.4-p7q1dk2n.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-hkgnx8g7.mjs → cli-0.6.4-pdn08sja.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-3eaaj6e5.mjs → cli-0.6.4-sd36e6nd.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-qk6j042k.mjs → cli-0.6.4-vs7kwtc6.mjs} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{oh as a6,ph as m8}from"./cli-0.6.4-rf4gtxa6.mjs";import{a0 as n6,b0 as y8}from"./cli-0.6.4-pd75v1wy.mjs";import{$oa as M6,_oa as Q$,apa as W8,bpa as N1,cpa as Z8}from"./cli-0.6.4-ysvx8vre.mjs";import"./cli-0.6.4-2d65trmc.mjs";import{spa as p4,upa as Q4,vpa as V$,wpa as I,xpa as m0}from"./cli-0.6.4-yrfkm9my.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.4-6z8pdxeg.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.4-syh17p64.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{u7 as P}from"./cli-0.6.4-j7hr5rd4.mjs";import{ipa as p,jpa as w}from"./cli-0.6.4-jh0d8t91.mjs";import"./cli-0.6.4-g1kweb8j.mjs";import{wpa as u,xpa as a}from"./cli-0.6.4-yrfkm9my.mjs";var d,t,f,E,_,v=(r,e,s)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let i=new Date;if(new Date(e.Expiration)<i)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let o=e.AccountId;if(!o&&s?.[r]?.aws_account_id)o=s[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...o&&{accountId:o}};return _.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},x=async(r,e,s)=>{let o=e[r];if(e[r]){let n=o.credential_process;if(n!==void 0){let i=E.promisify(d.externalDataInterceptor?.getTokenRecord?.().exec??f.exec);try{let{stdout:c}=await i(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return v(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:s})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})},h=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await d.parseKnownFiles(r);return x(d.getProfileName({profile:r.profile??e?.profile}),s,r.logger)},y;var S=u(()=>{d=P(),t=w(),f=a("node:child_process"),E=a("node:util"),_=p();y=h});S();export{y as fromProcess};export default {get fromProcess(){return y}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ba as a,ca as b}from"./cli-0.6.4-hb3rny4x.mjs";import"./cli-0.6.4-v050kzdd.mjs";import"./cli-0.6.4-4g9qybcx.mjs";import"./cli-0.6.4-v2fsc12w.mjs";import"./cli-0.6.4-0ngrseg8.mjs";import"./cli-0.6.4-cy7jqdcj.mjs";import"./cli-0.6.4-t13eh9gb.mjs";import"./cli-0.6.4-x0pe866a.mjs";import"./cli-0.6.4-jvfz5yaf.mjs";import"./cli-0.6.4-jc2r75s6.mjs";import"./cli-0.6.4-zgzya3hb.mjs";import"./cli-0.6.4-2dm4scsb.mjs";import"./cli-0.6.4-g1qw18ad.mjs";import"./cli-0.6.4-a1der2pe.mjs";import"./cli-0.6.4-7xp2yhpq.mjs";import"./cli-0.6.4-ehexec8h.mjs";import"./cli-0.6.4-vg82smm8.mjs";import"./cli-0.6.4-cp53mw1m.mjs";import"./cli-0.6.4-spysehd5.mjs";import"./cli-0.6.4-cxhs267r.mjs";import"./cli-0.6.4-bgwzkgj9.mjs";import"./cli-0.6.4-vyyncn9y.mjs";import"./cli-0.6.4-7jvtehkv.mjs";import"./cli-0.6.4-z63xq66c.mjs";import"./cli-0.6.4-6czv84g6.mjs";import"./cli-0.6.4-1nzpzrfm.mjs";import"./cli-0.6.4-z3hp0qzv.mjs";import"./cli-0.6.4-vyqg6c95.mjs";import"./cli-0.6.4-g37ywszt.mjs";import"./cli-0.6.4-dhyghbjg.mjs";import"./cli-0.6.4-pd75v1wy.mjs";import"./cli-0.6.4-h9ncym59.mjs";import"./cli-0.6.4-dvh5yb9z.mjs";import"./cli-0.6.4-89pes3g1.mjs";import"./cli-0.6.4-p7mvm2y6.mjs";import"./cli-0.6.4-btcax77x.mjs";import"./cli-0.6.4-n9mgjg26.mjs";import"./cli-0.6.4-jra8pavs.mjs";import"./cli-0.6.4-hrs590q0.mjs";import"./cli-0.6.4-ejrq8g7w.mjs";import"./cli-0.6.4-9j2480tb.mjs";import"./cli-0.6.4-2mytx51g.mjs";import"./cli-0.6.4-k498jsqp.mjs";import"./cli-0.6.4-x3pc9zn1.mjs";import"./cli-0.6.4-fh1fzqd2.mjs";import"./cli-0.6.4-bvrcy0gs.mjs";import"./cli-0.6.4-ymgdd6a7.mjs";import"./cli-0.6.4-eykta4ak.mjs";import"./cli-0.6.4-em2mfvpg.mjs";import"./cli-0.6.4-prdj94yp.mjs";import"./cli-0.6.4-771h1906.mjs";import"./cli-0.6.4-s062axqp.mjs";import"./cli-0.6.4-4qyz0e3r.mjs";import"./cli-0.6.4-95vk17cy.mjs";import"./cli-0.6.4-4b3h6h1j.mjs";import"./cli-0.6.4-ksf3bj49.mjs";import"./cli-0.6.4-x6npewbm.mjs";import"./cli-0.6.4-xf6vdp7p.mjs";import"./cli-0.6.4-rqmfmwew.mjs";import"./cli-0.6.4-43y102gt.mjs";import"./cli-0.6.4-1k1e5y32.mjs";import"./cli-0.6.4-yxqfeka0.mjs";import"./cli-0.6.4-0gnhakty.mjs";import"./cli-0.6.4-ge6qg76s.mjs";import"./cli-0.6.4-ysvx8vre.mjs";import"./cli-0.6.4-2d65trmc.mjs";import"./cli-0.6.4-yrfkm9my.mjs";export{b as initializeTelemetryAfterTrust,a as init};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as VZ,c as FQ,d as fQ,e as lJ,f as wQ,g as DQ,h as EQ,i as CQ}from"./cli-0.6.4-tgtxrvzn.mjs";import{j as dJ,k as jZ,m as MQ}from"./cli-0.6.4-vawbj80d.mjs";import"./cli-0.6.4-2sh53v7p.mjs";import{ja as cJ,ka as yQ,la as PQ,ma as UQ,na as pJ,oa as uJ}from"./cli-0.6.4-bbsbw8kz.mjs";import"./cli-0.6.4-pdn08sja.mjs";import{Yd as vJ,_d as _Z}from"./cli-0.6.4-jg4xm27s.mjs";import{ce as iJ,fe as gZ}from"./cli-0.6.4-v3ym5bjk.mjs";import{ge as $Z,ie as zZ,je as KZ,ke as dZ}from"./cli-0.6.4-hhaw00mw.mjs";import{le as OJ,me as BQ,ne as RQ,oe as ZQ,pe as ZJ,qe as mJ}from"./cli-0.6.4-55a83gct.mjs";import{re as eQ,te as HJ,ue as JZ,ve as uZ}from"./cli-0.6.4-h2c5gxa3.mjs";import{Ae as lZ,ye as QZ,ze as ZZ}from"./cli-0.6.4-3d8syj43.mjs";import{cg as oQ,dg as nQ,eg as sQ,fg as rQ,gg as pZ}from"./cli-0.6.4-sk4r23n0.mjs";import{HO as aZ,UQ as iZ,bl as gQ,cl as IZ,fD as iQ,fj as dQ,gD as tQ,hQ as yJ,jD as cZ,mO as YZ,tO as XZ}from"./cli-0.6.4-4g9qybcx.mjs";import"./cli-0.6.4-v2fsc12w.mjs";import"./cli-0.6.4-0ngrseg8.mjs";import{YR as IJ,ZR as FZ}from"./cli-0.6.4-cy7jqdcj.mjs";import"./cli-0.6.4-t13eh9gb.mjs";import{oS as xQ,sS as fZ}from"./cli-0.6.4-x0pe866a.mjs";import"./cli-0.6.4-jvfz5yaf.mjs";import"./cli-0.6.4-jc2r75s6.mjs";import"./cli-0.6.4-zgzya3hb.mjs";import"./cli-0.6.4-2dm4scsb.mjs";import"./cli-0.6.4-g1qw18ad.mjs";import"./cli-0.6.4-a1der2pe.mjs";import"./cli-0.6.4-7xp2yhpq.mjs";import"./cli-0.6.4-ehexec8h.mjs";import{jU as AQ,lU as wZ}from"./cli-0.6.4-vg82smm8.mjs";import"./cli-0.6.4-cp53mw1m.mjs";import"./cli-0.6.4-spysehd5.mjs";import"./cli-0.6.4-cxhs267r.mjs";import"./cli-0.6.4-bgwzkgj9.mjs";import"./cli-0.6.4-vyyncn9y.mjs";import{GV as aQ,HV as LQ,IV as OQ,KV as _Q}from"./cli-0.6.4-7jvtehkv.mjs";import"./cli-0.6.4-z63xq66c.mjs";import"./cli-0.6.4-6czv84g6.mjs";import"./cli-0.6.4-1nzpzrfm.mjs";import"./cli-0.6.4-z3hp0qzv.mjs";import"./cli-0.6.4-vyqg6c95.mjs";import"./cli-0.6.4-g37ywszt.mjs";import"./cli-0.6.4-dhyghbjg.mjs";import"./cli-0.6.4-pd75v1wy.mjs";import"./cli-0.6.4-h9ncym59.mjs";import"./cli-0.6.4-dvh5yb9z.mjs";import"./cli-0.6.4-89pes3g1.mjs";import"./cli-0.6.4-p7mvm2y6.mjs";import"./cli-0.6.4-btcax77x.mjs";import"./cli-0.6.4-n9mgjg26.mjs";import"./cli-0.6.4-jra8pavs.mjs";import"./cli-0.6.4-hrs590q0.mjs";import"./cli-0.6.4-ejrq8g7w.mjs";import"./cli-0.6.4-9j2480tb.mjs";import{M4 as gJ,O4 as aJ,Q4 as lQ,W1 as uQ,Z1 as vZ,e4 as BJ,f4 as MZ,k5 as SZ}from"./cli-0.6.4-2mytx51g.mjs";import"./cli-0.6.4-k498jsqp.mjs";import"./cli-0.6.4-x3pc9zn1.mjs";import"./cli-0.6.4-fh1fzqd2.mjs";import"./cli-0.6.4-bvrcy0gs.mjs";import"./cli-0.6.4-ymgdd6a7.mjs";import"./cli-0.6.4-eykta4ak.mjs";import{E8 as vQ,G8 as SQ,Jda as pQ,Lda as mZ,Vba as IQ,W8 as kZ,X7 as _J,Yba as cQ,Z7 as UZ,rca as bZ}from"./cli-0.6.4-em2mfvpg.mjs";import"./cli-0.6.4-prdj94yp.mjs";import"./cli-0.6.4-771h1906.mjs";import"./cli-0.6.4-s062axqp.mjs";import{Afa as TZ,pfa as mQ}from"./cli-0.6.4-4qyz0e3r.mjs";import"./cli-0.6.4-95vk17cy.mjs";import"./cli-0.6.4-4b3h6h1j.mjs";import{rga as w,tga as RZ}from"./cli-0.6.4-ksf3bj49.mjs";import{tha as J,wga as HQ,wha as NQ,yga as yZ}from"./cli-0.6.4-x6npewbm.mjs";import"./cli-0.6.4-xf6vdp7p.mjs";import{Nha as u,Uha as qQ}from"./cli-0.6.4-rqmfmwew.mjs";import{_ha as WQ,gia as GQ,iia as PZ}from"./cli-0.6.4-43y102gt.mjs";import{Nna as hZ,Oja as RJ,Uja as bQ}from"./cli-0.6.4-1k1e5y32.mjs";import"./cli-0.6.4-yxqfeka0.mjs";import"./cli-0.6.4-0gnhakty.mjs";import{Hoa as QJ,Zoa as OZ}from"./cli-0.6.4-ge6qg76s.mjs";import"./cli-0.6.4-ysvx8vre.mjs";import"./cli-0.6.4-2d65trmc.mjs";import{xpa as VQ}from"./cli-0.6.4-yrfkm9my.mjs";hZ();TZ();vZ();cZ();SZ();bZ();NQ();mZ();qQ();kZ();gZ();aZ();iZ();lZ();IZ();uZ();pZ();dZ();mJ();import{hostname as tZ}from"os";import{randomUUID as YQ}from"crypto";OZ();mJ();_Z();var xZ="environments-2025-11-01",AZ=/^[a-zA-Z0-9_-]+$/;function g(K,$){if(!K||!AZ.test(K))throw Error(`Invalid ${$}: contains unsafe characters`);return K}class zJ extends Error{status;errorType;constructor(K,$,L){super(K);this.name="BridgeFatalError",this.status=$,this.errorType=L}}function $Q(K){function $(Q){K.onDebug?.(Q)}let L=0,N=100;function x(Q){let z={Authorization:`Bearer ${Q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":xZ,"x-environment-runner-version":K.runnerVersion},H=K.getTrustedDeviceToken?.();if(H)z["X-Trusted-Device-Token"]=H;return z}function m(){let Q=K.getAccessToken();if(!Q)throw Error(vJ);return Q}async function h(Q,z){let H=m(),X=await Q(H);if(X.status!==401)return X;if(!K.onAuth401)return $(`[bridge:api] ${z}: 401 received, no refresh handler`),X;if($(`[bridge:api] ${z}: 401 received, attempting token refresh`),await K.onAuth401(H)){$(`[bridge:api] ${z}: Token refreshed, retrying request`);let y=m(),o=await Q(y);if(o.status!==401)return o;$(`[bridge:api] ${z}: Retry after refresh also got 401`)}else $(`[bridge:api] ${z}: Token refresh failed`);return X}return{async registerBridgeEnvironment(Q){$(`[bridge:api] POST /v1/environments/bridge bridgeId=${Q.bridgeId}`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/environments/bridge`,{machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType},...Q.reuseEnvironmentId&&{environment_id:Q.reuseEnvironmentId}},{headers:x(H),timeout:15000,validateStatus:(X)=>X<500}),"Registration");return $J(z.status,z.data,"Registration"),$(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),$(`[bridge:api] >>> ${OJ({machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType}})}`),$(`[bridge:api] <<< ${OJ(z.data)}`),z.data},async pollForWork(Q,z,H,X){g(Q,"environmentId");let R=L;L=0;let y=await QJ.get(`${K.baseUrl}/v1/environments/${Q}/work/poll`,{headers:x(z),params:X!==void 0?{reclaim_older_than_ms:X}:void 0,timeout:1e4,signal:H,validateStatus:(o)=>o<500});if($J(y.status,y.data,"Poll"),!y.data){if(L=R+1,L===1||L%N===0)$(`[bridge:api] GET .../work/poll -> ${y.status} (no work, ${L} consecutive empty polls)`);return null}return $(`[bridge:api] GET .../work/poll -> ${y.status} workId=${y.data.id} type=${y.data.data?.type}${y.data.data?.id?` sessionId=${y.data.data.id}`:""}`),$(`[bridge:api] <<< ${OJ(y.data)}`),y.data},async acknowledgeWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/ack`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/ack`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"Acknowledge"),$(`[bridge:api] POST .../work/${z}/ack -> ${X.status}`)},async stopWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/stop force=${H}`);let X=await h((R)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/stop`,{force:H},{headers:x(R),timeout:1e4,validateStatus:(y)=>y<500}),"StopWork");$J(X.status,X.data,"StopWork"),$(`[bridge:api] POST .../work/${z}/stop -> ${X.status}`)},async deregisterEnvironment(Q){g(Q,"environmentId"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q}`);let z=await h((H)=>QJ.delete(`${K.baseUrl}/v1/environments/bridge/${Q}`,{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"Deregister");$J(z.status,z.data,"Deregister"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q} -> ${z.status}`)},async archiveSession(Q){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/archive`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/sessions/${Q}/archive`,{},{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"ArchiveSession");if(z.status===409){$(`[bridge:api] POST /v1/sessions/${Q}/archive -> 409 (already archived)`);return}$J(z.status,z.data,"ArchiveSession"),$(`[bridge:api] POST /v1/sessions/${Q}/archive -> ${z.status}`)},async reconnectSession(Q,z){g(Q,"environmentId"),g(z,"sessionId"),$(`[bridge:api] POST /v1/environments/${Q}/bridge/reconnect session_id=${z}`);let H=await h((X)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/bridge/reconnect`,{session_id:z},{headers:x(X),timeout:1e4,validateStatus:(R)=>R<500}),"ReconnectSession");$J(H.status,H.data,"ReconnectSession"),$(`[bridge:api] POST .../bridge/reconnect -> ${H.status}`)},async heartbeatWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/heartbeat`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/heartbeat`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});return $J(X.status,X.data,"Heartbeat"),$(`[bridge:api] POST .../work/${z}/heartbeat -> ${X.status} lease_extended=${X.data.lease_extended} state=${X.data.state}`),X.data},async sendPermissionResponseEvent(Q,z,H){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/events type=${z.type}`);let X=await QJ.post(`${K.baseUrl}/v1/sessions/${Q}/events`,{events:[z]},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"SendPermissionResponseEvent"),$(`[bridge:api] POST /v1/sessions/${Q}/events -> ${X.status}`),$(`[bridge:api] >>> ${OJ({events:[z]})}`),$(`[bridge:api] <<< ${OJ(X.data)}`)}}}function $J(K,$,L){if(K===200||K===204)return;let N=ZQ($),x=BZ($);switch(K){case 401:throw new zJ(`${L}: Authentication failed (401)${N?`: ${N}`:""}. ${vJ}`,401,x);case 403:throw new zJ(SJ(x)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${L}: Access denied (403)${N?`: ${N}`:""}. Check your organization permissions.`,403,x);case 404:throw new zJ(N??`${L}: Not found (404). Remote Control may not be available for this organization.`,404,x);case 410:throw new zJ(N??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,x??"environment_expired");case 429:throw Error(`${L}: Rate limited (429). Polling too frequently.`);default:throw Error(`${L}: Failed with status ${K}${N?`: ${N}`:""}`)}}function SJ(K){if(!K)return!1;return K.includes("expired")||K.includes("lifetime")}function zQ(K){if(K.status!==403)return!1;return K.message.includes("external_poll_sessions")||K.message.includes("environments:manage")}function BZ(K){if(K&&typeof K==="object"){if("error"in K&&K.error&&typeof K.error==="object"&&"type"in K.error&&typeof K.error.type==="string")return K.error.type}return}NQ();UZ();RZ();yZ();_Q();wZ();fZ();FZ();PZ();mJ();function KQ(K){let $=new AbortController;function L(){$.abort(),$=new AbortController}function N(){let x=new AbortController,m=()=>x.abort();if(K.aborted||$.signal.aborted)return x.abort(),{signal:x.signal,cleanup:()=>{}};K.addEventListener("abort",m,{once:!0});let h=$.signal;return h.addEventListener("abort",m,{once:!0}),{signal:x.signal,cleanup:()=>{K.removeEventListener("abort",m),h.removeEventListener("abort",m)}}}return{signal:N,wake:L}}qQ();MZ();var DZ=2000,XQ=60000,jQ=900000,EZ=0;async function hQ(K){let{dir:$,machineName:L,branch:N,gitRepoUrl:x,title:m,baseUrl:h,sessionIngressUrl:Q,workerType:z,getAccessToken:H,createSession:X,archiveSession:R,getCurrentTitle:y=()=>m,toSDKMessages:o=()=>{throw Error("BridgeCoreParams.toSDKMessages not provided. Pass it if you use writeMessages() or initialMessages — daemon callers that only use writeSdkMessages() never hit this path.")},onAuth401:T,getPollIntervalConfig:k=()=>dJ,initialHistoryCap:v=200,initialMessages:B,previouslyFlushedUUIDs:d,onInboundMessage:l,onPermissionResponse:KJ,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D,onStateChange:P,onUserMessage:a,perpetual:I,initialSSESequenceNum:s=0}=K,F=++EZ,{writeBridgePointer:c,clearBridgePointer:YJ,readBridgePointer:O}=await import("./bridgePointer-0.6.4-dgames2b.mjs"),A=I?await O($):null,W=A?.source==="repl"?A:null;J(`[bridge:repl] initBridgeCore #${F} starting (initialMessages=${B?.length??0}${W?` perpetual prior=env:${W.environmentId}`:""})`);let C=$Q({baseUrl:h,getAccessToken:H,runnerVersion:"99.0.0",onDebug:J,onAuth401:T,getTrustedDeviceToken:xQ}),XJ={dir:$,machineName:L,branch:N,gitRepoUrl:x,maxSessions:1,spawnMode:"single-session",verbose:!1,sandbox:!1,bridgeId:YQ(),workerType:z,environmentId:YQ(),reuseEnvironmentId:W?.environmentId,apiBaseUrl:h,sessionIngressUrl:Q},q,PJ;try{let Z=await C.registerBridgeEnvironment(XJ);q=Z.environment_id,PJ=Z.environment_secret}catch(Z){if(ZJ("registration_failed",`[bridge:repl] Environment registration failed: ${u(Z)}`),W)await YJ($);return P?.("failed",u(Z)),null}J(`[bridge:repl] Environment registered: ${q}`),_J("info","bridge_repl_env_registered"),w("tengu_bridge_repl_env_registered",{});async function tJ(Z,j){if(q!==Z)return J(`[bridge:repl] Env mismatch (requested ${Z}, got ${q}) — cannot reconnect in place`),!1;let U=OQ(j),G=U===j?[j]:[j,U];for(let E of G)try{return await C.reconnectSession(q,E),J(`[bridge:repl] Reconnected session ${E} in place on env ${q}`),!0}catch(r){J(`[bridge:repl] reconnectSession(${E}) failed: ${u(r)}`)}return J("[bridge:repl] reconnectSession exhausted — falling through to fresh session"),!1}let FJ=W?await tJ(W.environmentId,W.sessionId):!1;if(W&&!FJ)await YJ($);let V;if(FJ&&W){if(V=W.sessionId,J(`[bridge:repl] Perpetual session reused: ${V}`),B&&d)for(let Z of B)d.add(Z.uuid)}else{let Z=await X({environmentId:q,title:m,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!Z)return J("[bridge:repl] Session creation failed, deregistering environment"),w("tengu_bridge_repl_session_failed",{}),await C.deregisterEnvironment(q).catch(()=>{}),P?.("failed","Session creation failed"),null;V=Z,J(`[bridge:repl] Session created: ${V}`)}await c($,{sessionId:V,environmentId:q,source:"repl"}),_J("info","bridge_repl_session_created"),w("tengu_bridge_repl_started",{has_initial_messages:!!(B&&B.length>0),inProtectedNamespace:GQ()});let fJ=new Set;if(B)for(let Z of B)fJ.add(Z.uuid);let jJ=new uJ(2000);for(let Z of fJ)jJ.add(Z);let oJ=new uJ(2000),e=new AbortController,Y=null,WJ=0,i=FJ?s:0,p=null,GJ=null,nJ=KQ(e.signal),xJ=nJ.wake,HZ=nJ.signal,JJ=new CQ,wJ=!a,DJ=3,VJ=0,qJ=null;async function sJ(){if(qJ)return qJ;qJ=WZ();try{return await qJ}finally{qJ=null}}async function WZ(){if(VJ++,WJ++,J(`[bridge:repl] Reconnecting after env lost (attempt ${VJ}/${DJ})`),VJ>DJ)return J(`[bridge:repl] Environment reconnect limit reached (${DJ}), giving up`),!1;if(Y){let G=Y.getLastSequenceNum();if(G>i)i=G;Y.close(),Y=null}if(xJ(),JJ.drop(),p){let G=p;if(await C.stopWork(q,G,!1).catch(()=>{}),p!==G)return J("[bridge:repl] Poll loop recovered during stopWork await — deferring to it"),VJ=0,!0;p=null,GJ=null}if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted by teardown"),!1;let Z=q;XJ.reuseEnvironmentId=Z;try{let G=await C.registerBridgeEnvironment(XJ);q=G.environment_id,PJ=G.environment_secret}catch(G){return XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Environment re-registration failed: ${u(G)}`),!1}if(XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Re-registered: requested=${Z} got=${q}`),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after env registration, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;if(Y!==null)return J("[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it"),VJ=0,!0;if(await tJ(Z,V))return w("tengu_bridge_repl_reconnected_in_place",{}),VJ=0,!0;if(q!==Z)w("tengu_bridge_repl_env_expired_fresh_session",{});if(await R(V),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after archive, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;let j=y(),U=await X({environmentId:q,title:j,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!U)return J("[bridge:repl] Session creation failed during reconnection"),!1;if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted after session creation, cleaning up"),await R(U),!1;return V=U,AQ(LQ(U)).catch(()=>{}),i=0,oJ.clear(),wJ=!a,J(`[bridge:repl] Re-created session: ${V}`),await c($,{sessionId:V,environmentId:q,source:"repl"}),d?.clear(),VJ=0,!0}function EJ(){return H()}function rJ(){let Z=JJ.end();if(Z.length===0)return;if(!Y){J(`[bridge:repl] Cannot drain ${Z.length} pending message(s): no transport`);return}for(let G of Z)jJ.add(G.uuid);let U=o(Z).map((G)=>({...G,session_id:V}));J(`[bridge:repl] Drained ${Z.length} pending message(s) after flush`),Y.writeBatch(U)}let UJ=null;function CJ(){UJ?.()}function GZ(Z){if(J(`[bridge:repl] Transport permanently closed: code=${Z}`),w("tengu_bridge_repl_ws_closed",{code:Z}),Y){let U=Y.getLastSequenceNum();if(U>i)i=U;Y=null}xJ();let j=JJ.drop();if(j>0)J(`[bridge:repl] Dropping ${j} pending message(s) on transport close (code=${Z})`,{level:"warn"});if(Z===1000){P?.("failed","session ended"),e.abort(),CJ();return}P?.("reconnecting",`Remote Control connection lost (code ${Z})`),J(`[bridge:repl] Transport reconnect budget exhausted (code=${Z}), attempting env reconnect`),sJ().then((U)=>{if(U)return;if(e.signal.aborted)return;J("[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down"),w("tengu_bridge_repl_reconnect_failed",{close_code:Z}),P?.("failed","reconnection failed"),CJ()})}let qZ={api:C,getCredentials:()=>({environmentId:q,environmentSecret:PJ}),signal:e.signal,getPollIntervalConfig:k,onStateChange:P,getWsState:()=>Y?.getStateLabel()??"null",isAtCapacity:()=>Y!==null,capacitySignal:HZ,onFatalError:CJ,getHeartbeatInfo:()=>{if(!p||!GJ)return null;return{environmentId:q,workId:p,sessionToken:GJ}},onHeartbeatFatal:(Z)=>{if(J(`[bridge:repl] heartbeatWork fatal (status=${Z.status}) — tearing down work item for fast re-dispatch`),Y){let j=Y.getLastSequenceNum();if(j>i)i=j;Y.close(),Y=null}if(JJ.drop(),p)C.stopWork(q,p,!1).catch((j)=>{J(`[bridge:repl] stopWork after heartbeat fatal: ${u(j)}`)});p=null,GJ=null,xJ(),P?.("reconnecting","Work item lease expired, fetching fresh token")},async onEnvironmentLost(){if(!await sJ())return null;return{environmentId:q,environmentSecret:PJ}},onWorkReceived:(Z,j,U,G)=>{if(Y?.isConnectedStatus())J(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${U})`);if(J(`[bridge:repl] Work received: workId=${U} workSessionId=${Z} currentSessionId=${V} match=${lJ(Z,V)}`),c($,{sessionId:V,environmentId:q,source:"repl"}),!lJ(Z,V)){J(`[bridge:repl] Rejecting foreign session: expected=${V} got=${Z}`);return}p=U,GJ=j;let E=G||WQ(process.env.CLAUDE_BRIDGE_USE_CCR_V2),r;if(!E){if(r=EJ(),!r){J("[bridge:repl] No OAuth token available for session ingress, skipping work");return}IJ(r)}if(w("tengu_bridge_repl_work_received",{}),Y){let M=Y;Y=null;let f=M.getLastSequenceNum();if(f>i)i=f;M.close()}JJ.deactivate();let LZ=(M)=>UQ(M,{transport:Y,sessionId:V,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D}),bJ=!1,JQ=(M)=>{if(Y=M,M.setOnConnect(()=>{if(Y!==M)return;if(J("[bridge:repl] Ingress transport connected"),w("tengu_bridge_repl_ws_connected",{}),!E){let f=EJ();if(f)IJ(f)}if(kJ=!1,!bJ&&B&&B.length>0){bJ=!0;let f=v,t=B.filter((MJ)=>cJ(MJ)&&!d?.has(MJ.uuid)),NJ=f>0&&t.length>f?t.slice(-f):t;if(NJ.length<t.length)J(`[bridge:repl] Capped initial flush: ${t.length} -> ${NJ.length} (cap=${f})`),w("tengu_bridge_repl_history_capped",{eligible_count:t.length,capped_count:NJ.length});let AJ=o(NJ);if(AJ.length>0){J(`[bridge:repl] Flushing ${AJ.length} initial message(s) via transport`);let MJ=AJ.map((LJ)=>({...LJ,session_id:V})),QQ=M.droppedBatchCount;M.writeBatch(MJ).then(()=>{if(M.droppedBatchCount>QQ){J(`[bridge:repl] Initial flush dropped ${M.droppedBatchCount-QQ} batch(es) — not marking ${AJ.length} UUID(s) as flushed`);return}if(d){for(let LJ of AJ)if(LJ.uuid)d.add(LJ.uuid)}}).catch((LJ)=>J(`[bridge:repl] Initial flush failed: ${LJ}`)).finally(()=>{if(Y!==M)return;rJ(),P?.("connected")})}else rJ(),P?.("connected")}else if(!JJ.active)P?.("connected")}),M.setOnData((f)=>{PQ(f,jJ,oJ,l,KJ,LZ)}),M.setOnClose((f)=>{if(Y!==M)return;GZ(f)}),!bJ&&B&&B.length>0)JJ.start();M.connect()};if(WJ++,E){let M=wQ(h,Z),f=WJ;J(`[bridge:repl] CCR v2: sessionUrl=${M} session=${Z} gen=${f}`),EQ({sessionUrl:M,ingressToken:j,sessionId:Z,initialSequenceNum:i}).then((t)=>{if(e.signal.aborted){t.close();return}if(f!==WJ){J(`[bridge:repl] CCR v2: discarding stale handshake gen=${f} current=${WJ}`),t.close();return}JQ(t)},(t)=>{if(J(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${u(t)}`,{level:"error"}),w("tengu_bridge_repl_ccr_v2_init_failed",{}),f!==WJ)return;if(p)C.stopWork(q,p,!1).catch((NJ)=>{J(`[bridge:repl] stopWork after v2 init failure: ${u(NJ)}`)}),p=null,GJ=null;xJ()})}else{let M=fQ(Q,Z);J(`[bridge:repl] Ingress URL: ${M}`),J(`[bridge:repl] Creating HybridTransport: session=${Z}`);let f=r??"";JQ(DQ(new MQ(new URL(M),{Authorization:`Bearer ${f}`,"anthropic-version":"2023-06-01"},Z,()=>({Authorization:`Bearer ${EJ()??f}`,"anthropic-version":"2023-06-01"}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{P?.("reconnecting","Lost sync with Remote Control — events could not be delivered"),xJ()}})))}}};CZ(qZ);let hJ=I?setInterval(()=>{if(qJ)return;c($,{sessionId:V,environmentId:q,source:"repl"})},3600000):null;hJ?.unref?.();let eJ=k().session_keepalive_interval_v2_ms,TJ=eJ>0?setInterval(()=>{if(!Y)return;J("[bridge:repl] keep_alive sent"),Y.write({type:"keep_alive"}).catch((Z)=>{J(`[bridge:repl] keep_alive write failed: ${u(Z)}`)})},eJ):null;TJ?.unref?.();let kJ=!1;UJ=async()=>{if(kJ){J(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${q} session=${V}`);return}kJ=!0;let Z=Date.now();if(J(`[bridge:repl] Teardown starting: env=${q} session=${V} workId=${p??"none"} transportState=${Y?.getStateLabel()??"null"}`),hJ!==null)clearInterval(hJ);if(TJ!==null)clearInterval(TJ);if(e.abort(),J("[bridge:repl] Teardown: poll loop aborted"),Y){let G=Y.getLastSequenceNum();if(G>i)i=G}if(I){Y=null,JJ.drop(),await c($,{sessionId:V,environmentId:q,source:"repl"}),J(`[bridge:repl] Teardown (perpetual): leaving env=${q} session=${V} alive on server, duration=${Date.now()-Z}ms`);return}let j=Y;if(Y=null,JJ.drop(),j)j.write(pJ(V));let U=p?C.stopWork(q,p,!0).then(()=>{J("[bridge:repl] Teardown: stopWork completed")}).catch((G)=>{J(`[bridge:repl] Teardown stopWork failed: ${u(G)}`)}):Promise.resolve();await Promise.all([U,R(V)]),j?.close(),J("[bridge:repl] Teardown: transport closed"),await C.deregisterEnvironment(q).catch((G)=>{J(`[bridge:repl] Teardown deregister failed: ${u(G)}`)}),await YJ($),J(`[bridge:repl] Teardown complete: env=${q} duration=${Date.now()-Z}ms`)};let NZ=HQ(()=>UJ?.());return J(`[bridge:repl] Ready: env=${q} session=${V}`),P?.("ready"),{get bridgeSessionId(){return V},get environmentId(){return q},getSSESequenceNum(){let Z=Y?.getLastSequenceNum()??0;return Math.max(i,Z)},sessionIngressUrl:Q,writeMessages(Z){let j=Z.filter((E)=>cJ(E)&&!fJ.has(E.uuid)&&!jJ.has(E.uuid));if(j.length===0)return;if(!wJ)for(let E of j){let r=yQ(E);if(r!==void 0&&a?.(r,V)){wJ=!0;break}}if(JJ.enqueue(...j)){J(`[bridge:repl] Queued ${j.length} message(s) during initial flush`);return}if(!Y){let E=j.map((r)=>r.type).join(",");J(`[bridge:repl] Transport not configured, dropping ${j.length} message(s) [${E}] for session=${V}`,{level:"warn"});return}for(let E of j)jJ.add(E.uuid);J(`[bridge:repl] Sending ${j.length} message(s) via transport`);let G=o(j).map((E)=>({...E,session_id:V}));Y.writeBatch(G)},writeSdkMessages(Z){let j=Z.filter((G)=>!G.uuid||!jJ.has(G.uuid));if(j.length===0)return;if(!Y){J(`[bridge:repl] Transport not configured, dropping ${j.length} SDK message(s) for session=${V}`,{level:"warn"});return}for(let G of j)if(G.uuid)jJ.add(G.uuid);let U=j.map((G)=>({...G,session_id:V}));Y.writeBatch(U)},sendControlRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_request");return}let j={...Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_request request_id=${Z.request_id}`)},sendControlResponse(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_response");return}let j={...Z,session_id:V};Y.write(j),J("[bridge:repl] Sent control_response")},sendControlCancelRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_cancel_request");return}let j={type:"control_cancel_request",request_id:Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_cancel_request request_id=${Z}`)},sendResult(){if(!Y){J(`[bridge:repl] sendResult: skipping, transport not configured session=${V}`);return}Y.write(pJ(V)),J(`[bridge:repl] Sent result for session=${V}`)},async teardown(){NZ(),await UJ?.(),J("[bridge:repl] Torn down"),w("tengu_bridge_repl_teardown",{})}}}async function CZ({api:K,getCredentials:$,signal:L,onStateChange:N,onWorkReceived:x,onEnvironmentLost:m,getWsState:h,isAtCapacity:Q,capacitySignal:z,onFatalError:H,getPollIntervalConfig:X=()=>dJ,getHeartbeatInfo:R,onHeartbeatFatal:y}){J(`[bridge:repl] Starting work poll loop for env=${$().environmentId}`);let T=0,k=null,v=null,B=0,d=!1;while(!L.aborted){let{environmentId:l,environmentSecret:KJ}=$(),n=X();try{let _=await K.pollForWork(l,KJ,L,n.reclaim_older_than_ms);if(B=0,T>0)J(`[bridge:repl] Poll recovered after ${T} consecutive error(s)`),T=0,k=null,v=null,N?.("ready");if(!_){let D=d;if(d=!1,Q?.()&&z&&!D){let P=n.poll_interval_ms_at_capacity;if(n.non_exclusive_heartbeat_interval_ms>0&&R){w("tengu_bridge_heartbeat_mode_entered",{heartbeat_interval_ms:n.non_exclusive_heartbeat_interval_ms});let I=P>0?Date.now()+P:null,s=!1,F=0;while(!L.aborted&&Q()&&(I===null||Date.now()<I)){let YJ=X();if(YJ.non_exclusive_heartbeat_interval_ms<=0)break;let O=R();if(!O)break;let A=z();try{await K.heartbeatWork(O.environmentId,O.workId,O.sessionToken)}catch(W){if(J(`[bridge:repl:heartbeat] Failed: ${u(W)}`),W instanceof zJ){if(A.cleanup(),w("tengu_bridge_heartbeat_error",{status:W.status,error_type:W.status===401||W.status===403?"auth_failed":"fatal"}),y)y(W),J(`[bridge:repl:heartbeat] Fatal (status=${W.status}), work state cleared — fast-polling for re-dispatch`);else s=!0;break}}F++,await BJ(YJ.non_exclusive_heartbeat_interval_ms,A.signal),A.cleanup()}let c=s?"error":L.aborted?"shutdown":!Q()?"capacity_changed":I!==null&&Date.now()>=I?"poll_due":"config_disabled";if(w("tengu_bridge_heartbeat_mode_exited",{reason:c,heartbeat_cycles:F}),!s){if(c==="poll_due")J(`[bridge:repl] Heartbeat poll_due after ${F} cycles — falling through to pollForWork`);continue}}let a=P>0?P:n.non_exclusive_heartbeat_interval_ms;if(a>0){let I=z(),s=Date.now();await BJ(a,I.signal),I.cleanup();let F=Date.now()-s-a;if(F>60000)J(`[bridge:repl] At-capacity sleep overran by ${Math.round(F/1000)}s — process suspension detected, forcing one fast-poll cycle`),w("tengu_bridge_repl_suspension_detected",{overrun_ms:F}),d=!0}}else await BJ(n.poll_interval_ms_not_at_capacity,L);continue}let S;try{S=FQ(_.secret)}catch(D){J(`[bridge:repl] Failed to decode work secret: ${u(D)}`),w("tengu_bridge_repl_work_secret_failed",{}),await K.stopWork(l,_.id,!1).catch(()=>{});continue}J(`[bridge:repl] Acknowledging workId=${_.id}`);try{await K.acknowledgeWork(l,_.id,S.session_ingress_token)}catch(D){J(`[bridge:repl] Acknowledge failed workId=${_.id}: ${u(D)}`)}if(_.data.type==="healthcheck"){J("[bridge:repl] Healthcheck received");continue}if(_.data.type==="session"){let D=_.data.id;try{g(D,"session_id")}catch{J(`[bridge:repl] Invalid session_id in work: ${D}`);continue}x(D,S.session_ingress_token,_.id,S.use_code_sessions===!0),J("[bridge:repl] Work accepted, continuing poll loop")}}catch(_){if(L.aborted)break;if(_ instanceof zJ&&_.status===404&&m){let F=$().environmentId;if(l!==F){J(`[bridge:repl] Stale poll error for old env=${l}, current env=${F} — skipping onEnvironmentLost`),T=0,k=null;continue}if(B++,J(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${B}/3)`),w("tengu_bridge_repl_env_lost",{attempt:B}),B>3){J("[bridge:repl] Environment re-registration limit reached (3), giving up"),N?.("failed","Environment deleted and re-registration limit reached"),H?.();break}N?.("reconnecting","environment lost, recreating session");let c=await m();if(L.aborted)break;if(c){T=0,k=null,N?.("ready"),J(`[bridge:repl] Re-registered environment: ${c.environmentId}`);continue}N?.("failed","Environment deleted and re-registration failed"),H?.();break}if(_ instanceof zJ){let F=SJ(_.errorType),c=zQ(_);if(J(`[bridge:repl] Fatal poll error: ${_.message} (status=${_.status}, type=${_.errorType??"unknown"})${c?" (suppressed)":""}`),w("tengu_bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),_J(F?"info":"error","bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),!c)N?.("failed",F?"session expired · /remote-control to reconnect":_.message);H?.();break}let S=Date.now();if(v!==null&&S-v>XQ*2)J(`[bridge:repl] Detected system sleep (${Math.round((S-v)/1000)}s gap), resetting poll error budget`),_J("info","bridge_repl_poll_sleep_detected",{gapMs:S-v}),T=0,k=null;if(v=S,T++,k===null)k=S;let D=S-k,P=RQ(_),a=BQ(_),I=h?.()??"unknown";if(J(`[bridge:repl] Poll error (attempt ${T}, elapsed ${Math.round(D/1000)}s, ws=${I}): ${a}`),w("tengu_bridge_repl_poll_error",{status:P,consecutiveErrors:T,elapsedMs:D}),T===1)N?.("reconnecting",a);if(D>=jQ){J(`[bridge:repl] Poll failures exceeded ${jQ/1000}s (${T} errors), giving up`),_J("info","bridge_repl_poll_give_up"),w("tengu_bridge_repl_poll_give_up",{consecutiveErrors:T,elapsedMs:D,lastStatus:P}),N?.("failed","connection to server lost");break}let s=Math.min(DZ*2**(T-1),XQ);if(X().non_exclusive_heartbeat_interval_ms>0){let F=R?.();if(F)try{await K.heartbeatWork(F.environmentId,F.workId,F.sessionToken)}catch{}}await BJ(s,L)}}J(`[bridge:repl] Work poll loop ended (aborted=${L.aborted}) env=${$().environmentId}`)}_Q();async function i6(K){let{onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,initialMessages:z,getMessages:H,previouslyFlushedUUIDs:X,initialName:R,perpetual:y,outboundOnly:o,tags:T}=K??{};if(aQ(sQ),!await oQ())return ZJ("not_enabled","[bridge:repl] Skipping: bridge not enabled"),null;if(!HJ())return ZJ("no_oauth","[bridge:repl] Skipping: no OAuth tokens"),Q?.("failed","/login"),null;if(await iQ(),!tQ("allow_remote_control"))return ZJ("policy_denied","[bridge:repl] Skipping: allow_remote_control policy not allowed"),Q?.("failed","disabled by your organization's policy"),null;if(!eQ()){let O=cQ();if(O.bridgeOauthDeadExpiresAt!=null&&(O.bridgeOauthDeadFailCount??0)>=3&&gJ()?.expiresAt===O.bridgeOauthDeadExpiresAt)return J(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${O.bridgeOauthDeadFailCount} times)`),null;await lQ();let A=gJ();if(A&&A.expiresAt!==null&&A.expiresAt<=Date.now()){ZJ("oauth_expired_unrefreshable","[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)"),Q?.("failed","/login");let W=A.expiresAt;return IQ((b)=>({...b,bridgeOauthDeadExpiresAt:W,bridgeOauthDeadFailCount:b.bridgeOauthDeadExpiresAt===W?(b.bridgeOauthDeadFailCount??0)+1:1})),null}}let k=JZ(),v=`remote-control-${gQ()}`,B=!1,d=!1;if(R)v=R,B=!0,d=!0;else{let O=RJ(),A=O?yJ(O):void 0;if(A)v=A,B=!0,d=!0;else if(z&&z.length>0)for(let W=z.length-1;W>=0;W--){let b=z[W];if(b.type!=="user"||b.isMeta||b.toolUseResult||b.isCompactSummary||b.origin&&b.origin.kind!=="human"||YZ(b))continue;let C=dQ(b.message.content);if(!C)continue;let XJ=kQ(C);if(!XJ)continue;v=XJ,B=!0;break}}let l=0,KJ,n=0,_=(O,A,W)=>{B=!0,v=O,J(`[bridge:repl] derived title from message ${W}: ${O}`),KZ(A,O,{baseUrl:k,getAccessToken:HJ}).catch(()=>{})},S=(O,A)=>{let W=++n,b=l;ZZ(O,AbortSignal.timeout(15000)).then((C)=>{if(C&&W===n&&KJ===A&&!yJ(RJ()))_(C,A,b)})},D=(O,A)=>{if(d||yJ(RJ()))return!0;if(KJ!==void 0&&KJ!==A)l=0;if(KJ=A,l++,l===1&&!B){let W=kQ(O);if(W)_(W,A,l);S(O,A)}else if(l===3){let W=H?.(),b=W?QZ(XZ(W)):O;S(b,A)}return l>=3},P=mQ("tengu_bridge_initial_history_cap",200,300000),a=await uQ();if(!a)return ZJ("no_org_uuid","[bridge:repl] Skipping: no org UUID"),Q?.("failed","/login"),null;if(nQ()&&!y){let O=await VZ();if(O)return ZJ("version_too_old",`[bridge:repl] Skipping: ${O}`,!0),Q?.("failed","run `claude update` to upgrade"),null;J("[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)");let{initEnvLessBridgeCore:A}=await import("./remoteBridgeCore-0.6.4-r2nre1by.mjs");return A({baseUrl:k,orgUUID:a,title:v,getAccessToken:HJ,onAuth401:aJ,toSDKMessages:iJ,initialHistoryCap:P,initialMessages:z,onInboundMessage:$,onUserMessage:D,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,outboundOnly:o,tags:T})}let I=rQ();if(I)return ZJ("version_too_old",`[bridge:repl] Skipping: ${I}`),Q?.("failed","run `claude update` to upgrade"),null;let s=await vQ(),F=await SQ(),c=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||k,YJ="claude_code";return hQ({dir:bQ(),machineName:tZ(),branch:s,gitRepoUrl:F,title:v,baseUrl:k,sessionIngressUrl:c,workerType:YJ,getAccessToken:HJ,createSession:(O)=>$Z({...O,events:[],baseUrl:k,getAccessToken:HJ}),archiveSession:(O)=>zZ(O,{baseUrl:k,getAccessToken:HJ,timeoutMs:1500}).catch((A)=>{J(`[bridge:repl] archiveBridgeSession threw: ${u(A)}`,{level:"error"})}),getCurrentTitle:()=>yJ(RJ())??v,onUserMessage:D,toSDKMessages:iJ,onAuth401:aJ,getPollIntervalConfig:jZ,initialHistoryCap:P,initialMessages:z,previouslyFlushedUUIDs:X,onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,perpetual:y})}var TQ=50;function kQ(K){let $=pQ(K),N=(/^(.*?[.!?])\s/.exec($)?.[1]??$).replace(/\s+/g," ").trim();if(!N)return;return N.length>TQ?N.slice(0,TQ-1)+"…":N}export{i6 as initReplBridge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$Y as I,AY as s,EX as i,EY as t,FX as j,GY as u,HY as v,IY as w,JY as x,KY as y,LY as z,MY as A,OY as B,PX as k,PY as C,TX as l,UY as D,VY as E,WY as F,XY as G,_Y as H,aZ as J,bX as a,bZ as K,cY as m,cZ as L,dZ as M,eX as b,fX as c,hY as n,iX as d,jY as o,lX as e,mX as f,nX as g,oX as h,pY as p,wY as q,yY as r}from"./cli-0.6.4-z3hp0qzv.mjs";import"./cli-0.6.4-vyqg6c95.mjs";import"./cli-0.6.4-g37ywszt.mjs";import"./cli-0.6.4-dhyghbjg.mjs";import"./cli-0.6.4-btcax77x.mjs";import"./cli-0.6.4-n9mgjg26.mjs";import"./cli-0.6.4-x3pc9zn1.mjs";import"./cli-0.6.4-em2mfvpg.mjs";import"./cli-0.6.4-prdj94yp.mjs";import"./cli-0.6.4-771h1906.mjs";import"./cli-0.6.4-s062axqp.mjs";import"./cli-0.6.4-4qyz0e3r.mjs";import"./cli-0.6.4-95vk17cy.mjs";import"./cli-0.6.4-4b3h6h1j.mjs";import"./cli-0.6.4-ksf3bj49.mjs";import"./cli-0.6.4-x6npewbm.mjs";import"./cli-0.6.4-xf6vdp7p.mjs";import"./cli-0.6.4-rqmfmwew.mjs";import"./cli-0.6.4-43y102gt.mjs";import"./cli-0.6.4-1k1e5y32.mjs";import"./cli-0.6.4-yxqfeka0.mjs";import"./cli-0.6.4-0gnhakty.mjs";import"./cli-0.6.4-2d65trmc.mjs";import"./cli-0.6.4-yrfkm9my.mjs";M();export{k as wrapText,g as useThemeSetting,f as useTheme,A as useTerminalViewport,I as useTerminalTitle,m as useTerminalFocus,H as useTabStatus,d as useStdin,G as useSelection,h as usePreviewTheme,F as useInterval,D as useInput,C as useApp,E as useAnimationTimer,B as useAnimationFrame,a as supportsTabStatus,K as render,J as measureElement,L as createRoot,q as color,e as ThemeProvider,s as Text,j as TerminalFocusEvent,z as Spacer,y as RawAnsi,x as NoSelect,w as Newline,t as Link,i as InputEvent,l as FocusManager,c as EventEmitter,b as Event,p as ClickEvent,v as Button,r as Box,o as BaseText,n as BaseBox,u as Ansi};
|