@claudiolabs/claudin 1.1.22 → 1.1.24
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-1.1.24-qv4fnna8.mjs +1 -0
- package/dist/chunks/App-1.1.24-say2rpmy.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +6 -0
- package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +1 -0
- package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +1 -0
- package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +1 -0
- package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +110 -0
- package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +3 -0
- package/dist/chunks/api-1.1.24-dkqpat59.mjs +1 -0
- package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +1 -0
- package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +1 -0
- package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +1 -0
- package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +1 -0
- package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +1 -0
- package/dist/chunks/branch-1.1.24-3df7e69c.mjs +4 -0
- package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +1 -0
- package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +1 -0
- package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +4 -0
- package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +1 -0
- package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +1 -0
- package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +1 -0
- package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +1 -0
- package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +2 -0
- package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +2 -0
- package/dist/chunks/cli-1.1.24-12hfxy63.mjs +12 -0
- package/dist/chunks/cli-1.1.24-14842nvc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-190psky8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-1mx8wjec.mjs +2 -0
- package/dist/chunks/cli-1.1.24-228jgyfg.mjs +2 -0
- package/dist/chunks/cli-1.1.24-241znxsf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2d5h000x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2g0372f8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2md121ma.mjs +2 -0
- package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +5456 -0
- package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +2 -0
- package/dist/chunks/cli-1.1.24-308y9m4j.mjs +2 -0
- package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +3 -0
- package/dist/chunks/cli-1.1.24-36c9cxby.mjs +25 -0
- package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-3n53gv32.mjs +2 -0
- package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +12 -0
- package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-47657dtc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4cre60p8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5jpkct15.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +2 -0
- package/dist/chunks/cli-1.1.24-5vw5z579.mjs +2 -0
- package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6gj496xe.mjs +4 -0
- package/dist/chunks/cli-1.1.24-6hqn628p.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6mm894jd.mjs +5 -0
- package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +6 -0
- package/dist/chunks/cli-1.1.24-6rneem3p.mjs +2 -0
- package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-707k0kc7.mjs +133 -0
- package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ahqssha.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ga8r482.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +4 -0
- package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +2 -0
- package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8d439hr1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +7 -0
- package/dist/chunks/cli-1.1.24-8n6b217h.mjs +50 -0
- package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8xvf355a.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +2 -0
- package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9414cm38.mjs +2 -0
- package/dist/chunks/cli-1.1.24-985tmwb6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +3 -0
- package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +2 -0
- package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +58 -0
- package/dist/chunks/cli-1.1.24-a33s2dcr.mjs +2 -0
- package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +2 -0
- package/dist/chunks/cli-1.1.24-aaym95m1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-abyr5pge.mjs +2 -0
- package/dist/chunks/cli-1.1.24-agq0y77k.mjs +9 -0
- package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +4 -0
- package/dist/chunks/cli-1.1.24-b3nksc62.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +4 -0
- package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c0j54zba.mjs +25 -0
- package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c7007hz6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +2 -0
- package/dist/chunks/cli-1.1.24-chach6xd.mjs +39 -0
- package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +4 -0
- package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-d371v1bp.mjs +42 -0
- package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +18 -0
- package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +16 -0
- package/dist/chunks/cli-1.1.24-e21q73az.mjs +2 -0
- package/dist/chunks/cli-1.1.24-e960m296.mjs +2 -0
- package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +4 -0
- package/dist/chunks/cli-1.1.24-ex7hr389.mjs +3 -0
- package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +133 -0
- package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-f2exw52y.mjs +2 -0
- package/dist/chunks/cli-1.1.24-f942w88t.mjs +2 -0
- package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +18 -0
- package/dist/chunks/cli-1.1.24-fqh8r338.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +2 -0
- package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +34 -0
- package/dist/chunks/cli-1.1.24-gb39akdj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-gbya20sv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +2 -0
- package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +4 -0
- package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +24 -0
- package/dist/chunks/cli-1.1.24-hty94kzp.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jetxd54w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +2 -0
- package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +3 -0
- package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +3 -0
- package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +2 -0
- package/dist/chunks/cli-1.1.24-k1dhj122.mjs +2 -0
- package/dist/chunks/cli-1.1.24-k2cach52.mjs +2 -0
- package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +2 -0
- package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +21 -0
- package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-mgndv90z.mjs +24 -0
- package/dist/chunks/cli-1.1.24-mwva78xt.mjs +2 -0
- package/dist/chunks/cli-1.1.24-myqjptqw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-n18majmw.mjs +8 -0
- package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +3 -0
- package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nhz403dg.mjs +3 -0
- package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nsggarp4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +2 -0
- package/dist/chunks/cli-1.1.24-p2a545ga.mjs +3 -0
- package/dist/chunks/cli-1.1.24-p71y388t.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pe23qamd.mjs +206 -0
- package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +6 -0
- package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-prprq6xe.mjs +2 -0
- package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +6 -0
- package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +2 -0
- package/dist/chunks/cli-1.1.24-qn608pma.mjs +2 -0
- package/dist/chunks/cli-1.1.24-qt5m4501.mjs +26 -0
- package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +2 -0
- package/dist/chunks/cli-1.1.24-s241cgaj.mjs +3 -0
- package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +2 -0
- package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-skqekybx.mjs +2 -0
- package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +17 -0
- package/dist/chunks/cli-1.1.24-sv60tfze.mjs +2 -0
- package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +9 -0
- package/dist/chunks/cli-1.1.24-t811r68k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +24 -0
- package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +15 -0
- package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +2 -0
- package/dist/chunks/cli-1.1.24-v322mn8d.mjs +6 -0
- package/dist/chunks/cli-1.1.24-vandpwa9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +60 -0
- package/dist/chunks/cli-1.1.24-vg493phv.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +3 -0
- package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +17 -0
- package/dist/chunks/cli-1.1.24-vwmxvbv9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-vz1y844w.mjs +2 -0
- package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +2 -0
- package/dist/chunks/cli-1.1.24-w828y1cd.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +4 -0
- package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +3 -0
- package/dist/chunks/cli-1.1.24-wmzctccq.mjs +4 -0
- package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wshydefj.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ww5zft49.mjs +20 -0
- package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-wygwske9.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x19qr19f.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x1wayra7.mjs +7 -0
- package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +2 -0
- package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +1 -0
- package/dist/chunks/cli-1.1.24-xdhm369m.mjs +15 -0
- package/dist/chunks/cli-1.1.24-xmtasnec.mjs +2 -0
- package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +3 -0
- package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y4gprept.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +2 -0
- package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +4 -0
- package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yh801h84.mjs +2 -0
- package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +5 -0
- package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +6 -0
- package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +45 -0
- package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +2 -0
- package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +2 -0
- package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +3 -0
- package/dist/chunks/cli-1.1.24-z5t424fy.mjs +15 -0
- package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +24 -0
- package/dist/chunks/cli-1.1.24-zey4mks2.mjs +6 -0
- package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +66 -0
- package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +2 -0
- package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +2 -0
- package/dist/chunks/cli-1.1.24-zzy8r310.mjs +3 -0
- package/dist/chunks/client-1.1.24-04048dd4.mjs +1 -0
- package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +1 -0
- package/dist/chunks/compact-1.1.24-191dct4e.mjs +3 -0
- package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +1 -0
- package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +1 -0
- package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +1 -0
- package/dist/chunks/context-1.1.24-m2nks3pf.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +1 -0
- package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +1 -0
- package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +9 -0
- package/dist/chunks/cost-1.1.24-n2977gae.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +1 -0
- package/dist/chunks/createSession-1.1.24-jmw71620.mjs +1 -0
- package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +1534 -0
- package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +1 -0
- package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +1 -0
- package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +1 -0
- package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +1 -0
- package/dist/chunks/effort-1.1.24-pj04350n.mjs +13 -0
- package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +1 -0
- package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +1 -0
- package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +1 -0
- package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +1 -0
- package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +1 -0
- package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +1 -0
- package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +1 -0
- package/dist/chunks/fast-1.1.24-b97zvms4.mjs +1 -0
- package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +1 -0
- package/dist/chunks/git-1.1.24-g44mqdr1.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +1 -0
- package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +4 -0
- package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +1 -0
- package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +2 -0
- package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +6 -0
- package/dist/chunks/help-1.1.24-4pb60ggc.mjs +1 -0
- package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +3 -0
- package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +79 -0
- package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +1 -0
- package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +1 -0
- package/dist/chunks/import-1.1.24-bpnr0awz.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +1 -0
- package/dist/chunks/index-1.1.24-1qfnahpf.mjs +5 -0
- package/dist/chunks/index-1.1.24-2c5tqanw.mjs +1 -0
- package/dist/chunks/index-1.1.24-3pkassck.mjs +1 -0
- package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +30 -0
- package/dist/chunks/index-1.1.24-5kf8n97z.mjs +1 -0
- package/dist/chunks/index-1.1.24-7nn95an1.mjs +2 -0
- package/dist/chunks/index-1.1.24-8005ram7.mjs +1 -0
- package/dist/chunks/index-1.1.24-80m0ydka.mjs +2 -0
- package/dist/chunks/index-1.1.24-931bwhyw.mjs +9 -0
- package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +1 -0
- package/dist/chunks/index-1.1.24-bvewx84q.mjs +1 -0
- package/dist/chunks/index-1.1.24-hvxes6d7.mjs +1 -0
- package/dist/chunks/index-1.1.24-j4v31wtc.mjs +1 -0
- package/dist/chunks/index-1.1.24-jt13vzsz.mjs +1 -0
- package/dist/chunks/index-1.1.24-k9m56w47.mjs +1 -0
- package/dist/chunks/index-1.1.24-ksthp5f5.mjs +1 -0
- package/dist/chunks/index-1.1.24-p0dh0w23.mjs +1 -0
- package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +1 -0
- package/dist/chunks/index-1.1.24-ry33qapt.mjs +23 -0
- package/dist/chunks/index-1.1.24-wrwbr5my.mjs +1 -0
- package/dist/chunks/index-1.1.24-x476ts8e.mjs +1 -0
- package/dist/chunks/index-1.1.24-yz1p3g13.mjs +1 -0
- package/dist/chunks/index-1.1.24-zpd6455g.mjs +9 -0
- package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +1 -0
- package/dist/chunks/ink-1.1.24-n7wnynts.mjs +1 -0
- package/dist/chunks/insights-1.1.24-brh3tfms.mjs +870 -0
- package/dist/chunks/install-1.1.24-bnszrzxv.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +1 -0
- package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +2 -0
- package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +1 -0
- package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +1 -0
- package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +1 -0
- package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +4 -0
- package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +17 -0
- package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +1 -0
- package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +1 -0
- package/dist/chunks/memory-1.1.24-dvn88stz.mjs +72 -0
- package/dist/chunks/model-1.1.24-jqp66a34.mjs +1 -0
- package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +2 -0
- package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +15 -0
- package/dist/chunks/oauth-1.1.24-5v87662s.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +14 -0
- package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +1 -0
- package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +1 -0
- package/dist/chunks/parser-1.1.24-r4f154gw.mjs +1 -0
- package/dist/chunks/passes-1.1.24-znx7myf5.mjs +1 -0
- package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +3 -0
- package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +1 -0
- package/dist/chunks/plan-1.1.24-vhaqffge.mjs +1 -0
- package/dist/chunks/plist-1.1.24-a5racx0y.mjs +1 -0
- package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +1 -0
- package/dist/chunks/plugins-1.1.24-mza746hr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +2 -0
- package/dist/chunks/print-1.1.24-3xs40xg6.mjs +57 -0
- package/dist/chunks/process-1.1.24-7znk7nvb.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +9 -0
- package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +1 -0
- package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +1 -0
- package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +13 -0
- package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +26 -0
- package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +1 -0
- package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +2 -0
- package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +1 -0
- package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +1 -0
- package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +2 -0
- package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +1 -0
- package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +1 -0
- package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +1 -0
- package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +12 -0
- package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +1 -0
- package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +1 -0
- package/dist/chunks/state-1.1.24-5c4debwf.mjs +1 -0
- package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +6 -0
- package/dist/chunks/status-1.1.24-abhqj5mw.mjs +1 -0
- package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +1 -0
- package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +1 -0
- package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +1 -0
- package/dist/chunks/theme-1.1.24-x6419d8v.mjs +1 -0
- package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +1 -0
- package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +1 -0
- package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +69 -0
- package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +4 -0
- package/dist/chunks/update-1.1.24-der2v1xy.mjs +72 -0
- package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +1 -0
- package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +1 -0
- package/dist/chunks/usage-1.1.24-69x06f48.mjs +1 -0
- package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +1 -0
- package/dist/chunks/utils-1.1.24-sr136rh9.mjs +1 -0
- package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +13 -0
- package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +1 -0
- package/dist/chunks/wiki-1.1.24-aevd508s.mjs +132 -0
- package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +1 -0
- package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +1 -0
- package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.22-4ba6sbn1.mjs +0 -1
- package/dist/chunks/App-1.1.22-2m11r40p.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.22-zp1y1218.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.22-s95rx0gk.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.22-5qa3134t.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.22-g92az35d.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.22-9ccdds3r.mjs +0 -6
- package/dist/chunks/Doctor-1.1.22-1gc86nqw.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.22-z6sndn27.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.22-gb09bshz.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.22-52wjx92m.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.22-q6j91dba.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.22-z6x86qa5.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.22-05vxshwk.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.22-zh99bzde.mjs +0 -1
- package/dist/chunks/REPL-1.1.22-2c229abh.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.22-jp1q8573.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.22-s20kx6cz.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.22-036phq5k.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.22-2fpx0v36.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.22-q9xh6c1x.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.22-shtyh6x1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.22-hwnb32mw.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.22-tx9d7tzw.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.22-qd5cmwvf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.22-be3sb4ed.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.22-rm5akk7n.mjs +0 -1
- package/dist/chunks/agents-1.1.22-ad8hknzy.mjs +0 -3
- package/dist/chunks/agents-1.1.22-c8hb8sst.mjs +0 -110
- package/dist/chunks/api-1.1.22-b74pv1bc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.22-qz35a5k4.mjs +0 -1
- package/dist/chunks/assistant-1.1.22-mqc1g16y.mjs +0 -1
- package/dist/chunks/auth-1.1.22-hwjcqvy4.mjs +0 -1
- package/dist/chunks/auth-1.1.22-pwa369jw.mjs +0 -1
- package/dist/chunks/autoMode-1.1.22-3by2zax3.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.22-e4mn7cas.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.22-ng881g40.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.22-hxy5jpcq.mjs +0 -1
- package/dist/chunks/branch-1.1.22-akcs4dk5.mjs +0 -4
- package/dist/chunks/bridge-1.1.22-rttgyvkn.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.22-gtqyk17c.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.22-tfhha37q.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.22-mt52dzzq.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.22-bqaet342.mjs +0 -1
- package/dist/chunks/btw-1.1.22-y44fbm0x.mjs +0 -1
- package/dist/chunks/buddy-1.1.22-1jzcjwyr.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.22-wmckr2fj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.22-rzg950xm.mjs +0 -4
- package/dist/chunks/caches-1.1.22-kabyzmmd.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.22-7mafzt35.mjs +0 -1
- package/dist/chunks/claudemd-1.1.22-genp8cn4.mjs +0 -1
- package/dist/chunks/clear-1.1.22-ta3shrbf.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.22-hvkervt4.mjs +0 -1
- package/dist/chunks/cli-1.1.22-00s47593.mjs +0 -4
- package/dist/chunks/cli-1.1.22-01xfy12n.mjs +0 -18
- package/dist/chunks/cli-1.1.22-01yb5we4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0553cn3c.mjs +0 -3
- package/dist/chunks/cli-1.1.22-073y3gd5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-07prh801.mjs +0 -2
- package/dist/chunks/cli-1.1.22-08c4ym21.mjs +0 -2
- package/dist/chunks/cli-1.1.22-09eb3077.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0h7jejsr.mjs +0 -3
- package/dist/chunks/cli-1.1.22-0n0cxg2p.mjs +0 -4
- package/dist/chunks/cli-1.1.22-0x96ahhc.mjs +0 -4
- package/dist/chunks/cli-1.1.22-1099x9x2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-12vfd6j1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1npmfnxb.mjs +0 -50
- package/dist/chunks/cli-1.1.22-1tqdha8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1vrzwj7y.mjs +0 -2
- package/dist/chunks/cli-1.1.22-22735g9w.mjs +0 -2
- package/dist/chunks/cli-1.1.22-261r450y.mjs +0 -60
- package/dist/chunks/cli-1.1.22-265a4qpa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2bdf1etb.mjs +0 -4
- package/dist/chunks/cli-1.1.22-2getjsf5.mjs +0 -6
- package/dist/chunks/cli-1.1.22-2mahjtgk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2nwmyakz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2rqykpy1.mjs +0 -18
- package/dist/chunks/cli-1.1.22-2t3fhfjv.mjs +0 -133
- package/dist/chunks/cli-1.1.22-2tctx2yg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2wh33kpx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2y82t3pd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2yxd7hfb.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2zhxvvkx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-33jc9czg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-35fe0h6z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3ehpcpz4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3h20fb9d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3jyydg5h.mjs +0 -206
- package/dist/chunks/cli-1.1.22-3nmtk1bh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3r3tadt1.mjs +0 -4
- package/dist/chunks/cli-1.1.22-3thczx3s.mjs +0 -133
- package/dist/chunks/cli-1.1.22-3xjx3y13.mjs +0 -2
- package/dist/chunks/cli-1.1.22-41aseceq.mjs +0 -3
- package/dist/chunks/cli-1.1.22-4227vtcf.mjs +0 -24
- package/dist/chunks/cli-1.1.22-48gjx3j7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4g11fbx3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4ph3xqne.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4pmfh5v2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5afprdre.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5dcmb4h9.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5mzq5mc4.mjs +0 -24
- package/dist/chunks/cli-1.1.22-5vkvwgh1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-619cwdw8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6bxa25n5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6gd42s2a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6k5nt5wc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6khex7bz.mjs +0 -34
- package/dist/chunks/cli-1.1.22-6vtb75g8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-73mzmb6a.mjs +0 -3
- package/dist/chunks/cli-1.1.22-796yez98.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7dha9j2p.mjs +0 -3
- package/dist/chunks/cli-1.1.22-7rm6jw0h.mjs +0 -17
- package/dist/chunks/cli-1.1.22-7rv96st9.mjs +0 -4
- package/dist/chunks/cli-1.1.22-7xwf9v6n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7zv5k6p0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-87m0b80d.mjs +0 -8
- package/dist/chunks/cli-1.1.22-8cxdckv7.mjs +0 -39
- package/dist/chunks/cli-1.1.22-8fwvxw5t.mjs +0 -2
- package/dist/chunks/cli-1.1.22-8zvpve6x.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9283mpm5.mjs +0 -4
- package/dist/chunks/cli-1.1.22-9affzgn1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9b6k45hn.mjs +0 -3
- package/dist/chunks/cli-1.1.22-9dr01ge1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9jjvp1h1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9t3wxp9c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9xhwr18a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-a4bc88qq.mjs +0 -2
- package/dist/chunks/cli-1.1.22-an1qn05v.mjs +0 -3
- package/dist/chunks/cli-1.1.22-as4a7add.mjs +0 -5
- package/dist/chunks/cli-1.1.22-as944wt5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b3bpnsqk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b7axxc6j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b81ce6x4.mjs +0 -15
- package/dist/chunks/cli-1.1.22-bfc0nw13.mjs +0 -3
- package/dist/chunks/cli-1.1.22-bj4bsta6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bnse4r9s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bv3a0vaa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bxfemtrx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-byxwkfrj.mjs +0 -3
- package/dist/chunks/cli-1.1.22-c07z4d74.mjs +0 -2
- package/dist/chunks/cli-1.1.22-c1h1wfjn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ca6d1erw.mjs +0 -6
- package/dist/chunks/cli-1.1.22-ccg6dy3s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ccp7e8qv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ckvf3pt3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ctbmc0bv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-cvfsmaqt.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d1w2ky89.mjs +0 -6
- package/dist/chunks/cli-1.1.22-d7cmcmfd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d990gcrg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d9y8qqg3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ddq8axpw.mjs +0 -12
- package/dist/chunks/cli-1.1.22-df129qms.mjs +0 -5
- package/dist/chunks/cli-1.1.22-df9q1a85.mjs +0 -2
- package/dist/chunks/cli-1.1.22-djkeg65n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-dpqknw7z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e25bz2ew.mjs +0 -9
- package/dist/chunks/cli-1.1.22-e5sxpgah.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e5wx36qr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-eagkxr30.mjs +0 -9
- package/dist/chunks/cli-1.1.22-eddrkydn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-emmr10wb.mjs +0 -21
- package/dist/chunks/cli-1.1.22-eqtbpc0r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-erbhk4p7.mjs +0 -4
- package/dist/chunks/cli-1.1.22-f0wja05z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-f9ntxarz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fetzhxhh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fwhfqwwn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gkryz2d0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gpt102mm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-grjw9tnm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gwhdvfge.mjs +0 -24
- package/dist/chunks/cli-1.1.22-gyhxg2db.mjs +0 -2
- package/dist/chunks/cli-1.1.22-h3m1whqm.mjs +0 -6
- package/dist/chunks/cli-1.1.22-hgwxyksg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hhmq1rbn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hjxaqntc.mjs +0 -45
- package/dist/chunks/cli-1.1.22-hqbf8xt0.mjs +0 -3
- package/dist/chunks/cli-1.1.22-hv3m9qnv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j6xg80k8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j7qc1g0f.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jdz4rqbp.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jech3kdr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jrhx2z2p.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jvrjpdd1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jz426kr2.mjs +0 -66
- package/dist/chunks/cli-1.1.22-jzvqt2pv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-k3xv38bj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-kphdet4j.mjs +0 -58
- package/dist/chunks/cli-1.1.22-kqk323ja.mjs +0 -2
- package/dist/chunks/cli-1.1.22-m41t95z0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mdapyzp3.mjs +0 -6
- package/dist/chunks/cli-1.1.22-mdttpxs6.mjs +0 -24
- package/dist/chunks/cli-1.1.22-mw0jpevk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mxqz88pc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-n0px7a23.mjs +0 -3
- package/dist/chunks/cli-1.1.22-n2jecp35.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nstgtysk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nsydz2bd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nv9q4jrr.mjs +0 -26
- package/dist/chunks/cli-1.1.22-nxv6yayj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-pgrcj1gs.mjs +0 -12
- package/dist/chunks/cli-1.1.22-q622p3vr.mjs +0 -16
- package/dist/chunks/cli-1.1.22-q76mjgec.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qmk7mm5m.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qq7q7v3n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qzc4h0w2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r0v2mak7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r7dnq81v.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r9n3fz01.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rd5zdpvh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rma08k7m.mjs +0 -3
- package/dist/chunks/cli-1.1.22-rsp3340r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rtn7nhkb.mjs +0 -1
- package/dist/chunks/cli-1.1.22-s2n02sky.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s5qhs3ds.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s6e60cqc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sema6yh6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-skpsy2jm.mjs +0 -17
- package/dist/chunks/cli-1.1.22-ss970cxc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-swvmx131.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sy41x518.mjs +0 -2
- package/dist/chunks/cli-1.1.22-tag23y0b.mjs +0 -25
- package/dist/chunks/cli-1.1.22-tkg7zwpn.mjs +0 -20
- package/dist/chunks/cli-1.1.22-tt24grn6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v260dy3k.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v2q2pts1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v8pzx6jk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vdsszncw.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vesjdg08.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vnmyjmjg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vp1eed3p.mjs +0 -7
- package/dist/chunks/cli-1.1.22-vwdxbs23.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vwv40zm1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-w09pyst3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-waqb850v.mjs +0 -15
- package/dist/chunks/cli-1.1.22-wbpdne8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xm1rhe1d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xmb0wn88.mjs +0 -42
- package/dist/chunks/cli-1.1.22-xmy1w9q2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xpvyrpxz.mjs +0 -7
- package/dist/chunks/cli-1.1.22-xxwfawkh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xygngqfs.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xzrnmekb.mjs +0 -3
- package/dist/chunks/cli-1.1.22-y0t8rezv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y3te45vg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y4rj8ced.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ya408d88.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yegp0d0j.mjs +0 -6
- package/dist/chunks/cli-1.1.22-yhgxca73.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yjv63n10.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yqbnqsen.mjs +0 -3
- package/dist/chunks/cli-1.1.22-yr5y8074.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yy4d5xbz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yzk40k6c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-z5g00tpb.mjs +0 -25
- package/dist/chunks/cli-1.1.22-zcrvxkff.mjs +0 -15
- package/dist/chunks/cli-1.1.22-zfg31zpg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zmt5pksy.mjs +0 -5426
- package/dist/chunks/cli-1.1.22-znq4fk8a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zsc0cmye.mjs +0 -2
- package/dist/chunks/client-1.1.22-wq8vw6a1.mjs +0 -1
- package/dist/chunks/color-1.1.22-qk5z13ac.mjs +0 -1
- package/dist/chunks/compact-1.1.22-rb84pjhg.mjs +0 -3
- package/dist/chunks/config-1.1.22-0p9ep18d.mjs +0 -1
- package/dist/chunks/config-1.1.22-5mngav76.mjs +0 -1
- package/dist/chunks/constants-1.1.22-kjrh13hv.mjs +0 -1
- package/dist/chunks/context-1.1.22-dw2er614.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.22-znhpxryw.mjs +0 -1
- package/dist/chunks/conversation-1.1.22-awv74gk2.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.22-m6ccr26v.mjs +0 -1
- package/dist/chunks/copy-1.1.22-7b5mhaaj.mjs +0 -9
- package/dist/chunks/cost-1.1.22-dt2gz43e.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.22-a42r8ywe.mjs +0 -1
- package/dist/chunks/createSession-1.1.22-ddd5ddkv.mjs +0 -1
- package/dist/chunks/debug-1.1.22-qraa5by9.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.22-ctnqgj01.mjs +0 -1534
- package/dist/chunks/desktop-1.1.22-wg1hxyyk.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.22-pn2g27hr.mjs +0 -1
- package/dist/chunks/detection-1.1.22-s8r50ft4.mjs +0 -1
- package/dist/chunks/diff-1.1.22-6sdsv83f.mjs +0 -1
- package/dist/chunks/doctor-1.1.22-cj56pasy.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.22-ezjhg329.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.22-k4tqtjbb.mjs +0 -1
- package/dist/chunks/effort-1.1.22-eztddah9.mjs +0 -13
- package/dist/chunks/engine-1.1.22-6wrga0yh.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.22-9jm3xgge.mjs +0 -1
- package/dist/chunks/envUtils-1.1.22-7qb9fr3c.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.22-4xy91rp5.mjs +0 -1
- package/dist/chunks/environments-1.1.22-ke6dvmrb.mjs +0 -1
- package/dist/chunks/errors-1.1.22-rgsmtg01.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.22-xv4kj009.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.22-m7ndjwpq.mjs +0 -1
- package/dist/chunks/exit-1.1.22-m0bm4f9d.mjs +0 -1
- package/dist/chunks/explorer-1.1.22-jsrgxmw0.mjs +0 -1
- package/dist/chunks/export-1.1.22-s0m4af77.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.22-9sdr6tyh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.22-9k857j7m.mjs +0 -1
- package/dist/chunks/fast-1.1.22-3w3eg6gc.mjs +0 -1
- package/dist/chunks/feedback-1.1.22-7jr2gbzj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.22-08zb6ajr.mjs +0 -1
- package/dist/chunks/git-1.1.22-m66s3f9x.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.22-2r1deqm3.mjs +0 -1
- package/dist/chunks/goal-1.1.22-60jn1knb.mjs +0 -4
- package/dist/chunks/growthbook-1.1.22-jnddje2q.mjs +0 -1
- package/dist/chunks/headless-1.1.22-jc8xk2dj.mjs +0 -2
- package/dist/chunks/heapdump-1.1.22-h87tv4ay.mjs +0 -6
- package/dist/chunks/help-1.1.22-hkgcwycs.mjs +0 -1
- package/dist/chunks/hookChains-1.1.22-hjjsdtfz.mjs +0 -3
- package/dist/chunks/hooks-1.1.22-d51y91pz.mjs +0 -79
- package/dist/chunks/hooks-1.1.22-knpyhzjq.mjs +0 -1
- package/dist/chunks/ide-1.1.22-0tqwa732.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.22-6qd4v6hf.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.22-gvb5zry4.mjs +0 -1
- package/dist/chunks/index-1.1.22-19x2126b.mjs +0 -30
- package/dist/chunks/index-1.1.22-28fcrc19.mjs +0 -9
- package/dist/chunks/index-1.1.22-2ea02rg7.mjs +0 -1
- package/dist/chunks/index-1.1.22-2rc4s1ea.mjs +0 -1
- package/dist/chunks/index-1.1.22-33ka1vh2.mjs +0 -1
- package/dist/chunks/index-1.1.22-3sbe52mk.mjs +0 -1
- package/dist/chunks/index-1.1.22-3ze6s7jh.mjs +0 -1
- package/dist/chunks/index-1.1.22-45fydkr4.mjs +0 -1
- package/dist/chunks/index-1.1.22-4jyb49wh.mjs +0 -5
- package/dist/chunks/index-1.1.22-53bbsdht.mjs +0 -23
- package/dist/chunks/index-1.1.22-6dbeceeq.mjs +0 -1
- package/dist/chunks/index-1.1.22-8dntbh7a.mjs +0 -1
- package/dist/chunks/index-1.1.22-8kjk15ba.mjs +0 -1
- package/dist/chunks/index-1.1.22-an0gp01d.mjs +0 -1
- package/dist/chunks/index-1.1.22-cnbxnqdc.mjs +0 -1
- package/dist/chunks/index-1.1.22-fpsntg6z.mjs +0 -1
- package/dist/chunks/index-1.1.22-fv3cwfqb.mjs +0 -1
- package/dist/chunks/index-1.1.22-hjp106ay.mjs +0 -1
- package/dist/chunks/index-1.1.22-njczpq0j.mjs +0 -9
- package/dist/chunks/index-1.1.22-zeprwv8d.mjs +0 -2
- package/dist/chunks/index-1.1.22-zmmyfbe7.mjs +0 -1
- package/dist/chunks/index-1.1.22-zssja3p2.mjs +0 -2
- package/dist/chunks/index-1.1.22-zw38mh26.mjs +0 -1
- package/dist/chunks/init-1.1.22-xnq27h0g.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.22-y1d60qz3.mjs +0 -1
- package/dist/chunks/ink-1.1.22-k48q879m.mjs +0 -1
- package/dist/chunks/insights-1.1.22-a1cvbm3p.mjs +0 -870
- package/dist/chunks/install-1.1.22-jbzmqsdp.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.22-8a3hpgxj.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.22-rt6z32mx.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.22-z450bn0g.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.22-6ks3mty3.mjs +0 -1
- package/dist/chunks/keybindings-1.1.22-g9y42jd0.mjs +0 -2
- package/dist/chunks/knowledge-1.1.22-9pnvwgtc.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.22-qt6jab06.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.22-sq4k9pva.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.22-vshz13qp.mjs +0 -1
- package/dist/chunks/log-1.1.22-e7ksty3v.mjs +0 -1
- package/dist/chunks/main-1.1.22-6td1g6n1.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.22-htj06t2x.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-18h7drd2.mjs +0 -17
- package/dist/chunks/mcp-1.1.22-ezfae103.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-s120rv95.mjs +0 -4
- package/dist/chunks/mcpb-1.1.22-vm6h475e.mjs +0 -1
- package/dist/chunks/memory-1.1.22-e0tx5g0m.mjs +0 -72
- package/dist/chunks/model-1.1.22-jpnba4j9.mjs +0 -2
- package/dist/chunks/model-1.1.22-ptaehfsq.mjs +0 -1
- package/dist/chunks/node-1.1.22-n2j0h224.mjs +0 -14
- package/dist/chunks/oauth-1.1.22-xryjmqvy.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.22-5g2mvrb0.mjs +0 -14
- package/dist/chunks/output-style-1.1.22-15avrxe6.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.22-74v22202.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.22-th9g7k2v.mjs +0 -1
- package/dist/chunks/parser-1.1.22-f76s0696.mjs +0 -1
- package/dist/chunks/passes-1.1.22-5067sbnv.mjs +0 -1
- package/dist/chunks/permissions-1.1.22-jq3s11rr.mjs +0 -3
- package/dist/chunks/permissions-1.1.22-yjbnyvja.mjs +0 -1
- package/dist/chunks/plan-1.1.22-a0v77tas.mjs +0 -1
- package/dist/chunks/plist-1.1.22-stjt7ne7.mjs +0 -1
- package/dist/chunks/plugin-1.1.22-ccc18w6d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.22-6w6xqk0q.mjs +0 -1
- package/dist/chunks/plugins-1.1.22-14tg96p5.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.22-w8y973hr.mjs +0 -2
- package/dist/chunks/print-1.1.22-fj5my0gp.mjs +0 -57
- package/dist/chunks/process-1.1.22-5ehjyzp9.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.22-rfx8p83z.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.22-zz4rg3b9.mjs +0 -9
- package/dist/chunks/prompt-1.1.22-1k2zk0wc.mjs +0 -1
- package/dist/chunks/prompt-1.1.22-dnwycjh5.mjs +0 -1
- package/dist/chunks/prompts-1.1.22-4p4a5se6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.22-cs8w65fv.mjs +0 -13
- package/dist/chunks/provider-1.1.22-bn5s7tah.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.22-pymtgbvs.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.22-c7c5hbxa.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.22-w2qffppm.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.22-ab4qb34w.mjs +0 -26
- package/dist/chunks/registry-1.1.22-nsm8d8eb.mjs +0 -1
- package/dist/chunks/release-notes-1.1.22-8x23myzn.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.22-ak7jhwx7.mjs +0 -2
- package/dist/chunks/remote-env-1.1.22-x7trmcqx.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.22-hbz0g8ya.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.22-f6jb57v7.mjs +0 -1
- package/dist/chunks/rename-1.1.22-xe35q0k0.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.22-fhwjkdxg.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.22-vv0a8mm6.mjs +0 -1
- package/dist/chunks/resume-1.1.22-2sa8hbck.mjs +0 -2
- package/dist/chunks/rewind-1.1.22-9p74phfv.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.22-d6srkssk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.22-g8m5b1gg.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.22-xfg2fsw2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.22-dtc44mq5.mjs +0 -1
- package/dist/chunks/session-1.1.22-3tjyetra.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.22-33mn13e8.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.22-d3bejz9v.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.22-j74sh7m1.mjs +0 -1
- package/dist/chunks/settings-1.1.22-nkarfvpa.mjs +0 -1
- package/dist/chunks/setup-1.1.22-qcehqed4.mjs +0 -12
- package/dist/chunks/sinks-1.1.22-cq9rny33.mjs +0 -1
- package/dist/chunks/skills-1.1.22-ekjpttza.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.22-9fngk9y1.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.22-d1k95rad.mjs +0 -1
- package/dist/chunks/state-1.1.22-jwyx08g8.mjs +0 -1
- package/dist/chunks/stats-1.1.22-gbms572d.mjs +0 -6
- package/dist/chunks/status-1.1.22-k6tz1204.mjs +0 -1
- package/dist/chunks/stickers-1.1.22-0p5wcv91.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.22-8nw03e6a.mjs +0 -1
- package/dist/chunks/tasks-1.1.22-j3tvhmzv.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.22-9h9wz2vt.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.22-az279j20.mjs +0 -1
- package/dist/chunks/teleport-1.1.22-x65tzb7k.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.22-mgtn4k1h.mjs +0 -1
- package/dist/chunks/theme-1.1.22-ytcpmqf6.mjs +0 -1
- package/dist/chunks/thinkback-1.1.22-r3tqf574.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.22-gy5pmk8r.mjs +0 -1
- package/dist/chunks/toolPool-1.1.22-enzkj5fj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.22-nks2rxm6.mjs +0 -1
- package/dist/chunks/tools-1.1.22-vngj7bpe.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.22-521tzk05.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.22-thexftmp.mjs +0 -69
- package/dist/chunks/types-1.1.22-jp8m10f1.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.22-tjrn8agz.mjs +0 -4
- package/dist/chunks/update-1.1.22-n10ztshv.mjs +0 -72
- package/dist/chunks/upgrade-1.1.22-e0pjbtcd.mjs +0 -1
- package/dist/chunks/upload-1.1.22-e00jdttg.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.22-1qmxkbg7.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.22-jj7mv0bn.mjs +0 -1
- package/dist/chunks/usage-1.1.22-s54ykz8x.mjs +0 -1
- package/dist/chunks/util-1.1.22-wntx1394.mjs +0 -1
- package/dist/chunks/utils-1.1.22-wmew7b5j.mjs +0 -1
- package/dist/chunks/vim-1.1.22-qddsv4he.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.22-1z60qm0a.mjs +0 -13
- package/dist/chunks/watcher-1.1.22-100q2zbm.mjs +0 -1
- package/dist/chunks/wiki-1.1.22-akk70ycq.mjs +0 -132
- package/dist/chunks/workflows-1.1.22-ed33rwny.mjs +0 -1
- package/dist/chunks/worktree-1.1.22-f3b1rr0f.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.22-taeyewr8.mjs +0 -1
- package/dist/chunks/wrapper-1.1.22-hayqq9zr.mjs +0 -7
- /package/dist/chunks/{cli-1.1.22-ws6y62na.mjs → cli-1.1.24-k5cs55nk.mjs} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{I as x0}from"./cli-1.1.22-619cwdw8.mjs";import{$ as d0}from"./cli-1.1.22-9b6k45hn.mjs";import{fb as u0}from"./cli-1.1.22-f9ntxarz.mjs";import{kb as c0}from"./cli-1.1.22-bj4bsta6.mjs";import{Bc as Vf,zc as y0}from"./cli-1.1.22-nxv6yayj.mjs";import{Ec as $,Fc as Uf}from"./cli-1.1.22-rsp3340r.mjs";import{Hc as O0,Ic as Lf}from"./cli-1.1.22-zsc0cmye.mjs";import{bd as q0,cd as o0}from"./cli-1.1.22-v2q2pts1.mjs";import{Yg as m0,Zg as Rf}from"./cli-1.1.22-gpt102mm.mjs";import{AG as l0,BG as n,DG as i0,IG as m,JG as Q0,JS as A0,KG as P0,LG as Jf,LS as D0,NS as Xf,TT as _0,ZM as R0,_x as E,bU as C0,co as p,cy as J0,dU as b0,do as g0,eo as f0,fU as Yf,fo as S0,go as F0,hN as a0,ho as $0,iU as N0,kU as Zf,ko as _,lo as a,rH as E0,sH as Qf,vN as U0,xN as n0,zG as T0}from"./cli-1.1.22-zmt5pksy.mjs";import{DZ as u,H1 as o,VZ as K0,_Z as zf,a1 as e,c1 as A,g1 as l}from"./cli-1.1.22-261r450y.mjs";import{c4 as t,d4 as q,e4 as G,f4 as w}from"./cli-1.1.22-vwdxbs23.mjs";import{E5 as k0,F5 as qf,_4 as I0,d5 as Tf}from"./cli-1.1.22-q622p3vr.mjs";import{Hga as M0,Kga as Ff,Uea as H0,Wda as H,Zda as K,_ea as j,aea as w0,bfa as i,cea as G0,dfa as B0,kea as d,wfa as X0}from"./cli-1.1.22-3jyydg5h.mjs";import{Eha as W,Iha as e0}from"./cli-1.1.22-erbhk4p7.mjs";import{_ha as W0,gia as h0,mia as ff}from"./cli-1.1.22-dpqknw7z.mjs";import{Zja as I,aka as c}from"./cli-1.1.22-s5qhs3ds.mjs";import{dla as s0}from"./cli-1.1.22-ca6d1erw.mjs";import{Nla as S,Vla as t0}from"./cli-1.1.22-265a4qpa.mjs";import{ioa as Y0,oqa as Z0,yra as r0}from"./cli-1.1.22-v260dy3k.mjs";import{pta as x,uta as B}from"./cli-1.1.22-w09pyst3.mjs";c();Xf();r0();import{appendFileSync as Wf}from"fs";Zf();zf();Q0();ff();Ff();c();d();i0();a();var s=x(u(),1);o();w();var v=x(u(),1);function D(){let T=v.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=G(A,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",q(l,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}w();function r(T){let f=s.c(13),{serverName:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(h){I("",{choice:h});f:switch(h){case"yes":case"yes_all":{let M=(K()||{}).enabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{enabledMcpjsonServers:[...M,F]});if(h==="yes_all")H("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let M=(K()||{}).disabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{disabledMcpjsonServers:[...M,F]});L()}}},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V=`New MCP server found in .mcp.json: ${F}`,Q;if(f[3]!==J)Q=()=>J("no"),f[3]=J,f[4]=Q;else Q=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=q(D,{}),f[5]=z;else z=f[5];let R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=R;else R=f[6];let X;if(f[7]!==J)X=q(n,{options:R,onChange:(Z)=>J(Z),onCancel:()=>J("no")}),f[7]=J,f[8]=X;else X=f[8];let Y;if(f[9]!==V||f[10]!==Q||f[11]!==X)Y=G(_,{title:V,color:"warning",onCancel:Q,children:[z,X]}),f[9]=V,f[10]=Q,f[11]=X,f[12]=Y;else Y=f[12];return Y}o0();c();o();d();S0();l0();$0();a();g0();var L0=x(u(),1);w();function z0(T){let f=L0.c(21),{serverNames:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(C){let y=K()||{},p0=y.enabledMcpjsonServers||[],j0=y.disabledMcpjsonServers||[],[b,N]=q0(F,(P)=>C.includes(P));if(I("",{approved:b.length,rejected:N.length}),b.length>0){let P=[...new Set([...p0,...b])];H("localSettings",{enabledMcpjsonServers:P})}if(N.length>0){let P=[...new Set([...j0,...N])];H("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V;if(f[3]!==L||f[4]!==F)V=()=>{let C=(K()||{}).disabledMcpjsonServers||[],y=[...new Set([...C,...F])];H("localSettings",{disabledMcpjsonServers:y}),L()},f[3]=L,f[4]=F,f[5]=V;else V=f[5];let Q=V,z=`${F.length} new MCP servers found in .mcp.json`,R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=q(D,{}),f[6]=R;else R=f[6];let X;if(f[7]!==F)X=F.map(v0),f[7]=F,f[8]=X;else X=f[8];let Y;if(f[9]!==Q||f[10]!==J||f[11]!==F||f[12]!==X)Y=q(T0,{options:X,defaultValue:F,onSubmit:J,onCancel:Q,hideIndexes:!0}),f[9]=Q,f[10]=J,f[11]=F,f[12]=X,f[13]=Y;else Y=f[13];let Z;if(f[14]!==Q||f[15]!==z||f[16]!==Y)Z=G(_,{title:z,subtitle:"Select any you wish to enable.",color:"warning",onCancel:Q,hideInputGuide:!0,children:[R,Y]}),f[14]=Q,f[15]=z,f[16]=Y,f[17]=Z;else Z=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h=q(e,{paddingX:1,children:q(A,{dimColor:!0,italic:!0,children:G(F0,{children:[q(p,{shortcut:"Space",action:"select"}),q(p,{shortcut:"Enter",action:"confirm"}),q(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=h;else h=f[18];let O;if(f[19]!==Z)O=G(t,{children:[Z,h]}),f[19]=Z,f[20]=O;else O=f[20];return O}function v0(T){return{label:T,value:T}}Q0();J0();a0();n0();w();async function V0(T){let{servers:f}=R0("project"),F=Object.keys(f).filter((L)=>U0(L)==="pending");if(F.length===0)return;await new Promise((L)=>{let U=()=>void L();if(F.length===1&&F[0]!==void 0){let J=F[0];T.render(q(E,{children:q(m,{children:q(r,{serverName:J,onDone:U})})}))}else T.render(q(E,{children:q(m,{children:q(z0,{serverNames:F,onDone:U})})}))})}J0();Uf();qf();Yf();X0();Vf();X0();s0();t0();class g{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let F=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((Q,z)=>z-Q),U=Math.max(0,Math.ceil(L.length*0.01)-1),J=L[U],V=J>0?1000/J:0;return{averageFps:Math.round(F*100)/100,low1PctFps:Math.round(V*100)/100}}}Lf();Tf();Jf();Rf();Qf();d();e0();w();function hf(){j((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function wf(T,f){return new Promise((F)=>{let L=(U)=>void F(U);T.render(f(L))})}async function x9(T,f,F){return Gf(T,f,{color:"error",beforeExit:F})}async function Gf(T,f,F){let{Text:L}=await import("./ink-1.1.22-k48q879m.mjs"),U=F?.color,J=F?.exitCode??1;T.render(U?q(L,{color:U,children:f}):q(L,{children:f})),T.unmount(),await F?.beforeExit?.(),process.exit(J)}function k(T,f,F){return wf(T,(L)=>q(E,{onChangeAppState:F?.onChangeAppState,children:q(m,{children:f(L)})}))}async function u9(T,f){T.render(f),x0(),await T.waitUntilExit(),await D0(0)}async function c9(T,f,F,L,U){if(S(!1)||process.env.IS_DEMO)return!1;W("setupScreens_start");let J=I0(),V=!1;if(y0()){let{MigrationDialog:z}=await import("./MigrationDialog-1.1.22-z6x86qa5.mjs");await k(T,(R)=>q(z,{onDone:()=>void R()}))}let Q=i();if(J&&(!Q.theme||!Q.hasCompletedOnboarding)){V=!0;let{Onboarding:z}=await import("./Onboarding-1.1.22-05vxshwk.mjs");await k(T,(R)=>q(z,{onDone:()=>{hf(),R()}}),{onChangeAppState:$})}if(!S(process.env.CLAUBBIT)){if(J&&!H0()){let{TrustDialog:z}=await import("./TrustDialog-1.1.22-tx9d7tzw.mjs");await k(T,(R)=>q(z,{commands:L,onDone:R}))}if(Z0(!0),W("setupScreens_after_trust_accepted"),h0(),W0(),N0(),W("setupScreens_after_growthbook_kick"),J){let{errors:z}=E0();if(z.length===0)await V0(T);W("setupScreens_after_mcp_approvals");let R=await b0();if(W("setupScreens_after_claudemd_check"),R){let X=C0(await _0(!0)),{ClaudeMdExternalIncludesDialog:Y}=await import("./ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs");await k(T,(Z)=>q(Y,{onDone:Z,isStandaloneDialog:!0,externalIncludes:X}))}}}u0(),O0(),W("setupScreens_after_env_applied"),setImmediate(()=>d0());{let z=M0();W("setupScreens_after_tryGetActiveProvider");let R=z?.transport==="anthropic"?z.apiKey?.trim():void 0;if(R){let X=k0(R),Y=B0(X);if(W("setupScreens_after_keyStatus"),Y==="new"){let{ApproveApiKey:Z}=await import("./ApproveApiKey-1.1.22-zp1y1218.mjs");await k(T,(h)=>q(Z,{customApiKeyTruncated:X,onDone:h}),{onChangeAppState:$})}}}if(W("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||F)&&!w0()){let{BypassPermissionsModeDialog:z}=await import("./BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs");await k(T,(R)=>q(z,{onAccept:R}))}if(f==="auto"&&!G0()){let{AutoModeOptInDialog:z}=await import("./AutoModeOptInDialog-1.1.22-5qa3134t.mjs");await k(T,(R)=>q(z,{onAccept:R,onDecline:()=>A0(1),declineExits:!0}))}return W("setupScreens_end"),V}function d9(T){m0();let f=0,F=P0(T);if(F.stdin)I("",{});let L=new g,U=c0();Y0(U);let J=process.env.CLAUDIN_FRAME_TIMING_LOG;return{getFpsMetrics:()=>L.getMetrics(),stats:U,renderOptions:{...F,onFrame:(V)=>{if(L.record(V.durationMs),U.observe("frame_duration_ms",V.durationMs),J&&V.phases){let Q=JSON.stringify({total:V.durationMs,...V.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
-
`;Wf(J,Q)}if(K0())return;for(let Q of V.flickers){if(Q.reason==="resize")continue;let z=Date.now();if(z-f<1000)I("",{desiredHeight:Q.desiredHeight,actualHeight:Q.availableHeight,reason:Q.reason});f=z}}}}}
|
|
3
|
-
export{hf as A,wf as B,x9 as C,Gf as D,k as E,u9 as F,c9 as G,d9 as H};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Q8 as X,T7 as W,Z4 as x,c5 as G,d5 as V,q8 as m}from"./cli-1.1.22-q622p3vr.mjs";import{laa as J,maa as z,paa as Y,wea as w,xea as B}from"./cli-1.1.22-3jyydg5h.mjs";import{Qja as Z,Yja as M}from"./cli-1.1.22-y4rj8ced.mjs";import{tta as j}from"./cli-1.1.22-w09pyst3.mjs";function D(){q=void 0,J()}function L(){if(q!==void 0)return q;if(x()!=="firstParty")return q=z(!1);if(!G())return q=z(!1);if(w())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=m();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(Z)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=W({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var f=j(()=>{M();X();V();B();Y()});function g(Q){let $=Q.toUpperCase();return k.has($)||v.some((F)=>$.startsWith(F))}var k,v,S,I;var K=j(()=>{k=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_VERTEX","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDIN_SUBAGENT_MODEL"]),v=["VERTEX_REGION_CLAUDE_"];S=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDIN_API_KEY_HELPER_TTL_MS","CLAUDIN_DISABLE_EXPERIMENTAL_BETAS","CLAUDIN_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDIN_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDIN_IDE_SKIP_AUTO_INSTALL","CLAUDIN_MAX_OUTPUT_TOKENS","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SUBAGENT_MODEL","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","CLAUDIN_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{D as nU,L as oU,f as pU,g as qU,S as rU,I as sU,K as tU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DZ as Z,H1 as k,c1 as K}from"./cli-1.1.22-261r450y.mjs";import{e4 as J,f4 as H}from"./cli-1.1.22-vwdxbs23.mjs";import{x_ as v,y_ as Y}from"./cli-1.1.22-3jyydg5h.mjs";import{pta as V,tta as X}from"./cli-1.1.22-w09pyst3.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
-
export{N as Ch,C as Dh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as M}from"./cli-1.1.22-w09pyst3.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
-
export{W as Pja,Q as Qja,K as Rja,X as Sja,Y as Tja,Z as Uja,y as Vja,G as Wja,h as Xja,w as Yja};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Od as j,Pd as w,Qd as _,Rd as D,Sd as L,Td as A,Ud as O}from"./cli-1.1.22-7rv96st9.mjs";import{Ap as R,Dp as b,LS as h,MB as W,NS as y,PB as V,RB as C,xM as X,yM as I}from"./cli-1.1.22-zmt5pksy.mjs";import{Wga as U,cha as S,x_ as Q,y_ as N}from"./cli-1.1.22-3jyydg5h.mjs";import{Zja as K,aka as v}from"./cli-1.1.22-s5qhs3ds.mjs";import{fla as x,jla as M}from"./cli-1.1.22-cvfsmaqt.mjs";import{Ala as B,Hla as F}from"./cli-1.1.22-3r3tadt1.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as h,a as i,i as j,u as k,n as l,r as m};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{tta as I}from"./cli-1.1.22-w09pyst3.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+H,K=J+1,J=$.indexOf(`
|
|
4
|
-
`,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
|
|
5
|
-
`);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
|
|
6
|
-
export{q1 as j9,Y1 as k9,X1 as l9};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hb as S,Ib as R}from"./cli-1.1.22-vp1eed3p.mjs";import{Nb as j}from"./cli-1.1.22-n2jecp35.mjs";import{KW as W,LW as A}from"./cli-1.1.22-fetzhxhh.mjs";import{K7 as T,L7 as F}from"./cli-1.1.22-q622p3vr.mjs";import{ala as Q,dla as P}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as z,Hla as x}from"./cli-1.1.22-3r3tadt1.mjs";P();x();A();function f(G){return{write:(J)=>G.write(J),writeBatch:(J)=>G.writeBatch(J),close:()=>G.close(),isConnectedStatus:()=>G.isConnectedStatus(),getStateLabel:()=>G.getStateLabel(),setOnData:(J)=>G.setOnData(J),setOnClose:(J)=>G.setOnClose(J),setOnConnect:(J)=>G.setOnConnect(J),connect:()=>void G.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return G.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function m(G){let{sessionUrl:J,ingressToken:X,sessionId:V,initialSequenceNum:_,getAuthToken:$}=G,O;if($)O=()=>{let B=$();if(!B)return{};return{Authorization:`Bearer ${B}`}};else W(X);let Y=G.epoch??await j(J,X);Q(`[bridge:repl] CCR v2: worker sessionId=${V} epoch=${Y}${G.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let Z=new URL(J);Z.pathname=Z.pathname.replace(/\/$/,"")+"/worker/events/stream";let L=new R(Z,{},V,void 0,_,O),q,K=new S(L,new URL(J),{getAuthHeaders:O,heartbeatIntervalMs:G.heartbeatIntervalMs,heartbeatJitterFraction:G.heartbeatJitterFraction,onEpochMismatch:()=>{Q("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{K.close(),L.close(),q?.(4090)}catch(B){Q(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${z(B)}`,{level:"error"})}throw Error("epoch superseded")}});L.setOnEvent((B)=>{K.reportDelivery(B.event_id,"received"),K.reportDelivery(B.event_id,"processed")});let H,E=!1,M=!1;return{write(B){return K.writeEvent(B)},async writeBatch(B){for(let N of B){if(M)break;await K.writeEvent(N)}},close(){M=!0,K.close(),L.close()},isConnectedStatus(){return E},getStateLabel(){if(L.isClosedStatus())return"closed";if(L.isConnectedStatus())return E?"connected":"init";return"connecting"},setOnData(B){L.setOnData(B)},setOnClose(B){q=B,L.setOnClose((N)=>{K.close(),B(N??4092)})},setOnConnect(B){H=B},getLastSequenceNum(){return L.getLastSequenceNum()},droppedBatchCount:0,reportState(B){K.reportState(B)},reportMetadata(B){K.reportMetadata(B)},reportDelivery(B,N){K.reportDelivery(B,N)},flush(){return K.flush()},connect(){if(!G.outboundOnly)L.connect();K.initialize(Y).then(()=>{E=!0,Q(`[bridge:repl] v2 transport ready for writes (epoch=${Y}, sse=${L.isConnectedStatus()?"open":"opening"})`),H?.()},(B)=>{Q(`[bridge:repl] CCR v2 initialize failed: ${z(B)}`,{level:"error"}),K.close(),L.close(),q?.(4091)})}}}class U{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...G){if(!this._active)return!1;return this._pending.push(...G),!0}drop(){this._active=!1;let G=this._pending.length;return this._pending.length=0,G}deactivate(){this._active=!1}}P();F();var g={maxAttempts:5,baseDelayMs:500,jitterFraction:0.25,maxDelayMs:4000};function I(G,J,X=Math.random){let V=J.baseDelayMs*2**(G-1),_=V*J.jitterFraction*(2*X()-1);return Math.min(V+_,J.maxDelayMs)}async function b(G,J){let{label:X,logPrefix:V="[bridge]",signal:_,isRetryable:$}=J;for(let O=1;O<=J.maxAttempts;O++){let Y=await G();if(Y!==null)return Y;if($&&!$())return Q(`${V} ${X} failed permanently on attempt ${O}/${J.maxAttempts}, not retrying`),null;if(_?.aborted)return Q(`${V} ${X} aborted after attempt ${O}/${J.maxAttempts}`),null;if(O<J.maxAttempts){let Z=I(O,J);Q(`${V} ${X} failed (attempt ${O}/${J.maxAttempts}), retrying in ${Math.round(Z)}ms`),await T(Z)}}return null}
|
|
2
|
-
export{f as Ab,m as Bb,U as Cb,g as Db,b as Eb};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Lha as N,Pha as T}from"./cli-1.1.22-m41t95z0.mjs";import{tta as Q}from"./cli-1.1.22-w09pyst3.mjs";function X(){if(!process.stdin.isTTY||F||process.argv.includes("-p")||process.argv.includes("--print"))return;F=!0,A="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),J=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")U(q);q=process.stdin.read()}},process.stdin.on("readable",J)}catch{F=!1}}function U(q){let v=0;while(v<q.length){let M=q[v],z=M.charCodeAt(0);if(z===3){K(),process.exit(130);return}if(z===4){K();return}if(z===127||z===8){if(A.length>0){let O=N(A);A=A.slice(0,-(O.length||1))}v++;continue}if(z===27){v++;while(v<q.length&&!(q.charCodeAt(v)>=64&&q.charCodeAt(v)<=126))v++;if(v<q.length)v++;continue}if(z<32&&z!==9&&z!==10&&z!==13){v++;continue}if(z===13){A+=`
|
|
2
|
-
`,v++;continue}A+=M,v++}}function K(){if(!F)return;if(F=!1,J)process.stdin.removeListener("readable",J),J=null}function Y(){K();let q=A.trim();return A="",q}function Z(q){A=q}var A="",F=!1,J=null;var V=Q(()=>{T()});
|
|
3
|
-
export{X as I1,K as J1,Y as K1,Z as L1,V as M1};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{$E as k,Ap as G,Dp as a,Qn as R,Rn as BJ,aF as HJ,nt as D,ot as hJ}from"./cli-1.1.22-zmt5pksy.mjs";import{B8 as $J,Q8 as bJ,q8 as ZJ}from"./cli-1.1.22-q622p3vr.mjs";import{Uda as WJ,aaa as C,baa as GJ,caa as h,daa as FJ,eaa as u,faa as kJ,kea as jJ}from"./cli-1.1.22-3jyydg5h.mjs";import{aia as x,mia as gJ}from"./cli-1.1.22-dpqknw7z.mjs";import{cja as q,eja as s,fja as Y,gja as r}from"./cli-1.1.22-jz426kr2.mjs";import{Jja as M,Oja as yJ}from"./cli-1.1.22-j6xg80k8.mjs";import{Cka as l,Dka as TJ,mka as o,nka as CJ,wka as n,xka as EJ}from"./cli-1.1.22-ca6d1erw.mjs";import{Yma as c,Zma as OJ,ana as H,bna as F,cna as I,cra as QJ,dna as YJ,ema as g,ena as P,fma as zJ,fna as XJ,gma as A,hma as wJ,sma as f,tma as PJ,yra as mJ}from"./cli-1.1.22-v260dy3k.mjs";import{Hra as K,Ira as DJ}from"./cli-1.1.22-j7qc1g0f.mjs";import{tta as B}from"./cli-1.1.22-w09pyst3.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
|
|
2
|
-
${Q}
|
|
3
|
-
</${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
-
export{NQ as Of,_J as Pf,JJ as Qf,bQ as Rf,uQ as Sf,cJ as Tf,iQ as Uf,oJ as Vf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{AO as P,BO as Q,CO as U,FO as X,jj as M,kj as W,zO as O}from"./cli-1.1.22-zmt5pksy.mjs";import{tta as V}from"./cli-1.1.22-w09pyst3.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as Ag,$ as Bg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{k4 as J,m4 as Y}from"./cli-1.1.22-ss970cxc.mjs";import{q4 as G,s4 as X}from"./cli-1.1.22-4pmfh5v2.mjs";import{Q8 as W,q8 as B,u5 as z,v8 as D,w8 as F,z5 as V}from"./cli-1.1.22-q622p3vr.mjs";import{Xja as w,Yja as N}from"./cli-1.1.22-y4rj8ced.mjs";import{Bsa as y,Tsa as Q}from"./cli-1.1.22-gwhdvfge.mjs";import{tta as M}from"./cli-1.1.22-w09pyst3.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
|
|
2
|
-
export{f as cj,Z as dj};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{$9 as Jc,H9 as nt,I9 as hl,J9 as bl,K9 as ml,L9 as fn,M9 as $c,N9 as fu,O9 as Al,P9 as ys,Q9 as El,R9 as st,S9 as hs,T9 as k,U9 as ur,V9 as Qc,W9 as Bc,X9 as ra,Y9 as Xc,Z9 as Yc,_9 as Zc,a_ as el,b_ as Hc,c_ as cr,d_ as Cc,e_ as Ts,f_ as gl}from"./cli-1.1.22-tkg7zwpn.mjs";import{g_ as ie}from"./cli-1.1.22-rma08k7m.mjs";import{eta as kc,fta as Le}from"./cli-1.1.22-e25bz2ew.mjs";import{hta as Vc}from"./cli-1.1.22-0n0cxg2p.mjs";import{jta as Fe,kta as ve,nta as De,ota as ee}from"./cli-1.1.22-skpsy2jm.mjs";import{rta as E,uta as Bs}from"./cli-1.1.22-w09pyst3.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
2
|
-
${this.getCanonicalPath(e)}
|
|
3
|
-
${er(e)}
|
|
4
|
-
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
5
|
-
`)}
|
|
6
|
-
|
|
7
|
-
${n.join(";")}
|
|
8
|
-
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
|
|
9
|
-
${e}
|
|
10
|
-
${t}
|
|
11
|
-
${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
|
|
12
|
-
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
13
|
-
`+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
14
|
-
${this.getCanonicalPath(e)}
|
|
15
|
-
${Xr(e)}
|
|
16
|
-
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
17
|
-
`)}
|
|
18
|
-
|
|
19
|
-
${n.join(";")}
|
|
20
|
-
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
|
|
21
|
-
${e}
|
|
22
|
-
${t}
|
|
23
|
-
${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
|
|
24
|
-
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
|
|
25
|
-
export{zl as G9};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{rta as T,tta as J5,uta as M}from"./cli-1.1.22-w09pyst3.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
2
|
-
]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
|
|
3
|
-
Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
|
|
4
|
-
Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+F+`.
|
|
7
|
-
`);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
|
|
8
|
-
`);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
|
|
9
|
-
`}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
|
|
10
|
-
`;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
|
|
11
|
-
`}if(U+=R+`
|
|
12
|
-
`,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
|
|
13
|
-
`+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
|
|
14
|
-
`;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
|
|
15
|
-
export{T5 as He,X5 as Ie};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kf as UG,Lf as RG,Nf as PJ}from"./cli-1.1.22-grjw9tnm.mjs";import{$x as LG,BG as QG,DG as uG,HN as qJ,IN as CG,KN as VJ,PN as mJ,_M as WJ,ay as XJ,co as h,cy as cG,do as jG,eO as mG,eo as p,fo as MG,go as r,hN as jJ,ho as WG,iN as HJ,iO as pJ,kN as fG,ko as BG,lN as hG,lo as EJ,mN as TG,nN as dG,oI as JG,pI as ZJ,qN as NG,rG as YJ,sG as CJ,xN as iG}from"./cli-1.1.22-zmt5pksy.mjs";import{BY as zG,DY as TJ,GY as wG,HY as QJ,nY as LJ,oY as hJ}from"./cli-1.1.22-bv3a0vaa.mjs";import{CZ as AJ,DZ as bG,H1 as VG,MZ as DG,_0 as m,a1 as Y,c1 as Q,g1 as FG,w1 as JJ,xZ as GJ}from"./cli-1.1.22-261r450y.mjs";import{c4 as n,d4 as L,e4 as X,f4 as a}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as $G}from"./cli-1.1.22-c07z4d74.mjs";import{F4 as AG,G4 as dJ}from"./cli-1.1.22-0553cn3c.mjs";import{Q8 as gJ,y8 as eG}from"./cli-1.1.22-q622p3vr.mjs";import{$ga as sG,Yca as yG,Zca as IG,_ca as KJ,cha as _J,oda as kG,pda as zJ,x_ as S,xda as pG,y_ as rG}from"./cli-1.1.22-3jyydg5h.mjs";import{Xja as gG,Yja as SJ}from"./cli-1.1.22-y4rj8ced.mjs";import{Zja as C,aka as bJ}from"./cli-1.1.22-s5qhs3ds.mjs";import{Ala as HG,Hla as tG}from"./cli-1.1.22-3r3tadt1.mjs";import{pta as e,tta as GG}from"./cli-1.1.22-w09pyst3.mjs";function KG(J){let G=oG.c(9),{serverToolsCount:Z,serverPromptsCount:z,serverResourcesCount:q}=J,H;if(G[0]!==z||G[1]!==q||G[2]!==Z){if(H=[],Z>0)H.push("tools");if(q>0)H.push("resources");if(z>0)H.push("prompts");G[0]=z,G[1]=q,G[2]=Z,G[3]=H}else H=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==H)W=H.length>0?L(r,{children:H}):"none",G[5]=H,G[6]=W;else W=G[6];let D;if(G[7]!==W)D=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=D;else D=G[8];return D}var oG;var SG=GG(()=>{VG();WG();a();oG=e(bG(),1)});function EG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function PG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var _G=()=>{};function OL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),{columns:D}=LJ(),[I,U]=E.default.useState(!1),[$,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=XJ(),[O,K]=E.default.useState(null),[P,w]=E.useState(!1),N=E.useRef(null),[g,j]=E.useState(!1),[c,T]=E.useState(null),[A,y]=E.useState(!1),[u,i]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),B=E.useRef(!1),[xG,XG]=E.useState(""),[DJ,wJ]=E.useState(0),[aG,nG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let YG=J.isAuthenticated||J.client.type==="connected"&&G>0,ZG=UG(),MJ=E.default.useCallback(async()=>{j(!1),T(null),w(!0);try{let V=await ZG(J.name),F=V.client.type==="connected";if(C("",{success:F}),F)q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){C("",{success:!1}),q?.(PG(V,J.name))}finally{w(!1)}},[ZG,J.name,q]),fJ=E.default.useCallback(async()=>{await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"needs-auth"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),C("",{}),q?.(`Disconnected from ${J.name}.`),y(!1),i(null),v(!1)},[J.name,J.config,J.scope,f,q]);zG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),zG("confirm:no",()=>{j(!1),T(null)},{context:"Confirmation",isActive:g}),zG("confirm:no",()=>{y(!1),i(null),v(!1)},{context:"Confirmation",isActive:A}),JJ((V,F)=>{if(F.return&&g)MJ();if(F.return&&A)if(l)fJ();else{let M=`${gG().CLAUDE_AI_ORIGIN}/settings/connectors`;i(M),v(!0),AG(M)}if(V==="c"&&!o){let M=O||c||u;if(M)GJ(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let NJ=kG(String(J.name)),UJ=fG(_.commands,J.name).length,lG=RG(),RJ=E.default.useCallback(async()=>{let V=gG().CLAUDE_AI_ORIGIN,M=eG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let qG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${qG}?product_surface=${t}`}else d=`${V}/settings/connectors`;T(d),j(!0),C("",{}),await AG(d)},[J.config]),OJ=E.default.useCallback(()=>{y(!0),C("",{})},[]),yJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{if(await lG(J.name),J.config.type==="claudeai-proxy")C("",{new_state:V?"disabled":"enabled"});z()}catch(F){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${HG(F)}`)}},[J.client.type,J.config.type,J.name,lG,z,q]),IJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await CG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await VJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{nG(()=>M)}}),C("",{wasAuthenticated:J.isAuthenticated});let F=await ZG(J.name);if(F.client.type==="connected"){let M=YG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(F.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else sG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof qJ))R(F.message)}finally{U(!1),N.current=null,nG(null),XG("")}},[J.isAuthenticated,J.config,J.name,q,ZG,YG]),BJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await CG(J.name,J.config),C("",{}),await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"failed"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:O})]}),I&&O&&aG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(YJ,{value:xG,onChange:XG,onSubmit:(F)=>{aG(F.trim()),XG("")},cursorOffset:DJ,onChangeCursorOffset:wJ,columns:D-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),l?X(n,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),u&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:u})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(n,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(YG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!YG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[NJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[m("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),YG?X(Q,{children:[m("success",k)(S.tick)," authenticated"]}):X(Q,{children:[m("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(J.scope)})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:UJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),$&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",$]})}),b.length>0&&L(Y,{marginTop:1,children:L(QG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await IJ();break;case"clear-auth":await BJ();break;case"claudeai-auth":await RJ();break;case"claudeai-clear-auth":OJ();break;case"reconnectMcpServer":w(!0);try{let F=await ZG(J.name);if(J.config.type==="claudeai-proxy")C("",{success:F.client.type==="connected"});let{message:M}=EG(F,J.name);q?.(M)}catch(F){if(J.config.type==="claudeai-proxy")C("",{success:!1});q?.(PG(F,J.name))}finally{w(!1)}break;case"toggle-enabled":await yJ();break;case"back":z();break}},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $J=GG(()=>{rG();bJ();SJ();QJ();hJ();AJ();VG();TJ();mJ();pJ();PJ();iG();cG();gJ();dJ();tG();_J();pG();MG();uG();WG();jG();ZJ();CJ();SG();_G();a();E=e($G(),1)});function iL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),D=LG((P)=>P.mcp),I=UG(),U=RG(),[$,R]=OG.useState(!1),_=OG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),z()}catch(w){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${HG(w)}`)}},[J.client.type,J.name,U,z,q]),f=kG(String(J.name)),O=fG(D.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(WJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:D.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(QG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let w=await I(J.name),{message:N}=EG(w,J.name);q?.(N)}catch(w){q?.(PG(w,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")z()},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var OG;var cJ=GG(()=>{rG();QJ();VG();jJ();PJ();iG();cG();tG();pG();MG();uG();WG();jG();ZJ();SG();_G();a();OG=e($G(),1)});function tL(J){let G=FJ.c(44),{tool:Z,server:z,onBack:q}=J,[H,k]=vG.default.useState(""),W,D;if(G[0]!==z.name||G[1]!==Z){D=yG(Z.name,z.name);let s=Z.userFacingName?Z.userFacingName({}):D;W=IG(s),G[0]=z.name,G[1]=Z,G[2]=W,G[3]=D}else W=G[2],D=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let $=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];vG.default.useEffect(K,P);let w;if(G[13]!==$)w=$&&L(Q,{color:"success",children:" [read-only]"}),G[13]=$,G[14]=w;else w=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let j;if(G[19]!==I||G[20]!==w||G[21]!==N||G[22]!==g)j=X(n,{children:[I,w,N,g]}),G[19]=I,G[20]=w,G[21]=N,G[22]=g,G[23]=j;else j=G[23];let c=j,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==D)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:D})]}),G[25]=D,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let u;if(G[28]!==Z.name)u=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=u;else u=G[29];let i;if(G[30]!==H)i=H&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:H})]}),G[30]=H,G[31]=i;else i=G[31];let l;if(G[32]!==Z.inputJSONSchema)l=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((s)=>{let[x,B]=s,XG=Z.inputJSONSchema?.required?.includes(x);return X(Q,{children:["• ",x,XG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},x)})})]}),G[32]=Z.inputJSONSchema,G[33]=l;else l=G[33];let v;if(G[34]!==A||G[35]!==u||G[36]!==i||G[37]!==l)v=X(Y,{flexDirection:"column",children:[A,u,i,l]}),G[34]=A,G[35]=u,G[36]=i,G[37]=l,G[38]=v;else v=G[38];let o;if(G[39]!==q||G[40]!==z.name||G[41]!==v||G[42]!==c)o=L(BG,{title:c,subtitle:z.name,onCancel:q,inputGuide:uJ,children:v}),G[39]=q,G[40]=z.name,G[41]=v,G[42]=c,G[43]=o;else o=G[43];return o}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FJ,vG;var iJ=GG(()=>{VG();KJ();MG();EJ();a();FJ=e(bG(),1),vG=e($G(),1)});function PQ(J){let G=kJ.c(21),{server:Z,onSelectTool:z,onBack:q}=J,H=LG(xJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==H||G[2]!==Z.name)K=HJ(H,Z.name),G[1]=H,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,D;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,w)=>{let N=yG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,j=IG(g),c=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(c)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:j,value:w.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":c?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];D=W.map(K),G[4]=Z.name,G[5]=W,G[6]=D}else D=G[6];let I=D,U=`Tools for ${Z.name}`,$=W.length,R;if(G[9]!==W.length)R=zJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${$} ${R}`,f;if(G[11]!==q||G[12]!==z||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(QG,{options:I,onChange:(K)=>{let P=parseInt(K),w=W[P];if(w)z(w,P)},onCancel:q}),G[11]=q,G[12]=z,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(BG,{title:U,subtitle:_,onCancel:q,inputGuide:vJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function vJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xJ(J){return J.mcp.tools}var kJ;var aJ=GG(()=>{VG();KJ();iG();cG();pG();MG();uG();WG();EJ();jG();a();kJ=e(bG(),1)});
|
|
2
|
-
export{OL as Bf,$J as Cf,iL as Df,cJ as Ef,tL as Ff,iJ as Gf,PQ as Hf,aJ as If};
|