@oscharko-dev/keiko 1.2.7 → 1.3.0
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/README.md +10 -1
- package/dist/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +29 -29
- package/dist/ui/static/__next._full.txt +39 -37
- package/dist/ui/static/__next._tree.txt +4 -3
- package/dist/ui/static/_next/static/chunks/0-vpa4wvwcpe-.js +1 -0
- package/dist/ui/static/_next/static/chunks/00r78wq51vv7p.js +1 -0
- package/dist/ui/static/_next/static/chunks/00yei-8muakqk.js +1 -0
- package/dist/ui/static/_next/static/chunks/013_eu8kl0gb5.js +2 -0
- package/dist/ui/static/_next/static/chunks/{2-ayearhfgxi5.js → 01q9wnshe_-rz.js} +1 -1
- package/dist/ui/static/_next/static/chunks/02ex3k089apnn.js +1 -0
- package/dist/ui/static/_next/static/chunks/036rtd09k8_ad.js +115 -0
- package/dist/ui/static/_next/static/chunks/048ovhn3wu_bu.js +1 -0
- package/dist/ui/static/_next/static/chunks/{13k6ykgg16pc4.js → 04k2mahro7j92.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{06hwq8_gunvuo.js → 07957vlppntmk.js} +1 -1
- package/dist/ui/static/_next/static/chunks/08db-gqjr8owi.js +1 -0
- package/dist/ui/static/_next/static/chunks/08x7pi746hdjg.js +86 -0
- package/dist/ui/static/_next/static/chunks/0_avx_tl-uxim.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bn9_5u9n-9b9.js +1 -0
- package/dist/ui/static/_next/static/chunks/0cpk4khbn9_uw.js +1 -0
- package/dist/ui/static/_next/static/chunks/0cvtkiw2nnx5u.js +1 -0
- package/dist/ui/static/_next/static/chunks/0e-mzde0wr44_.js +1 -0
- package/dist/ui/static/_next/static/chunks/0em5-43ag74be.js +1 -0
- package/dist/ui/static/_next/static/chunks/0eub6ctk-lx6x.js +1 -0
- package/dist/ui/static/_next/static/chunks/0f5a0vl40n41q.js +93 -0
- package/dist/ui/static/_next/static/chunks/0frmhx04k4f8m.js +1 -0
- package/dist/ui/static/_next/static/chunks/0h-upsn6lazz9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1nqe0rzxqwjkw.js → 0kx828qnu1y09.js} +2 -2
- package/dist/ui/static/_next/static/chunks/{1lo51t4ykvotu.js → 0ld3t8oea9hy4.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0lkj6sqxq86nj.js +1 -0
- package/dist/ui/static/_next/static/chunks/0lmsmxjl20gd_.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2r-ixexb6tw-l.js → 0o0r6txb3s4ga.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0q093f1wzrxjc.js +10 -0
- package/dist/ui/static/_next/static/chunks/{2--bm_kzfgi53.js → 0ru_y22on6q7e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0sbsupp6l3fhs.js +122 -0
- package/dist/ui/static/_next/static/chunks/0sjpthhqiy35-.js +77 -0
- package/dist/ui/static/_next/static/chunks/0u0_dl0v9_1iu.js +1 -0
- package/dist/ui/static/_next/static/chunks/0u1yu4bee1lua.js +148 -0
- package/dist/ui/static/_next/static/chunks/0ulgtntj_ouhr.js +94 -0
- package/dist/ui/static/_next/static/chunks/{2a9l_04_160z1.js → 0vculqg2ywydc.js} +2 -2
- package/dist/ui/static/_next/static/chunks/{1tmw16_b-qann.js → 0vm0za6c--wqd.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{242ju-8-y2a2m.js → 0z-0fcs2vq9p8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0zf356goly5qa.js +1 -0
- package/dist/ui/static/_next/static/chunks/1073luadh4b0t.js +34 -0
- package/dist/ui/static/_next/static/chunks/13f6ivzqgnbw1.js +287 -0
- package/dist/ui/static/_next/static/chunks/14a82wtay44g0.js +1 -0
- package/dist/ui/static/_next/static/chunks/165pcl4xl06au.js +1 -0
- package/dist/ui/static/_next/static/chunks/18lchth-3hzrj.js +158 -0
- package/dist/ui/static/_next/static/chunks/19wc3w-pyquvj.js +1 -0
- package/dist/ui/static/_next/static/chunks/1a1e0t6lmbu2t.js +22 -0
- package/dist/ui/static/_next/static/chunks/1a6xpyv7wp8mw.css +6 -0
- package/dist/ui/static/_next/static/chunks/1at-eg4pjyhhv.js +124 -0
- package/dist/ui/static/_next/static/chunks/1attgz5m1f9pb.js +104 -0
- package/dist/ui/static/_next/static/chunks/1b2674hlxp05d.js +1 -0
- package/dist/ui/static/_next/static/chunks/1b_3is6j9lo7s.js +27 -0
- package/dist/ui/static/_next/static/chunks/1bexndskkpb-l.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0kjv5jpoy_3wx.js → 1c_pss23_wycd.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{40_mgil0e17bk.js → 1d_810phvbt-v.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{30vnoxh_uxkfo.js → 1e9f1ex2uq29r.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1i7xk_bpdb206.js +1 -0
- package/dist/ui/static/_next/static/chunks/1isrybhkr_cy_.js +82 -0
- package/dist/ui/static/_next/static/chunks/{1wxgm93nd75ns.js → 1k7tt8btcpb6z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1k_nzgb93nxr8.js +226 -0
- package/dist/ui/static/_next/static/chunks/{1wq7gotrl8jek.css → 1kbra771vsw0c.css} +1 -1
- package/dist/ui/static/_next/static/chunks/1mjmyr3-5-6-7.js +15 -0
- package/dist/ui/static/_next/static/chunks/1n4mmvvatk3mn.js +1 -0
- package/dist/ui/static/_next/static/chunks/1pw2mt5mwtr9t.js +1 -0
- package/dist/ui/static/_next/static/chunks/1r5gxo360o3td.js +153 -0
- package/dist/ui/static/_next/static/chunks/{2dhtqq8a83t27.css → 1rhvew72iz-n3.css} +14 -9
- package/dist/ui/static/_next/static/chunks/{09v8w4wuj4m1_.js → 1sjvzpa27mjxc.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2ql8dczlqzd4u.js → 1t64aljha95yf.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1tw5oyzju-ijp.js +23 -0
- package/dist/ui/static/_next/static/chunks/1tyghneva-hiy.js +1 -0
- package/dist/ui/static/_next/static/chunks/1uxz_w63vj11u.js +79 -0
- package/dist/ui/static/_next/static/chunks/{0_wcaciq9-s_c.js → 1uy2itzuap01l.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1veg_qtra_2-d.js +41 -0
- package/dist/ui/static/_next/static/chunks/{1_6h8vxxlkwg1.js → 1z8n7lj5wgp4m.js} +1 -1
- package/dist/ui/static/_next/static/chunks/20eou_wcxpx1s.js +1 -0
- package/dist/ui/static/_next/static/chunks/{35eygftv-qu-q.js → 21yx7habl0roe.js} +1 -1
- package/dist/ui/static/_next/static/chunks/226y24czlj0wp.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3i5xyx-alljjx.js → 24fnfy1y6n4og.js} +1 -1
- package/dist/ui/static/_next/static/chunks/250of-fyd3fhr.js +1 -0
- package/dist/ui/static/_next/static/chunks/26dysjhfplkru.js +1 -0
- package/dist/ui/static/_next/static/chunks/2_c97y2pecrx2.js +1 -0
- package/dist/ui/static/_next/static/chunks/2_uz2tn-uwusm.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ajmg9bm0a9y0.js +32 -0
- package/dist/ui/static/_next/static/chunks/2ayjltgsne_71.js +90 -0
- package/dist/ui/static/_next/static/chunks/2bm_bps837c8s.js +1 -0
- package/dist/ui/static/_next/static/chunks/2db5ooma2i4yx.js +1 -0
- package/dist/ui/static/_next/static/chunks/2dsu6hwhp85it.js +1 -0
- package/dist/ui/static/_next/static/chunks/2dwa2hysai57e.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ek5ny0z29n-_.js +201 -0
- package/dist/ui/static/_next/static/chunks/{2fr8bahvq9eg9.js → 2he22glqm5s22.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2ie6v7cdqe406.js +62 -0
- package/dist/ui/static/_next/static/chunks/2img0w643cwi4.js +1 -0
- package/dist/ui/static/_next/static/chunks/2kqjvq-p_chx9.js +1 -0
- package/dist/ui/static/_next/static/chunks/2lfji5sgej4v4.js +1 -0
- package/dist/ui/static/_next/static/chunks/2mcajqb-umr1q.css +4 -0
- package/dist/ui/static/_next/static/chunks/2mk8qovgc1zl-.js +2 -0
- package/dist/ui/static/_next/static/chunks/{2206mw-z43vyo.js → 2ni4tm0tqgcdk.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0mde4a5qgo7cd.js → 2nzruc7wyn8dr.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2o7tp9zv8u7tw.js +1 -0
- package/dist/ui/static/_next/static/chunks/2o9fq12slgfa0.js +1 -0
- package/dist/ui/static/_next/static/chunks/2o9mtyaa7p_se.js +1 -0
- package/dist/ui/static/_next/static/chunks/{34w7t_j7upvnc.js → 2rxwfcn3g_xcj.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2sff-cr7dn-6k.js +1 -0
- package/dist/ui/static/_next/static/chunks/2werku_ws_bu6.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3kftpmlf_wvd3.js → 2x_kyz5ial_41.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2xudunn-lg4q1.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yk59ik12pbte.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yzeyiuh6hiyi.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yzl8qiydb5e5.js +4 -0
- package/dist/ui/static/_next/static/chunks/{1w7td7s2ds1r4.js → 30jm7s-paox4s.js} +3 -3
- package/dist/ui/static/_next/static/chunks/33iwa_n3mi3c1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2_52lwqeijscc.js → 33jglfz6y49ka.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2chlwgzo2fo43.js → 34ey1sc6cg1jb.js} +1 -1
- package/dist/ui/static/_next/static/chunks/34xq7t6q8xscy.js +38 -0
- package/dist/ui/static/_next/static/chunks/{403kjiu_bjumv.js → 35oxd7_mv6yx-.js} +1 -1
- package/dist/ui/static/_next/static/chunks/374l27tamvcx2.js +1 -0
- package/dist/ui/static/_next/static/chunks/{35amvhf88zprh.js → 37nl28rjnj-un.js} +1 -1
- package/dist/ui/static/_next/static/chunks/38x98fr04cv7f.js +61 -0
- package/dist/ui/static/_next/static/chunks/395aita-ystfu.js +1 -0
- package/dist/ui/static/_next/static/chunks/39thlt_b984p5.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_32gobpn9eea.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2h3yq6o4kg_kb.js → 3_qhvykv4ncye.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ca17qj3ru209.js +1 -0
- package/dist/ui/static/_next/static/chunks/3e39amxssw159.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2ty81249w2gdw.js → 3e_kp81r43l1p.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3g9t_w1rxvy9k.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2na7t_nmk3z_c.js → 3he4t7yk0v9z5.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3hxvi-06cjs9x.js +1 -0
- package/dist/ui/static/_next/static/chunks/3hykczegwyd5i.js +36 -0
- package/dist/ui/static/_next/static/chunks/{2r8nyeo1ifl95.js → 3jc_y1tnauj-z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3jvw3i_osp8l_.js +64 -0
- package/dist/ui/static/_next/static/chunks/3k-z30ov7etov.js +1 -0
- package/dist/ui/static/_next/static/chunks/{302c7ueozi8kb.js → 3ksimuw0ad9zn.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3l4xc7b94iz9e.css +1 -0
- package/dist/ui/static/_next/static/chunks/3l6l7qzd411sc.js +1 -0
- package/dist/ui/static/_next/static/chunks/3lmi87qw7ehxj.js +15 -0
- package/dist/ui/static/_next/static/chunks/3lyh88nxnumm7.js +1 -0
- package/dist/ui/static/_next/static/chunks/3m4bd79015ouy.js +1 -0
- package/dist/ui/static/_next/static/chunks/{09lp4q0mk16fc.js → 3mqrq9fc15u8f.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ndfyq6sdfacc.js +24 -0
- package/dist/ui/static/_next/static/chunks/{3_fsw1lkt1_wh.js → 3nir0q_tbd635.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{13sm61rx0q9m9.js → 3owd_yj0kssh5.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3owvaep851hrg.js +1 -0
- package/dist/ui/static/_next/static/chunks/3q-qr3yas3rmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1d4ot7_nywn7m.js → 3qabgkg9agmqc.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3qkwuc11h025w.js +15 -0
- package/dist/ui/static/_next/static/chunks/3qqqcf3iyho8i.js +62 -0
- package/dist/ui/static/_next/static/chunks/3r1y5u63no3t6.js +1 -0
- package/dist/ui/static/_next/static/chunks/3snum7xpnvwx_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tl76hukh2-pb.js +1 -0
- package/dist/ui/static/_next/static/chunks/3u1g6632-f7ay.js +15 -0
- package/dist/ui/static/_next/static/chunks/3w0ad9bnfy9s8.js +1 -0
- package/dist/ui/static/_next/static/chunks/3yr06bc-tr_ms.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zt236vwq5bnr.js +1 -0
- package/dist/ui/static/_next/static/chunks/40rspfo2bz_p3.js +1 -0
- package/dist/ui/static/_next/static/chunks/41s-b40scg1v9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0_mnz9imy_h8n.js → 43ke4vyo6p4wu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/43p3o8p9_gmdm.js +1 -0
- package/dist/ui/static/_next/static/chunks/43qb7fm2lvzfr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{11cv_1ipmnwdr.js → 447_k7yqc6i7k.js} +3 -3
- package/dist/ui/static/_next/static/chunks/44jjws0h08uog.js +24 -0
- package/dist/ui/static/_not-found/__next._full.txt +28 -25
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +6 -5
- package/dist/ui/static/_not-found/__next._tree.txt +3 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +28 -25
- package/dist/ui/static/atlassian-connectors/__next._full.txt +27 -25
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +3 -2
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -10
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +27 -25
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +39 -37
- package/dist/ui/static/launch/__next._full.txt +43 -41
- package/dist/ui/static/launch/__next._tree.txt +4 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +29 -29
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +43 -41
- package/dist/ui/static/local-knowledge/__next._full.txt +21 -20
- package/dist/ui/static/local-knowledge/__next._tree.txt +4 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +29 -29
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +28 -26
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +3 -2
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +9 -8
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +28 -26
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +21 -20
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-compatibility-3558.fixture.json +4 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory-data.generated.json +3844 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +10 -3703
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.js +4 -0
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-diagnostic-fields.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-diagnostic-fields.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-diagnostic-fields.js +17 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +443 -43
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +760 -77
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-coverage.generated.json +45847 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-identity.generated.js +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operation-surfaces.generated.json +592 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +3162 -370
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +3737 -498
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry-metadata.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry-metadata.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry-metadata.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +2 -34384
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +2 -42955
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-runtime-metadata.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-runtime-metadata.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-runtime-metadata.generated.js +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +95 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +23 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.d.ts +30 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-runtime-git.js +31 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-evidence.js +12 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +386 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +623 -18
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-approval-review.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-approval-review.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-approval-review.js +28 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +17 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +28 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +30 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +40 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-bridge.js +120 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +8 -7
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/mcp-servers.d.ts +121 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/mcp-servers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/mcp-servers.js +415 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/sensitive-path-patterns.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/sensitive-path-patterns.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/sensitive-path-patterns.js +117 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/task-workspace.js +21 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +12 -4
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/local-knowledge/runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/local-knowledge/runner.js +12 -9
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +4 -17
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/diversity.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/diversity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/diversity.js +2 -2
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +12 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +69 -4
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +12 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.js +14 -5
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-token-accounting.js +14 -7
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +42 -64
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +70 -6
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +49 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.js +3 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-linked-files.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-linked-files.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-linked-files.js +117 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-toolchain-roots.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-toolchain-roots.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/native-toolchain-roots.js +248 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +16 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts +11 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.js +77 -21
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-service.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-service.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-service.js +248 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime.js +51 -23
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-credential-paths.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-credential-paths.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-credential-paths.js +60 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.js +289 -6
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +64 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-spelling.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-spelling.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction-spelling.js +354 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/agent-run-governance.js +22 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts +13 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +133 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryTransferLog.d.ts +100 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryTransferLog.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryTransferLog.js +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +38 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +13 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.d.ts +14 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeGitIpc.js +14 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts +33 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.js +117 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInbox.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInbox.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInbox.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInstructionSources.d.ts +57 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInstructionSources.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeInstructionSources.js +296 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +25 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +112 -124
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.d.ts +62 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.js +364 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +68 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +266 -23
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +25 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryConfig.d.ts +37 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryConfig.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryConfig.js +178 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts +49 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.js +267 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItemSanitizer.d.ts +62 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItemSanitizer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItemSanitizer.js +572 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItems.d.ts +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItems.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryItems.js +560 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRevert.d.ts +39 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRevert.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRevert.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +263 -54
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeUndoWindow.d.ts +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeUndoWindow.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeUndoWindow.js +188 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSessionContinuity.d.ts +116 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSessionContinuity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSessionContinuity.js +237 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSidecarEventParser.js +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskExport.d.ts +52 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskExport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskExport.js +347 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskImport.d.ts +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskImport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingTaskImport.js +332 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +74 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +8 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +120 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +24 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolNativeEffect.js +217 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinProcessTable.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinProcessTable.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinProcessTable.js +108 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinRuntimeDescendants.d.ts +183 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinRuntimeDescendants.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinRuntimeDescendants.js +220 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinSandboxMembership.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinSandboxMembership.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/darwinSandboxMembership.js +210 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +87 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +12 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +164 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedSyncHeads.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts +21 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/launchFailure.js +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeWebSearch.d.ts +221 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeWebSearch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeWebSearch.js +345 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +28 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeAgents.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeAgents.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeAgents.js +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeCommands.d.ts +124 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeCommands.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeCommands.js +398 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeConfigDocuments.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeConfigDocuments.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeConfigDocuments.js +91 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeHttpClient.js +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeInbox.d.ts +83 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeInbox.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeInbox.js +258 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +110 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +286 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeAgentModels.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeAgentModels.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeAgentModels.js +61 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +21 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +33 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeDeliveryTools.js +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeEgress.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeEgress.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeEgress.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeExternalRoots.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeExternalRoots.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeExternalRoots.js +119 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeFormatter.d.ts +67 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeFormatter.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeFormatter.js +181 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeGitMetadata.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeGitMetadata.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeGitMetadata.js +66 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeLinkedFiles.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeLinkedFiles.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeLinkedFiles.js +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.d.ts +76 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcp.js +136 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpAuthorization.d.ts +51 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpAuthorization.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpAuthorization.js +263 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpCredentials.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpCredentials.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpCredentials.js +171 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpRelay.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpRelay.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMcpRelay.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMessageId.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMessageId.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeMessageId.js +59 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePluginReadiness.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePluginReadiness.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePluginReadiness.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts +321 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicy.js +1296 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicyPlugin.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicyPlugin.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativePolicyPlugin.js +195 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeQuestions.d.ts +50 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeQuestions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeQuestions.js +265 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeSessionTree.d.ts +117 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeSessionTree.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeSessionTree.js +281 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeTools.d.ts +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeTools.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeTools.js +149 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.d.ts +58 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeWorktree.js +71 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPluginPackage.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPluginPackage.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPluginPackage.js +87 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPlugins.d.ts +105 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPlugins.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeOperatorPlugins.js +386 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePersistenceContract.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePersistenceContract.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePersistenceContract.js +142 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePromptInputs.d.ts +236 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePromptInputs.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodePromptInputs.js +719 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +52 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.js +36 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +19 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRemoteSkills.d.ts +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRemoteSkills.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRemoteSkills.js +361 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.d.ts +95 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRevert.js +458 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts +84 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRipgrepLaunch.js +236 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +32 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +248 -78
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +174 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +1498 -430
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeVersions.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeVersions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeVersions.js +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSafeActivity.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSafeActivity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSafeActivity.js +28 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceInventory.d.ts +197 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceInventory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceInventory.js +793 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionContinuation.d.ts +96 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionContinuation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionContinuation.js +346 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionRetention.d.ts +141 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionRetention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeSessionRetention.js +580 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +438 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +83 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +320 -145
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +304 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +578 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +5 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.js +12 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.d.ts +110 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts +68 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.js +353 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +71 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +124 -103
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +106 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +66 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/nativeToolTranscript.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/nativeToolTranscript.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/nativeToolTranscript.js +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.js +44 -48
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.js +37 -43
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +365 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionReadOnlyChildRunner.js +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitRuntime.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ripgrepRuntime.d.ts +198 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ripgrepRuntime.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ripgrepRuntime.js +357 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.js +17 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.js +16 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/supervisedCodingPolicy.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-data-url.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-data-url.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-data-url.js +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-document-parts.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-document-parts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-document-parts.js +106 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +449 -70
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-image-parts.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-image-parts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-image-parts.js +92 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-mcp-relay.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-mcp-relay.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-mcp-relay.js +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +39 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +142 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/embedding-provider-identity.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/embedding-provider-identity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/embedding-provider-identity.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-deployment-identity.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-deployment-identity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-deployment-identity.js +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +114 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionPreparation.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/proposalId.d.ts +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/proposalId.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/proposalId.js +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runBoundAuthority.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runBoundAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runBoundAuthority.js +24 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.js +21 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts +15 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.js +216 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncEvidence.d.ts +17 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncEvidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncEvidence.js +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.js +9 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +56 -112
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.js +2 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.d.ts +24 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.js +68 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.js +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.js +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts +104 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpCredentialRelay.js +442 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthAuthorizationUrl.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthAuthorizationUrl.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthAuthorizationUrl.js +56 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthCredentialStore.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthCredentialStore.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthCredentialStore.js +70 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthIssuer.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthIssuer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpOAuthIssuer.js +191 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpServerRegistry.d.ts +29 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpServerRegistry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/mcp/mcpServerRegistry.js +127 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding-identity.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding-identity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding-identity.js +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.js +17 -83
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-retrieval-signals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-retrieval-signals.js +1 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/operatorRegistryJson.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/operatorRegistryJson.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/operatorRegistryJson.js +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/ownerPrivateStateFile.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/ownerPrivateStateFile.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/ownerPrivateStateFile.js +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.js +88 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +93 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-request.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/run-request.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-request.js +36 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/runs.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/runs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts +76 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.js +145 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +14 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +12 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +0 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +15 -22
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.js +6 -54
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.js +8 -75
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-transport.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-transport.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-transport.js +54 -0
- package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/json.js +4 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +38 -9
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-adapter.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.js +29 -9
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-orchestrator.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-orchestrator.js +4 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-stage-node.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-stage-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-stage-node.js +22 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +12 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +12 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/model-loop.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/model-loop.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/model-loop.js +17 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/types.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/workflow.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/workflow.js +6 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/model-loop.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/model-loop.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/model-loop.js +22 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/types.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/workflow.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/unit-tests/workflow.js +6 -2
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.js +6 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +30 -94
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.js +7 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +7 -3
- package/package.json +40 -37
- package/release-impact.catalog.json +75 -0
- package/vendor/oscharko-dev-keiko-activity-log-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.2.7.tgz → oscharko-dev-keiko-connectors-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evaluations-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.2.7.tgz → oscharko-dev-keiko-evidence-1.3.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.2.7.tgz → oscharko-dev-keiko-git-1.3.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.2.7.tgz → oscharko-dev-keiko-harness-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.2.7.tgz → oscharko-dev-keiko-memory-capture-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.2.7.tgz → oscharko-dev-keiko-memory-governance-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.2.7.tgz → oscharko-dev-keiko-memory-vault-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.3.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.7.tgz → oscharko-dev-keiko-quality-intelligence-1.3.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sdk-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.3.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.3.0.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/0-u520yf_wb_j.js +0 -1
- package/dist/ui/static/_next/static/chunks/04n_hxe12wdv3.js +0 -1
- package/dist/ui/static/_next/static/chunks/0891-mvb901op.js +0 -1
- package/dist/ui/static/_next/static/chunks/0alcm0tnx-n8-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0e6yt02qckkgg.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qeb8v4j-hvxn.js +0 -1
- package/dist/ui/static/_next/static/chunks/0squn2lq5smnf.js +0 -1
- package/dist/ui/static/_next/static/chunks/11186fkh5coce.js +0 -2
- package/dist/ui/static/_next/static/chunks/1daa_1zod-ndb.js +0 -1
- package/dist/ui/static/_next/static/chunks/1eg67od6go7bm.js +0 -1
- package/dist/ui/static/_next/static/chunks/1enud1-bc9hju.js +0 -1
- package/dist/ui/static/_next/static/chunks/1fwlq_j3who0_.js +0 -1
- package/dist/ui/static/_next/static/chunks/1heusut-vh7z0.js +0 -1
- package/dist/ui/static/_next/static/chunks/1te8076xiv1_f.css +0 -3
- package/dist/ui/static/_next/static/chunks/1v92406tlxfiq.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wj7exxi550gi.css +0 -1
- package/dist/ui/static/_next/static/chunks/1wsoxouji7eb9.js +0 -1
- package/dist/ui/static/_next/static/chunks/22or338lout8-.js +0 -1
- package/dist/ui/static/_next/static/chunks/22pvivewswjat.js +0 -1
- package/dist/ui/static/_next/static/chunks/24418_x2or4rl.js +0 -1
- package/dist/ui/static/_next/static/chunks/24_0lv80gez9c.js +0 -1
- package/dist/ui/static/_next/static/chunks/2az51zfcfe4w7.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ckbk_cxw04nr.js +0 -1
- package/dist/ui/static/_next/static/chunks/2n8v0d0jxc0vm.js +0 -1
- package/dist/ui/static/_next/static/chunks/2nxhnrgae6nij.js +0 -1
- package/dist/ui/static/_next/static/chunks/2prq37rl7-s0l.js +0 -1
- package/dist/ui/static/_next/static/chunks/3-xsabbhsq0xh.js +0 -1
- package/dist/ui/static/_next/static/chunks/37h-dtpel_wcw.js +0 -1
- package/dist/ui/static/_next/static/chunks/37kujq-6rc3ey.js +0 -1
- package/dist/ui/static/_next/static/chunks/3cr7wi4udns8d.js +0 -1
- package/dist/ui/static/_next/static/chunks/3e4qdou22wwph.js +0 -1
- package/dist/ui/static/_next/static/chunks/3i3kblvx52ywv.js +0 -1
- package/dist/ui/static/_next/static/chunks/3n0xbx7qq5429.js +0 -1
- package/dist/ui/static/_next/static/chunks/3nydk_onn2xx2.css +0 -1
- package/dist/ui/static/_next/static/chunks/3vqr94foc1i2t.js +0 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts +0 -42
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.js +0 -151
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts +0 -79
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.js +0 -176
- package/vendor/oscharko-dev-keiko-activity-log-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evaluations-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sdk-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.7.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.7.tgz +0 -0
- /package/dist/ui/static/_next/static/{H3xxDPi4xvbxoz-xJSbax → 6pkGWU1F8PM1C3Cb4rVAo}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{H3xxDPi4xvbxoz-xJSbax → 6pkGWU1F8PM1C3Cb4rVAo}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{H3xxDPi4xvbxoz-xJSbax → 6pkGWU1F8PM1C3Cb4rVAo}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r);};var e=RegExp.prototype,r=new WeakMap();function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),_setPrototypeOf(o,BabelRegExp.prototype);}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]];}return r;},Object.create(null));}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this));}return t;},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\$<([^>]+)(>|$)/g,function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:"";}));}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e);});}return e[Symbol.replace].call(this,t,p);},_wrapRegExp.apply(this,arguments);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3696,e=>{e.q("/_next/static/media/editorWebWorkerMain.15kgt-h8_tuhi.js");},48340,48957,84499,14947,26383,66076,33802,86300,45019,52379,4331,41601,90103,89326,80492,43491,33128,15738,7860,23808,22719,12235,66320,94899,66331,22686,9986,76140,63011,10475,34758,40194,92267,69302,19984,93221,48669,21788,45356,87282,76230,26077,6620,65911,74232,41211,96039,66749,49419,36538,84584,13415,19526,67919,70924,73299,14515,30432,56946,68604,36554,24357,70305,37784,10538,23504,25060,16948,66330,8238,21836,21828,37130,98049,74901,59142,84801,82620,81168,12705,70662,50117,52462,36240,66486,26946,96028,81454,5139,39063,76691,11320,12403,61704,41254,74117,2390,34669,55714,69589,49342,10062,99939,52051,97216,41090,32098,27281,46120,97544,16902,99399,74929,6226,37611,49377,2062,57278,29781,59095,21047,75870,59199,35699,30318,16154,82614,88737,31928,95331,75541,96250,11068,44649,79066,75981,88246,32893,41593,87654,72141,6326,2298,51104,44370,63492,96044,18046,51845,6726,30296,63491,2554,3544,38995,82747,16931,61173,25191,98474,31135,46696,82856,58232,20998,57826,98837,82802,86154,48321,12214,67427,89703,68887,9722,84055,17529,8896,80302,74199,51082,57321,89494,e=>{"use strict";var _ij,_iG,_iQ,_nt,_sN,_s2,_rf,_r_,_rD,_rW,_rV,_rz,_rU,_r2,_ah,_ac,_aZ,_a2,_ll,_Class,_hQ,_d_,_dC,_Class2,_dV,_pi,_pC,_pV,_pU,_fe,_fp,_fx,_fD,_fT,_mJ,_vL,_vT,_vA,_vF,_vW,_vJ,_bh,_bg,_Class3,_Class4,_Class5,_Cs,_Co,_CW,_C$,_wg,_wp,_wQ,_yw,_Sj,_Class6,_LY,_L2,_L3,_Class7,_Dx,_Nq,_Ep,_Ev,_EL,_Ek,_E2,_Te,_T_,_Tb,_Class8,_Class9,_TZ,_T2,_T3,_RO,_Ao,_Om,_Ok,_OY,_OJ,_O2,_Pk,_Bm,_B2,_B3,_Class0,_Ws,_WR,_WA,_WV,_W2,_Class1,_Class10,_Class11,_VP,_Class12,_VY,_VX,_V2,_HS,_Hx,_HT,_HG,_Class13,_Class14,_zZ,_z2,_Class15,_Un,_Class16,_UA,_Class17,_$A;let t,i,n,s,o,r,a,l,h,d,c,u,g,p,f,m,_,v,b,C,w,y,S,x,L,k,D,M,I,N,E,T,R,A,O,P;var F,B,W,V,H,z,U,$,K,q,j,G,Q,Z,Y,X,J,ee,et,ei,en,es,eo,er,ea,el,eh,ed,ec,eu,eg,ep,ef,em,e_,ev,eb,eC,ew,ey,eS,ex,eL,ek,eD,eM,eI,eN,eE,eT,eR,eA,eO,eP,eF,eB,eW,eV,eH,ez,eU,e$,eK,eq,ej,eG,eQ,eZ,eY,eX,eJ,e0,e1,e2,e3,e5,e6,e4,e9,e8,e7,te,tt,ti,tn,ts,to,tr,ta,tl,th,td,tc,tu,tg,tp,tf,tm,t_,tv,tb,tC,tw,ty,tS,tx,tL,tk,tD,tM,tI,tN,tE,tT,tR,tA,tO,tP,tF,tB,tW,tV,tH,tz,tU,t$,tK,tq,tj,tG,tQ,tZ,tY,tX,tJ,t0,t1,t2,t3,t5,t6,t4,t9,t8,t7,ie,it,ii,is,io,ir,ia,il,ih,id,ic,iu,ig,ip=e.i(41791),im=e.i(88616),i_=e.i(52726),iv=e.i(38290);let ib=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new iv.S(),this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event;}getZoomLevel(){return this._zoomLevel;}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel));}}(),iC=i_.e?1.5:1.35;class iw{static _create(e,t,i,n,s,o,r,a,l){0===o?o=iC*i:o<8&&(o*=i),(o=Math.round(o))<8&&(o=8);let h=1+(l?0:.1*ib.getZoomLevel());if(i*=h,o*=h,s===ix)if("normal"===t||"bold"===t)s=iS;else{let e=parseInt(t,10);s=`'wght' ${e}`,t="normal";}return new iw({pixelRatio:a,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:s,lineHeight:o,letterSpacing:r});}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing;}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`;}getMassagedFontFamily(){let e=iL.fontFamily,t=iw._wrapInQuotes(this.fontFamily);return this.fontFamily!==e?`${t}, ${e}`:t;}static _wrapInQuotes(e){return /[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e;}}class iy extends iw{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth;}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth;}}let iS="normal",ix="translate",iL={fontFamily:i_.e?"Menlo, Monaco, 'Courier New', monospace":i_.t?"Consolas, 'Courier New', monospace":"'Droid Sans Mono', monospace",fontWeight:"normal",fontSize:i_.e?12:14,lineHeight:0,letterSpacing:0};e.s(["G",0,iw,"$",0,iL,"V",0,iS,"R",0,ix,"d",0,iy],48957);let ik={enabled:!0,independentColorPoolPerBracketType:!1};var iD=e.i(25398),iM=e.i(39146);class iI{constructor(e){this._values=e;}hasChanged(e){return this._values[e];}}class iN{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0;}}class iE{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n;}applyUpdate(e,t){return iR(e,t);}compute(e,t,i){return i;}}class iT{constructor(e,t){this.newValue=e,this.didChange=t;}}function iR(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new iT(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){let i=Array.isArray(e)&&Array.isArray(t)&&(0,ip.m)(e,t);return new iT(t,!i);}let i=!1;for(let n in t)if(t.hasOwnProperty(n)){let s=iR(e[n],t[n]);s.didChange&&(e[n]=s.newValue,i=!0);}return new iT(e,i);}class iA{constructor(e,t){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=t;}applyUpdate(e,t){return iR(e,t);}validate(e){return this.defaultValue;}}class iO{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n;}applyUpdate(e,t){return iR(e,t);}compute(e,t,i){return i;}}function iP(e,t){return void 0===e?t:"false"!==e&&!!e;}class iF extends iO{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n);}validate(e){return iP(e,this.defaultValue);}}function iB(e,t,i,n){if("string"==typeof e&&(e=parseInt(e,10)),"number"!=typeof e||isNaN(e))return t;let s=e;return 0|(s=Math.min(n,s=Math.max(i,s)));}class iW extends iO{static clampedInt(e,t,i,n){return iB(e,t,i,n);}constructor(e,t,i,n,s,o){void 0!==o&&(o.type="integer",o.default=i,o.minimum=n,o.maximum=s),super(e,t,i,o),this.minimum=n,this.maximum=s;}validate(e){return iW.clampedInt(e,this.defaultValue,this.minimum,this.maximum);}}function iV(e,t,i,n){if(void 0===e)return t;let s=iH.float(e,t);return iH.clamp(s,i,n);}class iH extends iO{static clamp(e,t,i){return e<t?t:e>i?i:e;}static float(e,t){return("string"==typeof e&&(e=parseFloat(e)),"number"!=typeof e||isNaN(e))?t:e;}constructor(e,t,i,n,s,o,r){void 0!==s&&(s.type="number",s.default=i,s.minimum=o,s.maximum=r),super(e,t,i,s),this.validationFn=n,this.minimum=o,this.maximum=r;}validate(e){return this.validationFn(iH.float(e,this.defaultValue));}}class iz extends iO{static string(e,t){return"string"!=typeof e?t:e;}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n);}validate(e){return iz.string(e,this.defaultValue);}}function iU(e,t,i,n){return"string"!=typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e;}class i$ extends iO{constructor(e,t,i,n,s){void 0!==s&&(s.type="string",s.enum=n.slice(0),s.default=i),super(e,t,i,s),this._allowedValues=n;}validate(e){return iU(e,this.defaultValue,this._allowedValues);}}class iK extends iE{constructor(e,t,i,n,s,o,r){void 0!==r&&(r.type="string",r.enum=s,r.default=n),super(e,t,i,r),this._allowedValues=s,this._convert=o;}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e);}}function iq(e){switch(e){case"line":return eU.Line;case"block":return eU.Block;case"underline":return eU.Underline;case"line-thin":return eU.LineThin;case"block-outline":return eU.BlockOutline;case"underline-thin":return eU.UnderlineThin;}}(B=eU||(eU={}))[B.Line=1]="Line",B[B.Block=2]="Block",B[B.Underline=3]="Underline",B[B.LineThin=4]="LineThin",B[B.BlockOutline=5]="BlockOutline",B[B.UnderlineThin=6]="UnderlineThin";class ij extends iE{constructor(){super(60,"fontLigatures",ij.OFF,{anyOf:[{type:"boolean",description:(0,iM.M)(253,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:(0,iM.M)(254,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:(0,iM.M)(255,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1});}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e||0===e.length?ij.OFF:"true"===e?ij.ON:e:e?ij.ON:ij.OFF;}}_ij=ij;_ij.OFF='"liga" off, "calt" off';_ij.ON='"liga" on, "calt" on';class iG extends iE{constructor(){super(63,"fontVariations",iG.OFF,{anyOf:[{type:"boolean",description:(0,iM.M)(256,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:(0,iM.M)(257,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:(0,iM.M)(258,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1});}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?iG.OFF:"true"===e?iG.TRANSLATE:e:e?iG.TRANSLATE:iG.OFF;}compute(e,t,i){return e.fontInfo.fontVariationSettings;}}_iG=iG;_iG.OFF=iS;_iG.TRANSLATE=ix;class iQ extends iE{constructor(){super(62,"fontWeight",iL.fontWeight,{anyOf:[{type:"number",minimum:iQ.MINIMUM_VALUE,maximum:iQ.MAXIMUM_VALUE,errorMessage:(0,iM.M)(260,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:iQ.SUGGESTION_VALUES}],default:iL.fontWeight,description:(0,iM.M)(261,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')});}validate(e){return"normal"===e||"bold"===e?e:String(iW.clampedInt(e,iL.fontWeight,iQ.MINIMUM_VALUE,iQ.MAXIMUM_VALUE));}}_iQ=iQ;_iQ.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];_iQ.MINIMUM_VALUE=1;_iQ.MAXIMUM_VALUE=1e3;class iZ extends iA{constructor(){super(166,{width:0,height:0,glyphMarginLeft:0,glyphMarginWidth:0,glyphMarginDecorationLaneCount:0,lineNumbersLeft:0,lineNumbersWidth:0,decorationsLeft:0,decorationsWidth:0,contentLeft:0,contentWidth:0,minimap:{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:0,minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:0},viewportColumn:0,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1,verticalScrollbarWidth:0,horizontalScrollbarHeight:0,overviewRuler:{top:0,width:0,height:0,right:0}});}compute(e,t,i){return iZ.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount});}static computeContainedMinimapLineCount(e){let t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight),n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));let s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:o};}static _computeMinimapLayout(e,t){let i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};let o=t.stableMinimapLayoutInput,r=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters,c=s>=2?Math.round(2*e.minimap.scale):e.minimap.scale,u=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,f=e.verticalScrollbarWidth,m=e.viewLineCount,_=e.remainingWidth,v=e.isViewportWrapping,b=d?2:3,C=Math.floor(s*n),w=C/s,y=!1,S=!1,x=b*c,L=c/s,k=1;if("fill"===g||"fit"===g){let{typicalViewportLineCount:i,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:u}=iZ.computeContainedMinimapLineCount({viewLineCount:m,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:s});if(m/u>1)y=!0,S=!0,x=1,L=(c=1)/s;else{let n=!1,h=c+1;if("fit"===g){let e=Math.ceil((o+m+l)*x);v&&r&&_<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>C;}if("fill"===g||n){y=!0;let n=c;x=Math.min(a*s,Math.max(1,Math.floor(1/d))),v&&r&&_<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),(c=Math.min(h,Math.max(1,Math.floor(x/b))))>n&&(k=Math.min(2,c/n)),L=c/s/k,C=Math.ceil(Math.max(i,o+m+l)*x),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=c):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0);}}}let D=Math.min(Math.floor(u*L),Math.max(0,Math.floor((_-f-2)*L/(l+L)))+8),M=Math.floor(s*D),I=M/s;return{renderMinimap:d?1:2,minimapLeft:"left"===p?0:i-D-f,minimapWidth:D,minimapHeightIsEditorHeight:y,minimapIsSampling:S,minimapScale:c,minimapLineHeight:x,minimapCanvasInnerWidth:M=Math.floor(M*k),minimapCanvasInnerHeight:C,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:w};}static computeLayout(e,t){let i=0|t.outerWidth,n=0|t.outerHeight,s=0|t.lineHeight,o=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,h=t.viewLineCount,d=e.get(154),c="inherit"===d?e.get(153):d,u="inherit"===c?e.get(149):c,g=e.get(152),p=e.get(161),f=t.isDominatedByLongLines,m=e.get(66),_=0!==e.get(76).renderType,v=e.get(77),b=e.get(119),C=e.get(96),w=e.get(81),y=e.get(117),S=y.verticalScrollbarSize,x=y.verticalHasArrows,L=y.arrowSize,k=y.horizontalScrollbarSize,D=e.get(52),M="never"!==e.get(126),I=e.get(74);D&&M&&(I+=16);let N=0;_&&(N=Math.round(Math.max(o,v)*a));let E=0;m&&(E=s*t.glyphMarginDecorationLaneCount);let T=0,R=0+E,A=R+N,O=A+I,P=i-E-N-I,F=!1,B=!1,W=-1;2===e.get(2)&&"inherit"===c&&f?(F=!0,B=!0):"on"===u||"bounded"===u?B=!0:"wordWrapColumn"===u&&(W=g);let V=iZ._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:C.top,paddingBottom:C.bottom,minimap:w,verticalScrollbarWidth:S,viewLineCount:h,remainingWidth:P,isViewportWrapping:B},t.memory||new iN());0!==V.renderMinimap&&0===V.minimapLeft&&(T+=V.minimapWidth,R+=V.minimapWidth,A+=V.minimapWidth,O+=V.minimapWidth);let H=P-V.minimapWidth,z=Math.max(1,Math.floor((H-S-2)/r)),U=x?L:0;return B&&(W=Math.max(1,z-!!p),"bounded"===u&&(W=Math.min(W,g))),{width:i,height:n,glyphMarginLeft:T,glyphMarginWidth:E,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:N,decorationsLeft:A,decorationsWidth:I,contentLeft:O,contentWidth:H,minimap:V,viewportColumn:z,isWordWrapMinified:F,isViewportWrapping:B,wrappingColumn:W,verticalScrollbarWidth:S,horizontalScrollbarHeight:k,overviewRuler:{top:U,width:S,height:n-2*U,right:0}};}}function iY(e){let t=e.get(112);return"editable"===t?e.get(104):"on"!==t;}function iX(e){return!e.get(173);}function iJ(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1;}}(W=e$||(e$={})).Off="off",W.OnCode="onCode",W.On="on";let i0="inUntrustedWorkspace";function i1(e,t,i){let n=i.indexOf(e);return-1===n?t:i[n];}let i2=[];function i3(e){return i2[e.id]=e,e;}let i5={acceptSuggestionOnCommitCharacter:i3(new iF(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:(0,iM.M)(468,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:i3(new i$(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",(0,iM.M)(469,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:(0,iM.M)(470,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:i3(new class extends iE{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[(0,iM.M)(226,"Use platform APIs to detect when a Screen Reader is attached."),(0,iM.M)(227,"Optimize for usage with a Screen Reader."),(0,iM.M)(228,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:(0,iM.M)(229,"Controls if the UI should run in a mode where it is optimized for screen readers.")});}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2;}return this.defaultValue;}compute(e,t,i){return 0===i?e.accessibilitySupport:i;}}()),accessibilityPageSize:i3(new iW(3,"accessibilityPageSize",500,1,0x40000000,{description:(0,iM.M)(471,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),allowOverflow:i3(new iF(4,"allowOverflow",!0)),allowVariableLineHeights:i3(new iF(5,"allowVariableLineHeights",!0,{description:(0,iM.M)(472,"Controls whether to allow using variable line heights in the editor.")})),allowVariableFonts:i3(new iF(6,"allowVariableFonts",!0,{description:(0,iM.M)(473,"Controls whether to allow using variable fonts in the editor.")})),allowVariableFontsInAccessibilityMode:i3(new iF(7,"allowVariableFontsInAccessibilityMode",!1,{description:(0,iM.M)(474,"Controls whether to allow using variable fonts in the editor in the accessibility mode."),tags:["accessibility"]})),ariaLabel:i3(new iz(8,"ariaLabel",(0,iM.M)(475,"Editor content"))),ariaRequired:i3(new iF(9,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:i3(new iF(12,"screenReaderAnnounceInlineSuggestion",!0,{description:(0,iM.M)(476,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:i3(new i$(10,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,iM.M)(477,"Use language configurations to determine when to autoclose brackets."),(0,iM.M)(478,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:(0,iM.M)(479,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:i3(new i$(11,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,iM.M)(480,"Use language configurations to determine when to autoclose comments."),(0,iM.M)(481,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:(0,iM.M)(482,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:i3(new i$(13,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",(0,iM.M)(483,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:(0,iM.M)(484,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:i3(new i$(14,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",(0,iM.M)(485,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:(0,iM.M)(486,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:i3(new i$(15,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,iM.M)(487,"Use language configurations to determine when to autoclose quotes."),(0,iM.M)(488,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:(0,iM.M)(489,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:i3(new iK(16,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4;}},{enumDescriptions:[(0,iM.M)(490,"The editor will not insert indentation automatically."),(0,iM.M)(491,"The editor will keep the current line's indentation."),(0,iM.M)(492,"The editor will keep the current line's indentation and honor language defined brackets."),(0,iM.M)(493,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),(0,iM.M)(494,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:(0,iM.M)(495,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),autoIndentOnPaste:i3(new iF(17,"autoIndentOnPaste",!1,{description:(0,iM.M)(496,"Controls whether the editor should automatically auto-indent the pasted content.")})),autoIndentOnPasteWithinString:i3(new iF(18,"autoIndentOnPasteWithinString",!0,{description:(0,iM.M)(497,"Controls whether the editor should automatically auto-indent the pasted content when pasted within a string. This takes effect when autoIndentOnPaste is true.")})),automaticLayout:i3(new iF(19,"automaticLayout",!1)),autoSurround:i3(new i$(20,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[(0,iM.M)(498,"Use language configurations to determine when to automatically surround selections."),(0,iM.M)(499,"Surround with quotes but not brackets."),(0,iM.M)(500,"Surround with brackets but not quotes."),""],description:(0,iM.M)(501,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:i3(new class extends iE{constructor(){let e={enabled:ik.enabled,independentColorPoolPerBracketType:ik.independentColorPoolPerBracketType};super(21,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,iM.M)(389,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:(0,iM.M)(390,"Controls whether each bracket type has its own independent color pool.")}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:iP(e.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}:this.defaultValue;}}()),bracketPairGuides:i3(new class extends iE{constructor(){let e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(22,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[(0,iM.M)(391,"Enables bracket pair guides."),(0,iM.M)(392,"Enables bracket pair guides only for the active bracket pair."),(0,iM.M)(393,"Disables bracket pair guides.")],default:e.bracketPairs,description:(0,iM.M)(394,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[(0,iM.M)(395,"Enables horizontal guides as addition to vertical bracket pair guides."),(0,iM.M)(396,"Enables horizontal guides only for the active bracket pair."),(0,iM.M)(397,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:(0,iM.M)(398,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:(0,iM.M)(399,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:(0,iM.M)(400,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[(0,iM.M)(401,"Highlights the active indent guide."),(0,iM.M)(402,"Highlights the active indent guide even if bracket guides are highlighted."),(0,iM.M)(403,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:(0,iM.M)(404,"Controls whether the editor should highlight the active indent guide.")}});}validate(e){return e&&"object"==typeof e?{bracketPairs:i1(e.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:i1(e.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:iP(e.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:iP(e.indentation,this.defaultValue.indentation),highlightActiveIndentation:i1(e.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}:this.defaultValue;}}()),stickyTabStops:i3(new iF(132,"stickyTabStops",!1,{description:(0,iM.M)(502,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:i3(new iF(23,"codeLens",!0,{description:(0,iM.M)(503,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:i3(new iz(24,"codeLensFontFamily","",{description:(0,iM.M)(504,"Controls the font family for CodeLens.")})),codeLensFontSize:i3(new iW(25,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:(0,iM.M)(505,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:i3(new iF(26,"colorDecorators",!0,{description:(0,iM.M)(506,"Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:i3(new i$(169,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[(0,iM.M)(507,"Make the color picker appear both on click and hover of the color decorator"),(0,iM.M)(508,"Make the color picker appear on hover of the color decorator"),(0,iM.M)(509,"Make the color picker appear on click of the color decorator")],description:(0,iM.M)(510,"Controls the condition to make a color picker appear from a color decorator.")})),colorDecoratorsLimit:i3(new iW(27,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:(0,iM.M)(511,"Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:i3(new iF(28,"columnSelection",!1,{description:(0,iM.M)(512,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:i3(new class extends iE{constructor(){let e={insertSpace:!0,ignoreEmptyLines:!0};super(29,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:(0,iM.M)(230,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:(0,iM.M)(231,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}});}validate(e){return e&&"object"==typeof e?{insertSpace:iP(e.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:iP(e.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}:this.defaultValue;}}()),contextmenu:i3(new iF(30,"contextmenu",!0)),copyWithSyntaxHighlighting:i3(new iF(31,"copyWithSyntaxHighlighting",!0,{description:(0,iM.M)(513,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:i3(new iK(32,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5;}},{description:(0,iM.M)(514,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:i3(new i$(33,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[(0,iM.M)(515,"Smooth caret animation is disabled."),(0,iM.M)(516,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),(0,iM.M)(517,"Smooth caret animation is always enabled.")],description:(0,iM.M)(518,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:i3(new iK(34,"cursorStyle",eU.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],iq,{description:(0,iM.M)(519,"Controls the cursor style in insert input mode.")})),overtypeCursorStyle:i3(new iK(92,"overtypeCursorStyle",eU.Block,"block",["line","block","underline","line-thin","block-outline","underline-thin"],iq,{description:(0,iM.M)(520,"Controls the cursor style in overtype input mode.")})),cursorSurroundingLines:i3(new iW(35,"cursorSurroundingLines",0,0,0x40000000,{description:(0,iM.M)(521,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:i3(new i$(36,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[(0,iM.M)(522,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),(0,iM.M)(523,"`cursorSurroundingLines` is enforced always.")],markdownDescription:(0,iM.M)(524,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:i3(new iW(37,"cursorWidth",0,0,0x40000000,{markdownDescription:(0,iM.M)(525,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),cursorHeight:i3(new iW(38,"cursorHeight",0,0,0x40000000,{markdownDescription:(0,iM.M)(526,"Controls the height of the cursor when `#editor.cursorStyle#` is set to `line`. Cursor's max height depends on line height.")})),disableLayerHinting:i3(new iF(39,"disableLayerHinting",!1)),disableMonospaceOptimizations:i3(new iF(40,"disableMonospaceOptimizations",!1)),domReadOnly:i3(new iF(41,"domReadOnly",!1)),doubleClickSelectsBlock:i3(new iF(174,"doubleClickSelectsBlock",!0,{description:(0,iM.M)(527,"Controls whether double-clicking next to a bracket or quote selects the content inside.")})),dragAndDrop:i3(new iF(42,"dragAndDrop",!0,{description:(0,iM.M)(528,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:i3(new class extends iF{constructor(){super(45,"emptySelectionClipboard",!0,{description:(0,iM.M)(232,"Controls whether copying without a selection copies the current line.")});}compute(e,t,i){return i&&e.emptySelectionClipboard;}}()),dropIntoEditor:i3(new class extends iE{constructor(){let e={enabled:!0,showDropSelector:"afterDrop"};super(43,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,iM.M)(460,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:(0,iM.M)(461,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[(0,iM.M)(462,"Show the drop selector widget after a file is dropped into the editor."),(0,iM.M)(463,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),showDropSelector:iU(e.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}:this.defaultValue;}}()),editContext:i3(new iF(44,"editContext",!0,{description:(0,iM.M)(529,"Sets whether the EditContext API should be used instead of the text area to power input in the editor."),included:i_.o||i_.X||i_.u})),renderRichScreenReaderContent:i3(new iF(107,"renderRichScreenReaderContent",!1,{markdownDescription:(0,iM.M)(530,"Whether to render rich screen reader content when the `#editor.editContext#` setting is enabled.")})),stickyScroll:i3(new class extends iE{constructor(){let e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(131,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(292,"Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:(0,iM.M)(293,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:(0,iM.M)(294,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:(0,iM.M)(295,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),maxLineCount:iW.clampedInt(e.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:iU(e.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:iP(e.scrollWithEditor,this.defaultValue.scrollWithEditor)}:this.defaultValue;}}()),experimentalGpuAcceleration:i3(new i$(46,"experimentalGpuAcceleration","off",["off","on"],{tags:["experimental"],enumDescriptions:[(0,iM.M)(531,"Use regular DOM-based rendering."),(0,iM.M)(532,"Use GPU acceleration.")],description:(0,iM.M)(533,"Controls whether to use the experimental GPU acceleration to render the editor.")})),experimentalWhitespaceRendering:i3(new i$(47,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[(0,iM.M)(534,"Use a new rendering method with svgs."),(0,iM.M)(535,"Use a new rendering method with font characters."),(0,iM.M)(536,"Use the stable rendering method.")],description:(0,iM.M)(537,"Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:i3(new iz(48,"extraEditorClassName","")),fastScrollSensitivity:i3(new iH(49,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:(0,iM.M)(538,"Scrolling speed multiplier when pressing `Alt`.")})),find:i3(new class extends iE{constructor(){let e={cursorMoveOnType:!0,findOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0,closeOnResult:!1,history:"workspace",replaceHistory:"workspace"};super(50,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:(0,iM.M)(233,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[(0,iM.M)(234,"Never seed search string from the editor selection."),(0,iM.M)(235,"Always seed search string from the editor selection, including word at cursor position."),(0,iM.M)(236,"Only seed search string from the editor selection.")],description:(0,iM.M)(237,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[(0,iM.M)(238,"Never turn on Find in Selection automatically (default)."),(0,iM.M)(239,"Always turn on Find in Selection automatically."),(0,iM.M)(240,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:(0,iM.M)(241,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:(0,iM.M)(242,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:i_.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:(0,iM.M)(243,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:(0,iM.M)(244,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")},"editor.find.closeOnResult":{type:"boolean",default:e.closeOnResult,description:(0,iM.M)(245,"Controls whether the Find Widget closes after an explicit find navigation command lands on a result.")},"editor.find.history":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[(0,iM.M)(246,"Do not store search history from the find widget."),(0,iM.M)(247,"Store search history across the active workspace")],description:(0,iM.M)(248,"Controls how the find widget history should be stored")},"editor.find.replaceHistory":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[(0,iM.M)(249,"Do not store history from the replace widget."),(0,iM.M)(250,"Store replace history across the active workspace")],description:(0,iM.M)(251,"Controls how the replace widget history should be stored")},"editor.find.findOnType":{type:"boolean",default:e.findOnType,description:(0,iM.M)(252,"Controls whether the Find Widget should search as you type.")}});}validate(e){return e&&"object"==typeof e?{cursorMoveOnType:iP(e.cursorMoveOnType,this.defaultValue.cursorMoveOnType),findOnType:iP(e.findOnType,this.defaultValue.findOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":iU(e.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":iU(e.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:iP(e.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:iP(e.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:iP(e.loop,this.defaultValue.loop),closeOnResult:iP(e.closeOnResult,this.defaultValue.closeOnResult),history:iU(e.history,this.defaultValue.history,["never","workspace"]),replaceHistory:iU(e.replaceHistory,this.defaultValue.replaceHistory,["never","workspace"])}:this.defaultValue;}}()),fixedOverflowWidgets:i3(new iF(51,"fixedOverflowWidgets",!1)),folding:i3(new iF(52,"folding",!0,{description:(0,iM.M)(539,"Controls whether the editor has code folding enabled.")})),foldingStrategy:i3(new i$(53,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[(0,iM.M)(540,"Use a language-specific folding strategy if available, else the indentation-based one."),(0,iM.M)(541,"Use the indentation-based folding strategy.")],description:(0,iM.M)(542,"Controls the strategy for computing folding ranges.")})),foldingHighlight:i3(new iF(54,"foldingHighlight",!0,{description:(0,iM.M)(543,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:i3(new iF(55,"foldingImportsByDefault",!1,{description:(0,iM.M)(544,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:i3(new iW(56,"foldingMaximumRegions",5e3,10,65e3,{description:(0,iM.M)(545,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:i3(new iF(57,"unfoldOnClickAfterEndOfLine",!1,{description:(0,iM.M)(546,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:i3(new iz(58,"fontFamily",iL.fontFamily,{description:(0,iM.M)(547,"Controls the font family.")})),fontInfo:i3(new class extends iA{constructor(){super(59,new iy({pixelRatio:0,fontFamily:"",fontWeight:"",fontSize:0,fontFeatureSettings:"",fontVariationSettings:"",lineHeight:0,letterSpacing:0,isMonospace:!1,typicalHalfwidthCharacterWidth:0,typicalFullwidthCharacterWidth:0,canUseHalfwidthRightwardsArrow:!1,spaceWidth:0,middotWidth:0,wsmiddotWidth:0,maxDigitWidth:0},!1));}compute(e,t,i){return e.fontInfo;}}()),fontLigatures2:i3(new ij()),fontSize:i3(new class extends iO{constructor(){super(61,"fontSize",iL.fontSize,{type:"number",minimum:6,maximum:100,default:iL.fontSize,description:(0,iM.M)(259,"Controls the font size in pixels.")});}validate(e){let t=iH.float(e,this.defaultValue);return 0===t?iL.fontSize:iH.clamp(t,6,100);}compute(e,t,i){return e.fontInfo.fontSize;}}()),fontWeight:i3(new iQ()),fontVariations:i3(new iG()),formatOnPaste:i3(new iF(64,"formatOnPaste",!1,{description:(0,iM.M)(548,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:i3(new iF(65,"formatOnType",!1,{description:(0,iM.M)(549,"Controls whether the editor should automatically format the line after typing.")})),fullwidthCharacterWidth:i3(new i$(175,"fullwidthCharacterWidth","font",["font","twoCells"],{enumDescriptions:[(0,iM.M)(550,"Render full-width characters using the width defined by the font."),(0,iM.M)(551,"Render full-width characters centered in exactly two character cells. Only applies to monospace fonts. Does not apply to multi codepoint full-width characters or to GPU rendering. This has a performance impact on line rendering.")],description:(0,iM.M)(552,"Controls the width used to render full-width characters.")})),glyphMargin:i3(new iF(66,"glyphMargin",!0,{description:(0,iM.M)(553,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:i3(new class extends iE{constructor(){let e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[(0,iM.M)(262,"Show Peek view of the results (default)"),(0,iM.M)(263,"Go to the primary result and show a Peek view"),(0,iM.M)(264,"Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(67,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:(0,iM.M)(265,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:(0,iM.M)(266,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:(0,iM.M)(267,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:(0,iM.M)(268,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:(0,iM.M)(269,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:(0,iM.M)(270,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:(0,iM.M)(271,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:(0,iM.M)(272,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:(0,iM.M)(273,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:(0,iM.M)(274,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:(0,iM.M)(275,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}});}validate(e){return e&&"object"==typeof e?{multiple:iU(e.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:iU(e.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:iU(e.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:iU(e.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:iU(e.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:iU(e.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:iU(e.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:iz.string(e.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:iz.string(e.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:iz.string(e.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:iz.string(e.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:iz.string(e.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:iz.string(e.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}:this.defaultValue;}}()),hideCursorInOverviewRuler:i3(new iF(68,"hideCursorInOverviewRuler",!1,{description:(0,iM.M)(554,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:i3(new class extends iE{constructor(){let e={enabled:"on",delay:300,hidingDelay:300,sticky:!0,above:!0,showLongLineWarning:!0};super(69,"hover",e,{"editor.hover.enabled":{type:"string",enum:["on","off","onKeyboardModifier"],default:e.enabled,markdownEnumDescriptions:[(0,iM.M)(276,"Hover is enabled."),(0,iM.M)(277,"Hover is disabled."),(0,iM.M)(278,"Hover is shown when holding `{0}` or `Alt` (the opposite modifier of `#editor.multiCursorModifier#`)",i_.e?"Command":"Control")],description:(0,iM.M)(279,"Controls whether the hover is shown."),keywords:["hint","info","tooltip"]},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:(0,iM.M)(280,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:(0,iM.M)(281,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,markdownDescription:(0,iM.M)(282,"Controls the delay in milliseconds after which the hover is hidden. Requires `#editor.hover.sticky#` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:(0,iM.M)(283,"Prefer showing hovers above the line, if there's space.")},"editor.hover.showLongLineWarning":{type:"boolean",default:e.showLongLineWarning,description:(0,iM.M)(284,"Controls whether long line warning hovers are shown, such as when tokenization is skipped or rendering is paused.")}});}validate(e){return e&&"object"==typeof e?{enabled:iU(e.enabled,this.defaultValue.enabled,["on","off","onKeyboardModifier"]),delay:iW.clampedInt(e.delay,this.defaultValue.delay,0,1e4),sticky:iP(e.sticky,this.defaultValue.sticky),hidingDelay:iW.clampedInt(e.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:iP(e.above,this.defaultValue.above),showLongLineWarning:iP(e.showLongLineWarning,this.defaultValue.showLongLineWarning)}:this.defaultValue;}}()),inDiffEditor:i3(new iF(70,"inDiffEditor",!1)),inertialScroll:i3(new iF(158,"inertialScroll",!1,{description:(0,iM.M)(555,"Make scrolling inertial - mostly useful with touchpad on linux.")})),letterSpacing:i3(new iH(72,"letterSpacing",iL.letterSpacing,e=>iH.clamp(e,-5,20),{description:(0,iM.M)(556,"Controls the letter spacing in pixels.")})),lightbulb:i3(new class extends iE{constructor(){let e={enabled:e$.OnCode};super(73,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",enum:[e$.Off,e$.OnCode,e$.On],default:e.enabled,enumDescriptions:[(0,iM.M)(288,"Disable the code action menu."),(0,iM.M)(289,"Show the code action menu when the cursor is on lines with code."),(0,iM.M)(290,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:(0,iM.M)(291,"Enables the Code Action lightbulb in the editor.")}});}validate(e){return e&&"object"==typeof e?{enabled:iU(e.enabled,this.defaultValue.enabled,[e$.Off,e$.OnCode,e$.On])}:this.defaultValue;}}()),lineDecorationsWidth:i3(new class extends iE{constructor(){super(74,"lineDecorationsWidth",10);}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):iW.clampedInt(e,this.defaultValue,0,1e3);}compute(e,t,i){return i<0?iW.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i;}}()),lineHeight:i3(new class extends iH{constructor(){super(75,"lineHeight",iL.lineHeight,e=>iH.clamp(e,0,150),{markdownDescription:(0,iM.M)(305,"Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")},0,150);}compute(e,t,i){return e.fontInfo.lineHeight;}}()),lineNumbers:i3(new class extends iE{constructor(){super(76,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[(0,iM.M)(341,"Line numbers are not rendered."),(0,iM.M)(342,"Line numbers are rendered as absolute number."),(0,iM.M)(343,"Line numbers are rendered as distance in lines to cursor position."),(0,iM.M)(344,"Line numbers are rendered every 10 lines.")],default:"on",description:(0,iM.M)(345,"Controls the display of line numbers.")});}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:+("on"===e)),{renderType:t,renderFn:i};}}()),lineNumbersMinChars:i3(new iW(77,"lineNumbersMinChars",5,1,300)),linkedEditing:i3(new iF(78,"linkedEditing",!1,{description:(0,iM.M)(557,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:i3(new iF(79,"links",!0,{description:(0,iM.M)(558,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:i3(new i$(80,"matchBrackets","always",["always","near","never"],{description:(0,iM.M)(559,"Highlight matching brackets.")})),minimap:i3(new class extends iE{constructor(){let e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:"none",renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,markSectionHeaderRegex:"\\bMARK:\\s*(?<separator>-?)\\s*(?<label>.*)$",sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(81,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(306,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"string",enum:["none","mouseover","scroll"],enumDescriptions:[(0,iM.M)(307,"The minimap is always shown."),(0,iM.M)(308,"The minimap is hidden when mouse is not over the minimap and shown when mouse is over the minimap."),(0,iM.M)(309,"The minimap is only shown when the editor is scrolled")],default:e.autohide,description:(0,iM.M)(310,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[(0,iM.M)(311,"The minimap has the same size as the editor contents (and might scroll)."),(0,iM.M)(312,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),(0,iM.M)(313,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:(0,iM.M)(314,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:(0,iM.M)(315,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:(0,iM.M)(316,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:(0,iM.M)(317,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:(0,iM.M)(318,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:(0,iM.M)(319,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:(0,iM.M)(320,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:(0,iM.M)(321,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.markSectionHeaderRegex":{type:"string",default:e.markSectionHeaderRegex,description:(0,iM.M)(322,"Defines the regular expression used to find section headers in comments. The regex must contain a named match group `label` (written as `(?<label>.+)`) that encapsulates the section header, otherwise it will not work. Optionally you can include another match group named `separator`. Use \\n in the pattern to match multi-line headers.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:(0,iM.M)(323,"Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:(0,iM.M)(324,"Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}});}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;let t=this.defaultValue.markSectionHeaderRegex,i=e.markSectionHeaderRegex;if("string"==typeof i)try{RegExp(i,"d"),t=i;}catch{}return{enabled:iP(e.enabled,this.defaultValue.enabled),autohide:iU(e.autohide,this.defaultValue.autohide,["none","mouseover","scroll"]),size:iU(e.size,this.defaultValue.size,["proportional","fill","fit"]),side:iU(e.side,this.defaultValue.side,["right","left"]),showSlider:iU(e.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:iP(e.renderCharacters,this.defaultValue.renderCharacters),scale:iW.clampedInt(e.scale,1,1,3),maxColumn:iW.clampedInt(e.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:iP(e.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:iP(e.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),markSectionHeaderRegex:t,sectionHeaderFontSize:iH.clamp(iH.float(e.sectionHeaderFontSize,this.defaultValue.sectionHeaderFontSize),4,32),sectionHeaderLetterSpacing:iH.clamp(iH.float(e.sectionHeaderLetterSpacing,this.defaultValue.sectionHeaderLetterSpacing),0,5)};}}()),mouseStyle:i3(new i$(82,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:i3(new iH(83,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:(0,iM.M)(560,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:i3(new iF(84,"mouseWheelZoom",!1,{markdownDescription:i_.e?(0,iM.M)(561,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):(0,iM.M)(562,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:i3(new iF(85,"multiCursorMergeOverlapping",!0,{description:(0,iM.M)(563,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:i3(new iK(86,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(e){return"ctrlCmd"===e?i_.e?"metaKey":"ctrlKey":"altKey";},{markdownEnumDescriptions:[(0,iM.M)(564,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,iM.M)(565,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:(0,iM.M)(566,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),mouseMiddleClickAction:i3(new i$(87,"mouseMiddleClickAction","default",["default","openLink","ctrlLeftClick"],{description:(0,iM.M)(567,"Controls what happens when middle mouse button is clicked in the editor.")})),multiCursorPaste:i3(new i$(88,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[(0,iM.M)(568,"Each cursor pastes a single line of the text."),(0,iM.M)(569,"Each cursor pastes the full text.")],markdownDescription:(0,iM.M)(570,"Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:i3(new iW(89,"multiCursorLimit",1e4,1,1e5,{markdownDescription:(0,iM.M)(571,"Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:i3(new i$(90,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[(0,iM.M)(572,"Does not highlight occurrences."),(0,iM.M)(573,"Highlights occurrences only in the current file."),(0,iM.M)(574,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:(0,iM.M)(575,"Controls whether occurrences should be highlighted across open files.")})),occurrencesHighlightDelay:i3(new iW(91,"occurrencesHighlightDelay",0,0,2e3,{description:(0,iM.M)(576,"Controls the delay in milliseconds after which occurrences are highlighted."),tags:["preview"]})),overtypeOnPaste:i3(new iF(93,"overtypeOnPaste",!0,{description:(0,iM.M)(577,"Controls whether pasting should overtype.")})),overviewRulerBorder:i3(new iF(94,"overviewRulerBorder",!0,{description:(0,iM.M)(578,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:i3(new iW(95,"overviewRulerLanes",3,0,3)),padding:i3(new class extends iE{constructor(){super(96,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:(0,iM.M)(325,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:(0,iM.M)(326,"Controls the amount of space between the bottom edge of the editor and the last line.")}});}validate(e){return e&&"object"==typeof e?{top:iW.clampedInt(e.top,0,0,1e3),bottom:iW.clampedInt(e.bottom,0,0,1e3)}:this.defaultValue;}}()),pasteAs:i3(new class extends iE{constructor(){let e={enabled:!0,showPasteSelector:"afterPaste"};super(97,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,iM.M)(464,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:(0,iM.M)(465,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[(0,iM.M)(466,"Show the paste selector widget after content is pasted into the editor."),(0,iM.M)(467,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),showPasteSelector:iU(e.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}:this.defaultValue;}}()),parameterHints:i3(new class extends iE{constructor(){let e={enabled:!0,cycle:!0};super(98,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(327,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:(0,iM.M)(328,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),cycle:iP(e.cycle,this.defaultValue.cycle)}:this.defaultValue;}}()),peekWidgetDefaultFocus:i3(new i$(99,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[(0,iM.M)(579,"Focus the tree when opening peek"),(0,iM.M)(580,"Focus the editor when opening peek")],description:(0,iM.M)(581,"Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:i3(new class extends iE{constructor(){super(100,"placeholder",void 0);}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?e:this.defaultValue;}}()),definitionLinkOpensInPeek:i3(new iF(101,"definitionLinkOpensInPeek",!1,{description:(0,iM.M)(582,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:i3(new class extends iE{constructor(){let e={other:"offWhenInlineCompletions",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off","offWhenInlineCompletions"],enumDescriptions:[(0,iM.M)(329,"Quick suggestions show inside the suggest widget"),(0,iM.M)(330,"Quick suggestions show as ghost text"),(0,iM.M)(331,"Quick suggestions are disabled"),(0,iM.M)(332,"Quick suggestions are disabled when inline completions are showing")]}];super(102,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"string",enum:["on","inline","off","offWhenInlineCompletions"],enumDescriptions:[(0,iM.M)(333,"Quick suggestions are enabled for all token types"),(0,iM.M)(334,"Quick suggestions show as ghost text for all token types"),(0,iM.M)(335,"Quick suggestions are disabled for all token types"),(0,iM.M)(336,"Quick suggestions are disabled for all token types when inline completions are showing")]},{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:(0,iM.M)(337,"Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:(0,iM.M)(338,"Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:(0,iM.M)(339,"Enable quick suggestions outside of strings and comments.")}}}],default:e,markdownDescription:(0,iM.M)(340,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`"),experiment:{mode:"auto"}}),this.defaultValue=e;}validate(e){let t;if("boolean"==typeof e){let t=e?"on":"off";return{comments:t,strings:t,other:t};}if("string"==typeof e){let t=iU(e,this.defaultValue.other,["on","inline","off","offWhenInlineCompletions"]);return{comments:t,strings:t,other:t};}if(!e||"object"!=typeof e)return this.defaultValue;let{other:i,comments:n,strings:s}=e,o=["on","inline","off","offWhenInlineCompletions"];return t="boolean"==typeof i?i?"on":"off":iU(i,this.defaultValue.other,o),{other:t,comments:"boolean"==typeof n?n?"on":"off":iU(n,this.defaultValue.comments,o),strings:"boolean"==typeof s?s?"on":"off":iU(s,this.defaultValue.strings,o)};}}()),quickSuggestionsDelay:i3(new iW(103,"quickSuggestionsDelay",10,0,0x40000000,{description:(0,iM.M)(583,"Controls the delay in milliseconds after which quick suggestions will show up."),experiment:{mode:"auto"}})),readOnly:i3(new iF(104,"readOnly",!1)),readOnlyMessage:i3(new class extends iE{constructor(){super(105,"readOnlyMessage",void 0);}validate(e){return e&&"object"==typeof e?e:this.defaultValue;}}()),renameOnType:i3(new iF(106,"renameOnType",!1,{description:(0,iM.M)(584,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:(0,iM.M)(585,"Deprecated, use `#editor.linkedEditing#` instead.")})),renderControlCharacters:i3(new iF(108,"renderControlCharacters",!0,{description:(0,iM.M)(586,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:i3(new i$(109,"renderFinalNewline",i_.b?"dimmed":"on",["off","on","dimmed"],{description:(0,iM.M)(587,"Render last line number when the file ends with a newline.")})),renderLineHighlight:i3(new i$(110,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",(0,iM.M)(588,"Highlights both the gutter and the current line.")],description:(0,iM.M)(589,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:i3(new iF(111,"renderLineHighlightOnlyWhenFocus",!1,{description:(0,iM.M)(590,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:i3(new i$(112,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:i3(new i$(113,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",(0,iM.M)(591,"Render whitespace characters except for single spaces between words."),(0,iM.M)(592,"Render whitespace characters only on selected text."),(0,iM.M)(593,"Render only trailing whitespace characters."),""],description:(0,iM.M)(594,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:i3(new iW(114,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:i3(new iF(115,"roundedSelection",!0,{description:(0,iM.M)(595,"Controls whether selections should have rounded corners.")})),rulers:i3(new class extends iE{constructor(){let e=[],t={type:"number",description:(0,iM.M)(346,"Number of monospace characters at which this editor ruler will render.")};super(116,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:(0,iM.M)(347,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:(0,iM.M)(348,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")});}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)"number"==typeof i?t.push({column:iW.clampedInt(i,0,0,1e4),color:null}):i&&"object"==typeof i&&t.push({column:iW.clampedInt(i.column,0,0,1e4),color:i.color});return t.sort((e,t)=>e.column-t.column),t;}return this.defaultValue;}}()),scrollbar:i3(new class extends iE{constructor(){let e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(117,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,iM.M)(349,"The vertical scrollbar will be visible only when necessary."),(0,iM.M)(350,"The vertical scrollbar will always be visible."),(0,iM.M)(351,"The vertical scrollbar will always be hidden.")],default:"auto",description:(0,iM.M)(352,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,iM.M)(353,"The horizontal scrollbar will be visible only when necessary."),(0,iM.M)(354,"The horizontal scrollbar will always be visible."),(0,iM.M)(355,"The horizontal scrollbar will always be hidden.")],default:"auto",description:(0,iM.M)(356,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:(0,iM.M)(357,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:(0,iM.M)(358,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:(0,iM.M)(359,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:(0,iM.M)(360,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}});}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;let t=iW.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=iW.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:iW.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:iJ(e.vertical,this.defaultValue.vertical),horizontal:iJ(e.horizontal,this.defaultValue.horizontal),useShadows:iP(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:iP(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:iP(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:iP(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:iP(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:iW.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:iW.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:iP(e.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:iP(e.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)};}}()),scrollBeyondLastColumn:i3(new iW(118,"scrollBeyondLastColumn",4,0,0x40000000,{description:(0,iM.M)(596,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:i3(new iF(119,"scrollBeyondLastLine",!0,{description:(0,iM.M)(597,"Controls whether the editor will scroll beyond the last line.")})),scrollOnMiddleClick:i3(new iF(172,"scrollOnMiddleClick",!1,{description:(0,iM.M)(598,"Controls whether the editor will scroll when the middle button is pressed.")})),scrollPredominantAxis:i3(new iF(120,"scrollPredominantAxis",!0,{description:(0,iM.M)(599,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:i3(new iF(121,"selectionClipboard",!0,{description:(0,iM.M)(600,"Controls whether the Linux primary clipboard should be supported."),included:i_.b})),selectionHighlight:i3(new iF(122,"selectionHighlight",!0,{description:(0,iM.M)(601,"Controls whether the editor should highlight matches similar to the selection.")})),selectionHighlightMaxLength:i3(new iW(123,"selectionHighlightMaxLength",200,0,0x40000000,{description:(0,iM.M)(602,"Controls how many characters can be in the selection before similar matches are not highlighted. Set to zero for unlimited.")})),selectionHighlightMultiline:i3(new iF(124,"selectionHighlightMultiline",!1,{description:(0,iM.M)(603,"Controls whether the editor should highlight selection matches that span multiple lines.")})),selectOnLineNumbers:i3(new iF(125,"selectOnLineNumbers",!0)),showFoldingControls:i3(new i$(126,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[(0,iM.M)(604,"Always show the folding controls."),(0,iM.M)(605,"Never show the folding controls and reduce the gutter size."),(0,iM.M)(606,"Only show the folding controls when the mouse is over the gutter.")],description:(0,iM.M)(607,"Controls when the folding controls on the gutter are shown.")})),showUnused:i3(new iF(127,"showUnused",!0,{description:(0,iM.M)(608,"Controls fading out of unused code.")})),showDeprecated:i3(new iF(157,"showDeprecated",!0,{description:(0,iM.M)(609,"Controls strikethrough deprecated variables.")})),inlayHints:i3(new class extends iE{constructor(){let e={enabled:"on",fontSize:0,fontFamily:"",padding:!1,maximumLength:43};super(159,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:(0,iM.M)(296,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[(0,iM.M)(297,"Inlay hints are enabled"),(0,iM.M)(298,"Inlay hints are showing by default and hide when holding {0}",i_.e?"Ctrl+Option":"Ctrl+Alt"),(0,iM.M)(299,"Inlay hints are hidden by default and show when holding {0}",i_.e?"Ctrl+Option":"Ctrl+Alt"),(0,iM.M)(300,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:(0,iM.M)(301,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:(0,iM.M)(302,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:(0,iM.M)(303,"Enables the padding around the inlay hints in the editor.")},"editor.inlayHints.maximumLength":{type:"number",default:e.maximumLength,markdownDescription:(0,iM.M)(304,"Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate")}});}validate(e){return e&&"object"==typeof e?("boolean"==typeof e.enabled&&(e.enabled=e.enabled?"on":"off"),{enabled:iU(e.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:iW.clampedInt(e.fontSize,this.defaultValue.fontSize,0,100),fontFamily:iz.string(e.fontFamily,this.defaultValue.fontFamily),padding:iP(e.padding,this.defaultValue.padding),maximumLength:iW.clampedInt(e.maximumLength,this.defaultValue.maximumLength,0,Number.MAX_SAFE_INTEGER)}):this.defaultValue;}}()),snippetSuggestions:i3(new i$(128,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[(0,iM.M)(610,"Show snippet suggestions on top of other suggestions."),(0,iM.M)(611,"Show snippet suggestions below other suggestions."),(0,iM.M)(612,"Show snippets suggestions with other suggestions."),(0,iM.M)(613,"Do not show snippet suggestions.")],description:(0,iM.M)(614,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:i3(new class extends iE{constructor(){super(129,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:(0,iM.M)(452,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:(0,iM.M)(453,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}});}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:iP(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:iP(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue;}}()),smoothScrolling:i3(new iF(130,"smoothScrolling",!1,{description:(0,iM.M)(615,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:i3(new iW(133,"stopRenderingLineAfter",1e4,-1,0x40000000)),suggest:i3(new class extends iE{constructor(){let e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,fitWidthToDetails:!1,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(134,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[(0,iM.M)(405,"Insert suggestion without overwriting text right of the cursor."),(0,iM.M)(406,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:(0,iM.M)(407,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:(0,iM.M)(408,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:(0,iM.M)(409,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:(0,iM.M)(410,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[(0,iM.M)(411,"Always select a suggestion when automatically triggering IntelliSense."),(0,iM.M)(412,"Never select a suggestion when automatically triggering IntelliSense."),(0,iM.M)(413,"Select a suggestion only when triggering IntelliSense from a trigger character."),(0,iM.M)(414,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:(0,iM.M)(415,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:(0,iM.M)(416,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:(0,iM.M)(417,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:(0,iM.M)(418,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:(0,iM.M)(419,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:(0,iM.M)(420,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:(0,iM.M)(421,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(422,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(423,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(424,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(425,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(426,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(427,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(428,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(429,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(430,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(431,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(432,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(433,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(434,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(435,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(436,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(437,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(438,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(439,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(440,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(441,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(442,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(443,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(444,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(445,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(446,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(447,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(448,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(449,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(450,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(451,"When enabled IntelliSense shows `issues`-suggestions.")}});}validate(e){return e&&"object"==typeof e?{insertMode:iU(e.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:iP(e.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:iP(e.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:iP(e.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:iP(e.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:iU(e.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:iP(e.showIcons,this.defaultValue.showIcons),showStatusBar:iP(e.showStatusBar,this.defaultValue.showStatusBar),preview:iP(e.preview,this.defaultValue.preview),previewMode:iU(e.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:iP(e.showInlineDetails,this.defaultValue.showInlineDetails),fitWidthToDetails:iP(e.fitWidthToDetails,this.defaultValue.fitWidthToDetails),showMethods:iP(e.showMethods,this.defaultValue.showMethods),showFunctions:iP(e.showFunctions,this.defaultValue.showFunctions),showConstructors:iP(e.showConstructors,this.defaultValue.showConstructors),showDeprecated:iP(e.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:iP(e.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:iP(e.showFields,this.defaultValue.showFields),showVariables:iP(e.showVariables,this.defaultValue.showVariables),showClasses:iP(e.showClasses,this.defaultValue.showClasses),showStructs:iP(e.showStructs,this.defaultValue.showStructs),showInterfaces:iP(e.showInterfaces,this.defaultValue.showInterfaces),showModules:iP(e.showModules,this.defaultValue.showModules),showProperties:iP(e.showProperties,this.defaultValue.showProperties),showEvents:iP(e.showEvents,this.defaultValue.showEvents),showOperators:iP(e.showOperators,this.defaultValue.showOperators),showUnits:iP(e.showUnits,this.defaultValue.showUnits),showValues:iP(e.showValues,this.defaultValue.showValues),showConstants:iP(e.showConstants,this.defaultValue.showConstants),showEnums:iP(e.showEnums,this.defaultValue.showEnums),showEnumMembers:iP(e.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:iP(e.showKeywords,this.defaultValue.showKeywords),showWords:iP(e.showWords,this.defaultValue.showWords),showColors:iP(e.showColors,this.defaultValue.showColors),showFiles:iP(e.showFiles,this.defaultValue.showFiles),showReferences:iP(e.showReferences,this.defaultValue.showReferences),showFolders:iP(e.showFolders,this.defaultValue.showFolders),showTypeParameters:iP(e.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:iP(e.showSnippets,this.defaultValue.showSnippets),showUsers:iP(e.showUsers,this.defaultValue.showUsers),showIssues:iP(e.showIssues,this.defaultValue.showIssues)}:this.defaultValue;}}()),inlineSuggest:i3(new class extends iE{constructor(){let e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default",syntaxHighlightingEnabled:!0,minShowDelay:0,suppressInSnippetMode:!0,edits:{enabled:!0,showCollapsed:!1,renderSideBySide:"auto",allowCodeShifting:"always",showLongDistanceHint:!0,longDistanceHintContextLineCount:0},triggerCommandOnProviderChange:!1,experimental:{suppressInlineSuggestions:"",showOnSuggestConflict:"never",emptyResponseInformation:!0}};super(71,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(368,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[(0,iM.M)(369,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),(0,iM.M)(370,"Show the inline suggestion toolbar when hovering over an inline suggestion."),(0,iM.M)(371,"Never show the inline suggestion toolbar.")],description:(0,iM.M)(372,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.syntaxHighlightingEnabled":{type:"boolean",default:e.syntaxHighlightingEnabled,description:(0,iM.M)(373,"Controls whether to show syntax highlighting for inline suggestions in the editor.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:(0,iM.M)(374,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.suppressInSnippetMode":{type:"boolean",default:e.suppressInSnippetMode,description:(0,iM.M)(375,"Controls whether inline suggestions are suppressed when in snippet mode.")},"editor.inlineSuggest.minShowDelay":{type:"number",default:0,minimum:0,maximum:1e4,description:(0,iM.M)(376,"Controls the minimal delay in milliseconds after which inline suggestions are shown after typing.")},"editor.inlineSuggest.experimental.suppressInlineSuggestions":{type:"string",default:e.experimental.suppressInlineSuggestions,tags:["experimental"],description:(0,iM.M)(377,"Suppresses inline completions for specified extension IDs -- comma separated."),experiment:{mode:"auto"}},"editor.inlineSuggest.experimental.emptyResponseInformation":{type:"boolean",default:e.experimental.emptyResponseInformation,tags:["experimental"],description:(0,iM.M)(378,"Controls whether to send request information from the inline suggestion provider."),experiment:{mode:"auto"}},"editor.inlineSuggest.triggerCommandOnProviderChange":{type:"boolean",default:e.triggerCommandOnProviderChange,tags:["experimental"],description:(0,iM.M)(379,"Controls whether to trigger a command when the inline suggestion provider changes."),experiment:{mode:"auto"}},"editor.inlineSuggest.experimental.showOnSuggestConflict":{type:"string",default:e.experimental.showOnSuggestConflict,tags:["experimental"],enum:["always","never","whenSuggestListIsIncomplete"],description:(0,iM.M)(380,"Controls whether to show inline suggestions when there is a suggest conflict."),experiment:{mode:"auto"}},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:(0,iM.M)(381,"Controls the font family of the inline suggestions.")},"editor.inlineSuggest.edits.allowCodeShifting":{type:"string",default:e.edits.allowCodeShifting,description:(0,iM.M)(382,"Controls whether showing a suggestion will shift the code to make space for the suggestion inline."),enum:["always","horizontal","never"],tags:["nextEditSuggestions"]},"editor.inlineSuggest.edits.showLongDistanceHint":{type:"boolean",default:e.edits.showLongDistanceHint,description:(0,iM.M)(383,"Controls whether long distance inline suggestions are shown."),tags:["nextEditSuggestions","experimental"]},"editor.inlineSuggest.edits.longDistanceHintContextLineCount":{type:"number",default:e.edits.longDistanceHintContextLineCount,minimum:0,maximum:10,description:(0,iM.M)(384,"Controls how many lines of surrounding context are shown above and below the target line in the long distance inline suggestion preview. Set to 0 to only show the target line."),tags:["nextEditSuggestions","experimental"],experiment:{mode:"auto"}},"editor.inlineSuggest.edits.renderSideBySide":{type:"string",default:e.edits.renderSideBySide,description:(0,iM.M)(385,"Controls whether larger suggestions can be shown side by side."),enum:["auto","never"],enumDescriptions:[(0,iM.M)(386,"Larger suggestions will show side by side if there is enough space, otherwise they will be shown below."),(0,iM.M)(387,"Larger suggestions are never shown side by side and will always be shown below.")],tags:["nextEditSuggestions"]},"editor.inlineSuggest.edits.showCollapsed":{type:"boolean",default:e.edits.showCollapsed,description:(0,iM.M)(388,"Controls whether the suggestion will show as collapsed until jumping to it."),tags:["nextEditSuggestions"]}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),mode:iU(e.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:iU(e.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:iP(e.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:iP(e.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:iz.string(e.fontFamily,this.defaultValue.fontFamily),syntaxHighlightingEnabled:iP(e.syntaxHighlightingEnabled,this.defaultValue.syntaxHighlightingEnabled),minShowDelay:iW.clampedInt(e.minShowDelay,0,0,1e4),suppressInSnippetMode:iP(e.suppressInSnippetMode,this.defaultValue.suppressInSnippetMode),edits:this._validateEdits(e.edits),triggerCommandOnProviderChange:iP(e.triggerCommandOnProviderChange,this.defaultValue.triggerCommandOnProviderChange),experimental:this._validateExperimental(e.experimental)}:this.defaultValue;}_validateEdits(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.edits.enabled),showCollapsed:iP(e.showCollapsed,this.defaultValue.edits.showCollapsed),allowCodeShifting:iU(e.allowCodeShifting,this.defaultValue.edits.allowCodeShifting,["always","horizontal","never"]),showLongDistanceHint:iP(e.showLongDistanceHint,this.defaultValue.edits.showLongDistanceHint),longDistanceHintContextLineCount:iW.clampedInt(e.longDistanceHintContextLineCount,this.defaultValue.edits.longDistanceHintContextLineCount,0,10),renderSideBySide:iU(e.renderSideBySide,this.defaultValue.edits.renderSideBySide,["never","auto"])}:this.defaultValue.edits;}_validateExperimental(e){return e&&"object"==typeof e?{suppressInlineSuggestions:iz.string(e.suppressInlineSuggestions,this.defaultValue.experimental.suppressInlineSuggestions),showOnSuggestConflict:iU(e.showOnSuggestConflict,this.defaultValue.experimental.showOnSuggestConflict,["always","never","whenSuggestListIsIncomplete"]),emptyResponseInformation:iP(e.emptyResponseInformation,this.defaultValue.experimental.emptyResponseInformation)}:this.defaultValue.experimental;}}()),inlineCompletionsAccessibilityVerbose:i3(new iF(170,"inlineCompletionsAccessibilityVerbose",!1,{description:(0,iM.M)(616,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:i3(new iW(135,"suggestFontSize",0,0,1e3,{markdownDescription:(0,iM.M)(617,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:i3(new iW(136,"suggestLineHeight",0,0,1e3,{markdownDescription:(0,iM.M)(618,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:i3(new iF(137,"suggestOnTriggerCharacters",!0,{description:(0,iM.M)(619,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:i3(new i$(138,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[(0,iM.M)(620,"Always select the first suggestion."),(0,iM.M)(621,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),(0,iM.M)(622,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:(0,iM.M)(623,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:i3(new i$(139,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[(0,iM.M)(624,"Tab complete will insert the best matching suggestion when pressing tab."),(0,iM.M)(625,"Disable tab completions."),(0,iM.M)(626,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:(0,iM.M)(627,"Enables tab completions.")})),tabIndex:i3(new iW(140,"tabIndex",0,-1,0x40000000)),trimWhitespaceOnDelete:i3(new iF(141,"trimWhitespaceOnDelete",!1,{description:(0,iM.M)(628,"Controls whether the editor will also delete the next line's indentation whitespace when deleting a newline.")})),unicodeHighlight:i3(new class extends iE{constructor(){let e={nonBasicASCII:i0,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:i0,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(142,"unicodeHighlight",e,{"editor.unicodeHighlight.nonBasicASCII":{restricted:!0,type:["boolean","string"],enum:[!0,!1,i0],default:e.nonBasicASCII,description:(0,iM.M)(361,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},"editor.unicodeHighlight.invisibleCharacters":{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:(0,iM.M)(362,"Controls whether characters that just reserve space or have no width at all are highlighted.")},"editor.unicodeHighlight.ambiguousCharacters":{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:(0,iM.M)(363,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},"editor.unicodeHighlight.includeComments":{restricted:!0,type:["boolean","string"],enum:[!0,!1,i0],default:e.includeComments,description:(0,iM.M)(364,"Controls whether characters in comments should also be subject to Unicode highlighting.")},"editor.unicodeHighlight.includeStrings":{restricted:!0,type:["boolean","string"],enum:[!0,!1,i0],default:e.includeStrings,description:(0,iM.M)(365,"Controls whether characters in strings should also be subject to Unicode highlighting.")},"editor.unicodeHighlight.allowedCharacters":{restricted:!0,type:"object",default:e.allowedCharacters,description:(0,iM.M)(366,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},"editor.unicodeHighlight.allowedLocales":{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:(0,iM.M)(367,"Unicode characters that are common in allowed locales are not being highlighted.")}});}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&!(0,im.m)(e.allowedCharacters,t.allowedCharacters)&&(e={...e,allowedCharacters:t.allowedCharacters},i=!0),t.allowedLocales&&e&&!(0,im.m)(e.allowedLocales,t.allowedLocales)&&(e={...e,allowedLocales:t.allowedLocales},i=!0);let n=super.applyUpdate(e,t);return i?new iT(n.newValue,!0):n;}validate(e){return e&&"object"==typeof e?{nonBasicASCII:i1(e.nonBasicASCII,i0,[!0,!1,i0]),invisibleCharacters:iP(e.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:iP(e.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:i1(e.includeComments,i0,[!0,!1,i0]),includeStrings:i1(e.includeStrings,i0,[!0,!1,i0]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}:this.defaultValue;}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;let i={};for(let[t,n]of Object.entries(e))!0===n&&(i[t]=!0);return i;}}()),unusualLineTerminators:i3(new i$(143,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[(0,iM.M)(629,"Unusual line terminators are automatically removed."),(0,iM.M)(630,"Unusual line terminators are ignored."),(0,iM.M)(631,"Unusual line terminators prompt to be removed.")],description:(0,iM.M)(632,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:i3(new iF(144,"useShadowDOM",!0)),useTabStops:i3(new iF(145,"useTabStops",!0,{description:(0,iM.M)(633,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:i3(new i$(146,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[(0,iM.M)(634,"Use the default line break rule."),(0,iM.M)(635,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:(0,iM.M)(636,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:i3(new class extends iE{constructor(){let e=[];super(147,"wordSegmenterLocales",e,{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:(0,iM.M)(454,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"},default:e});}validate(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){let t=[];for(let i of e)if("string"==typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i);}catch{}return t;}return this.defaultValue;}}()),wordSeparators:i3(new iz(148,"wordSeparators",iD.J,{description:(0,iM.M)(637,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:i3(new i$(149,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[(0,iM.M)(638,"Lines will never wrap."),(0,iM.M)(639,"Lines will wrap at the viewport width."),(0,iM.M)(640,"Lines will wrap at `#editor.wordWrapColumn#`."),(0,iM.M)(641,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:(0,iM.M)(642,"Controls how lines should wrap.")})),wordWrapIndicator:i3(new iF(161,"wordWrapIndicator",!1,{markdownDescription:(0,iM.M)(643,"Controls whether an indicator is rendered at the wrapping column of lines that wrap. Only has an effect when `#editor.wordWrap#` is enabled.")})),wordWrapBreakAfterCharacters:i3(new iz(150,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:i3(new iz(151,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:i3(new iW(152,"wordWrapColumn",80,1,0x40000000,{markdownDescription:(0,iM.M)(644,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:i3(new i$(153,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:i3(new i$(154,"wordWrapOverride2","inherit",["off","on","inherit"])),wrapOnEscapedLineFeeds:i3(new iF(160,"wrapOnEscapedLineFeeds",!1,{markdownDescription:(0,iM.M)(645,'Controls whether literal `\\n` shall trigger a wordWrap when `#editor.wordWrap#` is enabled.\n\nFor example:\n```c\nchar* str="hello\\nworld"\n```\nwill be displayed as\n```c\nchar* str="hello\\n\n world"\n```')})),effectiveCursorStyle:i3(new class extends iA{constructor(){super(162,eU.Line);}compute(e,t,i){return"overtype"===e.inputMode?t.get(92):t.get(34);}}()),editorClassName:i3(new class extends iA{constructor(){super(163,"");}compute(e,t,i){let n=["monaco-editor"];return t.get(48)&&n.push(t.get(48)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(82)?n.push("mouse-default"):"copy"===t.get(82)&&n.push("mouse-copy"),t.get(127)&&n.push("showUnused"),t.get(157)&&n.push("showDeprecated"),n.join(" ");}}()),defaultColorDecorators:i3(new i$(168,"defaultColorDecorators","auto",["auto","always","never"],{enumDescriptions:[(0,iM.M)(646,"Show default color decorators only when no extension provides colors decorators."),(0,iM.M)(647,"Always show default color decorators."),(0,iM.M)(648,"Never show default color decorators.")],description:(0,iM.M)(649,"Controls whether inline color decorations should be shown using the default document color provider.")})),pixelRatio:i3(new class extends iA{constructor(){super(164,1);}compute(e,t,i){return e.pixelRatio;}}()),tabFocusMode:i3(new iF(165,"tabFocusMode",!1,{markdownDescription:(0,iM.M)(650,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:i3(new iZ()),wrappingInfo:i3(new class extends iA{constructor(){super(167,{isDominatedByLongLines:!1,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1});}compute(e,t,i){let n=t.get(166);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn};}}()),wrappingIndent:i3(new class extends iE{constructor(){super(155,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[(0,iM.M)(455,"No indentation. Wrapped lines begin at column 1."),(0,iM.M)(456,"Wrapped lines get the same indentation as the parent."),(0,iM.M)(457,"Wrapped lines get +1 indentation toward the parent."),(0,iM.M)(458,"Wrapped lines get +2 indentation toward the parent.")],description:(0,iM.M)(459,"Controls the indentation of wrapped lines."),default:"same"}});}validate(e){switch(e){case"none":return 0;case"same":break;case"indent":return 2;case"deepIndent":return 3;}return 1;}compute(e,t,i){return 2===t.get(2)?0:i;}}()),wrappingStrategy:i3(new class extends iE{constructor(){super(156,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[(0,iM.M)(285,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),(0,iM.M)(286,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:(0,iM.M)(287,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}});}validate(e){return iU(e,"simple",["simple","advanced"]);}compute(e,t,i){return 2===t.get(2)?"advanced":i;}}()),effectiveEditContextEnabled:i3(new class extends iA{constructor(){super(171,!1);}compute(e,t){return e.editContextSupported&&t.get(44);}}()),effectiveAllowVariableFonts:i3(new class extends iA{constructor(){super(173,!1);}compute(e,t){return 2===e.accessibilitySupport?t.get(7):t.get(6);}}()),effectiveFullwidthCharacterWidth:i3(new class extends iA{constructor(){super(176,"font");}compute(e,t){return"twoCells"===t.get(175)&&e.fontInfo.isMonospace?"twoCells":"font";}}())};e.s(["G",0,iT,"u",0,iN,"S",0,iI,"s",0,ij,"$",0,iZ,"m",0,i5,"W",0,8,"Y",0,e$,"H",0,eU,"g",0,iP,"f",0,iV,"F",0,iB,"X",0,i2,"n",0,iX,"h",0,iY,"i",0,iU],84499);var i6=e.i(6838);function i4(e,t){"number"!=typeof e.vscodeWindowId&&Object.defineProperty(e,"vscodeWindowId",{get:()=>t});}let i9=window;e.s(["C",0,i4,"E",0,i9],14947);var i8=e.i(23246),i7=e.i(90891),ne=e.i(79830);class nt{constructor(){this.mapWindowIdToZoomFactor=new Map();}getZoomFactor(e){var _this$mapWindowIdToZo;return(_this$mapWindowIdToZo=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!==null&&_this$mapWindowIdToZo!==void 0?_this$mapWindowIdToZo:1;}getWindowId(e){return e.vscodeWindowId;}}_nt=nt;_nt.INSTANCE=new _nt();function ni(e,t,i){"string"==typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i);}function nn(e){return nt.INSTANCE.getZoomFactor(e);}let ns=navigator.userAgent,no=ns.indexOf("Firefox")>=0,nr=ns.indexOf("AppleWebKit")>=0,na=ns.indexOf("Chrome")>=0,nl=!na&&ns.indexOf("Safari")>=0,nh=!na&&!nl&&nr;ns.indexOf("Electron/");let nd=ns.indexOf("Android")>=0,nc=!1;if("function"==typeof i9.matchMedia){let e=i9.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=i9.matchMedia("(display-mode: fullscreen)");nc=e.matches,ni(i9,e,({matches:e})=>{nc&&t.matches||(nc=e);});}function nu(){return globalThis.MonacoEnvironment;}let ng={clipboard:{writeText:i_.u||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:i_.u||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:i9.PointerEvent&&("ontouchstart"in i9||navigator.maxTouchPoints>0)};var np=e.i(58871),nf=e.i(58388);function nm(e,t){if("number"==typeof e){if(0===e)return null;let i=(65535&e)>>>0,n=(0xffff0000&e)>>>16;return new nb(0!==n?[n_(i,t),n_(n,t)]:[n_(i,t)]);}{let i=[];for(let n=0;n<e.length;n++)i.push(n_(e[n],t));return new nb(i);}}function n_(e,t){let i=!!(2048&e),n=!!(256&e);return new nv(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e);}class nv{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s;}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode;}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode;}}class nb{constructor(e){if(0===e.length)throw(0,nf.X)("chords");this.chords=e;}}class nC{constructor(e,t,i,n,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=o;}}class nw{}let ny=i_.e?256:2048,nS=i_.e?2048:256;class nx{constructor(e){var _e$getModifierState;this._standardKeyboardEventBrand=!0,this.browserEvent=e,this.target=e.target,this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,this.altGraphKey=(_e$getModifierState=e.getModifierState)===null||_e$getModifierState===void 0?void 0:_e$getModifierState.call(e,"AltGraph"),this.code=e.code,this.keyCode=e.isComposing?114:function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return np.$.fromString(t);}let t=e.keyCode;if(3===t)return 7;if(no)switch(t){case 59:return 85;case 60:if(i_.b)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(i_.e)return 57;}else if(nr){if(i_.e&&93===t)return 57;else if(!i_.e&&92===t)return 57;}return np.v[t]||0;}(e),this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord();}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault();}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation();}toKeyCodeChord(){return this._asKeyCodeChord;}equals(e){return this._asKeybinding===e;}_computeKeybinding(){let e=0;(0,np.N)(this.keyCode)||(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=ny),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=nS),t|=e;}_computeKeyCodeChord(){let e=0;return(0,np.N)(this.keyCode)||(e=this.keyCode),new nv(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e);}}e.s(["f",0,nx],26383);let nL=new WeakMap();class nk{static getSameOriginWindowChain(e){let t=nL.get(e);if(!t){let i;t=[],nL.set(e,t);let n=e;do(i=function(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null;}catch(e){return null;}return e.parent;}(n))?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i;while(n);}return t.slice(0);}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;for(let s of this.getSameOriginWindowChain(e)){var _e$scrollY,_e$scrollX;let e=s.window.deref();if(i+=(_e$scrollY=e===null||e===void 0?void 0:e.scrollY)!==null&&_e$scrollY!==void 0?_e$scrollY:0,n+=(_e$scrollX=e===null||e===void 0?void 0:e.scrollX)!==null&&_e$scrollX!==void 0?_e$scrollX:0,e===t||!s.iframeElement)break;let o=s.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left;}return{top:i,left:n};}}class nD{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.defaultPrevented=t.defaultPrevented,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.posx=t.pageX,this.posy=t.pageY;let i=nk.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top;}preventDefault(){this.browserEvent.preventDefault();}stopPropagation(){this.browserEvent.stopPropagation();}}class nM{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(na){let e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122;}if(e){var _e$view;let t=((_e$view=e.view)===null||_e$view===void 0?void 0:_e$view.devicePixelRatio)||1;void 0!==e.wheelDeltaY?n?this.deltaY=e.wheelDeltaY/(120*t):this.deltaY=e.wheelDeltaY/120:void 0!==e.VERTICAL_AXIS&&e.axis===e.VERTICAL_AXIS?this.deltaY=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?no&&!i_.e?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==e.wheelDeltaX?nl&&i_.t?this.deltaX=-(e.wheelDeltaX/120):n?this.deltaX=e.wheelDeltaX/(120*t):this.deltaX=e.wheelDeltaX/120:void 0!==e.HORIZONTAL_AXIS&&e.axis===e.HORIZONTAL_AXIS?this.deltaX=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?no&&!i_.e?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*t):this.deltaY=e.wheelDelta/120);}}preventDefault(){var _this$browserEvent;(_this$browserEvent=this.browserEvent)===null||_this$browserEvent===void 0||_this$browserEvent.preventDefault();}stopPropagation(){var _this$browserEvent2;(_this$browserEvent2=this.browserEvent)===null||_this$browserEvent2===void 0||_this$browserEvent2.stopPropagation();}}e.s(["$",0,nD,"P",0,nM],66076);var nI=e.i(93872),nN=iv,nE=i8,nT=e.i(76074),nR=e.i(28319);function nA(e,t,i){return Math.min(Math.max(e,t),i);}class nO{constructor(){this._n=1,this._val=0;}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val;}get value(){return this._val;}}class nP{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=Array(e),this._values.fill(0,0,e);}update(e){let t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val;}get value(){return this._val;}}function nF(e,t,i,n,s,o,r,a){let l=r-i,h=a-n,d=s-i,c=o-n,u=e-i,g=t-n,p=l*l+h*h,f=l*d+h*c,m=l*u+h*g,_=d*d+c*c,v=d*u+c*g,b=1/(p*_-f*f),C=(_*m-f*v)*b,w=(p*v-f*m)*b;return C>=0&&w>=0&&C+w<1;}function nB(e,t){return e===t;}e.s(["I",0,nO,"V",0,nP,"O",0,nA,"J",0,nF],33802);function nW(e){return(t,i)=>(0,ip.m)(t,i,e!==null&&e!==void 0?e:nB);}function nV(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!nV(e[i],t[i]))return!1;return!0;}if(e&&"object"==typeof e&&t&&"object"==typeof t&&Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){let i=Object.keys(e),n=Object.keys(t),s=new Set(n);if(i.length!==n.length)return!1;for(let n of i)if(!s.has(n)||!nV(e[n],t[n]))return!1;return!0;}return!1;}function nH(){return(e,t)=>e.equals(t);}function nz(e,t,i){return null==e||null==t?t===e:i(e,t);}function nU(e){return(t,i)=>null==t||null==i?i===t:e(t,i);}(V=eK||(eK={})).strict=nB,V.strictC=function(){return(e,t)=>e===t;},V.array=function(e,t,i){return(0,ip.m)(e,t,i!==null&&i!==void 0?i:nB);},V.arrayC=nW,V.structural=nV,V.structuralC=function(){return(e,t)=>nV(e,t);},V.jsonStringify=function(e,t){return JSON.stringify(e)===JSON.stringify(t);},V.jsonStringifyC=function(){return(e,t)=>JSON.stringify(e)===JSON.stringify(t);},V.thisC=nH,V.ifDefined=nz,V.ifDefinedC=nU,e.s(["W",0,nW,"m",0,eK,"D",0,nz,"d",0,nU,"O",0,nB,"Z",0,nH],86300);class n${constructor(e){this.loggers=e;}handleObservableCreated(e,t){for(let i of this.loggers)i.handleObservableCreated(e,t);}handleOnListenerCountChanged(e,t){for(let i of this.loggers)i.handleOnListenerCountChanged(e,t);}handleObservableUpdated(e,t){for(let i of this.loggers)i.handleObservableUpdated(e,t);}handleAutorunCreated(e,t){for(let i of this.loggers)i.handleAutorunCreated(e,t);}handleAutorunDisposed(e){for(let t of this.loggers)t.handleAutorunDisposed(e);}handleAutorunDependencyChanged(e,t,i){for(let n of this.loggers)n.handleAutorunDependencyChanged(e,t,i);}handleAutorunStarted(e){for(let t of this.loggers)t.handleAutorunStarted(e);}handleAutorunFinished(e){for(let t of this.loggers)t.handleAutorunFinished(e);}handleDerivedDependencyChanged(e,t,i){for(let n of this.loggers)n.handleDerivedDependencyChanged(e,t,i);}handleDerivedCleared(e){for(let t of this.loggers)t.handleDerivedCleared(e);}handleBeginTransaction(e){for(let t of this.loggers)t.handleBeginTransaction(e);}handleEndTransaction(e){for(let t of this.loggers)t.handleEndTransaction(e);}}H=eq||(eq={}),m=!1,H.enable=function(){m=!0;},H.ofCaller=function(){if(!m)return;let e=Error,t=e.stackTraceLimit;e.stackTraceLimit=3;let i=Error().stack;return e.stackTraceLimit=t,nK.fromStack(i,2);};class nK{static fromStack(e,t){let i=function(e){let t=e.match(/\((.*):(\d+):(\d+)\)/);if(t)return{fileName:t[1],line:parseInt(t[2]),column:parseInt(t[3]),id:e};let i=e.match(/at ([^\(\)]*):(\d+):(\d+)/);if(i)return{fileName:i[1],line:parseInt(i[2]),column:parseInt(i[3]),id:e};}(e.split("\n")[t+1]);return i?new nK(i.fileName,i.line,i.column,i.id):void 0;}constructor(e,t,i,n){this.fileName=e,this.line=t,this.column=i,this.id=n;}}e.s(["f",0,eq],45019);class nq{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i;}getDebugName(e){return function(e,t){let i=nG.get(e);if(i)return i;let n=function(e,t){let i,n=nG.get(e);if(n)return n;let s=t.owner?function(e,_nY,_nQ$get){let t=nZ.get(e);if(t)return t;let i=(_nY=nY(e))!==null&&_nY!==void 0?_nY:"Object",n=(_nQ$get=nQ.get(i))!==null&&_nQ$get!==void 0?_nQ$get:0;n++,nQ.set(i,n);let s=1===n?i:`${i}#${n}`;return nZ.set(e,s),s;}(t.owner)+".":"",o=t.debugNameSource;if(void 0!==o){if("function"!=typeof o)return s+o;else if(void 0!==(i=o()))return s+i;}let r=t.referenceFn;if(void 0!==r&&void 0!==(i=nX(r)))return s+i;if(void 0!==t.owner){let i=function(e,t){for(let i in e)if(e[i]===t)return i;}(t.owner,e);if(void 0!==i)return s+i;}}(e,t);if(n){var _nj$get;let t=(_nj$get=nj.get(n))!==null&&_nj$get!==void 0?_nj$get:0;t++,nj.set(n,t);let i=1===t?n:`${n}#${t}`;return nG.set(e,i),i;}}(e,this);}}let nj=new Map(),nG=new WeakMap(),nQ=new Map(),nZ=new WeakMap();function nY(e){let t=e.constructor;if(t){if("Object"===t.name)return;return t.name;}}function nX(e){let t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return n===null||n===void 0?void 0:n.trim();}e.s(["O",0,nq,"P",0,nY,"n",0,nX],52379);class nJ{get TChange(){return null;}reportChanges(){this.get();}read(e){return e?e.readObservable(this):this.get();}map(e,t,n=eq.ofCaller()){let s=void 0===t?void 0:e,o=void 0===t?e:t;return i({owner:s,debugName:()=>{let e=nX(o);if(void 0!==e)return e;let t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(o.toString());return t?`${this.debugName}.${t[2]}`:s?void 0:`${this.debugName} (mapped)`;},debugReferenceFn:o},e=>o(this.read(e),e),n);}flatten(){return i({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e));}recomputeInitiallyAndOnChange(e,t){return e.add(n(this,t)),this;}}class n0 extends nJ{constructor(e){var _t2;super(),this._observers=new Set(),(_t2=t)===null||_t2===void 0?void 0:_t2.handleObservableCreated(this,e);}addObserver(e){var _t3;let i=this._observers.size;this._observers.add(e),0===i&&this.onFirstObserverAdded(),i!==this._observers.size&&((_t3=t)===null||_t3===void 0?void 0:_t3.handleOnListenerCountChanged(this,this._observers.size));}removeObserver(e){var _t4;let i=this._observers.delete(e);i&&0===this._observers.size&&this.onLastObserverRemoved(),i&&((_t4=t)===null||_t4===void 0?void 0:_t4.handleOnListenerCountChanged(this,this._observers.size));}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers;}}var n1=e.i(42775);class n2 extends n0{get debugName(){var _this$_debugNameData$;return(_this$_debugNameData$=this._debugNameData.getDebugName(this))!==null&&_this$_debugNameData$!==void 0?_this$_debugNameData$:"(anonymous)";}constructor(e,t,i,n,s,o){var _this$_changeTracker;super(o),this._debugNameData=e,this._computeFn=t,this._changeTracker=i,this._handleLastObserverRemoved=n,this._equalityComparator=s,this._state=0,this._value=void 0,this._updateCount=0,this._dependencies=new Set(),this._dependenciesToBeRemoved=new Set(),this._changeSummary=void 0,this._isUpdating=!1,this._isComputing=!1,this._didReportChange=!1,this._isInBeforeUpdate=!1,this._isReaderValid=!1,this._store=void 0,this._delayedStore=void 0,this._removedObserverToCallEndUpdateOn=null,this._changeSummary=(_this$_changeTracker=this._changeTracker)===null||_this$_changeTracker===void 0?void 0:_this$_changeTracker.createChangeSummary(void 0);}onLastObserverRemoved(){var _this$_handleLastObse;for(let e of(this._state=0,this._value=void 0,(_t5=t)!==null&&_t5!==void 0&&_t5.handleDerivedCleared(this),this._dependencies)){var _t5;e.removeObserver(this);}this._dependencies.clear(),void 0!==this._store&&(this._store.dispose(),this._store=void 0),void 0!==this._delayedStore&&(this._delayedStore.dispose(),this._delayedStore=void 0),(_this$_handleLastObse=this._handleLastObserverRemoved)===null||_this$_handleLastObse===void 0?void 0:_this$_handleLastObse.call(this);}get(){if(this._isComputing,0===this._observers.size){let e;try{var _this$_changeTracker$,_this$_changeTracker2;let t;this._isReaderValid=!0,this._changeTracker&&(t=this._changeTracker.createChangeSummary(void 0),(_this$_changeTracker$=(_this$_changeTracker2=this._changeTracker).beforeUpdate)!==null&&_this$_changeTracker$!==void 0&&_this$_changeTracker$.call(_this$_changeTracker2,this,t)),e=this._computeFn(this,t);}finally{this._isReaderValid=!1;}return this.onLastObserverRemoved(),e;}do{if(1===this._state){for(let e of this._dependencies)if(e.reportChanges(),2===this._state)break;}1===this._state&&(this._state=3),3!==this._state&&this._recompute();}while(3!==this._state);return this._value;}_recompute(){let e=!1;this._isComputing=!0,this._didReportChange=!1;let i=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=i;try{var _this$_changeTracker$2,_this$_changeTracker3,_this$_changeTracker4,_t6;let i=this._changeSummary;this._isReaderValid=!0,this._changeTracker&&(this._isInBeforeUpdate=!0,(_this$_changeTracker$2=(_this$_changeTracker3=this._changeTracker).beforeUpdate)!==null&&_this$_changeTracker$2!==void 0&&_this$_changeTracker$2.call(_this$_changeTracker3,this,i),this._isInBeforeUpdate=!1,this._changeSummary=(_this$_changeTracker4=this._changeTracker)===null||_this$_changeTracker4===void 0?void 0:_this$_changeTracker4.createChangeSummary(i));let n=0!==this._state,s=this._value;this._state=3;let o=this._delayedStore;void 0!==o&&(this._delayedStore=void 0);try{void 0!==this._store&&(this._store.dispose(),this._store=void 0),this._value=this._computeFn(this,i);}finally{for(let e of(this._isReaderValid=!1,this._dependenciesToBeRemoved))e.removeObserver(this);this._dependenciesToBeRemoved.clear(),void 0!==o&&o.dispose();}e=this._didReportChange||n&&!this._equalityComparator(s,this._value),(_t6=t)===null||_t6===void 0?void 0:_t6.handleObservableUpdated(this,{oldValue:s,newValue:this._value,change:void 0,didChange:e,hadValue:n});}catch(e){(0,nf.G)(e);}if(this._isComputing=!1,!this._didReportChange&&e)for(let e of this._observers)e.handleChange(this,void 0);else this._didReportChange=!1;}toString(){return`LazyDerived<${this.debugName}>`;}beginUpdate(e){if(this._isUpdating)throw new nf.Q("Cyclic deriveds are not supported yet!");this._updateCount++,this._isUpdating=!0;try{let e=1===this._updateCount;if(3===this._state&&(this._state=1,!e))for(let e of this._observers)e.handlePossibleChange(this);if(e)for(let e of this._observers)e.beginUpdate(this);}finally{this._isUpdating=!1;}}endUpdate(e){if(this._updateCount--,0===this._updateCount){for(let e of[...this._observers])e.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){let e=[...this._removedObserverToCallEndUpdateOn];for(let t of(this._removedObserverToCallEndUpdateOn=null,e))t.endUpdate(this);}}(0,n1.W)(()=>this._updateCount>=0);}handlePossibleChange(e){if(3===this._state&&this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e))for(let e of(this._state=1,this._observers))e.handlePossibleChange(this);}handleChange(e,i){if(this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)||this._isInBeforeUpdate){var _t7;(_t7=t)===null||_t7===void 0||_t7.handleDerivedDependencyChanged(this,e,i);let n=!1;try{n=!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:i,didChange:t=>t===e},this._changeSummary);}catch(e){(0,nf.G)(e);}let s=3===this._state;if(n&&(1===this._state||s)&&(this._state=2,s))for(let e of this._observers)e.handlePossibleChange(this);}}_ensureReaderValid(){if(!this._isReaderValid)throw new nf.Q("The reader object cannot be used outside its compute function!");}readObservable(e){this._ensureReaderValid(),e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t;}get store(){return this._ensureReaderValid(),void 0===this._store&&(this._store=new i8.q()),this._store;}get delayedStore(){return this._ensureReaderValid(),void 0===this._delayedStore&&(this._delayedStore=new i8.q()),this._delayedStore;}addObserver(e){var _this$_removedObserve;let t=!this._observers.has(e)&&this._updateCount>0;super.addObserver(e),t&&!((_this$_removedObserve=this._removedObserverToCallEndUpdateOn)!==null&&_this$_removedObserve!==void 0&&_this$_removedObserve.delete(e))&&e.beginUpdate(this);}removeObserver(e){this._observers.has(e)&&this._updateCount>0&&(this._removedObserverToCallEndUpdateOn||(this._removedObserverToCallEndUpdateOn=new Set()),this._removedObserverToCallEndUpdateOn.add(e)),super.removeObserver(e);}debugGetState(){return{state:this._state,stateStr:function(e){switch(e){case 0:return"initial";case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>";}}(this._state),updateCount:this._updateCount,isComputing:this._isComputing,dependencies:this._dependencies,value:this._value};}debugSetValue(e){this._value=e;}debugRecompute(){this.beginUpdate(this);try{this._isComputing?this._state=2:this._recompute();}finally{this.endUpdate(this);}}setValue(e,t,i){this._value=e;let n=this._observers;for(let e of(t.updateObserver(this,this),n))e.handleChange(this,i);}}class n3 extends n2{constructor(e,t,i,n,s,o,r){super(e,t,i,n,s,r),this.set=o;}}function n5(e,t,i=eq.ofCaller()){return void 0!==t?new n2(new nq(e,void 0,t),t,void 0,void 0,nB,i):new n2(new nq(void 0,void 0,e),e,void 0,void 0,nB,i);}function n6(e,t,i,n=eq.ofCaller()){return new n3(new nq(e,void 0,t),t,void 0,void 0,nB,i,n);}function n4(e,t,i=eq.ofCaller()){var _e$equalsFn;return new n2(new nq(e.owner,e.debugName,e.debugReferenceFn),t,void 0,e.onLastObserverRemoved,(_e$equalsFn=e.equalsFn)!==null&&_e$equalsFn!==void 0?_e$equalsFn:nB,i);}function n9(e,t,i=eq.ofCaller()){let n,s,o;return void 0===t?(n=e,s=void 0):(s=e,n=t),new n2(new nq(s,void 0,n),e=>{o?o.clear():o=new i8.q();let t=n(e);return t&&o.add(t),t;},void 0,()=>{o&&(o.dispose(),o=void 0);},nB,i);}e.s(["I",0,n2,"Z",0,n3],4331),i=n4,e.s(["R",0,n5,"b",0,n9,"$",0,function(e,t,i=eq.ofCaller()){var _e$equalityComparer;return new n2(new nq(e.owner,e.debugName,void 0),t,e.changeTracker,void 0,(_e$equalityComparer=e.equalityComparer)!==null&&_e$equalityComparer!==void 0?_e$equalityComparer:nB,i);},"p",0,n4,"o",0,n6],41601);var n8=e.i(36722);class n7{get debugName(){var _this$_debugNameData$2;return(_this$_debugNameData$2=this._debugNameData.getDebugName(this))!==null&&_this$_debugNameData$2!==void 0?_this$_debugNameData$2:"(anonymous)";}constructor(e,i,n,s){var _this$_changeTracker5,_t8;this._debugNameData=e,this._runFn=i,this._changeTracker=n,this._state=2,this._updateCount=0,this._disposed=!1,this._dependencies=new Set(),this._dependenciesToBeRemoved=new Set(),this._isRunning=!1,this._iteration=0,this._store=void 0,this._delayedStore=void 0,this._changeSummary=(_this$_changeTracker5=this._changeTracker)===null||_this$_changeTracker5===void 0?void 0:_this$_changeTracker5.createChangeSummary(void 0),(_t8=t)!==null&&_t8!==void 0&&_t8.handleAutorunCreated(this,s),this._run();}dispose(){if(!this._disposed){var _t9;for(let e of(this._disposed=!0,this._dependencies))e.removeObserver(this);this._dependencies.clear(),void 0!==this._store&&this._store.dispose(),void 0!==this._delayedStore&&this._delayedStore.dispose(),(_t9=t)===null||_t9===void 0?void 0:_t9.handleAutorunDisposed(this);}}_run(){let e=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=e,this._state=3;try{if(!this._disposed){var _t0;(_t0=t)===null||_t0===void 0||_t0.handleAutorunStarted(this);let e=this._changeSummary,i=this._delayedStore;void 0!==i&&(this._delayedStore=void 0);try{var _this$_changeTracker$3,_this$_changeTracker6;this._isRunning=!0,this._changeTracker&&((_this$_changeTracker$3=(_this$_changeTracker6=this._changeTracker).beforeUpdate)!==null&&_this$_changeTracker$3!==void 0&&_this$_changeTracker$3.call(_this$_changeTracker6,this,e),this._changeSummary=this._changeTracker.createChangeSummary(e)),void 0!==this._store&&(this._store.dispose(),this._store=void 0),this._runFn(this,e);}catch(e){(0,nf.G)(e);}finally{this._isRunning=!1,void 0!==i&&i.dispose();}}}finally{for(let e of(this._disposed||(_t1=t)!==null&&_t1!==void 0&&_t1.handleAutorunFinished(this),this._dependenciesToBeRemoved)){var _t1;e.removeObserver(this);}this._dependenciesToBeRemoved.clear();}}toString(){return`Autorun<${this.debugName}>`;}beginUpdate(e){3===this._state&&(this._checkIterations(),this._state=1),this._updateCount++;}endUpdate(e){try{if(1===this._updateCount){this._iteration=1;do{if(this._checkIterations())return;if(1===this._state){for(let e of(this._state=3,this._dependencies))if(e.reportChanges(),2===this._state)break;}this._iteration++,3!==this._state&&this._run();}while(3!==this._state);}}finally{this._updateCount--;}(0,n1.W)(()=>this._updateCount>=0);}handlePossibleChange(e){3===this._state&&this._isDependency(e)&&(this._checkIterations(),this._state=1);}handleChange(e,i){if(this._isDependency(e)){var _t10;(_t10=t)===null||_t10===void 0||_t10.handleAutorunDependencyChanged(this,e,i);try{(!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:i,didChange:t=>t===e},this._changeSummary))&&(this._checkIterations(),this._state=2);}catch(e){(0,nf.G)(e);}}}_isDependency(e){return this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e);}_ensureNoRunning(){if(!this._isRunning)throw new nf.Q("The reader object cannot be used outside its compute function!");}readObservable(e){if(this._ensureNoRunning(),this._disposed)return e.get();e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t;}get store(){if(this._ensureNoRunning(),this._disposed)throw new nf.Q("Cannot access store after dispose");return void 0===this._store&&(this._store=new i8.q()),this._store;}get delayedStore(){if(this._ensureNoRunning(),this._disposed)throw new nf.Q("Cannot access store after dispose");return void 0===this._delayedStore&&(this._delayedStore=new i8.q()),this._delayedStore;}debugGetState(){return{isRunning:this._isRunning,updateCount:this._updateCount,dependencies:this._dependencies,state:this._state,stateStr:function(e){switch(e){case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>";}}(this._state)};}debugRerun(){this._isRunning?this._state=2:this._run();}_checkIterations(){return this._iteration>100&&((0,nf.G)(new nf.Q(`Autorun '${this.debugName}' is stuck in an infinite update loop.`)),!0);}}function se(e,t=eq.ofCaller()){return new n7(new nq(void 0,void 0,e),e,void 0,t);}function st(e,t,i=eq.ofCaller()){var _e$debugReferenceFn;return new n7(new nq(e.owner,e.debugName,(_e$debugReferenceFn=e.debugReferenceFn)!==null&&_e$debugReferenceFn!==void 0?_e$debugReferenceFn:t),t,void 0,i);}function si(e,t,i=eq.ofCaller()){var _e$debugReferenceFn2;return new n7(new nq(e.owner,e.debugName,(_e$debugReferenceFn2=e.debugReferenceFn)!==null&&_e$debugReferenceFn2!==void 0?_e$debugReferenceFn2:t),t,e.changeTracker,i);}function sn(e,t){var _e$debugReferenceFn3;let i=new i8.q(),n=si({owner:e.owner,debugName:e.debugName,debugReferenceFn:(_e$debugReferenceFn3=e.debugReferenceFn)!==null&&_e$debugReferenceFn3!==void 0?_e$debugReferenceFn3:t,changeTracker:e.changeTracker},(e,n)=>{i.clear(),t(e,n,i);});return(0,i8.Q)(()=>{n.dispose(),i.dispose();});}function ss(e){let t=new i8.q(),i=st({owner:void 0,debugName:void 0,debugReferenceFn:e},i=>{t.clear(),e(i,t);});return(0,i8.Q)(()=>{i.dispose(),t.dispose();});}function so(e){let t=Error("BugIndicatingErrorRecovery: "+e);(0,nf.C)(t),console.error("recovered from an error that indicates a bug",t);}function sr(e,t){let i=new sd(e,t);try{e(i);}finally{i.finish();}}function sa(e){if(_)e(_);else{let t=new sd(e,void 0);_=t;try{e(t);}finally{t.finish(),_=void 0;}}}async function sl(e,t){let i=new sd(e,t);try{await e(i);}finally{i.finish();}}function sh(e,t,i){e?t(e):sr(t,i);}e.s(["n",0,se,"j",0,function(e,t){let i;return st({debugReferenceFn:t},n=>{let s=e.read(n),o=i;i=s,t({lastValue:o,newValue:s});});},"k",0,si,"R",0,st,"V",0,ss,"q",0,sn,"L",0,function(e,t,i=eq.ofCaller()){let n,s=!1;n=se(i=>{t({delayedStore:i.delayedStore,store:i.store,readObservable:i.readObservable.bind(i),dispose:()=>{n?e.delete(n):s=!0;}});},i),s?n.dispose():e.add(n);}],90103);class sd{constructor(e,i){var _t11;this._fn=e,this._getDebugName=i,this._updatingObservers=[],(_t11=t)===null||_t11===void 0?void 0:_t11.handleBeginTransaction(this);}getDebugName(){return this._getDebugName?this._getDebugName():nX(this._fn);}updateObserver(e,t){if(!this._updatingObservers){so("Transaction already finished!"),sr(i=>{i.updateObserver(e,t);});return;}this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t);}finish(){var _t12;let e=this._updatingObservers;if(!e)return void so("transaction.finish() has already been called!");for(let t=0;t<e.length;t++){let{observer:i,observable:n}=e[t];i.endUpdate(n);}this._updatingObservers=null,(_t12=t)===null||_t12===void 0?void 0:_t12.handleEndTransaction(this);}debugGetUpdatingObservers(){return this._updatingObservers;}}function sc(e,t,i=eq.ofCaller()){return new su("string"==typeof e?new nq(void 0,e,void 0):new nq(e,void 0,void 0),t,nB,i);}e.s(["d",0,sd,"H",0,sl,"b",0,sa,"z",0,sh,"O",0,sr],89326);class su extends n0{get debugName(){var _this$_debugNameData$3;return(_this$_debugNameData$3=this._debugNameData.getDebugName(this))!==null&&_this$_debugNameData$3!==void 0?_this$_debugNameData$3:"ObservableValue";}constructor(e,i,n,s){var _t13;super(s),this._debugNameData=e,this._equalityComparator=n,this._value=i,(_t13=t)===null||_t13===void 0?void 0:_t13.handleObservableUpdated(this,{hadValue:!1,newValue:i,change:void 0,didChange:!0,oldValue:void 0});}get(){return this._value;}set(e,i,n){let s;if(!(void 0===n&&this._equalityComparator(this._value,e))){i||(i=s=new sd(()=>{},()=>`Setting ${this.debugName}`));try{let s=this._value;for(let o of(this._setValue(e),(_t14=t)!==null&&_t14!==void 0&&_t14.handleObservableUpdated(this,{oldValue:s,newValue:e,change:n,didChange:!0,hadValue:!0}),this._observers)){var _t14;i.updateObserver(o,this),o.handleChange(this,n);}}finally{s&&s.finish();}}}toString(){return`${this.debugName}: ${this._value}`;}_setValue(e){this._value=e;}debugGetState(){return{value:this._value};}debugSetValue(e){this._value=e;}}function sg(e,t,i=eq.ofCaller()){return new sp("string"==typeof e?new nq(void 0,e,void 0):new nq(e,void 0,void 0),t,nB,i);}class sp extends su{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e);}dispose(){var _this$_value;(_this$_value=this._value)===null||_this$_value===void 0||_this$_value.dispose();}}function sf(...e){let t,i,n,s;return 2===e.length?[i,n]=e:[t,i,n,s]=e,new s_(new nq(t,void 0,n),i,n,()=>s_.globalTransaction,nB,s!==null&&s!==void 0?s:eq.ofCaller());}function sm(e,t,i,n=eq.ofCaller()){var _e$debugReferenceFn4,_e$equalsFn2;return new s_(new nq(e.owner,e.debugName,(_e$debugReferenceFn4=e.debugReferenceFn)!==null&&_e$debugReferenceFn4!==void 0?_e$debugReferenceFn4:i),t,i,()=>{var _e$getTransaction,_e$getTransaction2;return(_e$getTransaction=(_e$getTransaction2=e.getTransaction)===null||_e$getTransaction2===void 0?void 0:_e$getTransaction2.call(e))!==null&&_e$getTransaction!==void 0?_e$getTransaction:s_.globalTransaction;},(_e$equalsFn2=e.equalsFn)!==null&&_e$equalsFn2!==void 0?_e$equalsFn2:nB,n);}e.s(["b",0,su,"s",0,sg,"Q",0,sc],80492);class s_ extends n0{constructor(e,i,n,s,o,r){super(r),this._debugNameData=e,this.event=i,this._getValue=n,this._getTransaction=s,this._equalityComparator=o,this._hasValue=!1,this.handleEvent=e=>{var _t16;let i=this._getValue(e),n=this._value,s=this._hasValue,o=!s||!this._equalityComparator(n,i),r=!1;o&&(this._value=i,this._hasValue=!0,s&&(r=!0,sh(this._getTransaction(),e=>{for(let r of((_t15=t)!==null&&_t15!==void 0&&_t15.handleObservableUpdated(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:s}),this._observers)){var _t15;e.updateObserver(r,this),r.handleChange(this,void 0);}},()=>{let e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"");}))),r||((_t16=t)===null||_t16===void 0?void 0:_t16.handleObservableUpdated(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:s}));};}getDebugName(){return this._debugNameData.getDebugName(this);}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"");}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent);}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0;}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0);}debugSetValue(e){this._value=e;}debugGetState(){return{value:this._value,hasValue:this._hasValue};}}function sv(e,t=eq.ofCaller()){return"string"==typeof e?new sb(e,void 0,t):new sb(void 0,e,t);}(z=sf||(sf={})).Observer=s_,z.batchEventsGlobally=function(e,t){let i=!1;void 0===s_.globalTransaction&&(s_.globalTransaction=e,i=!0);try{t();}finally{i&&(s_.globalTransaction=void 0);}},e.s(["q",0,s_,"o",0,sf,"W",0,sm],43491);class sb extends n0{get debugName(){var _nq$getDebugName;return(_nq$getDebugName=new nq(this._owner,this._debugName,void 0).getDebugName(this))!==null&&_nq$getDebugName!==void 0?_nq$getDebugName:"Observable Signal";}toString(){return this.debugName;}constructor(e,t,i){super(i),this._debugName=e,this._owner=t;}trigger(e,t){if(!e)return void sr(e=>{this.trigger(e,t);},()=>`Trigger signal ${this.debugName}`);for(let i of this._observers)e.updateObserver(i,this),i.handleChange(this,t);}get(){}}function sC(e,t){let i=new sw(!0,t);e.addObserver(i);try{i.beginUpdate(e);}finally{i.endUpdate(e);}return(0,i8.Q)(()=>{e.removeObserver(i);});}e.s(["f",0,sv],33128),n=sC;class sw{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0;}beginUpdate(e){this._counter++;}endUpdate(e){1===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges()),this._counter--;}handlePossibleChange(e){}handleChange(e,t){}}function sy(e,t){let i;return n4({owner:e,debugReferenceFn:t},e=>i=t(e,i));}function sS(e,t,i,n){let s=new sx(i,n);return n4({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{s.dispose(),s=new sx(i);}},e=>{let i=t.read(e);return s.setItems(i),s.getItems();});}class sx{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map(),this._items=[];}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear();}setItems(e){let t=[],i=new Set(this._cache.keys());for(let n of e){let e=this._keySelector?this._keySelector(n):n,s=this._cache.get(e);if(s)i.delete(e);else{let t=new i8.q();s={out:this._map(n,t),store:t},this._cache.set(e,s);}t.push(s.out);}for(let e of i)this._cache.get(e).store.dispose(),this._cache.delete(e);this._items=t;}getItems(){return this._items;}}function sL(e){return!!e&&void 0!==e.read&&void 0!==e.reportChanges;}function sk(e,t){switch(typeof e){case"number":default:return""+e;case"string":if(e.length+2<=t)return`"${e}"`;return`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":if(null===e)return"null";if(Array.isArray(e)){var i=e,n=t;let s="[ ",o=!0;for(let e of i){if(o||(s+=", "),s.length-5>n){s+="...";break;}o=!1,s+=`${sk(e,n-s.length)}`;}return s+" ]";}var s=e,o=t;if("function"==typeof s.toString&&s.toString!==Object.prototype.toString){let e=s.toString();return e.length<=o?e:e.substring(0,o-3)+"...";}let r=nY(s),a=r?r+"(":"{ ",l=!0;for(let[e,t]of Object.entries(s)){if(l||(a+=", "),a.length-5>o){a+="...";break;}l=!1,a+=`${e}: ${sk(t,o-a.length)}`;}return a+(r?")":" }");case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;}}e.s(["S",0,function(e,t,i=eq.ofCaller()){let n,s,o=!1;return sf(void 0,i=>{let r=se(r=>{let a=e.read(r);o?(n&&clearTimeout(n),n=setTimeout(()=>{s=a,i();},t)):(o=!0,s=a);});return{dispose(){r.dispose(),o=!1,s=void 0;}};},()=>o?s:e.get(),i);},"h",0,function(e,t,i=eq.ofCaller()){let n,s,o=sv("handleTimeout");return n4({owner:void 0,onLastObserverRemoved:()=>{n=void 0;}},i=>{let r=e.read(i);if(o.read(i),r!==n){let e="number"==typeof t?t:t(n,r);if(0===e)return n=r,r;s&&clearTimeout(s),s=setTimeout(()=>{n=r,o.trigger(void 0);},e);}return n;},i);},"P",0,sy,"c",0,sL,"J",0,sS,"p",0,function(e){let t=sc("promiseValue",{});return e.then(e=>{t.set({value:e},void 0);}),t;},"s",0,sC],15738);class sD{static createClient(e,t){return new sD(e,t);}constructor(e,t){this._channelFactory=e,this._getHandler=t,this._channel=this._channelFactory({handleNotification:e=>{let t=this._getHandler().notifications[e[0]];if(!t)throw Error(`Unknown notification "${e[0]}"!`);t(...e[1]);},handleRequest:e=>{try{let t=this._getHandler().requests[e[0]](...e[1]);return{type:"result",value:t};}catch(e){return{type:"error",value:e};}}});let i=new Proxy({},{get:(e,t)=>{if("then"!==t)return async(...e)=>{let i=await this._channel.sendRequest([t,e]);if("error"!==i.type)return i.value;throw i.value;};}}),n=new Proxy({},{get:(e,t)=>{if("then"!==t)return(...e)=>{this._channel.sendNotification([t,e]);};}});this.api={notifications:n,requests:i};}}class sM{constructor(){this._timeout=void 0;}throttle(e,t){void 0===this._timeout&&(this._timeout=setTimeout(()=>{this._timeout=void 0,e();},t));}dispose(){void 0!==this._timeout&&clearTimeout(this._timeout);}}var sI=e.i(61386);class sN{static getInstance(){return void 0===sN._instance&&(sN._instance=new sN()),sN._instance;}getTransactionState(){let e=[],t=[...this._activeTransactions];if(0===t.length)return;let i=t.flatMap(e=>{var _e$debugGetUpdatingOb;return(_e$debugGetUpdatingOb=e.debugGetUpdatingObservers())!==null&&_e$debugGetUpdatingOb!==void 0?_e$debugGetUpdatingOb:[];}).map(e=>e.observer),n=new Set();for(;i.length>0;){let t=i.shift();if(n.has(t))continue;n.add(t);let s=this._getInfo(t,e=>{n.has(e)||i.push(e);});s&&e.push(s);}return{names:t.map(e=>{var _e$getDebugName;return(_e$getDebugName=e.getDebugName())!==null&&_e$getDebugName!==void 0?_e$getDebugName:"tx";}),affected:e};}_getObservableInfo(e){let t=this._instanceInfos.get(e);return t||void(0,nf.C)(new nf.Q("No info found"));}_getAutorunInfo(e){let t=this._instanceInfos.get(e);return t||void(0,nf.C)(new nf.Q("No info found"));}_getInfo(e,t){if(e instanceof n2){for(let i of[...e.debugGetObservers()])t(i);let i=this._getObservableInfo(e);if(!i)return;let n=e.debugGetState(),s={name:e.debugName,instanceId:i.instanceId,updateCount:n.updateCount},o=[...i.changedObservables].map(e=>{var _this$_instanceInfos$;return(_this$_instanceInfos$=this._instanceInfos.get(e))===null||_this$_instanceInfos$===void 0?void 0:_this$_instanceInfos$.instanceId;}).filter(sI.v);if(n.isComputing)return{...s,type:"observable/derived",state:"updating",changedDependencies:o,initialComputation:!1};switch(n.state){case 0:return{...s,type:"observable/derived",state:"noValue"};case 3:return{...s,type:"observable/derived",state:"upToDate"};case 2:return{...s,type:"observable/derived",state:"stale",changedDependencies:o};case 1:return{...s,type:"observable/derived",state:"possiblyStale"};}}else if(e instanceof n7){let t=this._getAutorunInfo(e);if(!t)return;let i={name:e.debugName,instanceId:t.instanceId,updateCount:t.updateCount},n=[...t.changedObservables].map(e=>this._instanceInfos.get(e).instanceId);if(e.debugGetState().isRunning)return{...i,type:"autorun",state:"updating",changedDependencies:n};switch(e.debugGetState().state){case 3:return{...i,type:"autorun",state:"upToDate"};case 2:return{...i,type:"autorun",state:"stale",changedDependencies:n};case 1:return{...i,type:"autorun",state:"possiblyStale"};}}}_formatObservable(e){let t=this._getObservableInfo(e);if(t)return{name:e.debugName,instanceId:t.instanceId};}_formatObserver(e){var _this$_getObservableI;if(e instanceof n2)return{name:e.toString(),instanceId:(_this$_getObservableI=this._getObservableInfo(e))===null||_this$_getObservableI===void 0?void 0:_this$_getObservableI.instanceId};let t=this._getAutorunInfo(e);if(t)return{name:e.toString(),instanceId:t.instanceId};}constructor(){this._declarationId=0,this._instanceId=0,this._declarations=new Map(),this._instanceInfos=new WeakMap(),this._aliveInstances=new Map(),this._activeTransactions=new Set(),this._channel=function(e,t,_r$$$debugValueEditor){var i;let n,s,o,r=globalThis,a=[],{channel:l,handler:h}=(i={sendNotification:e=>{s?s.sendNotification(e):a.push(e);}},{channel:e=>(n=e,{sendNotification:e=>{i.sendNotification(e);},sendRequest:e=>{throw Error("not supported");}}),handler:{handleRequest:e=>{var _n2,_n3;return"notification"===e.type?(_n2=n)===null||_n2===void 0?void 0:_n2.handleNotification(e.data):(_n3=n)===null||_n3===void 0?void 0:_n3.handleRequest(e.data);}}});return((_r$$$debugValueEditor=r.$$debugValueEditor_debugChannels)!==null&&_r$$$debugValueEditor!==void 0?_r$$$debugValueEditor:r.$$debugValueEditor_debugChannels={})[e]=e=>{for(let i of(o=t(),s=e,a))e.sendNotification(i);return a=[],h;},sD.createClient(l,()=>{if(!o)throw Error("Not supported");return o;});}("observableDevTools",()=>({notifications:{setDeclarationIdFilter:e=>{},logObservableValue:e=>{console.log("logObservableValue",e);},flushUpdates:()=>{this._flushUpdates();},resetUpdates:()=>{this._pendingChanges=null,this._channel.api.notifications.handleChange(this._fullState,!0);}},requests:{getDeclarations:()=>{let e={};for(let t of this._declarations.values())e[t.id]=t;return{decls:e};},getSummarizedInstances:()=>null,getObservableValueInfo:e=>({observers:[...this._aliveInstances.get(e).debugGetObservers()].map(e=>this._formatObserver(e)).filter(sI.v)}),getDerivedInfo:e=>{let t=this._aliveInstances.get(e);return{dependencies:[...t.debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(sI.v),observers:[...t.debugGetObservers()].map(e=>this._formatObserver(e)).filter(sI.v)};},getAutorunInfo:e=>({dependencies:[...this._aliveInstances.get(e).debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(sI.v)}),getTransactionState:()=>this.getTransactionState(),setValue:(e,t)=>{let i=this._aliveInstances.get(e);if(i instanceof n2)i.debugSetValue(t);else if(i instanceof su)i.debugSetValue(t);else if(i instanceof s_)i.debugSetValue(t);else throw new nf.Q("Observable is not supported");let n=[...i.debugGetObservers()];for(let e of n)e.beginUpdate(i);for(let e of n)e.handleChange(i,void 0);for(let e of n)e.endUpdate(i);},getValue:e=>{let t=this._aliveInstances.get(e);return t instanceof n2||t instanceof su?sk(t.debugGetState().value,200):void 0;},logValue:e=>{let t=this._aliveInstances.get(e);if(t&&"get"in t)console.log("Logged Value:",t.get());else throw new nf.Q("Observable is not supported");},rerun:e=>{let t=this._aliveInstances.get(e);if(t instanceof n2)t.debugRecompute();else if(t instanceof n7)t.debugRerun();else throw new nf.Q("Observable is not supported");}}})),this._pendingChanges=null,this._changeThrottler=new sM(),this._fullState={},this._flushUpdates=()=>{null!==this._pendingChanges&&(this._channel.api.notifications.handleChange(this._pendingChanges,!1),this._pendingChanges=null);},eq.enable();}_handleChange(e){!function e(t,i){for(let n in i)null===i[n]?delete t[n]:t[n]&&"object"==typeof t[n]&&i[n]&&"object"==typeof i[n]?e(t[n],i[n]):t[n]=i[n];}(this._fullState,e),null===this._pendingChanges?this._pendingChanges=e:function e(t,i){for(let n in i)t[n]&&"object"==typeof t[n]&&i[n]&&"object"==typeof i[n]?e(t[n],i[n]):t[n]=i[n];}(this._pendingChanges,e),this._changeThrottler.throttle(this._flushUpdates,10);}_getDeclarationId(e,t){if(!t)return-1;let i=this._declarations.get(t.id);return void 0===i&&(i={id:this._declarationId++,type:e,url:t.fileName,line:t.line,column:t.column},this._declarations.set(t.id,i),this._handleChange({decls:{[i.id]:i}})),i.id;}handleObservableCreated(e,t){let i={declarationId:this._getDeclarationId("observable/value",t),instanceId:this._instanceId++,listenerCount:0,lastValue:void 0,updateCount:0,changedObservables:new Set()};this._instanceInfos.set(e,i);}handleOnListenerCountChanged(e,t){let i=this._getObservableInfo(e);if(i){if(0===i.listenerCount&&t>0){let t=e instanceof n2?"observable/derived":"observable/value";this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,formattedValue:i.lastValue,type:t,name:e.debugName}}});}else i.listenerCount>0&&0===t&&(this._handleChange({instances:{[i.instanceId]:null}}),this._aliveInstances.delete(i.instanceId));i.listenerCount=t;}}handleObservableUpdated(e,t){if(e instanceof n2)return void this._handleDerivedRecomputed(e,t);let i=this._getObservableInfo(e);i&&t.didChange&&(i.lastValue=sk(t.newValue,30),i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:i.lastValue}}}));}handleAutorunCreated(e,t){let i={declarationId:this._getDeclarationId("autorun",t),instanceId:this._instanceId++,updateCount:0,changedObservables:new Set()};this._instanceInfos.set(e,i),this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,runCount:0,type:"autorun",name:e.debugName}}});}handleAutorunDisposed(e){let t=this._getAutorunInfo(e);t&&(this._handleChange({instances:{[t.instanceId]:null}}),this._instanceInfos.delete(e),this._aliveInstances.delete(t.instanceId));}handleAutorunDependencyChanged(e,t,i){let n=this._getAutorunInfo(e);n&&n.changedObservables.add(t);}handleAutorunStarted(e){}handleAutorunFinished(e){let t=this._getAutorunInfo(e);t&&(t.changedObservables.clear(),t.updateCount++,this._handleChange({instances:{[t.instanceId]:{runCount:t.updateCount}}}));}handleDerivedDependencyChanged(e,t,i){let n=this._getObservableInfo(e);n&&n.changedObservables.add(t);}_handleDerivedRecomputed(e,t){let i=this._getObservableInfo(e);if(!i)return;let n=sk(t.newValue,30);i.updateCount++,i.changedObservables.clear(),i.lastValue=n,i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:n,recomputationCount:i.updateCount}}});}handleDerivedCleared(e){let t=this._getObservableInfo(e);t&&(t.lastValue=void 0,t.changedObservables.clear(),t.listenerCount>0&&this._handleChange({instances:{[t.instanceId]:{formattedValue:void 0}}}));}handleBeginTransaction(e){this._activeTransactions.add(e);}handleEndTransaction(e){this._activeTransactions.delete(e);}}_sN=sN;_sN._instance=void 0;var sE=e.i(95583);sE.$&&sE.$.VSCODE_DEV_DEBUG_OBSERVABLES&&(U=sN.getInstance(),t?t instanceof n$?t.loggers.push(U):t=new n$([t,U]):t=U),e.s([],7860);let{getWindow:sT,getDocument:sR,getWindows:sA,getWindowsCount:sO,getWindowId:sP,getWindowById:sF,onDidRegisterWindow:sB,onWillUnregisterWindow:sW,onDidUnregisterWindow:sV}=(v=new Map(),i4(i9,1),b={window:i9,disposables:new nE.q()},v.set(i9.vscodeWindowId,b),C=new nN.S(),w=new nN.S(),y=new nN.S(),{onDidRegisterWindow:C.event,onWillUnregisterWindow:y.event,onDidUnregisterWindow:w.event,registerWindow(e){if(v.has(e.vscodeWindowId))return nE.N.None;let t=new nE.q(),i={window:e,disposables:t.add(new nE.q())};return v.set(e.vscodeWindowId,i),t.add((0,nE.Q)(()=>{v.delete(e.vscodeWindowId),w.fire(e);})),t.add(s$(e,o_.BEFORE_UNLOAD,()=>{y.fire(e);})),C.fire(i),t;},getWindows:()=>v.values(),getWindowsCount:()=>v.size,getWindowId:e=>e.vscodeWindowId,hasWindow:e=>v.has(e),getWindowById:function(e,t){var _ref;return(_ref="number"==typeof e?v.get(e):void 0)!==null&&_ref!==void 0?_ref:t?b:void 0;},getWindow:e=>{var _e$ownerDocument;return e!==null&&e!==void 0&&(_e$ownerDocument=e.ownerDocument)!==null&&_e$ownerDocument!==void 0&&_e$ownerDocument.defaultView?e.ownerDocument.defaultView.window:e!==null&&e!==void 0&&e.view?e.view.window:i9;},getDocument:e=>sT(e).document}),sH=new Set();function sz(e){for(;e.firstChild;)e.firstChild.remove();}class sU{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options);}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null);}}function s$(e,t,i,n){return new sU(e,t,i,n);}function sK(e,t){return function(i){return t(new nD(e,i));};}let sq=function(e,t,i,n){let s=i;if("click"===t||"mousedown"===t||"contextmenu"===t)s=sK(sT(e),i);else("keydown"===t||"keypress"===t||"keyup"===t)&&(s=function(e){return i(new nx(e));});return s$(e,t,s,n);};function sj(e,t,i){return s$(e,i_.I&&ng.pointerEvents?o_.POINTER_DOWN:o_.MOUSE_DOWN,t,i);}function sG(e,t,i){return s$(e,i_.I&&ng.pointerEvents?o_.POINTER_MOVE:o_.MOUSE_MOVE,t,i);}function sQ(e,t,i){return s$(e,i_.I&&ng.pointerEvents?o_.POINTER_UP:o_.MOUSE_UP,t,i);}function sZ(e,t,i){return(0,nI.q)(e,t,i);}class sY extends nI.R{constructor(e,t){super(e,t);}}class sX extends nI.Q{constructor(e){super(),this.defaultTarget=e&&sT(e);}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i!==null&&i!==void 0?i:this.defaultTarget);}}class sJ{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1;}dispose(){this._canceled=!0;}execute(){if(!this._canceled)try{this._runner();}catch(e){(0,nf.C)(e);}}static sort(e,t){return t.priority-e.priority;}}function s0(e){return sT(e).getComputedStyle(e,null);}function s1(e,t,i){let n=sT(e),s=n.document;if(e!==s.body)return new s3(e.clientWidth,e.clientHeight);if(i_.I&&n!==null&&n!==void 0&&n.visualViewport)return new s3(n.visualViewport.width,n.visualViewport.height);if(n!==null&&n!==void 0&&n.innerWidth&&n.innerHeight)return new s3(n.innerWidth,n.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new s3(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new s3(s.documentElement.clientWidth,s.documentElement.clientHeight);throw Error("Unable to figure out browser width and height");}S=new Map(),x=new Map(),L=new Map(),k=new Map(),o=(e,t,i=0)=>{let n=sP(e),s=new sJ(t,i),o=S.get(n);return o||(o=[],S.set(n,o)),o.push(s),L.get(n)||(L.set(n,!0),e.requestAnimationFrame(()=>((e,_S$get)=>{L.set(e,!1);let t=(_S$get=S.get(e))!==null&&_S$get!==void 0?_S$get:[];for(x.set(e,t),S.set(e,[]),k.set(e,!0);t.length>0;)t.sort(sJ.sort),t.shift().execute();k.set(e,!1);})(n))),s;},s=(e,t,i)=>{let n=sP(e);if(!k.get(n))return o(e,t,i);{let e=new sJ(t,i),s=x.get(n);return s||(s=[],x.set(n,s)),s.push(e),e;}};class s2{static convertToPixels(e,t){return parseFloat(t)||0;}static getDimension(e,t){let i=s0(e),n=i?i.getPropertyValue(t):"0";return s2.convertToPixels(e,n);}static getBorderLeftWidth(e){return s2.getDimension(e,"border-left-width");}static getBorderRightWidth(e){return s2.getDimension(e,"border-right-width");}static getBorderTopWidth(e){return s2.getDimension(e,"border-top-width");}static getBorderBottomWidth(e){return s2.getDimension(e,"border-bottom-width");}static getPaddingLeft(e){return s2.getDimension(e,"padding-left");}static getPaddingRight(e){return s2.getDimension(e,"padding-right");}static getPaddingTop(e){return s2.getDimension(e,"padding-top");}static getPaddingBottom(e){return s2.getDimension(e,"padding-bottom");}static getMarginLeft(e){return s2.getDimension(e,"margin-left");}static getMarginTop(e){return s2.getDimension(e,"margin-top");}static getMarginRight(e){return s2.getDimension(e,"margin-right");}static getMarginBottom(e){return s2.getDimension(e,"margin-bottom");}}class s3{constructor(e,t){this.width=e,this.height=t;}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new s3(e,t):this;}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width;}static lift(e){return e instanceof s3?e:new s3(e.width,e.height);}static equals(e,t){return e===t||!!e&&!!t&&e.width===t.width&&e.height===t.height;}}_s2=s3;_s2.None=new _s2(0,0);function s5(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;let s=on(e)?null:s0(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=s2.getBorderLeftWidth(e),i+=s2.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent);}return{left:n,top:i};}function s6(e){let t=e.getBoundingClientRect(),i=sT(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height};}function s4(e){let t=e,i=1;do{let e=s0(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement;}while(null!==t&&t!==t.ownerDocument.documentElement);return i;}function s9(e){let t=s2.getMarginLeft(e)+s2.getMarginRight(e);return e.offsetWidth+t;}function s8(e){let t=s2.getBorderLeftWidth(e)+s2.getBorderRightWidth(e),i=s2.getPaddingLeft(e)+s2.getPaddingRight(e);return e.offsetWidth-t-i;}function s7(e){let t=s2.getBorderTopWidth(e)+s2.getBorderBottomWidth(e),i=s2.getPaddingTop(e)+s2.getPaddingBottom(e);return e.offsetHeight-t-i;}function oe(e){let t=s2.getMarginTop(e)+s2.getMarginBottom(e);return e.offsetHeight+t;}function ot(e,t){return!!(t!==null&&t!==void 0&&t.contains(e));}function oi(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if("string"==typeof t?e.classList.contains(t):t.every(t=>e.classList.contains(t)))return e;if(i){if("string"==typeof i){if(e.classList.contains(i))break;}else if(e===i)break;}e=e.parentNode;}return null;}(e,t,i);}function on(e){return e&&!!e.host&&!!e.mode;}function os(e){return!!oo(e);}function oo(e){for(;e.parentNode;){var _e$ownerDocument2;if(e===((_e$ownerDocument2=e.ownerDocument)===null||_e$ownerDocument2===void 0?void 0:_e$ownerDocument2.body))return null;e=e.parentNode;}return on(e)?e:null;}function or(){let e=oh().activeElement;for(;(_e2=e)!==null&&_e2!==void 0&&_e2.shadowRoot;){var _e2;e=e.shadowRoot.activeElement;}return e;}function oa(e){return or()===e;}function ol(e){return ot(or(),e);}function oh(){if(1>=sO())return i9.document;let e=Array.from(sA()).map(({window:e})=>e.document).find(e=>e.hasFocus());if(e)return e;let t=function(){for(let e of sH){let t=e();if(t.hasFocus&&t.window)return t.window;}}();return t?t.document:i9.document;}function od(){var _e$defaultView$window,_e$defaultView;let e=oh();return(_e$defaultView$window=(_e$defaultView=e.defaultView)===null||_e$defaultView===void 0?void 0:_e$defaultView.window)!==null&&_e$defaultView$window!==void 0?_e$defaultView$window:i9;}let oc=new class{constructor(){this.mutationObservers=new Map();}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map(),this.mutationObservers.set(e,n));let s=(0,nR.R)(i),o=n.get(s);if(o)o.users+=1;else{let r=new nN.S(),a=new MutationObserver(e=>r.fire(e));a.observe(e,i);let l=o={users:1,observer:a,onDidMutate:r.event};t.add((0,nE.Q)(()=>{var _n4,_n5;l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),(_n4=n)!==null&&_n4!==void 0&&_n4.delete(s),((_n5=n)===null||_n5===void 0?void 0:_n5.size)===0&&this.mutationObservers.delete(e));})),n.set(s,o);}return o.onDidMutate;}}();function ou(e){return e instanceof HTMLElement||e instanceof sT(e).HTMLElement;}function og(e){return e instanceof HTMLAnchorElement||e instanceof sT(e).HTMLAnchorElement;}function op(e){return e instanceof SVGElement||e instanceof sT(e).SVGElement;}function of(e){return e instanceof MouseEvent||e instanceof sT(e).MouseEvent;}function om(e){return e instanceof KeyboardEvent||e instanceof sT(e).KeyboardEvent;}let o_={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",RESIZE:"resize",SCROLL:"scroll",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function ov(e){return!!(e&&"function"==typeof e.preventDefault&&"function"==typeof e.stopPropagation);}let ob={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function oC(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t;}function ow(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode;}class oy extends nE.N{get onDidFocus(){return this._onDidFocus.event;}get onDidBlur(){return this._onDidBlur.event;}static hasFocusWithin(e){if(!ou(e))return ot(e.document.activeElement,e.document);{let t=oo(e);return ot(t?t.activeElement:e.ownerDocument.activeElement,e);}}constructor(e){super(),this._onDidFocus=this._register(new nN.S()),this._onDidBlur=this._register(new nN.S());let t=oy.hasFocusWithin(e),i=!1,n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire());},s=()=>{t&&(i=!0,(ou(e)?sT(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire());},0));};this._refreshStateHandler=()=>{oy.hasFocusWithin(e)!==t&&(t?s():n());},this._register(s$(e,o_.FOCUS,n,!0)),this._register(s$(e,o_.BLUR,s,!0)),ou(e)&&(this._register(s$(e,o_.FOCUS_IN,()=>this._refreshStateHandler())),this._register(s$(e,o_.FOCUS_OUT,()=>this._refreshStateHandler())));}}function oS(e){return new oy(e);}function ox(e,t){return e.after(t),t;}function oL(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0];}function ok(e,t){return e.insertBefore(t,e.firstChild),t;}function oD(e,...t){e.textContent="",oL(e,...t);}let oM=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function oI(e,t,i,...n){let s,o=oM.exec(t);if(!o)throw Error("Bad use of emmet");let r=o[1]||"div";return s=e!==ej.HTML?document.createElementNS(e,r):document.createElement(r),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t));}),s.append(...n),s;}function oN(e,t,...i){return oI(ej.HTML,e,t,...i);}function oE(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden");}function oT(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true");}function oR(e,t){return Math.max(1,Math.floor(e.devicePixelRatio*t))/e.devicePixelRatio;}function oA(e){i9.open(e,"_blank","noopener");}function oO(e,t){let i=()=>{t(),n=o(e,i);},n=o(e,i);return(0,nE.Q)(()=>n.dispose());}($=ej||(ej={})).HTML="http://www.w3.org/1999/xhtml",$.SVG="http://www.w3.org/2000/svg",oN.SVG=function(e,t,...i){return oI(ej.SVG,e,t,...i);},nT.k.setPreferredWebSchema(/^https:/.test(i9.location.href)?"https":"http");class oP extends nN.S{constructor(){super(),this._subscriptions=(0,nE.P)(new nE.q()),this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(nN.C.runAndSubscribe(sB,({window:e,disposables:t})=>this.registerListeners(e,t),{window:i9,disposables:this._subscriptions}));}registerListeners(e,t){t.add(s$(e,"keydown",e=>{if(e.defaultPrevented)return;let t=new nx(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0;}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus));}},!0)),t.add(s$(e,"keyup",e=>{!e.defaultPrevented&&(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)));},!0)),t.add(s$(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0;},!0)),t.add(s$(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0;},!0)),t.add(s$(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0);},!0)),t.add(s$(e,"blur",()=>{this.resetKeyStatus();}));}get keyStatus(){return this._keyStatus;}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus);}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1};}static getInstance(){return oP.instance||(oP.instance=new oP()),oP.instance;}dispose(){super.dispose(),this._subscriptions.dispose();}}class oF extends nE.N{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners();}registerListeners(){this.callbacks.onDragStart&&this._register(s$(this.element,o_.DRAG_START,e=>{var _this$callbacks$onDra,_this$callbacks;(_this$callbacks$onDra=(_this$callbacks=this.callbacks).onDragStart)===null||_this$callbacks$onDra===void 0||_this$callbacks$onDra.call(_this$callbacks,e);})),this.callbacks.onDrag&&this._register(s$(this.element,o_.DRAG,e=>{var _this$callbacks$onDra2,_this$callbacks2;(_this$callbacks$onDra2=(_this$callbacks2=this.callbacks).onDrag)===null||_this$callbacks$onDra2===void 0||_this$callbacks$onDra2.call(_this$callbacks2,e);})),this._register(s$(this.element,o_.DRAG_ENTER,e=>{var _this$callbacks$onDra3,_this$callbacks3;this.counter++,this.dragStartTime=e.timeStamp,(_this$callbacks$onDra3=(_this$callbacks3=this.callbacks).onDragEnter)===null||_this$callbacks$onDra3===void 0?void 0:_this$callbacks$onDra3.call(_this$callbacks3,e);})),this._register(s$(this.element,o_.DRAG_OVER,e=>{var _this$callbacks$onDra4,_this$callbacks4;e.preventDefault(),(_this$callbacks$onDra4=(_this$callbacks4=this.callbacks).onDragOver)===null||_this$callbacks$onDra4===void 0?void 0:_this$callbacks$onDra4.call(_this$callbacks4,e,e.timeStamp-this.dragStartTime);})),this._register(s$(this.element,o_.DRAG_LEAVE,e=>{var _this$callbacks$onDra5,_this$callbacks5;this.counter--,0===this.counter&&(this.dragStartTime=0,(_this$callbacks$onDra5=(_this$callbacks5=this.callbacks).onDragLeave)===null||_this$callbacks$onDra5===void 0?void 0:_this$callbacks$onDra5.call(_this$callbacks5,e));})),this._register(s$(this.element,o_.DRAG_END,e=>{var _this$callbacks$onDra6,_this$callbacks6;this.counter=0,this.dragStartTime=0,(_this$callbacks$onDra6=(_this$callbacks6=this.callbacks).onDragEnd)===null||_this$callbacks$onDra6===void 0?void 0:_this$callbacks$onDra6.call(_this$callbacks6,e);})),this._register(s$(this.element,o_.DROP,e=>{var _this$callbacks$onDro,_this$callbacks7;this.counter=0,this.dragStartTime=0,(_this$callbacks$onDro=(_this$callbacks7=this.callbacks).onDrop)===null||_this$callbacks$onDro===void 0?void 0:_this$callbacks$onDro.call(_this$callbacks7,e);}));}}class oB extends nE.N{constructor(e,t,i=i9,n){var _n$resizeObserverCtor;super(),this.name=e;let s=(_n$resizeObserverCtor=n===null||n===void 0?void 0:n.resizeObserverCtor)!==null&&_n$resizeObserverCtor!==void 0?_n$resizeObserverCtor:i.ResizeObserver;this.observer=new s((e,n)=>{var s=i,o=this.name;let r=oW.get(s);if(r||(r={names:new Set(),overflow:!1},oW.set(s,r),s.requestAnimationFrame(()=>oW.delete(s))),!r.names.has(o))if(r.names.size<8)r.names.add(o);else{r.overflow=!0;let e=Array.from(r.names).sort().at(-1);o<e&&(r.names.delete(e),r.names.add(o));}try{t(e,n);}catch(e){(0,nf.C)(e);}}),this._register((0,nE.Q)(()=>this.observer.disconnect()));}observe(e,t){return this.observer.observe(e,t),(0,nE.Q)(()=>this.observer.unobserve(e));}}let oW=new WeakMap(),oV=_wrapRegExp(/([\w\-]+)?(?:#([\w\-]+))?((?:\.(?:[\w\-]+))*)(?:@((?:[\w\_])+))?/,{tag:1,id:2,"class":3,name:4});function oH(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);let s=oV.exec(e);if(!s||!s.groups)throw Error("Bad use of h");let o=s.groups.tag||"div",r=document.createElement(o);s.groups.id&&(r.id=s.groups.id);let a=[];if(s.groups.class)for(let e of s.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(let e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));let l={};if(s.groups.name&&(l[s.groups.name]=r),n)for(let e of n)ou(e)?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(l,e),r.appendChild(e.root));for(let[e,t]of Object.entries(i))if("className"===e)continue;else if("style"===e)for(let[e,i]of Object.entries(t))r.style.setProperty(oz(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(oz(e),t.toString());return l.root=r,l;}function oz(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();}function oU(e,t,i){for(let{name:i,value:n}of e.attributes)t.setAttribute(i,n);}function o$(e){return"input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase()||ou(e)&&!!e.editContext;}var oK=eG||(eG={});function oq(e){return(t,i,n)=>{let s=i.class;delete i.class;let o=i.ref;delete i.ref;let r=i.obsRef;return delete i.obsRef,new oJ(t,o,r,e,s,i,n);};}function oj(e,t){let i=oq(t);return(t,n)=>i(e,t,n);}oK.div=oj("div"),oK.elem=oq(void 0),oK.svg=oj("svg","http://www.w3.org/2000/svg"),oK.svgElem=oq("http://www.w3.org/2000/svg"),oK.ref=function(){let e,t=function(t){e=t;};return Object.defineProperty(t,"element",{get(){if(!e)throw new nf.Q("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return e;}}),t;};class oG{constructor(e,t,i,n,s,o,r){for(let[r,a]of(this._deriveds=[],this._isHovered=void 0,this._didMouseMoveDuringHover=void 0,this._element=n?document.createElementNS(n,e):document.createElement(e),t&&t(this._element),i&&this._deriveds.push(n5(e=>{i(this),e.store.add({dispose:()=>{i(null);}});})),s&&(!function e(t){return!!sL(t)||!!Array.isArray(t)&&t.some(t=>e(t));}(s)?oQ(this._element,oZ(s,void 0)):this._deriveds.push(n5(this,e=>{oQ(this._element,oZ(s,e));}))),Object.entries(o)))if("style"===r)for(let[e,t]of Object.entries(a)){let i=oz(e);sL(t)?this._deriveds.push(n4({owner:this,debugName:()=>`set.style.${i}`},e=>{this._element.style.setProperty(i,oY(t.read(e)));})):this._element.style.setProperty(i,oY(t));}else"tabIndex"===r?sL(a)?this._deriveds.push(n5(this,e=>{this._element.tabIndex=a.read(e);})):this._element.tabIndex=a:r.startsWith("on")?this._element[r]=a:sL(a)?this._deriveds.push(n4({owner:this,debugName:()=>`set.${r}`},e=>{o0(this._element,r,a.read(e));})):o0(this._element,r,a);if(r){let e=n5(this,e=>{this._element.replaceChildren(...function e(t,i){return sL(i)?e(t,i.read(t)):Array.isArray(i)?i.flatMap(i=>e(t,i)):i instanceof oG?(t&&i.readEffect(t),[i._element]):i?[i]:[];}(e,r));});this._deriveds.push(e),!function e(t){return!!sL(t)||!!Array.isArray(t)&&t.some(t=>e(t));}(r)&&e.get();}}readEffect(e){for(let t of this._deriveds)t.read(e);}keepUpdated(e){return n5(e=>{this.readEffect(e);}).recomputeInitiallyAndOnChange(e),this;}toDisposableLiveElement(){let e=new nE.q();return this.keepUpdated(e),new oX(this._element,e);}get isHovered(){if(!this._isHovered){let e=sc("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e;}return this._isHovered;}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=sc("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",t=>{e=!0;}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0);}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0);}),this._didMouseMoveDuringHover=t;}return this._didMouseMoveDuringHover;}}function oQ(e,t){op(e)?e.setAttribute("class",t):e.className=t;}function oZ(e,t){let i="";return!function e(t,i,n){if(sL(t))return void n(t.read(i));if(Array.isArray(t)){for(let s of t)e(s,i,n);return;}n(t);}(e,t,e=>{e&&(0===i.length?i=e:i+=" "+e);}),i;}function oY(e){return"number"==typeof e?e+"px":e;}class oX{constructor(e,t){this.element=e,this._disposable=t;}dispose(){this._disposable.dispose();}}class oJ extends oG{get element(){return this._element;}}function o0(e,t,i){null==i?e.removeAttribute(oz(t)):e.setAttribute(oz(t),String(i));}class o1 extends HTMLElement{disconnectedCallback(){var _this$onDidDisconnect;(_this$onDidDisconnect=this.onDidDisconnect)===null||_this$onDidDisconnect===void 0||_this$onDidDisconnect.call(this);}connectedCallback(){var _this$onDidConnect;(_this$onDidConnect=this.onDidConnect)===null||_this$onDidConnect===void 0||_this$onDidConnect.call(this);}}customElements.get("connection-observer")||customElements.define("connection-observer",o1),e.s(["$",0,oN,"Xy",0,s3,"Qb",0,oB,"wv",0,oF,"ZE",0,ob,"vv",0,o_,"Fj",0,oP,"WK",0,class{constructor(e,t,i){this.originX=e,this.originY=t,this.points=new Int16Array(8);let{top:n,left:s,right:o,bottom:r}=i.getBoundingClientRect(),a=this.points,l=0;a[l++]=s,a[l++]=n,a[l++]=o,a[l++]=n,a[l++]=s,a[l++]=r,a[l++]=o,a[l++]=r;}contains(e,t){let{points:i,originX:n,originY:s}=this;for(let o=0;o<4;o++){let r=2*o,a=(o+1)%4*2;if(nF(e,t,n,s,i[r],i[r+1],i[a],i[a+1]))return!0;}return!1;}},"JB",0,sY,"De",0,sX,"cD",0,sj,"dl",0,sG,"i_",0,sQ,"$x",0,s$,"Cp",0,function(e,t,i){let n=sK(sT(e),t);return sj(e,n,i);},"nG",0,sq,"JO",0,ox,"k4",0,oO,"QX",0,oL,"EV",0,sz,"L3",0,oR,"vV",0,oU,"hS",0,oh,"z7",0,or,"pQ",0,od,"QQ",0,s1,"Gp",0,s0,"y5",0,s7,"sv",0,s8,"Qo",0,sR,"nr",0,s6,"Mf",0,s4,"Dt",0,oo,"gC",0,s5,"N9",0,oe,"gp",0,s9,"cW",0,sT,"qs",0,sF,"n$",0,sP,"GW",0,sA,"h",0,oH,"qh",0,oi,"QA",0,oT,"JA",0,oa,"vC",0,ot,"JP",0,ol,"Si",0,o$,"up",0,ov,"d$",0,og,"Oy",0,ou,"j$",0,os,"F4",0,om,"HJ",0,of,"TY",0,op,"n",0,eG,"$0",0,sB,"mm",0,sV,"cQ",0,sW,"Ix",0,ok,"Xh",0,oD,"Qd",0,ow,"O6",()=>s,"R2",0,sZ,"eR",0,oC,"Z",()=>o,"ej",0,function(e,...t){e?oE(...t):oT(...t);},"oO",0,oc,"Hm",0,oE,"bK",0,function(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`);},"nF",0,oS,"vB",0,oA],23808);var o2=i8;class o3 extends o2.N{constructor(e){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1),this._register((0,o2.Q)(()=>{var _this$_mediaQueryList;return(_this$_mediaQueryList=this._mediaQueryList)===null||_this$_mediaQueryList===void 0?void 0:_this$_mediaQueryList.removeEventListener("change",this._listener);}));}_handleChange(e,t){var _this$_mediaQueryList2;(_this$_mediaQueryList2=this._mediaQueryList)!==null&&_this$_mediaQueryList2!==void 0&&_this$_mediaQueryList2.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire();}}class o5 extends o2.N{get value(){return this._value;}constructor(e){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);let t=this._register(new o3(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value);}));}_getPixelRatio(e){let t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/((t===null||t===void 0?void 0:t.webkitBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.mozBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.msBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.oBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.backingStorePixelRatio)||1);}}let o6=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map();}_getOrCreatePixelRatioMonitor(e){let t=sP(e),i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,o2.P)(new o5(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,o2.P)(iv.C.once(sV)(({vscodeWindowId:e})=>{var _i2;e===t&&((_i2=i)!==null&&_i2!==void 0&&_i2.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t));}))),i;}getInstance(e){return this._getOrCreatePixelRatioMonitor(e);}}();e.s(["f",0,o6],22719);var o4=i8;class o9{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow="";}focus(){this.domNode.focus();}setMaxWidth(e){let t=o8(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth);}setWidth(e){let t=o8(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width);}setHeight(e){let t=o8(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height);}setTop(e){let t=o8(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top);}setLeft(e){let t=o8(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left);}setBottom(e){let t=o8(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom);}setRight(e){let t=o8(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right);}setPaddingLeft(e){let t=o8(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft);}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily);}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight);}setFontSize(e){let t=o8(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize);}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle);}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings);}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings);}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration);}setLineHeight(e){let t=o8(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight);}setLetterSpacing(e){let t=o8(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing);}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className);}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className;}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display);}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position);}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility);}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color);}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor);}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"");}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e);}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain);}setAttribute(e,t){this.domNode.setAttribute(e,t);}removeAttribute(e){this.domNode.removeAttribute(e);}appendChild(e){this.domNode.appendChild(e.domNode);}removeChild(e){this.domNode.removeChild(e.domNode);}}function o8(e){return"number"==typeof e?`${e}px`:e;}function o7(e){return new o9(e);}function re(e,t){e instanceof o9?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px");}e.s(["f",0,re],12235);class rt{constructor(e,t){this.chr=e,this.type=t,this.width=0;}fulfill(e){this.width=e;}}class ri{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null;}read(e){var _this$_container;this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),(_this$_container=this._container)!==null&&_this$_container!==void 0&&_this$_container.remove(),this._container=null,this._testElements=null;}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");re(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");re(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");re(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let s=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let r=document.createElement("span");ri._render(r,e),o.appendChild(r),s.push(r);}this._container=e,this._testElements=s;}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t;}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i;}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){let t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256);}}}class rn extends o4.N{constructor(){super(...arguments),this._cache=new Map(),this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event;}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose();}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire();}_ensureCache(e){let t=sP(e),i=this._cache.get(t);return i||(i=new rs(),this._cache.set(t,i)),i;}_writeToCache(e,t,i,n){this._ensureCache(e).put(t,i,n),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e);},5e3));}_evictUntrustedReadings(e){let t=this._ensureCache(e),i=t.getValues(),n=!1;for(let e of i)e.isTrusted||(n=!0,t.remove(e));n&&this._onDidChange.fire();}readFontInfo(e,t){let i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new iy({pixelRatio:o6.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i,!1);}return i.get(t);}_createRequest(e,t,i,n){let s=new rt(e,t);return i.push(s),n!==null&&n!==void 0&&n.push(s),s;}_actualReadFontInfo(e,t){let i=[],n=[],s=this._createRequest("n",0,i,n),o=this._createRequest("m",0,i,null),r=this._createRequest(" ",0,i,n),a=this._createRequest("0",0,i,n),l=this._createRequest("1",0,i,n),h=this._createRequest("2",0,i,n),d=this._createRequest("3",0,i,n),c=this._createRequest("4",0,i,n),u=this._createRequest("5",0,i,n),g=this._createRequest("6",0,i,n),p=this._createRequest("7",0,i,n),f=this._createRequest("8",0,i,n),m=this._createRequest("9",0,i,n),_=this._createRequest("→",0,i,n),v=this._createRequest("→",0,i,null),b=this._createRequest("·",0,i,n),C=this._createRequest(String.fromCharCode(11825),0,i,null),w="|/-_ilm%";for(let e=0,t=w.length;e<t;e++)this._createRequest(w.charAt(e),0,i,n),this._createRequest(w.charAt(e),1,i,n),this._createRequest(w.charAt(e),2,i,n);new ri(t,i).read(e);let y=Math.max(a.width,l.width,h.width,d.width,c.width,u.width,g.width,p.width,f.width,m.width),S=t.fontFeatureSettings===ij.OFF,x=n[0].width;for(let e=1,t=n.length;S&&e<t;e++){let t=x-n[e].width;if(t<-.001||t>.001){S=!1;break;}}let L=!0;return S&&v.width!==x&&(L=!1),v.width>_.width&&(L=!1),new iy({pixelRatio:o6.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:L,spaceWidth:r.width,middotWidth:b.width,wsmiddotWidth:C.width,maxDigitWidth:y},!0);}}class rs{constructor(){this._wasPopulatedWithRestoredValues=!1,this._wasPopulatedWithCurrentSessionValues=!1,this._keys=Object.create(null),this._values=Object.create(null);}has(e){let t=e.getId();return!!this._values[t];}get(e){let t=e.getId();return this._values[t];}put(e,t,i){let n=e.getId();this._keys[n]=e,this._values[n]=t,i?this._wasPopulatedWithRestoredValues=!0:this._wasPopulatedWithCurrentSessionValues=!0;}remove(e){let t=e.getId();delete this._keys[t],delete this._values[t];}getValues(){return Object.keys(this._keys).map(e=>this._values[e]);}}let ro=new rn();(K=eQ||(eQ={})).serviceIds=new Map(),K.DI_TARGET="$di$target",K.DI_DEPENDENCIES="$di$dependencies",K.getServiceDependencies=function(e){return e[K.DI_DEPENDENCIES]||[];};let rr=ra("instantiationService");function ra(e){if(eQ.serviceIds.has(e))return eQ.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[eQ.DI_TARGET]===e?e[eQ.DI_DEPENDENCIES].push({id:t,index:n}):(e[eQ.DI_DEPENDENCIES]=[{id:t,index:n}],e[eQ.DI_TARGET]=e);};return t.toString=()=>e,eQ.serviceIds.set(e,t),t;}e.s(["V",0,rr,"i",0,eQ,"n",0,ra],66320);let rl=ra("codeEditorService");e.s(["f",0,rl],94899);var rh=e.i(28087);let rd=ra("modelService");e.s(["f",0,rd],66331);let rc=ra("textModelService");e.s(["f",0,rc],22686);var ru=i8;class rg extends ru.N{get onDidChange(){return this._onDidChange.event;}constructor(e,t="",i="",n=!0,s){super(),this._onDidChange=this._register(new iv.S()),this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=s;}get id(){return this._id;}get label(){return this._label;}set label(e){this._setLabel(e);}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}));}get tooltip(){return this._tooltip||"";}set tooltip(e){this._setTooltip(e);}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}));}get class(){return this._cssClass;}set class(e){this._setClass(e);}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}));}get enabled(){return this._enabled;}set enabled(e){this._setEnabled(e);}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}));}get checked(){return this._checked;}set checked(e){this._setChecked(e);}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}));}async run(e,t){this._actionCallback&&(await this._actionCallback(e));}}class rp extends ru.N{constructor(){super(...arguments),this._onWillRun=this._register(new iv.S()),this._onDidRun=this._register(new iv.S());}get onWillRun(){return this._onWillRun.event;}get onDidRun(){return this._onDidRun.event;}async run(e,t){let i;if(e.enabled){this._onWillRun.fire({action:e});try{await this.runAction(e,t);}catch(e){i=e;}this._onDidRun.fire({action:e,error:i});}}async runAction(e,t){await e.run(t);}}class rf{constructor(){this.id=rf.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=void 0;}static join(...e){let t=[];for(let i of e)i.length&&(t=t.length?[...t,new rf(),...i]:i);return t;}static clean(e){for(;e.length>0&&e[0].id===rf.ID;)e.shift();for(;e.length>0&&e[e.length-1].id===rf.ID;)e.pop();for(let t=e.length-2;t>=0;t--)e[t].id===rf.ID&&e[t+1].id===rf.ID&&e.splice(t+1,1);return e;}async run(){}}_rf=rf;_rf.ID="vs.actions.separator";class rm{get actions(){return this._actions;}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i;}async run(){}}class r_ extends rg{constructor(){super(r_.ID,(0,iM.M)(32,"(empty)"),void 0,!1);}}_r_=r_;_r_.ID="vs.actions.empty";function rv(e){var _e$tooltip,_e$enabled;return{id:e.id,label:e.label,tooltip:(_e$tooltip=e.tooltip)!==null&&_e$tooltip!==void 0?_e$tooltip:e.label,class:e.class,enabled:(_e$enabled=e.enabled)!==null&&_e$enabled!==void 0?_e$enabled:!0,checked:e.checked,run:async(...t)=>e.run(...t)};}e.s(["m",0,rg,"M",0,rp,"p",0,r_,"g",0,rf,"h",0,rm,"H",0,rv],9986);var rb=e.i(35041),rC=e.i(89652);(eZ||(eZ={})).isThemeColor=function(e){return!!e&&"object"==typeof e&&"string"==typeof e.id;},function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";let t=RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){let n=t.exec(e.id);if(!n)return i(rC.f.error);let[,s,o]=n,r=["codicon","codicon-"+s];return o&&r.push("codicon-modifier-"+o.substring(1)),r;}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ");},e.asCSSSelector=function(e){return"."+i(e).join(".");},e.isThemeIcon=function(e){return!!e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||eZ.isThemeColor(e.color));};let n=RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){let t=n.exec(e);if(!t)return;let[,i]=t;return{id:i};},e.fromId=function(e){return{id:e};},e.modify=function(e,t){let i=e.id,n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i};},e.getModifier=function(e){let t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1);},e.isEqual=function(e,t){var _e$color,_t$color;return e.id===t.id&&((_e$color=e.color)===null||_e$color===void 0?void 0:_e$color.id)===((_t$color=t.color)===null||_t$color===void 0?void 0:_t$color.id);},e.isFile=function(e){return(e===null||e===void 0?void 0:e.id)===rC.f.file.id;},e.isFolder=function(e){return(e===null||e===void 0?void 0:e.id)===rC.f.folder.id;};}(eY||(eY={})),e.s(["f",0,eY],76140);var rw=e.i(58063);let ry=ra("commandService"),rS=new class{constructor(){this._commands=new Map(),this._onDidRegisterCommand=new iv.S(),this.onDidRegisterCommand=this._onDidRegisterCommand.event;}registerCommand(e,t){if(!e)throw Error("invalid command");if("string"==typeof e){if(!t)throw Error("invalid command");return this.registerCommand({id:e,handler:t});}if(e.metadata&&Array.isArray(e.metadata.args)){let t=[];for(let i of e.metadata.args)t.push(i.constraint);let i=e.handler;e.handler=function(e,...n){return(0,sI.n)(n,t),i(e,...n);};}let{id:i}=e,n=this._commands.get(i);n||(n=new rb.f(),this._commands.set(i,n));let s=n.unshift(e),o=(0,i8.Q)(()=>{s();let e=this._commands.get(i);(e===null||e===void 0?void 0:e.isEmpty())&&this._commands.delete(i);});return this._onDidRegisterCommand.fire(i),(0,i8.P)(o);}registerCommandAlias(e,t){return rS.registerCommand(e,(e,...i)=>e.get(ry).executeCommand(t,...i));}getCommand(e){let t=this._commands.get(e);if(!(!t||t.isEmpty()))return rw.f.first(t);}getCommands(){let e=new Map();for(let t of this._commands.keys()){let i=this.getCommand(t);i&&e.set(t,i);}return e;}}();function rx(...e){switch(e.length){case 1:return(0,iM.M)(1788,"Did you mean {0}?",e[0]);case 2:return(0,iM.M)(1789,"Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,iM.M)(1790,"Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return;}}rS.registerCommand("noop",()=>{}),e.s(["K",0,rS,"I",0,ry],63011);let rL=(0,iM.M)(1791,"Did you forget to open or close the quote?"),rk=(0,iM.M)(1792,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class rD{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/["-%\*-<>-_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{10340}\u{10342}-\u{10349}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10940}-\u{10959}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC7}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DB0}-\u{11DDB}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16EA0}-\u{16EB8}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF2}\u{16FF3}\u{17000}-\u{18CD5}\u{18CFF}-\u{18D1E}\u{18D80}-\u{18DF2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6E2}\u{1E6E4}\u{1E6E5}\u{1E6E7}-\u{1E6ED}\u{1E6F0}-\u{1E6F4}\u{1E6FE}\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81D}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{33479}]+/uy;}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">";case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,nf.S)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`);}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this;}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e});}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e});}else this._match(126)?this._addToken(9):this._error(rx("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(rx("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(rx("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string();}return this._start=this._current,this._addToken(20),Array.from(this._tokens);}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0);}_advance(){return this._input.charCodeAt(this._current++);}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current);}_addToken(e){this._tokens.push({type:e,offset:this._start});}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n);}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=rD._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start});}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(rL):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}));}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(rk);return;}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break;}e++;}for(;e<this._input.length&&rD._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;let n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start});}_isAtEnd(){return this._current>=this._input.length;}}_rD=rD;_rD._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)));_rD._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let rM=new Map();rM.set("false",!1),rM.set("true",!0),rM.set("isMac",i_.e),rM.set("isLinux",i_.b),rM.set("isWindows",i_.t),rM.set("isChromeOS",i_.$),rM.set("isWeb",i_.n),rM.set("isMacNative",i_.e&&!i_.n),rM.set("isEdge",i_.X),rM.set("isFirefox",i_.D),rM.set("isChrome",i_.o),rM.set("isSafari",i_.G);let rI=Object.prototype.hasOwnProperty,rN={regexParsingWithErrorRecovery:!0},rE=(0,iM.M)(1769,"Empty context key expression"),rT=(0,iM.M)(1770,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),rR=(0,iM.M)(1771,"'in' after 'not'."),rA=(0,iM.M)(1772,"closing parenthesis ')'"),rO=(0,iM.M)(1773,"Unexpected token"),rP=(0,iM.M)(1774,"Did you forget to put && or || before the token?"),rF=(0,iM.M)(1775,"Unexpected end of expression"),rB=(0,iM.M)(1776,"Did you forget to put a context key?");class rW{constructor(e=rN){this._config=e,this._scanner=new rD(),this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g;}parse(e){if(""===e)return void this._parsingErrors.push({message:rE,offset:0,lexeme:"",additionalInfo:rT});this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?rP:void 0;throw this._parsingErrors.push({message:rO,offset:e.offset,lexeme:rD.getLexeme(e),additionalInfo:t}),rW._parseError;}return e;}catch(e){if(e!==rW._parseError)throw e;return;}}_expr(){return this._or();}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t);}return 1===e.length?e[0]:rV.or(...e);}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t);}return 1===e.length?e[0]:rV.and(...e);}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),rz.INSTANCE;case 12:return this._advance(),rU.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,rA),e===null||e===void 0?void 0:e.negate();}case 17:return this._advance(),rQ.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e);}}return this._primary();}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),rV.true();case 12:return this._advance(),rV.false();case 0:{this._advance();let e=this._expr();return this._consume(1,rA),e;}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,s=n.lastIndexOf("/"),o=s===n.length-1?void 0:this._removeFlagsGY(n.substring(s+1));try{i=new RegExp(n.substring(1,s),o);}catch(t){throw this._errExpectedButGot("REGEX",e);}return r1.create(t,i);}switch(e.type){case 10:case 19:{let i,n=[e.lexeme];this._advance();let s=this._peek(),o=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:o++;break;case 1:o--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;}if(o<0)break;n.push(rD.getLexeme(s)),this._advance(),s=this._peek();}let r=n.join(""),a=r.lastIndexOf("/"),l=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));try{i=new RegExp(r.substring(1,a),l);}catch(t){throw this._errExpectedButGot("REGEX",e);}return rV.regex(t,i);}case 18:{let i=e.lexeme;this._advance();let n=null;if(!(0,i7._)(i)){let t=i.indexOf("/"),s=i.lastIndexOf("/");if(t!==s&&t>=0){let o=i.slice(t+1,s),r="i"===i[s+1]?"i":"";try{n=new RegExp(o,r);}catch(t){throw this._errExpectedButGot("REGEX",e);}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return r1.create(t,n);}default:throw this._errExpectedButGot("REGEX",this._peek());}}if(this._matchOne(14)){this._consume(13,rR);let e=this._value();return rV.notIn(t,e);}switch(this._peek().type){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return rV.equals(t,e);switch(e){case"true":return rV.has(t);case"false":return rV.not(t);default:return rV.equals(t,e);}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return rV.notEquals(t,e);switch(e){case"true":return rV.not(t);case"false":return rV.has(t);default:return rV.notEquals(t,e);}}case 5:return this._advance(),rJ.create(t,this._value());case 6:return this._advance(),r0.create(t,this._value());case 7:return this._advance(),rY.create(t,this._value());case 8:return this._advance(),rX.create(t,this._value());case 13:return this._advance(),rV.in(t,this._value());default:return rV.has(t);}}case 20:throw this._parsingErrors.push({message:rF,offset:e.offset,lexeme:"",additionalInfo:rB}),rW._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
1
|
+
function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r);};var e=RegExp.prototype,r=new WeakMap();function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),_setPrototypeOf(o,BabelRegExp.prototype);}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]];}return r;},Object.create(null));}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this));}return t;},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\$<([^>]+)(>|$)/g,function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:"";}));}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e);});}return e[Symbol.replace].call(this,t,p);},_wrapRegExp.apply(this,arguments);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3696,e=>{e.q("/_next/static/media/editorWebWorkerMain.15kgt-h8_tuhi.js");},48340,48957,84499,14947,26383,66076,33802,86300,45019,52379,4331,41601,90103,89326,80492,43491,33128,15738,7860,23808,22719,12235,66320,94899,66331,22686,9986,76140,63011,10475,34758,40194,92267,69302,19984,93221,48669,21788,45356,87282,76230,26077,6620,65911,74232,41211,96039,66749,49419,36538,84584,13415,19526,67919,70924,73299,14515,30432,56946,68604,36554,24357,70305,37784,10538,23504,25060,16948,66330,8238,21836,21828,37130,98049,74901,59142,84801,82620,81168,12705,70662,50117,52462,36240,66486,26946,96028,81454,5139,39063,76691,11320,12403,61704,41254,74117,2390,34669,55714,69589,49342,10062,99939,52051,97216,41090,32098,27281,46120,97544,16902,99399,74929,6226,37611,49377,2062,57278,29781,59095,21047,75870,59199,35699,30318,16154,82614,88737,31928,95331,75541,96250,11068,44649,79066,75981,88246,32893,41593,87654,72141,6326,2298,51104,44370,63492,96044,18046,51845,6726,30296,63491,2554,3544,38995,82747,16931,61173,25191,98474,31135,85699,82856,58232,20998,57826,98837,82802,86154,48321,12214,67427,89703,68887,9722,84055,17529,8896,80302,74199,51082,57321,89494,e=>{"use strict";var _ij,_iG,_iQ,_nt,_sN,_s2,_rf,_r_,_rD,_rW,_rV,_rz,_rU,_r2,_ah,_ac,_aZ,_a2,_ll,_Class,_hQ,_d_,_dC,_Class2,_dV,_pi,_pC,_pV,_pU,_fe,_fp,_fx,_fD,_fT,_mJ,_vL,_vT,_vA,_vF,_vW,_vJ,_bh,_bg,_Class3,_Class4,_Class5,_Cs,_Co,_CW,_C$,_wg,_wp,_wQ,_yw,_Sj,_Class6,_LY,_L2,_L3,_Class7,_Dx,_Nq,_Ep,_Ev,_EL,_Ek,_E2,_Te,_T_,_Tb,_Class8,_Class9,_TZ,_T2,_T3,_RO,_Ao,_Om,_Ok,_OY,_OJ,_O2,_Pk,_Bm,_B2,_B3,_Class0,_Ws,_WR,_WA,_WV,_W2,_Class1,_Class10,_Class11,_VP,_Class12,_VY,_VX,_V2,_HS,_Hx,_HT,_HG,_Class13,_Class14,_zZ,_z2,_Class15,_Un,_Class16,_UA,_Class17,_$A;let t,i,n,s,o,r,a,l,h,d,c,u,g,p,f,m,_,v,b,C,w,y,S,x,L,k,D,M,I,N,E,T,R,A,O,P;var F,B,W,V,H,z,U,$,K,q,j,G,Q,Z,Y,X,J,ee,et,ei,en,es,eo,er,ea,el,eh,ed,ec,eu,eg,ep,ef,em,e_,ev,eb,eC,ew,ey,eS,ex,eL,ek,eD,eM,eI,eN,eE,eT,eR,eA,eO,eP,eF,eB,eW,eV,eH,ez,eU,e$,eK,eq,ej,eG,eQ,eZ,eY,eX,eJ,e0,e1,e2,e3,e5,e6,e4,e9,e8,e7,te,tt,ti,tn,ts,to,tr,ta,tl,th,td,tc,tu,tg,tp,tf,tm,t_,tv,tb,tC,tw,ty,tS,tx,tL,tk,tD,tM,tI,tN,tE,tT,tR,tA,tO,tP,tF,tB,tW,tV,tH,tz,tU,t$,tK,tq,tj,tG,tQ,tZ,tY,tX,tJ,t0,t1,t2,t3,t5,t6,t4,t9,t8,t7,ie,it,ii,is,io,ir,ia,il,ih,id,ic,iu,ig,ip=e.i(41791),im=e.i(88616),i_=e.i(52726),iv=e.i(38290);let ib=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new iv.S(),this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event;}getZoomLevel(){return this._zoomLevel;}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel));}}(),iC=i_.e?1.5:1.35;class iw{static _create(e,t,i,n,s,o,r,a,l){0===o?o=iC*i:o<8&&(o*=i),(o=Math.round(o))<8&&(o=8);let h=1+(l?0:.1*ib.getZoomLevel());if(i*=h,o*=h,s===ix)if("normal"===t||"bold"===t)s=iS;else{let e=parseInt(t,10);s=`'wght' ${e}`,t="normal";}return new iw({pixelRatio:a,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:s,lineHeight:o,letterSpacing:r});}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing;}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`;}getMassagedFontFamily(){let e=iL.fontFamily,t=iw._wrapInQuotes(this.fontFamily);return this.fontFamily!==e?`${t}, ${e}`:t;}static _wrapInQuotes(e){return /[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e;}}class iy extends iw{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth;}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth;}}let iS="normal",ix="translate",iL={fontFamily:i_.e?"Menlo, Monaco, 'Courier New', monospace":i_.t?"Consolas, 'Courier New', monospace":"'Droid Sans Mono', monospace",fontWeight:"normal",fontSize:i_.e?12:14,lineHeight:0,letterSpacing:0};e.s(["G",0,iw,"$",0,iL,"V",0,iS,"R",0,ix,"d",0,iy],48957);let ik={enabled:!0,independentColorPoolPerBracketType:!1};var iD=e.i(25398),iM=e.i(39146);class iI{constructor(e){this._values=e;}hasChanged(e){return this._values[e];}}class iN{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0;}}class iE{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n;}applyUpdate(e,t){return iR(e,t);}compute(e,t,i){return i;}}class iT{constructor(e,t){this.newValue=e,this.didChange=t;}}function iR(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new iT(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){let i=Array.isArray(e)&&Array.isArray(t)&&(0,ip.m)(e,t);return new iT(t,!i);}let i=!1;for(let n in t)if(t.hasOwnProperty(n)){let s=iR(e[n],t[n]);s.didChange&&(e[n]=s.newValue,i=!0);}return new iT(e,i);}class iA{constructor(e,t){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=t;}applyUpdate(e,t){return iR(e,t);}validate(e){return this.defaultValue;}}class iO{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n;}applyUpdate(e,t){return iR(e,t);}compute(e,t,i){return i;}}function iP(e,t){return void 0===e?t:"false"!==e&&!!e;}class iF extends iO{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n);}validate(e){return iP(e,this.defaultValue);}}function iB(e,t,i,n){if("string"==typeof e&&(e=parseInt(e,10)),"number"!=typeof e||isNaN(e))return t;let s=e;return 0|(s=Math.min(n,s=Math.max(i,s)));}class iW extends iO{static clampedInt(e,t,i,n){return iB(e,t,i,n);}constructor(e,t,i,n,s,o){void 0!==o&&(o.type="integer",o.default=i,o.minimum=n,o.maximum=s),super(e,t,i,o),this.minimum=n,this.maximum=s;}validate(e){return iW.clampedInt(e,this.defaultValue,this.minimum,this.maximum);}}function iV(e,t,i,n){if(void 0===e)return t;let s=iH.float(e,t);return iH.clamp(s,i,n);}class iH extends iO{static clamp(e,t,i){return e<t?t:e>i?i:e;}static float(e,t){return("string"==typeof e&&(e=parseFloat(e)),"number"!=typeof e||isNaN(e))?t:e;}constructor(e,t,i,n,s,o,r){void 0!==s&&(s.type="number",s.default=i,s.minimum=o,s.maximum=r),super(e,t,i,s),this.validationFn=n,this.minimum=o,this.maximum=r;}validate(e){return this.validationFn(iH.float(e,this.defaultValue));}}class iz extends iO{static string(e,t){return"string"!=typeof e?t:e;}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n);}validate(e){return iz.string(e,this.defaultValue);}}function iU(e,t,i,n){return"string"!=typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e;}class i$ extends iO{constructor(e,t,i,n,s){void 0!==s&&(s.type="string",s.enum=n.slice(0),s.default=i),super(e,t,i,s),this._allowedValues=n;}validate(e){return iU(e,this.defaultValue,this._allowedValues);}}class iK extends iE{constructor(e,t,i,n,s,o,r){void 0!==r&&(r.type="string",r.enum=s,r.default=n),super(e,t,i,r),this._allowedValues=s,this._convert=o;}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e);}}function iq(e){switch(e){case"line":return eU.Line;case"block":return eU.Block;case"underline":return eU.Underline;case"line-thin":return eU.LineThin;case"block-outline":return eU.BlockOutline;case"underline-thin":return eU.UnderlineThin;}}(B=eU||(eU={}))[B.Line=1]="Line",B[B.Block=2]="Block",B[B.Underline=3]="Underline",B[B.LineThin=4]="LineThin",B[B.BlockOutline=5]="BlockOutline",B[B.UnderlineThin=6]="UnderlineThin";class ij extends iE{constructor(){super(60,"fontLigatures",ij.OFF,{anyOf:[{type:"boolean",description:(0,iM.M)(253,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:(0,iM.M)(254,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:(0,iM.M)(255,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1});}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e||0===e.length?ij.OFF:"true"===e?ij.ON:e:e?ij.ON:ij.OFF;}}_ij=ij;_ij.OFF='"liga" off, "calt" off';_ij.ON='"liga" on, "calt" on';class iG extends iE{constructor(){super(63,"fontVariations",iG.OFF,{anyOf:[{type:"boolean",description:(0,iM.M)(256,"Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:(0,iM.M)(257,"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:(0,iM.M)(258,"Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1});}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?iG.OFF:"true"===e?iG.TRANSLATE:e:e?iG.TRANSLATE:iG.OFF;}compute(e,t,i){return e.fontInfo.fontVariationSettings;}}_iG=iG;_iG.OFF=iS;_iG.TRANSLATE=ix;class iQ extends iE{constructor(){super(62,"fontWeight",iL.fontWeight,{anyOf:[{type:"number",minimum:iQ.MINIMUM_VALUE,maximum:iQ.MAXIMUM_VALUE,errorMessage:(0,iM.M)(260,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:iQ.SUGGESTION_VALUES}],default:iL.fontWeight,description:(0,iM.M)(261,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')});}validate(e){return"normal"===e||"bold"===e?e:String(iW.clampedInt(e,iL.fontWeight,iQ.MINIMUM_VALUE,iQ.MAXIMUM_VALUE));}}_iQ=iQ;_iQ.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];_iQ.MINIMUM_VALUE=1;_iQ.MAXIMUM_VALUE=1e3;class iZ extends iA{constructor(){super(166,{width:0,height:0,glyphMarginLeft:0,glyphMarginWidth:0,glyphMarginDecorationLaneCount:0,lineNumbersLeft:0,lineNumbersWidth:0,decorationsLeft:0,decorationsWidth:0,contentLeft:0,contentWidth:0,minimap:{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:0,minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:0},viewportColumn:0,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1,verticalScrollbarWidth:0,horizontalScrollbarHeight:0,overviewRuler:{top:0,width:0,height:0,right:0}});}compute(e,t,i){return iZ.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount});}static computeContainedMinimapLineCount(e){let t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight),n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));let s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:o};}static _computeMinimapLayout(e,t){let i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};let o=t.stableMinimapLayoutInput,r=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters,c=s>=2?Math.round(2*e.minimap.scale):e.minimap.scale,u=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,f=e.verticalScrollbarWidth,m=e.viewLineCount,_=e.remainingWidth,v=e.isViewportWrapping,b=d?2:3,C=Math.floor(s*n),w=C/s,y=!1,S=!1,x=b*c,L=c/s,k=1;if("fill"===g||"fit"===g){let{typicalViewportLineCount:i,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:u}=iZ.computeContainedMinimapLineCount({viewLineCount:m,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:s});if(m/u>1)y=!0,S=!0,x=1,L=(c=1)/s;else{let n=!1,h=c+1;if("fit"===g){let e=Math.ceil((o+m+l)*x);v&&r&&_<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>C;}if("fill"===g||n){y=!0;let n=c;x=Math.min(a*s,Math.max(1,Math.floor(1/d))),v&&r&&_<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),(c=Math.min(h,Math.max(1,Math.floor(x/b))))>n&&(k=Math.min(2,c/n)),L=c/s/k,C=Math.ceil(Math.max(i,o+m+l)*x),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=c):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0);}}}let D=Math.min(Math.floor(u*L),Math.max(0,Math.floor((_-f-2)*L/(l+L)))+8),M=Math.floor(s*D),I=M/s;return{renderMinimap:d?1:2,minimapLeft:"left"===p?0:i-D-f,minimapWidth:D,minimapHeightIsEditorHeight:y,minimapIsSampling:S,minimapScale:c,minimapLineHeight:x,minimapCanvasInnerWidth:M=Math.floor(M*k),minimapCanvasInnerHeight:C,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:w};}static computeLayout(e,t){let i=0|t.outerWidth,n=0|t.outerHeight,s=0|t.lineHeight,o=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,h=t.viewLineCount,d=e.get(154),c="inherit"===d?e.get(153):d,u="inherit"===c?e.get(149):c,g=e.get(152),p=e.get(161),f=t.isDominatedByLongLines,m=e.get(66),_=0!==e.get(76).renderType,v=e.get(77),b=e.get(119),C=e.get(96),w=e.get(81),y=e.get(117),S=y.verticalScrollbarSize,x=y.verticalHasArrows,L=y.arrowSize,k=y.horizontalScrollbarSize,D=e.get(52),M="never"!==e.get(126),I=e.get(74);D&&M&&(I+=16);let N=0;_&&(N=Math.round(Math.max(o,v)*a));let E=0;m&&(E=s*t.glyphMarginDecorationLaneCount);let T=0,R=0+E,A=R+N,O=A+I,P=i-E-N-I,F=!1,B=!1,W=-1;2===e.get(2)&&"inherit"===c&&f?(F=!0,B=!0):"on"===u||"bounded"===u?B=!0:"wordWrapColumn"===u&&(W=g);let V=iZ._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:C.top,paddingBottom:C.bottom,minimap:w,verticalScrollbarWidth:S,viewLineCount:h,remainingWidth:P,isViewportWrapping:B},t.memory||new iN());0!==V.renderMinimap&&0===V.minimapLeft&&(T+=V.minimapWidth,R+=V.minimapWidth,A+=V.minimapWidth,O+=V.minimapWidth);let H=P-V.minimapWidth,z=Math.max(1,Math.floor((H-S-2)/r)),U=x?L:0;return B&&(W=Math.max(1,z-!!p),"bounded"===u&&(W=Math.min(W,g))),{width:i,height:n,glyphMarginLeft:T,glyphMarginWidth:E,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:N,decorationsLeft:A,decorationsWidth:I,contentLeft:O,contentWidth:H,minimap:V,viewportColumn:z,isWordWrapMinified:F,isViewportWrapping:B,wrappingColumn:W,verticalScrollbarWidth:S,horizontalScrollbarHeight:k,overviewRuler:{top:U,width:S,height:n-2*U,right:0}};}}function iY(e){let t=e.get(112);return"editable"===t?e.get(104):"on"!==t;}function iX(e){return!e.get(173);}function iJ(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1;}}(W=e$||(e$={})).Off="off",W.OnCode="onCode",W.On="on";let i0="inUntrustedWorkspace";function i1(e,t,i){let n=i.indexOf(e);return-1===n?t:i[n];}let i2=[];function i3(e){return i2[e.id]=e,e;}let i5={acceptSuggestionOnCommitCharacter:i3(new iF(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:(0,iM.M)(468,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:i3(new i$(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",(0,iM.M)(469,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:(0,iM.M)(470,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:i3(new class extends iE{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[(0,iM.M)(226,"Use platform APIs to detect when a Screen Reader is attached."),(0,iM.M)(227,"Optimize for usage with a Screen Reader."),(0,iM.M)(228,"Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:(0,iM.M)(229,"Controls if the UI should run in a mode where it is optimized for screen readers.")});}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2;}return this.defaultValue;}compute(e,t,i){return 0===i?e.accessibilitySupport:i;}}()),accessibilityPageSize:i3(new iW(3,"accessibilityPageSize",500,1,0x40000000,{description:(0,iM.M)(471,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),allowOverflow:i3(new iF(4,"allowOverflow",!0)),allowVariableLineHeights:i3(new iF(5,"allowVariableLineHeights",!0,{description:(0,iM.M)(472,"Controls whether to allow using variable line heights in the editor.")})),allowVariableFonts:i3(new iF(6,"allowVariableFonts",!0,{description:(0,iM.M)(473,"Controls whether to allow using variable fonts in the editor.")})),allowVariableFontsInAccessibilityMode:i3(new iF(7,"allowVariableFontsInAccessibilityMode",!1,{description:(0,iM.M)(474,"Controls whether to allow using variable fonts in the editor in the accessibility mode."),tags:["accessibility"]})),ariaLabel:i3(new iz(8,"ariaLabel",(0,iM.M)(475,"Editor content"))),ariaRequired:i3(new iF(9,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:i3(new iF(12,"screenReaderAnnounceInlineSuggestion",!0,{description:(0,iM.M)(476,"Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:i3(new i$(10,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,iM.M)(477,"Use language configurations to determine when to autoclose brackets."),(0,iM.M)(478,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:(0,iM.M)(479,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:i3(new i$(11,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,iM.M)(480,"Use language configurations to determine when to autoclose comments."),(0,iM.M)(481,"Autoclose comments only when the cursor is to the left of whitespace."),""],description:(0,iM.M)(482,"Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:i3(new i$(13,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",(0,iM.M)(483,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:(0,iM.M)(484,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:i3(new i$(14,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",(0,iM.M)(485,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:(0,iM.M)(486,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:i3(new i$(15,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",(0,iM.M)(487,"Use language configurations to determine when to autoclose quotes."),(0,iM.M)(488,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:(0,iM.M)(489,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:i3(new iK(16,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4;}},{enumDescriptions:[(0,iM.M)(490,"The editor will not insert indentation automatically."),(0,iM.M)(491,"The editor will keep the current line's indentation."),(0,iM.M)(492,"The editor will keep the current line's indentation and honor language defined brackets."),(0,iM.M)(493,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),(0,iM.M)(494,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:(0,iM.M)(495,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),autoIndentOnPaste:i3(new iF(17,"autoIndentOnPaste",!1,{description:(0,iM.M)(496,"Controls whether the editor should automatically auto-indent the pasted content.")})),autoIndentOnPasteWithinString:i3(new iF(18,"autoIndentOnPasteWithinString",!0,{description:(0,iM.M)(497,"Controls whether the editor should automatically auto-indent the pasted content when pasted within a string. This takes effect when autoIndentOnPaste is true.")})),automaticLayout:i3(new iF(19,"automaticLayout",!1)),autoSurround:i3(new i$(20,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[(0,iM.M)(498,"Use language configurations to determine when to automatically surround selections."),(0,iM.M)(499,"Surround with quotes but not brackets."),(0,iM.M)(500,"Surround with brackets but not quotes."),""],description:(0,iM.M)(501,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:i3(new class extends iE{constructor(){let e={enabled:ik.enabled,independentColorPoolPerBracketType:ik.independentColorPoolPerBracketType};super(21,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,iM.M)(389,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:(0,iM.M)(390,"Controls whether each bracket type has its own independent color pool.")}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:iP(e.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}:this.defaultValue;}}()),bracketPairGuides:i3(new class extends iE{constructor(){let e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(22,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[(0,iM.M)(391,"Enables bracket pair guides."),(0,iM.M)(392,"Enables bracket pair guides only for the active bracket pair."),(0,iM.M)(393,"Disables bracket pair guides.")],default:e.bracketPairs,description:(0,iM.M)(394,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[(0,iM.M)(395,"Enables horizontal guides as addition to vertical bracket pair guides."),(0,iM.M)(396,"Enables horizontal guides only for the active bracket pair."),(0,iM.M)(397,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:(0,iM.M)(398,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:(0,iM.M)(399,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:(0,iM.M)(400,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[(0,iM.M)(401,"Highlights the active indent guide."),(0,iM.M)(402,"Highlights the active indent guide even if bracket guides are highlighted."),(0,iM.M)(403,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:(0,iM.M)(404,"Controls whether the editor should highlight the active indent guide.")}});}validate(e){return e&&"object"==typeof e?{bracketPairs:i1(e.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:i1(e.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:iP(e.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:iP(e.indentation,this.defaultValue.indentation),highlightActiveIndentation:i1(e.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}:this.defaultValue;}}()),stickyTabStops:i3(new iF(132,"stickyTabStops",!1,{description:(0,iM.M)(502,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:i3(new iF(23,"codeLens",!0,{description:(0,iM.M)(503,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:i3(new iz(24,"codeLensFontFamily","",{description:(0,iM.M)(504,"Controls the font family for CodeLens.")})),codeLensFontSize:i3(new iW(25,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:(0,iM.M)(505,"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:i3(new iF(26,"colorDecorators",!0,{description:(0,iM.M)(506,"Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:i3(new i$(169,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[(0,iM.M)(507,"Make the color picker appear both on click and hover of the color decorator"),(0,iM.M)(508,"Make the color picker appear on hover of the color decorator"),(0,iM.M)(509,"Make the color picker appear on click of the color decorator")],description:(0,iM.M)(510,"Controls the condition to make a color picker appear from a color decorator.")})),colorDecoratorsLimit:i3(new iW(27,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:(0,iM.M)(511,"Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:i3(new iF(28,"columnSelection",!1,{description:(0,iM.M)(512,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:i3(new class extends iE{constructor(){let e={insertSpace:!0,ignoreEmptyLines:!0};super(29,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:(0,iM.M)(230,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:(0,iM.M)(231,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}});}validate(e){return e&&"object"==typeof e?{insertSpace:iP(e.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:iP(e.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}:this.defaultValue;}}()),contextmenu:i3(new iF(30,"contextmenu",!0)),copyWithSyntaxHighlighting:i3(new iF(31,"copyWithSyntaxHighlighting",!0,{description:(0,iM.M)(513,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:i3(new iK(32,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5;}},{description:(0,iM.M)(514,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:i3(new i$(33,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[(0,iM.M)(515,"Smooth caret animation is disabled."),(0,iM.M)(516,"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),(0,iM.M)(517,"Smooth caret animation is always enabled.")],description:(0,iM.M)(518,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:i3(new iK(34,"cursorStyle",eU.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],iq,{description:(0,iM.M)(519,"Controls the cursor style in insert input mode.")})),overtypeCursorStyle:i3(new iK(92,"overtypeCursorStyle",eU.Block,"block",["line","block","underline","line-thin","block-outline","underline-thin"],iq,{description:(0,iM.M)(520,"Controls the cursor style in overtype input mode.")})),cursorSurroundingLines:i3(new iW(35,"cursorSurroundingLines",0,0,0x40000000,{description:(0,iM.M)(521,"Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:i3(new i$(36,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[(0,iM.M)(522,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),(0,iM.M)(523,"`cursorSurroundingLines` is enforced always.")],markdownDescription:(0,iM.M)(524,"Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:i3(new iW(37,"cursorWidth",0,0,0x40000000,{markdownDescription:(0,iM.M)(525,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),cursorHeight:i3(new iW(38,"cursorHeight",0,0,0x40000000,{markdownDescription:(0,iM.M)(526,"Controls the height of the cursor when `#editor.cursorStyle#` is set to `line`. Cursor's max height depends on line height.")})),disableLayerHinting:i3(new iF(39,"disableLayerHinting",!1)),disableMonospaceOptimizations:i3(new iF(40,"disableMonospaceOptimizations",!1)),domReadOnly:i3(new iF(41,"domReadOnly",!1)),doubleClickSelectsBlock:i3(new iF(174,"doubleClickSelectsBlock",!0,{description:(0,iM.M)(527,"Controls whether double-clicking next to a bracket or quote selects the content inside.")})),dragAndDrop:i3(new iF(42,"dragAndDrop",!0,{description:(0,iM.M)(528,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:i3(new class extends iF{constructor(){super(45,"emptySelectionClipboard",!0,{description:(0,iM.M)(232,"Controls whether copying without a selection copies the current line.")});}compute(e,t,i){return i&&e.emptySelectionClipboard;}}()),dropIntoEditor:i3(new class extends iE{constructor(){let e={enabled:!0,showDropSelector:"afterDrop"};super(43,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,iM.M)(460,"Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:(0,iM.M)(461,"Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[(0,iM.M)(462,"Show the drop selector widget after a file is dropped into the editor."),(0,iM.M)(463,"Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),showDropSelector:iU(e.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}:this.defaultValue;}}()),editContext:i3(new iF(44,"editContext",!0,{description:(0,iM.M)(529,"Sets whether the EditContext API should be used instead of the text area to power input in the editor."),included:i_.o||i_.X||i_.u})),renderRichScreenReaderContent:i3(new iF(107,"renderRichScreenReaderContent",!1,{markdownDescription:(0,iM.M)(530,"Whether to render rich screen reader content when the `#editor.editContext#` setting is enabled.")})),stickyScroll:i3(new class extends iE{constructor(){let e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(131,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(292,"Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:(0,iM.M)(293,"Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:(0,iM.M)(294,"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:(0,iM.M)(295,"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),maxLineCount:iW.clampedInt(e.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:iU(e.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:iP(e.scrollWithEditor,this.defaultValue.scrollWithEditor)}:this.defaultValue;}}()),experimentalGpuAcceleration:i3(new i$(46,"experimentalGpuAcceleration","off",["off","on"],{tags:["experimental"],enumDescriptions:[(0,iM.M)(531,"Use regular DOM-based rendering."),(0,iM.M)(532,"Use GPU acceleration.")],description:(0,iM.M)(533,"Controls whether to use the experimental GPU acceleration to render the editor.")})),experimentalWhitespaceRendering:i3(new i$(47,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[(0,iM.M)(534,"Use a new rendering method with svgs."),(0,iM.M)(535,"Use a new rendering method with font characters."),(0,iM.M)(536,"Use the stable rendering method.")],description:(0,iM.M)(537,"Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:i3(new iz(48,"extraEditorClassName","")),fastScrollSensitivity:i3(new iH(49,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:(0,iM.M)(538,"Scrolling speed multiplier when pressing `Alt`.")})),find:i3(new class extends iE{constructor(){let e={cursorMoveOnType:!0,findOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0,closeOnResult:!1,history:"workspace",replaceHistory:"workspace"};super(50,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:(0,iM.M)(233,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[(0,iM.M)(234,"Never seed search string from the editor selection."),(0,iM.M)(235,"Always seed search string from the editor selection, including word at cursor position."),(0,iM.M)(236,"Only seed search string from the editor selection.")],description:(0,iM.M)(237,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[(0,iM.M)(238,"Never turn on Find in Selection automatically (default)."),(0,iM.M)(239,"Always turn on Find in Selection automatically."),(0,iM.M)(240,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:(0,iM.M)(241,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:(0,iM.M)(242,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:i_.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:(0,iM.M)(243,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:(0,iM.M)(244,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")},"editor.find.closeOnResult":{type:"boolean",default:e.closeOnResult,description:(0,iM.M)(245,"Controls whether the Find Widget closes after an explicit find navigation command lands on a result.")},"editor.find.history":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[(0,iM.M)(246,"Do not store search history from the find widget."),(0,iM.M)(247,"Store search history across the active workspace")],description:(0,iM.M)(248,"Controls how the find widget history should be stored")},"editor.find.replaceHistory":{type:"string",enum:["never","workspace"],default:"workspace",enumDescriptions:[(0,iM.M)(249,"Do not store history from the replace widget."),(0,iM.M)(250,"Store replace history across the active workspace")],description:(0,iM.M)(251,"Controls how the replace widget history should be stored")},"editor.find.findOnType":{type:"boolean",default:e.findOnType,description:(0,iM.M)(252,"Controls whether the Find Widget should search as you type.")}});}validate(e){return e&&"object"==typeof e?{cursorMoveOnType:iP(e.cursorMoveOnType,this.defaultValue.cursorMoveOnType),findOnType:iP(e.findOnType,this.defaultValue.findOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":iU(e.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":iU(e.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:iP(e.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:iP(e.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:iP(e.loop,this.defaultValue.loop),closeOnResult:iP(e.closeOnResult,this.defaultValue.closeOnResult),history:iU(e.history,this.defaultValue.history,["never","workspace"]),replaceHistory:iU(e.replaceHistory,this.defaultValue.replaceHistory,["never","workspace"])}:this.defaultValue;}}()),fixedOverflowWidgets:i3(new iF(51,"fixedOverflowWidgets",!1)),folding:i3(new iF(52,"folding",!0,{description:(0,iM.M)(539,"Controls whether the editor has code folding enabled.")})),foldingStrategy:i3(new i$(53,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[(0,iM.M)(540,"Use a language-specific folding strategy if available, else the indentation-based one."),(0,iM.M)(541,"Use the indentation-based folding strategy.")],description:(0,iM.M)(542,"Controls the strategy for computing folding ranges.")})),foldingHighlight:i3(new iF(54,"foldingHighlight",!0,{description:(0,iM.M)(543,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:i3(new iF(55,"foldingImportsByDefault",!1,{description:(0,iM.M)(544,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:i3(new iW(56,"foldingMaximumRegions",5e3,10,65e3,{description:(0,iM.M)(545,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:i3(new iF(57,"unfoldOnClickAfterEndOfLine",!1,{description:(0,iM.M)(546,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:i3(new iz(58,"fontFamily",iL.fontFamily,{description:(0,iM.M)(547,"Controls the font family.")})),fontInfo:i3(new class extends iA{constructor(){super(59,new iy({pixelRatio:0,fontFamily:"",fontWeight:"",fontSize:0,fontFeatureSettings:"",fontVariationSettings:"",lineHeight:0,letterSpacing:0,isMonospace:!1,typicalHalfwidthCharacterWidth:0,typicalFullwidthCharacterWidth:0,canUseHalfwidthRightwardsArrow:!1,spaceWidth:0,middotWidth:0,wsmiddotWidth:0,maxDigitWidth:0},!1));}compute(e,t,i){return e.fontInfo;}}()),fontLigatures2:i3(new ij()),fontSize:i3(new class extends iO{constructor(){super(61,"fontSize",iL.fontSize,{type:"number",minimum:6,maximum:100,default:iL.fontSize,description:(0,iM.M)(259,"Controls the font size in pixels.")});}validate(e){let t=iH.float(e,this.defaultValue);return 0===t?iL.fontSize:iH.clamp(t,6,100);}compute(e,t,i){return e.fontInfo.fontSize;}}()),fontWeight:i3(new iQ()),fontVariations:i3(new iG()),formatOnPaste:i3(new iF(64,"formatOnPaste",!1,{description:(0,iM.M)(548,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:i3(new iF(65,"formatOnType",!1,{description:(0,iM.M)(549,"Controls whether the editor should automatically format the line after typing.")})),fullwidthCharacterWidth:i3(new i$(175,"fullwidthCharacterWidth","font",["font","twoCells"],{enumDescriptions:[(0,iM.M)(550,"Render full-width characters using the width defined by the font."),(0,iM.M)(551,"Render full-width characters centered in exactly two character cells. Only applies to monospace fonts. Does not apply to multi codepoint full-width characters or to GPU rendering. This has a performance impact on line rendering.")],description:(0,iM.M)(552,"Controls the width used to render full-width characters.")})),glyphMargin:i3(new iF(66,"glyphMargin",!0,{description:(0,iM.M)(553,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:i3(new class extends iE{constructor(){let e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[(0,iM.M)(262,"Show Peek view of the results (default)"),(0,iM.M)(263,"Go to the primary result and show a Peek view"),(0,iM.M)(264,"Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(67,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:(0,iM.M)(265,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:(0,iM.M)(266,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:(0,iM.M)(267,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:(0,iM.M)(268,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:(0,iM.M)(269,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:(0,iM.M)(270,"Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:(0,iM.M)(271,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:(0,iM.M)(272,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:(0,iM.M)(273,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:(0,iM.M)(274,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:(0,iM.M)(275,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}});}validate(e){return e&&"object"==typeof e?{multiple:iU(e.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:iU(e.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:iU(e.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:iU(e.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:iU(e.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:iU(e.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:iU(e.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:iz.string(e.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:iz.string(e.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:iz.string(e.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:iz.string(e.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:iz.string(e.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:iz.string(e.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}:this.defaultValue;}}()),hideCursorInOverviewRuler:i3(new iF(68,"hideCursorInOverviewRuler",!1,{description:(0,iM.M)(554,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:i3(new class extends iE{constructor(){let e={enabled:"on",delay:300,hidingDelay:300,sticky:!0,above:!0,showLongLineWarning:!0};super(69,"hover",e,{"editor.hover.enabled":{type:"string",enum:["on","off","onKeyboardModifier"],default:e.enabled,markdownEnumDescriptions:[(0,iM.M)(276,"Hover is enabled."),(0,iM.M)(277,"Hover is disabled."),(0,iM.M)(278,"Hover is shown when holding `{0}` or `Alt` (the opposite modifier of `#editor.multiCursorModifier#`)",i_.e?"Command":"Control")],description:(0,iM.M)(279,"Controls whether the hover is shown."),keywords:["hint","info","tooltip"]},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:(0,iM.M)(280,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:(0,iM.M)(281,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,markdownDescription:(0,iM.M)(282,"Controls the delay in milliseconds after which the hover is hidden. Requires `#editor.hover.sticky#` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:(0,iM.M)(283,"Prefer showing hovers above the line, if there's space.")},"editor.hover.showLongLineWarning":{type:"boolean",default:e.showLongLineWarning,description:(0,iM.M)(284,"Controls whether long line warning hovers are shown, such as when tokenization is skipped or rendering is paused.")}});}validate(e){return e&&"object"==typeof e?{enabled:iU(e.enabled,this.defaultValue.enabled,["on","off","onKeyboardModifier"]),delay:iW.clampedInt(e.delay,this.defaultValue.delay,0,1e4),sticky:iP(e.sticky,this.defaultValue.sticky),hidingDelay:iW.clampedInt(e.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:iP(e.above,this.defaultValue.above),showLongLineWarning:iP(e.showLongLineWarning,this.defaultValue.showLongLineWarning)}:this.defaultValue;}}()),inDiffEditor:i3(new iF(70,"inDiffEditor",!1)),inertialScroll:i3(new iF(158,"inertialScroll",!1,{description:(0,iM.M)(555,"Make scrolling inertial - mostly useful with touchpad on linux.")})),letterSpacing:i3(new iH(72,"letterSpacing",iL.letterSpacing,e=>iH.clamp(e,-5,20),{description:(0,iM.M)(556,"Controls the letter spacing in pixels.")})),lightbulb:i3(new class extends iE{constructor(){let e={enabled:e$.OnCode};super(73,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",enum:[e$.Off,e$.OnCode,e$.On],default:e.enabled,enumDescriptions:[(0,iM.M)(288,"Disable the code action menu."),(0,iM.M)(289,"Show the code action menu when the cursor is on lines with code."),(0,iM.M)(290,"Show the code action menu when the cursor is on lines with code or on empty lines.")],description:(0,iM.M)(291,"Enables the Code Action lightbulb in the editor.")}});}validate(e){return e&&"object"==typeof e?{enabled:iU(e.enabled,this.defaultValue.enabled,[e$.Off,e$.OnCode,e$.On])}:this.defaultValue;}}()),lineDecorationsWidth:i3(new class extends iE{constructor(){super(74,"lineDecorationsWidth",10);}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):iW.clampedInt(e,this.defaultValue,0,1e3);}compute(e,t,i){return i<0?iW.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i;}}()),lineHeight:i3(new class extends iH{constructor(){super(75,"lineHeight",iL.lineHeight,e=>iH.clamp(e,0,150),{markdownDescription:(0,iM.M)(305,"Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")},0,150);}compute(e,t,i){return e.fontInfo.lineHeight;}}()),lineNumbers:i3(new class extends iE{constructor(){super(76,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[(0,iM.M)(341,"Line numbers are not rendered."),(0,iM.M)(342,"Line numbers are rendered as absolute number."),(0,iM.M)(343,"Line numbers are rendered as distance in lines to cursor position."),(0,iM.M)(344,"Line numbers are rendered every 10 lines.")],default:"on",description:(0,iM.M)(345,"Controls the display of line numbers.")});}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:+("on"===e)),{renderType:t,renderFn:i};}}()),lineNumbersMinChars:i3(new iW(77,"lineNumbersMinChars",5,1,300)),linkedEditing:i3(new iF(78,"linkedEditing",!1,{description:(0,iM.M)(557,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:i3(new iF(79,"links",!0,{description:(0,iM.M)(558,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:i3(new i$(80,"matchBrackets","always",["always","near","never"],{description:(0,iM.M)(559,"Highlight matching brackets.")})),minimap:i3(new class extends iE{constructor(){let e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:"none",renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,markSectionHeaderRegex:"\\bMARK:\\s*(?<separator>-?)\\s*(?<label>.*)$",sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(81,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(306,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"string",enum:["none","mouseover","scroll"],enumDescriptions:[(0,iM.M)(307,"The minimap is always shown."),(0,iM.M)(308,"The minimap is hidden when mouse is not over the minimap and shown when mouse is over the minimap."),(0,iM.M)(309,"The minimap is only shown when the editor is scrolled")],default:e.autohide,description:(0,iM.M)(310,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[(0,iM.M)(311,"The minimap has the same size as the editor contents (and might scroll)."),(0,iM.M)(312,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),(0,iM.M)(313,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:(0,iM.M)(314,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:(0,iM.M)(315,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:(0,iM.M)(316,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:(0,iM.M)(317,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:(0,iM.M)(318,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:(0,iM.M)(319,"Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:(0,iM.M)(320,"Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:(0,iM.M)(321,"Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.markSectionHeaderRegex":{type:"string",default:e.markSectionHeaderRegex,description:(0,iM.M)(322,"Defines the regular expression used to find section headers in comments. The regex must contain a named match group `label` (written as `(?<label>.+)`) that encapsulates the section header, otherwise it will not work. Optionally you can include another match group named `separator`. Use \\n in the pattern to match multi-line headers.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:(0,iM.M)(323,"Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:(0,iM.M)(324,"Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}});}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;let t=this.defaultValue.markSectionHeaderRegex,i=e.markSectionHeaderRegex;if("string"==typeof i)try{RegExp(i,"d"),t=i;}catch{}return{enabled:iP(e.enabled,this.defaultValue.enabled),autohide:iU(e.autohide,this.defaultValue.autohide,["none","mouseover","scroll"]),size:iU(e.size,this.defaultValue.size,["proportional","fill","fit"]),side:iU(e.side,this.defaultValue.side,["right","left"]),showSlider:iU(e.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:iP(e.renderCharacters,this.defaultValue.renderCharacters),scale:iW.clampedInt(e.scale,1,1,3),maxColumn:iW.clampedInt(e.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:iP(e.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:iP(e.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),markSectionHeaderRegex:t,sectionHeaderFontSize:iH.clamp(iH.float(e.sectionHeaderFontSize,this.defaultValue.sectionHeaderFontSize),4,32),sectionHeaderLetterSpacing:iH.clamp(iH.float(e.sectionHeaderLetterSpacing,this.defaultValue.sectionHeaderLetterSpacing),0,5)};}}()),mouseStyle:i3(new i$(82,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:i3(new iH(83,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:(0,iM.M)(560,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:i3(new iF(84,"mouseWheelZoom",!1,{markdownDescription:i_.e?(0,iM.M)(561,"Zoom the font of the editor when using mouse wheel and holding `Cmd`."):(0,iM.M)(562,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:i3(new iF(85,"multiCursorMergeOverlapping",!0,{description:(0,iM.M)(563,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:i3(new iK(86,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(e){return"ctrlCmd"===e?i_.e?"metaKey":"ctrlKey":"altKey";},{markdownEnumDescriptions:[(0,iM.M)(564,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,iM.M)(565,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:(0,iM.M)(566,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),mouseMiddleClickAction:i3(new i$(87,"mouseMiddleClickAction","default",["default","openLink","ctrlLeftClick"],{description:(0,iM.M)(567,"Controls what happens when middle mouse button is clicked in the editor.")})),multiCursorPaste:i3(new i$(88,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[(0,iM.M)(568,"Each cursor pastes a single line of the text."),(0,iM.M)(569,"Each cursor pastes the full text.")],markdownDescription:(0,iM.M)(570,"Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:i3(new iW(89,"multiCursorLimit",1e4,1,1e5,{markdownDescription:(0,iM.M)(571,"Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:i3(new i$(90,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[(0,iM.M)(572,"Does not highlight occurrences."),(0,iM.M)(573,"Highlights occurrences only in the current file."),(0,iM.M)(574,"Experimental: Highlights occurrences across all valid open files.")],markdownDescription:(0,iM.M)(575,"Controls whether occurrences should be highlighted across open files.")})),occurrencesHighlightDelay:i3(new iW(91,"occurrencesHighlightDelay",0,0,2e3,{description:(0,iM.M)(576,"Controls the delay in milliseconds after which occurrences are highlighted."),tags:["preview"]})),overtypeOnPaste:i3(new iF(93,"overtypeOnPaste",!0,{description:(0,iM.M)(577,"Controls whether pasting should overtype.")})),overviewRulerBorder:i3(new iF(94,"overviewRulerBorder",!0,{description:(0,iM.M)(578,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:i3(new iW(95,"overviewRulerLanes",3,0,3)),padding:i3(new class extends iE{constructor(){super(96,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:(0,iM.M)(325,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:(0,iM.M)(326,"Controls the amount of space between the bottom edge of the editor and the last line.")}});}validate(e){return e&&"object"==typeof e?{top:iW.clampedInt(e.top,0,0,1e3),bottom:iW.clampedInt(e.bottom,0,0,1e3)}:this.defaultValue;}}()),pasteAs:i3(new class extends iE{constructor(){let e={enabled:!0,showPasteSelector:"afterPaste"};super(97,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:(0,iM.M)(464,"Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:(0,iM.M)(465,"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[(0,iM.M)(466,"Show the paste selector widget after content is pasted into the editor."),(0,iM.M)(467,"Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),showPasteSelector:iU(e.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}:this.defaultValue;}}()),parameterHints:i3(new class extends iE{constructor(){let e={enabled:!0,cycle:!0};super(98,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(327,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:(0,iM.M)(328,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),cycle:iP(e.cycle,this.defaultValue.cycle)}:this.defaultValue;}}()),peekWidgetDefaultFocus:i3(new i$(99,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[(0,iM.M)(579,"Focus the tree when opening peek"),(0,iM.M)(580,"Focus the editor when opening peek")],description:(0,iM.M)(581,"Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:i3(new class extends iE{constructor(){super(100,"placeholder",void 0);}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?e:this.defaultValue;}}()),definitionLinkOpensInPeek:i3(new iF(101,"definitionLinkOpensInPeek",!1,{description:(0,iM.M)(582,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:i3(new class extends iE{constructor(){let e={other:"offWhenInlineCompletions",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off","offWhenInlineCompletions"],enumDescriptions:[(0,iM.M)(329,"Quick suggestions show inside the suggest widget"),(0,iM.M)(330,"Quick suggestions show as ghost text"),(0,iM.M)(331,"Quick suggestions are disabled"),(0,iM.M)(332,"Quick suggestions are disabled when inline completions are showing")]}];super(102,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"string",enum:["on","inline","off","offWhenInlineCompletions"],enumDescriptions:[(0,iM.M)(333,"Quick suggestions are enabled for all token types"),(0,iM.M)(334,"Quick suggestions show as ghost text for all token types"),(0,iM.M)(335,"Quick suggestions are disabled for all token types"),(0,iM.M)(336,"Quick suggestions are disabled for all token types when inline completions are showing")]},{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:(0,iM.M)(337,"Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:(0,iM.M)(338,"Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:(0,iM.M)(339,"Enable quick suggestions outside of strings and comments.")}}}],default:e,markdownDescription:(0,iM.M)(340,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`"),experiment:{mode:"auto"}}),this.defaultValue=e;}validate(e){let t;if("boolean"==typeof e){let t=e?"on":"off";return{comments:t,strings:t,other:t};}if("string"==typeof e){let t=iU(e,this.defaultValue.other,["on","inline","off","offWhenInlineCompletions"]);return{comments:t,strings:t,other:t};}if(!e||"object"!=typeof e)return this.defaultValue;let{other:i,comments:n,strings:s}=e,o=["on","inline","off","offWhenInlineCompletions"];return t="boolean"==typeof i?i?"on":"off":iU(i,this.defaultValue.other,o),{other:t,comments:"boolean"==typeof n?n?"on":"off":iU(n,this.defaultValue.comments,o),strings:"boolean"==typeof s?s?"on":"off":iU(s,this.defaultValue.strings,o)};}}()),quickSuggestionsDelay:i3(new iW(103,"quickSuggestionsDelay",10,0,0x40000000,{description:(0,iM.M)(583,"Controls the delay in milliseconds after which quick suggestions will show up."),experiment:{mode:"auto"}})),readOnly:i3(new iF(104,"readOnly",!1)),readOnlyMessage:i3(new class extends iE{constructor(){super(105,"readOnlyMessage",void 0);}validate(e){return e&&"object"==typeof e?e:this.defaultValue;}}()),renameOnType:i3(new iF(106,"renameOnType",!1,{description:(0,iM.M)(584,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:(0,iM.M)(585,"Deprecated, use `#editor.linkedEditing#` instead.")})),renderControlCharacters:i3(new iF(108,"renderControlCharacters",!0,{description:(0,iM.M)(586,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:i3(new i$(109,"renderFinalNewline",i_.b?"dimmed":"on",["off","on","dimmed"],{description:(0,iM.M)(587,"Render last line number when the file ends with a newline.")})),renderLineHighlight:i3(new i$(110,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",(0,iM.M)(588,"Highlights both the gutter and the current line.")],description:(0,iM.M)(589,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:i3(new iF(111,"renderLineHighlightOnlyWhenFocus",!1,{description:(0,iM.M)(590,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:i3(new i$(112,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:i3(new i$(113,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",(0,iM.M)(591,"Render whitespace characters except for single spaces between words."),(0,iM.M)(592,"Render whitespace characters only on selected text."),(0,iM.M)(593,"Render only trailing whitespace characters."),""],description:(0,iM.M)(594,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:i3(new iW(114,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:i3(new iF(115,"roundedSelection",!0,{description:(0,iM.M)(595,"Controls whether selections should have rounded corners.")})),rulers:i3(new class extends iE{constructor(){let e=[],t={type:"number",description:(0,iM.M)(346,"Number of monospace characters at which this editor ruler will render.")};super(116,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:(0,iM.M)(347,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:(0,iM.M)(348,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")});}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)"number"==typeof i?t.push({column:iW.clampedInt(i,0,0,1e4),color:null}):i&&"object"==typeof i&&t.push({column:iW.clampedInt(i.column,0,0,1e4),color:i.color});return t.sort((e,t)=>e.column-t.column),t;}return this.defaultValue;}}()),scrollbar:i3(new class extends iE{constructor(){let e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(117,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,iM.M)(349,"The vertical scrollbar will be visible only when necessary."),(0,iM.M)(350,"The vertical scrollbar will always be visible."),(0,iM.M)(351,"The vertical scrollbar will always be hidden.")],default:"auto",description:(0,iM.M)(352,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[(0,iM.M)(353,"The horizontal scrollbar will be visible only when necessary."),(0,iM.M)(354,"The horizontal scrollbar will always be visible."),(0,iM.M)(355,"The horizontal scrollbar will always be hidden.")],default:"auto",description:(0,iM.M)(356,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:(0,iM.M)(357,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:(0,iM.M)(358,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:(0,iM.M)(359,"Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:(0,iM.M)(360,"When set, the horizontal scrollbar will not increase the size of the editor's content.")}});}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;let t=iW.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=iW.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:iW.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:iJ(e.vertical,this.defaultValue.vertical),horizontal:iJ(e.horizontal,this.defaultValue.horizontal),useShadows:iP(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:iP(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:iP(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:iP(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:iP(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:iW.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:iW.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:iP(e.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:iP(e.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)};}}()),scrollBeyondLastColumn:i3(new iW(118,"scrollBeyondLastColumn",4,0,0x40000000,{description:(0,iM.M)(596,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:i3(new iF(119,"scrollBeyondLastLine",!0,{description:(0,iM.M)(597,"Controls whether the editor will scroll beyond the last line.")})),scrollOnMiddleClick:i3(new iF(172,"scrollOnMiddleClick",!1,{description:(0,iM.M)(598,"Controls whether the editor will scroll when the middle button is pressed.")})),scrollPredominantAxis:i3(new iF(120,"scrollPredominantAxis",!0,{description:(0,iM.M)(599,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:i3(new iF(121,"selectionClipboard",!0,{description:(0,iM.M)(600,"Controls whether the Linux primary clipboard should be supported."),included:i_.b})),selectionHighlight:i3(new iF(122,"selectionHighlight",!0,{description:(0,iM.M)(601,"Controls whether the editor should highlight matches similar to the selection.")})),selectionHighlightMaxLength:i3(new iW(123,"selectionHighlightMaxLength",200,0,0x40000000,{description:(0,iM.M)(602,"Controls how many characters can be in the selection before similar matches are not highlighted. Set to zero for unlimited.")})),selectionHighlightMultiline:i3(new iF(124,"selectionHighlightMultiline",!1,{description:(0,iM.M)(603,"Controls whether the editor should highlight selection matches that span multiple lines.")})),selectOnLineNumbers:i3(new iF(125,"selectOnLineNumbers",!0)),showFoldingControls:i3(new i$(126,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[(0,iM.M)(604,"Always show the folding controls."),(0,iM.M)(605,"Never show the folding controls and reduce the gutter size."),(0,iM.M)(606,"Only show the folding controls when the mouse is over the gutter.")],description:(0,iM.M)(607,"Controls when the folding controls on the gutter are shown.")})),showUnused:i3(new iF(127,"showUnused",!0,{description:(0,iM.M)(608,"Controls fading out of unused code.")})),showDeprecated:i3(new iF(157,"showDeprecated",!0,{description:(0,iM.M)(609,"Controls strikethrough deprecated variables.")})),inlayHints:i3(new class extends iE{constructor(){let e={enabled:"on",fontSize:0,fontFamily:"",padding:!1,maximumLength:43};super(159,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:(0,iM.M)(296,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[(0,iM.M)(297,"Inlay hints are enabled"),(0,iM.M)(298,"Inlay hints are showing by default and hide when holding {0}",i_.e?"Ctrl+Option":"Ctrl+Alt"),(0,iM.M)(299,"Inlay hints are hidden by default and show when holding {0}",i_.e?"Ctrl+Option":"Ctrl+Alt"),(0,iM.M)(300,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:(0,iM.M)(301,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:(0,iM.M)(302,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:(0,iM.M)(303,"Enables the padding around the inlay hints in the editor.")},"editor.inlayHints.maximumLength":{type:"number",default:e.maximumLength,markdownDescription:(0,iM.M)(304,"Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate")}});}validate(e){return e&&"object"==typeof e?("boolean"==typeof e.enabled&&(e.enabled=e.enabled?"on":"off"),{enabled:iU(e.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:iW.clampedInt(e.fontSize,this.defaultValue.fontSize,0,100),fontFamily:iz.string(e.fontFamily,this.defaultValue.fontFamily),padding:iP(e.padding,this.defaultValue.padding),maximumLength:iW.clampedInt(e.maximumLength,this.defaultValue.maximumLength,0,Number.MAX_SAFE_INTEGER)}):this.defaultValue;}}()),snippetSuggestions:i3(new i$(128,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[(0,iM.M)(610,"Show snippet suggestions on top of other suggestions."),(0,iM.M)(611,"Show snippet suggestions below other suggestions."),(0,iM.M)(612,"Show snippets suggestions with other suggestions."),(0,iM.M)(613,"Do not show snippet suggestions.")],description:(0,iM.M)(614,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:i3(new class extends iE{constructor(){super(129,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:(0,iM.M)(452,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:(0,iM.M)(453,"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}});}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:iP(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:iP(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue;}}()),smoothScrolling:i3(new iF(130,"smoothScrolling",!1,{description:(0,iM.M)(615,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:i3(new iW(133,"stopRenderingLineAfter",1e4,-1,0x40000000)),suggest:i3(new class extends iE{constructor(){let e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,fitWidthToDetails:!1,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(134,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[(0,iM.M)(405,"Insert suggestion without overwriting text right of the cursor."),(0,iM.M)(406,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:(0,iM.M)(407,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:(0,iM.M)(408,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:(0,iM.M)(409,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:(0,iM.M)(410,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[(0,iM.M)(411,"Always select a suggestion when automatically triggering IntelliSense."),(0,iM.M)(412,"Never select a suggestion when automatically triggering IntelliSense."),(0,iM.M)(413,"Select a suggestion only when triggering IntelliSense from a trigger character."),(0,iM.M)(414,"Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:(0,iM.M)(415,"Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:(0,iM.M)(416,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:(0,iM.M)(417,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:(0,iM.M)(418,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:(0,iM.M)(419,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:(0,iM.M)(420,"Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:(0,iM.M)(421,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(422,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(423,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(424,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(425,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(426,"When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(427,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(428,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(429,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(430,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(431,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(432,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(433,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(434,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(435,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(436,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(437,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(438,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(439,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(440,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(441,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(442,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(443,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(444,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(445,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(446,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(447,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(448,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(449,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(450,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(451,"When enabled IntelliSense shows `issues`-suggestions.")}});}validate(e){return e&&"object"==typeof e?{insertMode:iU(e.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:iP(e.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:iP(e.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:iP(e.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:iP(e.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:iU(e.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:iP(e.showIcons,this.defaultValue.showIcons),showStatusBar:iP(e.showStatusBar,this.defaultValue.showStatusBar),preview:iP(e.preview,this.defaultValue.preview),previewMode:iU(e.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:iP(e.showInlineDetails,this.defaultValue.showInlineDetails),fitWidthToDetails:iP(e.fitWidthToDetails,this.defaultValue.fitWidthToDetails),showMethods:iP(e.showMethods,this.defaultValue.showMethods),showFunctions:iP(e.showFunctions,this.defaultValue.showFunctions),showConstructors:iP(e.showConstructors,this.defaultValue.showConstructors),showDeprecated:iP(e.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:iP(e.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:iP(e.showFields,this.defaultValue.showFields),showVariables:iP(e.showVariables,this.defaultValue.showVariables),showClasses:iP(e.showClasses,this.defaultValue.showClasses),showStructs:iP(e.showStructs,this.defaultValue.showStructs),showInterfaces:iP(e.showInterfaces,this.defaultValue.showInterfaces),showModules:iP(e.showModules,this.defaultValue.showModules),showProperties:iP(e.showProperties,this.defaultValue.showProperties),showEvents:iP(e.showEvents,this.defaultValue.showEvents),showOperators:iP(e.showOperators,this.defaultValue.showOperators),showUnits:iP(e.showUnits,this.defaultValue.showUnits),showValues:iP(e.showValues,this.defaultValue.showValues),showConstants:iP(e.showConstants,this.defaultValue.showConstants),showEnums:iP(e.showEnums,this.defaultValue.showEnums),showEnumMembers:iP(e.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:iP(e.showKeywords,this.defaultValue.showKeywords),showWords:iP(e.showWords,this.defaultValue.showWords),showColors:iP(e.showColors,this.defaultValue.showColors),showFiles:iP(e.showFiles,this.defaultValue.showFiles),showReferences:iP(e.showReferences,this.defaultValue.showReferences),showFolders:iP(e.showFolders,this.defaultValue.showFolders),showTypeParameters:iP(e.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:iP(e.showSnippets,this.defaultValue.showSnippets),showUsers:iP(e.showUsers,this.defaultValue.showUsers),showIssues:iP(e.showIssues,this.defaultValue.showIssues)}:this.defaultValue;}}()),inlineSuggest:i3(new class extends iE{constructor(){let e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default",syntaxHighlightingEnabled:!0,minShowDelay:0,suppressInSnippetMode:!0,edits:{enabled:!0,showCollapsed:!1,renderSideBySide:"auto",allowCodeShifting:"always",showLongDistanceHint:!0,longDistanceHintContextLineCount:0},triggerCommandOnProviderChange:!1,experimental:{suppressInlineSuggestions:"",showOnSuggestConflict:"never",emptyResponseInformation:!0}};super(71,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:(0,iM.M)(368,"Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[(0,iM.M)(369,"Show the inline suggestion toolbar whenever an inline suggestion is shown."),(0,iM.M)(370,"Show the inline suggestion toolbar when hovering over an inline suggestion."),(0,iM.M)(371,"Never show the inline suggestion toolbar.")],description:(0,iM.M)(372,"Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.syntaxHighlightingEnabled":{type:"boolean",default:e.syntaxHighlightingEnabled,description:(0,iM.M)(373,"Controls whether to show syntax highlighting for inline suggestions in the editor.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:(0,iM.M)(374,"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.suppressInSnippetMode":{type:"boolean",default:e.suppressInSnippetMode,description:(0,iM.M)(375,"Controls whether inline suggestions are suppressed when in snippet mode.")},"editor.inlineSuggest.minShowDelay":{type:"number",default:0,minimum:0,maximum:1e4,description:(0,iM.M)(376,"Controls the minimal delay in milliseconds after which inline suggestions are shown after typing.")},"editor.inlineSuggest.experimental.suppressInlineSuggestions":{type:"string",default:e.experimental.suppressInlineSuggestions,tags:["experimental"],description:(0,iM.M)(377,"Suppresses inline completions for specified extension IDs -- comma separated."),experiment:{mode:"auto"}},"editor.inlineSuggest.experimental.emptyResponseInformation":{type:"boolean",default:e.experimental.emptyResponseInformation,tags:["experimental"],description:(0,iM.M)(378,"Controls whether to send request information from the inline suggestion provider."),experiment:{mode:"auto"}},"editor.inlineSuggest.triggerCommandOnProviderChange":{type:"boolean",default:e.triggerCommandOnProviderChange,tags:["experimental"],description:(0,iM.M)(379,"Controls whether to trigger a command when the inline suggestion provider changes."),experiment:{mode:"auto"}},"editor.inlineSuggest.experimental.showOnSuggestConflict":{type:"string",default:e.experimental.showOnSuggestConflict,tags:["experimental"],enum:["always","never","whenSuggestListIsIncomplete"],description:(0,iM.M)(380,"Controls whether to show inline suggestions when there is a suggest conflict."),experiment:{mode:"auto"}},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:(0,iM.M)(381,"Controls the font family of the inline suggestions.")},"editor.inlineSuggest.edits.allowCodeShifting":{type:"string",default:e.edits.allowCodeShifting,description:(0,iM.M)(382,"Controls whether showing a suggestion will shift the code to make space for the suggestion inline."),enum:["always","horizontal","never"],tags:["nextEditSuggestions"]},"editor.inlineSuggest.edits.showLongDistanceHint":{type:"boolean",default:e.edits.showLongDistanceHint,description:(0,iM.M)(383,"Controls whether long distance inline suggestions are shown."),tags:["nextEditSuggestions","experimental"]},"editor.inlineSuggest.edits.longDistanceHintContextLineCount":{type:"number",default:e.edits.longDistanceHintContextLineCount,minimum:0,maximum:10,description:(0,iM.M)(384,"Controls how many lines of surrounding context are shown above and below the target line in the long distance inline suggestion preview. Set to 0 to only show the target line."),tags:["nextEditSuggestions","experimental"],experiment:{mode:"auto"}},"editor.inlineSuggest.edits.renderSideBySide":{type:"string",default:e.edits.renderSideBySide,description:(0,iM.M)(385,"Controls whether larger suggestions can be shown side by side."),enum:["auto","never"],enumDescriptions:[(0,iM.M)(386,"Larger suggestions will show side by side if there is enough space, otherwise they will be shown below."),(0,iM.M)(387,"Larger suggestions are never shown side by side and will always be shown below.")],tags:["nextEditSuggestions"]},"editor.inlineSuggest.edits.showCollapsed":{type:"boolean",default:e.edits.showCollapsed,description:(0,iM.M)(388,"Controls whether the suggestion will show as collapsed until jumping to it."),tags:["nextEditSuggestions"]}});}validate(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.enabled),mode:iU(e.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:iU(e.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:iP(e.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:iP(e.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:iz.string(e.fontFamily,this.defaultValue.fontFamily),syntaxHighlightingEnabled:iP(e.syntaxHighlightingEnabled,this.defaultValue.syntaxHighlightingEnabled),minShowDelay:iW.clampedInt(e.minShowDelay,0,0,1e4),suppressInSnippetMode:iP(e.suppressInSnippetMode,this.defaultValue.suppressInSnippetMode),edits:this._validateEdits(e.edits),triggerCommandOnProviderChange:iP(e.triggerCommandOnProviderChange,this.defaultValue.triggerCommandOnProviderChange),experimental:this._validateExperimental(e.experimental)}:this.defaultValue;}_validateEdits(e){return e&&"object"==typeof e?{enabled:iP(e.enabled,this.defaultValue.edits.enabled),showCollapsed:iP(e.showCollapsed,this.defaultValue.edits.showCollapsed),allowCodeShifting:iU(e.allowCodeShifting,this.defaultValue.edits.allowCodeShifting,["always","horizontal","never"]),showLongDistanceHint:iP(e.showLongDistanceHint,this.defaultValue.edits.showLongDistanceHint),longDistanceHintContextLineCount:iW.clampedInt(e.longDistanceHintContextLineCount,this.defaultValue.edits.longDistanceHintContextLineCount,0,10),renderSideBySide:iU(e.renderSideBySide,this.defaultValue.edits.renderSideBySide,["never","auto"])}:this.defaultValue.edits;}_validateExperimental(e){return e&&"object"==typeof e?{suppressInlineSuggestions:iz.string(e.suppressInlineSuggestions,this.defaultValue.experimental.suppressInlineSuggestions),showOnSuggestConflict:iU(e.showOnSuggestConflict,this.defaultValue.experimental.showOnSuggestConflict,["always","never","whenSuggestListIsIncomplete"]),emptyResponseInformation:iP(e.emptyResponseInformation,this.defaultValue.experimental.emptyResponseInformation)}:this.defaultValue.experimental;}}()),inlineCompletionsAccessibilityVerbose:i3(new iF(170,"inlineCompletionsAccessibilityVerbose",!1,{description:(0,iM.M)(616,"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:i3(new iW(135,"suggestFontSize",0,0,1e3,{markdownDescription:(0,iM.M)(617,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:i3(new iW(136,"suggestLineHeight",0,0,1e3,{markdownDescription:(0,iM.M)(618,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:i3(new iF(137,"suggestOnTriggerCharacters",!0,{description:(0,iM.M)(619,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:i3(new i$(138,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[(0,iM.M)(620,"Always select the first suggestion."),(0,iM.M)(621,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),(0,iM.M)(622,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:(0,iM.M)(623,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:i3(new i$(139,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[(0,iM.M)(624,"Tab complete will insert the best matching suggestion when pressing tab."),(0,iM.M)(625,"Disable tab completions."),(0,iM.M)(626,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:(0,iM.M)(627,"Enables tab completions.")})),tabIndex:i3(new iW(140,"tabIndex",0,-1,0x40000000)),trimWhitespaceOnDelete:i3(new iF(141,"trimWhitespaceOnDelete",!1,{description:(0,iM.M)(628,"Controls whether the editor will also delete the next line's indentation whitespace when deleting a newline.")})),unicodeHighlight:i3(new class extends iE{constructor(){let e={nonBasicASCII:i0,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:i0,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(142,"unicodeHighlight",e,{"editor.unicodeHighlight.nonBasicASCII":{restricted:!0,type:["boolean","string"],enum:[!0,!1,i0],default:e.nonBasicASCII,description:(0,iM.M)(361,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},"editor.unicodeHighlight.invisibleCharacters":{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:(0,iM.M)(362,"Controls whether characters that just reserve space or have no width at all are highlighted.")},"editor.unicodeHighlight.ambiguousCharacters":{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:(0,iM.M)(363,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},"editor.unicodeHighlight.includeComments":{restricted:!0,type:["boolean","string"],enum:[!0,!1,i0],default:e.includeComments,description:(0,iM.M)(364,"Controls whether characters in comments should also be subject to Unicode highlighting.")},"editor.unicodeHighlight.includeStrings":{restricted:!0,type:["boolean","string"],enum:[!0,!1,i0],default:e.includeStrings,description:(0,iM.M)(365,"Controls whether characters in strings should also be subject to Unicode highlighting.")},"editor.unicodeHighlight.allowedCharacters":{restricted:!0,type:"object",default:e.allowedCharacters,description:(0,iM.M)(366,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},"editor.unicodeHighlight.allowedLocales":{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:(0,iM.M)(367,"Unicode characters that are common in allowed locales are not being highlighted.")}});}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&!(0,im.m)(e.allowedCharacters,t.allowedCharacters)&&(e={...e,allowedCharacters:t.allowedCharacters},i=!0),t.allowedLocales&&e&&!(0,im.m)(e.allowedLocales,t.allowedLocales)&&(e={...e,allowedLocales:t.allowedLocales},i=!0);let n=super.applyUpdate(e,t);return i?new iT(n.newValue,!0):n;}validate(e){return e&&"object"==typeof e?{nonBasicASCII:i1(e.nonBasicASCII,i0,[!0,!1,i0]),invisibleCharacters:iP(e.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:iP(e.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:i1(e.includeComments,i0,[!0,!1,i0]),includeStrings:i1(e.includeStrings,i0,[!0,!1,i0]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}:this.defaultValue;}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;let i={};for(let[t,n]of Object.entries(e))!0===n&&(i[t]=!0);return i;}}()),unusualLineTerminators:i3(new i$(143,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[(0,iM.M)(629,"Unusual line terminators are automatically removed."),(0,iM.M)(630,"Unusual line terminators are ignored."),(0,iM.M)(631,"Unusual line terminators prompt to be removed.")],description:(0,iM.M)(632,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:i3(new iF(144,"useShadowDOM",!0)),useTabStops:i3(new iF(145,"useTabStops",!0,{description:(0,iM.M)(633,"Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:i3(new i$(146,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[(0,iM.M)(634,"Use the default line break rule."),(0,iM.M)(635,"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:(0,iM.M)(636,"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:i3(new class extends iE{constructor(){let e=[];super(147,"wordSegmenterLocales",e,{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:(0,iM.M)(454,"Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"},default:e});}validate(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){let t=[];for(let i of e)if("string"==typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i);}catch{}return t;}return this.defaultValue;}}()),wordSeparators:i3(new iz(148,"wordSeparators",iD.J,{description:(0,iM.M)(637,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:i3(new i$(149,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[(0,iM.M)(638,"Lines will never wrap."),(0,iM.M)(639,"Lines will wrap at the viewport width."),(0,iM.M)(640,"Lines will wrap at `#editor.wordWrapColumn#`."),(0,iM.M)(641,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:(0,iM.M)(642,"Controls how lines should wrap.")})),wordWrapIndicator:i3(new iF(161,"wordWrapIndicator",!1,{markdownDescription:(0,iM.M)(643,"Controls whether an indicator is rendered at the wrapping column of lines that wrap. Only has an effect when `#editor.wordWrap#` is enabled.")})),wordWrapBreakAfterCharacters:i3(new iz(150,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:i3(new iz(151,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:i3(new iW(152,"wordWrapColumn",80,1,0x40000000,{markdownDescription:(0,iM.M)(644,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:i3(new i$(153,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:i3(new i$(154,"wordWrapOverride2","inherit",["off","on","inherit"])),wrapOnEscapedLineFeeds:i3(new iF(160,"wrapOnEscapedLineFeeds",!1,{markdownDescription:(0,iM.M)(645,'Controls whether literal `\\n` shall trigger a wordWrap when `#editor.wordWrap#` is enabled.\n\nFor example:\n```c\nchar* str="hello\\nworld"\n```\nwill be displayed as\n```c\nchar* str="hello\\n\n world"\n```')})),effectiveCursorStyle:i3(new class extends iA{constructor(){super(162,eU.Line);}compute(e,t,i){return"overtype"===e.inputMode?t.get(92):t.get(34);}}()),editorClassName:i3(new class extends iA{constructor(){super(163,"");}compute(e,t,i){let n=["monaco-editor"];return t.get(48)&&n.push(t.get(48)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(82)?n.push("mouse-default"):"copy"===t.get(82)&&n.push("mouse-copy"),t.get(127)&&n.push("showUnused"),t.get(157)&&n.push("showDeprecated"),n.join(" ");}}()),defaultColorDecorators:i3(new i$(168,"defaultColorDecorators","auto",["auto","always","never"],{enumDescriptions:[(0,iM.M)(646,"Show default color decorators only when no extension provides colors decorators."),(0,iM.M)(647,"Always show default color decorators."),(0,iM.M)(648,"Never show default color decorators.")],description:(0,iM.M)(649,"Controls whether inline color decorations should be shown using the default document color provider.")})),pixelRatio:i3(new class extends iA{constructor(){super(164,1);}compute(e,t,i){return e.pixelRatio;}}()),tabFocusMode:i3(new iF(165,"tabFocusMode",!1,{markdownDescription:(0,iM.M)(650,"Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:i3(new iZ()),wrappingInfo:i3(new class extends iA{constructor(){super(167,{isDominatedByLongLines:!1,isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1});}compute(e,t,i){let n=t.get(166);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn};}}()),wrappingIndent:i3(new class extends iE{constructor(){super(155,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[(0,iM.M)(455,"No indentation. Wrapped lines begin at column 1."),(0,iM.M)(456,"Wrapped lines get the same indentation as the parent."),(0,iM.M)(457,"Wrapped lines get +1 indentation toward the parent."),(0,iM.M)(458,"Wrapped lines get +2 indentation toward the parent.")],description:(0,iM.M)(459,"Controls the indentation of wrapped lines."),default:"same"}});}validate(e){switch(e){case"none":return 0;case"same":break;case"indent":return 2;case"deepIndent":return 3;}return 1;}compute(e,t,i){return 2===t.get(2)?0:i;}}()),wrappingStrategy:i3(new class extends iE{constructor(){super(156,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[(0,iM.M)(285,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),(0,iM.M)(286,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:(0,iM.M)(287,"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}});}validate(e){return iU(e,"simple",["simple","advanced"]);}compute(e,t,i){return 2===t.get(2)?"advanced":i;}}()),effectiveEditContextEnabled:i3(new class extends iA{constructor(){super(171,!1);}compute(e,t){return e.editContextSupported&&t.get(44);}}()),effectiveAllowVariableFonts:i3(new class extends iA{constructor(){super(173,!1);}compute(e,t){return 2===e.accessibilitySupport?t.get(7):t.get(6);}}()),effectiveFullwidthCharacterWidth:i3(new class extends iA{constructor(){super(176,"font");}compute(e,t){return"twoCells"===t.get(175)&&e.fontInfo.isMonospace?"twoCells":"font";}}())};e.s(["G",0,iT,"u",0,iN,"S",0,iI,"s",0,ij,"$",0,iZ,"m",0,i5,"W",0,8,"Y",0,e$,"H",0,eU,"g",0,iP,"f",0,iV,"F",0,iB,"X",0,i2,"n",0,iX,"h",0,iY,"i",0,iU],84499);var i6=e.i(6838);function i4(e,t){"number"!=typeof e.vscodeWindowId&&Object.defineProperty(e,"vscodeWindowId",{get:()=>t});}let i9=window;e.s(["C",0,i4,"E",0,i9],14947);var i8=e.i(23246),i7=e.i(90891),ne=e.i(79830);class nt{constructor(){this.mapWindowIdToZoomFactor=new Map();}getZoomFactor(e){var _this$mapWindowIdToZo;return(_this$mapWindowIdToZo=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!==null&&_this$mapWindowIdToZo!==void 0?_this$mapWindowIdToZo:1;}getWindowId(e){return e.vscodeWindowId;}}_nt=nt;_nt.INSTANCE=new _nt();function ni(e,t,i){"string"==typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i);}function nn(e){return nt.INSTANCE.getZoomFactor(e);}let ns=navigator.userAgent,no=ns.indexOf("Firefox")>=0,nr=ns.indexOf("AppleWebKit")>=0,na=ns.indexOf("Chrome")>=0,nl=!na&&ns.indexOf("Safari")>=0,nh=!na&&!nl&&nr;ns.indexOf("Electron/");let nd=ns.indexOf("Android")>=0,nc=!1;if("function"==typeof i9.matchMedia){let e=i9.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=i9.matchMedia("(display-mode: fullscreen)");nc=e.matches,ni(i9,e,({matches:e})=>{nc&&t.matches||(nc=e);});}function nu(){return globalThis.MonacoEnvironment;}let ng={clipboard:{writeText:i_.u||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:i_.u||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:i9.PointerEvent&&("ontouchstart"in i9||navigator.maxTouchPoints>0)};var np=e.i(58871),nf=e.i(58388);function nm(e,t){if("number"==typeof e){if(0===e)return null;let i=(65535&e)>>>0,n=(0xffff0000&e)>>>16;return new nb(0!==n?[n_(i,t),n_(n,t)]:[n_(i,t)]);}{let i=[];for(let n=0;n<e.length;n++)i.push(n_(e[n],t));return new nb(i);}}function n_(e,t){let i=!!(2048&e),n=!!(256&e);return new nv(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e);}class nv{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s;}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode;}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode;}}class nb{constructor(e){if(0===e.length)throw(0,nf.X)("chords");this.chords=e;}}class nC{constructor(e,t,i,n,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=o;}}class nw{}let ny=i_.e?256:2048,nS=i_.e?2048:256;class nx{constructor(e){var _e$getModifierState;this._standardKeyboardEventBrand=!0,this.browserEvent=e,this.target=e.target,this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,this.altGraphKey=(_e$getModifierState=e.getModifierState)===null||_e$getModifierState===void 0?void 0:_e$getModifierState.call(e,"AltGraph"),this.code=e.code,this.keyCode=e.isComposing?114:function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return np.$.fromString(t);}let t=e.keyCode;if(3===t)return 7;if(no)switch(t){case 59:return 85;case 60:if(i_.b)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(i_.e)return 57;}else if(nr){if(i_.e&&93===t)return 57;else if(!i_.e&&92===t)return 57;}return np.v[t]||0;}(e),this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord();}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault();}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation();}toKeyCodeChord(){return this._asKeyCodeChord;}equals(e){return this._asKeybinding===e;}_computeKeybinding(){let e=0;(0,np.N)(this.keyCode)||(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=ny),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=nS),t|=e;}_computeKeyCodeChord(){let e=0;return(0,np.N)(this.keyCode)||(e=this.keyCode),new nv(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e);}}e.s(["f",0,nx],26383);let nL=new WeakMap();class nk{static getSameOriginWindowChain(e){let t=nL.get(e);if(!t){let i;t=[],nL.set(e,t);let n=e;do(i=function(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null;}catch(e){return null;}return e.parent;}(n))?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i;while(n);}return t.slice(0);}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;for(let s of this.getSameOriginWindowChain(e)){var _e$scrollY,_e$scrollX;let e=s.window.deref();if(i+=(_e$scrollY=e===null||e===void 0?void 0:e.scrollY)!==null&&_e$scrollY!==void 0?_e$scrollY:0,n+=(_e$scrollX=e===null||e===void 0?void 0:e.scrollX)!==null&&_e$scrollX!==void 0?_e$scrollX:0,e===t||!s.iframeElement)break;let o=s.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left;}return{top:i,left:n};}}class nD{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.defaultPrevented=t.defaultPrevented,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.posx=t.pageX,this.posy=t.pageY;let i=nk.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top;}preventDefault(){this.browserEvent.preventDefault();}stopPropagation(){this.browserEvent.stopPropagation();}}class nM{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(na){let e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122;}if(e){var _e$view;let t=((_e$view=e.view)===null||_e$view===void 0?void 0:_e$view.devicePixelRatio)||1;void 0!==e.wheelDeltaY?n?this.deltaY=e.wheelDeltaY/(120*t):this.deltaY=e.wheelDeltaY/120:void 0!==e.VERTICAL_AXIS&&e.axis===e.VERTICAL_AXIS?this.deltaY=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?no&&!i_.e?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==e.wheelDeltaX?nl&&i_.t?this.deltaX=-(e.wheelDeltaX/120):n?this.deltaX=e.wheelDeltaX/(120*t):this.deltaX=e.wheelDeltaX/120:void 0!==e.HORIZONTAL_AXIS&&e.axis===e.HORIZONTAL_AXIS?this.deltaX=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?no&&!i_.e?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*t):this.deltaY=e.wheelDelta/120);}}preventDefault(){var _this$browserEvent;(_this$browserEvent=this.browserEvent)===null||_this$browserEvent===void 0||_this$browserEvent.preventDefault();}stopPropagation(){var _this$browserEvent2;(_this$browserEvent2=this.browserEvent)===null||_this$browserEvent2===void 0||_this$browserEvent2.stopPropagation();}}e.s(["$",0,nD,"P",0,nM],66076);var nI=e.i(93872),nN=iv,nE=i8,nT=e.i(76074),nR=e.i(28319);function nA(e,t,i){return Math.min(Math.max(e,t),i);}class nO{constructor(){this._n=1,this._val=0;}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val;}get value(){return this._val;}}class nP{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=Array(e),this._values.fill(0,0,e);}update(e){let t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val;}get value(){return this._val;}}function nF(e,t,i,n,s,o,r,a){let l=r-i,h=a-n,d=s-i,c=o-n,u=e-i,g=t-n,p=l*l+h*h,f=l*d+h*c,m=l*u+h*g,_=d*d+c*c,v=d*u+c*g,b=1/(p*_-f*f),C=(_*m-f*v)*b,w=(p*v-f*m)*b;return C>=0&&w>=0&&C+w<1;}function nB(e,t){return e===t;}e.s(["I",0,nO,"V",0,nP,"O",0,nA,"J",0,nF],33802);function nW(e){return(t,i)=>(0,ip.m)(t,i,e!==null&&e!==void 0?e:nB);}function nV(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!nV(e[i],t[i]))return!1;return!0;}if(e&&"object"==typeof e&&t&&"object"==typeof t&&Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){let i=Object.keys(e),n=Object.keys(t),s=new Set(n);if(i.length!==n.length)return!1;for(let n of i)if(!s.has(n)||!nV(e[n],t[n]))return!1;return!0;}return!1;}function nH(){return(e,t)=>e.equals(t);}function nz(e,t,i){return null==e||null==t?t===e:i(e,t);}function nU(e){return(t,i)=>null==t||null==i?i===t:e(t,i);}(V=eK||(eK={})).strict=nB,V.strictC=function(){return(e,t)=>e===t;},V.array=function(e,t,i){return(0,ip.m)(e,t,i!==null&&i!==void 0?i:nB);},V.arrayC=nW,V.structural=nV,V.structuralC=function(){return(e,t)=>nV(e,t);},V.jsonStringify=function(e,t){return JSON.stringify(e)===JSON.stringify(t);},V.jsonStringifyC=function(){return(e,t)=>JSON.stringify(e)===JSON.stringify(t);},V.thisC=nH,V.ifDefined=nz,V.ifDefinedC=nU,e.s(["W",0,nW,"m",0,eK,"D",0,nz,"d",0,nU,"O",0,nB,"Z",0,nH],86300);class n${constructor(e){this.loggers=e;}handleObservableCreated(e,t){for(let i of this.loggers)i.handleObservableCreated(e,t);}handleOnListenerCountChanged(e,t){for(let i of this.loggers)i.handleOnListenerCountChanged(e,t);}handleObservableUpdated(e,t){for(let i of this.loggers)i.handleObservableUpdated(e,t);}handleAutorunCreated(e,t){for(let i of this.loggers)i.handleAutorunCreated(e,t);}handleAutorunDisposed(e){for(let t of this.loggers)t.handleAutorunDisposed(e);}handleAutorunDependencyChanged(e,t,i){for(let n of this.loggers)n.handleAutorunDependencyChanged(e,t,i);}handleAutorunStarted(e){for(let t of this.loggers)t.handleAutorunStarted(e);}handleAutorunFinished(e){for(let t of this.loggers)t.handleAutorunFinished(e);}handleDerivedDependencyChanged(e,t,i){for(let n of this.loggers)n.handleDerivedDependencyChanged(e,t,i);}handleDerivedCleared(e){for(let t of this.loggers)t.handleDerivedCleared(e);}handleBeginTransaction(e){for(let t of this.loggers)t.handleBeginTransaction(e);}handleEndTransaction(e){for(let t of this.loggers)t.handleEndTransaction(e);}}H=eq||(eq={}),m=!1,H.enable=function(){m=!0;},H.ofCaller=function(){if(!m)return;let e=Error,t=e.stackTraceLimit;e.stackTraceLimit=3;let i=Error().stack;return e.stackTraceLimit=t,nK.fromStack(i,2);};class nK{static fromStack(e,t){let i=function(e){let t=e.match(/\((.*):(\d+):(\d+)\)/);if(t)return{fileName:t[1],line:parseInt(t[2]),column:parseInt(t[3]),id:e};let i=e.match(/at ([^\(\)]*):(\d+):(\d+)/);if(i)return{fileName:i[1],line:parseInt(i[2]),column:parseInt(i[3]),id:e};}(e.split("\n")[t+1]);return i?new nK(i.fileName,i.line,i.column,i.id):void 0;}constructor(e,t,i,n){this.fileName=e,this.line=t,this.column=i,this.id=n;}}e.s(["f",0,eq],45019);class nq{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i;}getDebugName(e){return function(e,t){let i=nG.get(e);if(i)return i;let n=function(e,t){let i,n=nG.get(e);if(n)return n;let s=t.owner?function(e,_nY,_nQ$get){let t=nZ.get(e);if(t)return t;let i=(_nY=nY(e))!==null&&_nY!==void 0?_nY:"Object",n=(_nQ$get=nQ.get(i))!==null&&_nQ$get!==void 0?_nQ$get:0;n++,nQ.set(i,n);let s=1===n?i:`${i}#${n}`;return nZ.set(e,s),s;}(t.owner)+".":"",o=t.debugNameSource;if(void 0!==o){if("function"!=typeof o)return s+o;else if(void 0!==(i=o()))return s+i;}let r=t.referenceFn;if(void 0!==r&&void 0!==(i=nX(r)))return s+i;if(void 0!==t.owner){let i=function(e,t){for(let i in e)if(e[i]===t)return i;}(t.owner,e);if(void 0!==i)return s+i;}}(e,t);if(n){var _nj$get;let t=(_nj$get=nj.get(n))!==null&&_nj$get!==void 0?_nj$get:0;t++,nj.set(n,t);let i=1===t?n:`${n}#${t}`;return nG.set(e,i),i;}}(e,this);}}let nj=new Map(),nG=new WeakMap(),nQ=new Map(),nZ=new WeakMap();function nY(e){let t=e.constructor;if(t){if("Object"===t.name)return;return t.name;}}function nX(e){let t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return n===null||n===void 0?void 0:n.trim();}e.s(["O",0,nq,"P",0,nY,"n",0,nX],52379);class nJ{get TChange(){return null;}reportChanges(){this.get();}read(e){return e?e.readObservable(this):this.get();}map(e,t,n=eq.ofCaller()){let s=void 0===t?void 0:e,o=void 0===t?e:t;return i({owner:s,debugName:()=>{let e=nX(o);if(void 0!==e)return e;let t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(o.toString());return t?`${this.debugName}.${t[2]}`:s?void 0:`${this.debugName} (mapped)`;},debugReferenceFn:o},e=>o(this.read(e),e),n);}flatten(){return i({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e));}recomputeInitiallyAndOnChange(e,t){return e.add(n(this,t)),this;}}class n0 extends nJ{constructor(e){var _t2;super(),this._observers=new Set(),(_t2=t)===null||_t2===void 0?void 0:_t2.handleObservableCreated(this,e);}addObserver(e){var _t3;let i=this._observers.size;this._observers.add(e),0===i&&this.onFirstObserverAdded(),i!==this._observers.size&&((_t3=t)===null||_t3===void 0?void 0:_t3.handleOnListenerCountChanged(this,this._observers.size));}removeObserver(e){var _t4;let i=this._observers.delete(e);i&&0===this._observers.size&&this.onLastObserverRemoved(),i&&((_t4=t)===null||_t4===void 0?void 0:_t4.handleOnListenerCountChanged(this,this._observers.size));}onFirstObserverAdded(){}onLastObserverRemoved(){}debugGetObservers(){return this._observers;}}var n1=e.i(42775);class n2 extends n0{get debugName(){var _this$_debugNameData$;return(_this$_debugNameData$=this._debugNameData.getDebugName(this))!==null&&_this$_debugNameData$!==void 0?_this$_debugNameData$:"(anonymous)";}constructor(e,t,i,n,s,o){var _this$_changeTracker;super(o),this._debugNameData=e,this._computeFn=t,this._changeTracker=i,this._handleLastObserverRemoved=n,this._equalityComparator=s,this._state=0,this._value=void 0,this._updateCount=0,this._dependencies=new Set(),this._dependenciesToBeRemoved=new Set(),this._changeSummary=void 0,this._isUpdating=!1,this._isComputing=!1,this._didReportChange=!1,this._isInBeforeUpdate=!1,this._isReaderValid=!1,this._store=void 0,this._delayedStore=void 0,this._removedObserverToCallEndUpdateOn=null,this._changeSummary=(_this$_changeTracker=this._changeTracker)===null||_this$_changeTracker===void 0?void 0:_this$_changeTracker.createChangeSummary(void 0);}onLastObserverRemoved(){var _this$_handleLastObse;for(let e of(this._state=0,this._value=void 0,(_t5=t)!==null&&_t5!==void 0&&_t5.handleDerivedCleared(this),this._dependencies)){var _t5;e.removeObserver(this);}this._dependencies.clear(),void 0!==this._store&&(this._store.dispose(),this._store=void 0),void 0!==this._delayedStore&&(this._delayedStore.dispose(),this._delayedStore=void 0),(_this$_handleLastObse=this._handleLastObserverRemoved)===null||_this$_handleLastObse===void 0?void 0:_this$_handleLastObse.call(this);}get(){if(this._isComputing,0===this._observers.size){let e;try{var _this$_changeTracker$,_this$_changeTracker2;let t;this._isReaderValid=!0,this._changeTracker&&(t=this._changeTracker.createChangeSummary(void 0),(_this$_changeTracker$=(_this$_changeTracker2=this._changeTracker).beforeUpdate)!==null&&_this$_changeTracker$!==void 0&&_this$_changeTracker$.call(_this$_changeTracker2,this,t)),e=this._computeFn(this,t);}finally{this._isReaderValid=!1;}return this.onLastObserverRemoved(),e;}do{if(1===this._state){for(let e of this._dependencies)if(e.reportChanges(),2===this._state)break;}1===this._state&&(this._state=3),3!==this._state&&this._recompute();}while(3!==this._state);return this._value;}_recompute(){let e=!1;this._isComputing=!0,this._didReportChange=!1;let i=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=i;try{var _this$_changeTracker$2,_this$_changeTracker3,_this$_changeTracker4,_t6;let i=this._changeSummary;this._isReaderValid=!0,this._changeTracker&&(this._isInBeforeUpdate=!0,(_this$_changeTracker$2=(_this$_changeTracker3=this._changeTracker).beforeUpdate)!==null&&_this$_changeTracker$2!==void 0&&_this$_changeTracker$2.call(_this$_changeTracker3,this,i),this._isInBeforeUpdate=!1,this._changeSummary=(_this$_changeTracker4=this._changeTracker)===null||_this$_changeTracker4===void 0?void 0:_this$_changeTracker4.createChangeSummary(i));let n=0!==this._state,s=this._value;this._state=3;let o=this._delayedStore;void 0!==o&&(this._delayedStore=void 0);try{void 0!==this._store&&(this._store.dispose(),this._store=void 0),this._value=this._computeFn(this,i);}finally{for(let e of(this._isReaderValid=!1,this._dependenciesToBeRemoved))e.removeObserver(this);this._dependenciesToBeRemoved.clear(),void 0!==o&&o.dispose();}e=this._didReportChange||n&&!this._equalityComparator(s,this._value),(_t6=t)===null||_t6===void 0?void 0:_t6.handleObservableUpdated(this,{oldValue:s,newValue:this._value,change:void 0,didChange:e,hadValue:n});}catch(e){(0,nf.G)(e);}if(this._isComputing=!1,!this._didReportChange&&e)for(let e of this._observers)e.handleChange(this,void 0);else this._didReportChange=!1;}toString(){return`LazyDerived<${this.debugName}>`;}beginUpdate(e){if(this._isUpdating)throw new nf.Q("Cyclic deriveds are not supported yet!");this._updateCount++,this._isUpdating=!0;try{let e=1===this._updateCount;if(3===this._state&&(this._state=1,!e))for(let e of this._observers)e.handlePossibleChange(this);if(e)for(let e of this._observers)e.beginUpdate(this);}finally{this._isUpdating=!1;}}endUpdate(e){if(this._updateCount--,0===this._updateCount){for(let e of[...this._observers])e.endUpdate(this);if(this._removedObserverToCallEndUpdateOn){let e=[...this._removedObserverToCallEndUpdateOn];for(let t of(this._removedObserverToCallEndUpdateOn=null,e))t.endUpdate(this);}}(0,n1.W)(()=>this._updateCount>=0);}handlePossibleChange(e){if(3===this._state&&this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e))for(let e of(this._state=1,this._observers))e.handlePossibleChange(this);}handleChange(e,i){if(this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e)||this._isInBeforeUpdate){var _t7;(_t7=t)===null||_t7===void 0||_t7.handleDerivedDependencyChanged(this,e,i);let n=!1;try{n=!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:i,didChange:t=>t===e},this._changeSummary);}catch(e){(0,nf.G)(e);}let s=3===this._state;if(n&&(1===this._state||s)&&(this._state=2,s))for(let e of this._observers)e.handlePossibleChange(this);}}_ensureReaderValid(){if(!this._isReaderValid)throw new nf.Q("The reader object cannot be used outside its compute function!");}readObservable(e){this._ensureReaderValid(),e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t;}get store(){return this._ensureReaderValid(),void 0===this._store&&(this._store=new i8.q()),this._store;}get delayedStore(){return this._ensureReaderValid(),void 0===this._delayedStore&&(this._delayedStore=new i8.q()),this._delayedStore;}addObserver(e){var _this$_removedObserve;let t=!this._observers.has(e)&&this._updateCount>0;super.addObserver(e),t&&!((_this$_removedObserve=this._removedObserverToCallEndUpdateOn)!==null&&_this$_removedObserve!==void 0&&_this$_removedObserve.delete(e))&&e.beginUpdate(this);}removeObserver(e){this._observers.has(e)&&this._updateCount>0&&(this._removedObserverToCallEndUpdateOn||(this._removedObserverToCallEndUpdateOn=new Set()),this._removedObserverToCallEndUpdateOn.add(e)),super.removeObserver(e);}debugGetState(){return{state:this._state,stateStr:function(e){switch(e){case 0:return"initial";case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>";}}(this._state),updateCount:this._updateCount,isComputing:this._isComputing,dependencies:this._dependencies,value:this._value};}debugSetValue(e){this._value=e;}debugRecompute(){this.beginUpdate(this);try{this._isComputing?this._state=2:this._recompute();}finally{this.endUpdate(this);}}setValue(e,t,i){this._value=e;let n=this._observers;for(let e of(t.updateObserver(this,this),n))e.handleChange(this,i);}}class n3 extends n2{constructor(e,t,i,n,s,o,r){super(e,t,i,n,s,r),this.set=o;}}function n5(e,t,i=eq.ofCaller()){return void 0!==t?new n2(new nq(e,void 0,t),t,void 0,void 0,nB,i):new n2(new nq(void 0,void 0,e),e,void 0,void 0,nB,i);}function n6(e,t,i,n=eq.ofCaller()){return new n3(new nq(e,void 0,t),t,void 0,void 0,nB,i,n);}function n4(e,t,i=eq.ofCaller()){var _e$equalsFn;return new n2(new nq(e.owner,e.debugName,e.debugReferenceFn),t,void 0,e.onLastObserverRemoved,(_e$equalsFn=e.equalsFn)!==null&&_e$equalsFn!==void 0?_e$equalsFn:nB,i);}function n9(e,t,i=eq.ofCaller()){let n,s,o;return void 0===t?(n=e,s=void 0):(s=e,n=t),new n2(new nq(s,void 0,n),e=>{o?o.clear():o=new i8.q();let t=n(e);return t&&o.add(t),t;},void 0,()=>{o&&(o.dispose(),o=void 0);},nB,i);}e.s(["I",0,n2,"Z",0,n3],4331),i=n4,e.s(["R",0,n5,"b",0,n9,"$",0,function(e,t,i=eq.ofCaller()){var _e$equalityComparer;return new n2(new nq(e.owner,e.debugName,void 0),t,e.changeTracker,void 0,(_e$equalityComparer=e.equalityComparer)!==null&&_e$equalityComparer!==void 0?_e$equalityComparer:nB,i);},"p",0,n4,"o",0,n6],41601);var n8=e.i(36722);class n7{get debugName(){var _this$_debugNameData$2;return(_this$_debugNameData$2=this._debugNameData.getDebugName(this))!==null&&_this$_debugNameData$2!==void 0?_this$_debugNameData$2:"(anonymous)";}constructor(e,i,n,s){var _this$_changeTracker5,_t8;this._debugNameData=e,this._runFn=i,this._changeTracker=n,this._state=2,this._updateCount=0,this._disposed=!1,this._dependencies=new Set(),this._dependenciesToBeRemoved=new Set(),this._isRunning=!1,this._iteration=0,this._store=void 0,this._delayedStore=void 0,this._changeSummary=(_this$_changeTracker5=this._changeTracker)===null||_this$_changeTracker5===void 0?void 0:_this$_changeTracker5.createChangeSummary(void 0),(_t8=t)!==null&&_t8!==void 0&&_t8.handleAutorunCreated(this,s),this._run();}dispose(){if(!this._disposed){var _t9;for(let e of(this._disposed=!0,this._dependencies))e.removeObserver(this);this._dependencies.clear(),void 0!==this._store&&this._store.dispose(),void 0!==this._delayedStore&&this._delayedStore.dispose(),(_t9=t)===null||_t9===void 0?void 0:_t9.handleAutorunDisposed(this);}}_run(){let e=this._dependenciesToBeRemoved;this._dependenciesToBeRemoved=this._dependencies,this._dependencies=e,this._state=3;try{if(!this._disposed){var _t0;(_t0=t)===null||_t0===void 0||_t0.handleAutorunStarted(this);let e=this._changeSummary,i=this._delayedStore;void 0!==i&&(this._delayedStore=void 0);try{var _this$_changeTracker$3,_this$_changeTracker6;this._isRunning=!0,this._changeTracker&&((_this$_changeTracker$3=(_this$_changeTracker6=this._changeTracker).beforeUpdate)!==null&&_this$_changeTracker$3!==void 0&&_this$_changeTracker$3.call(_this$_changeTracker6,this,e),this._changeSummary=this._changeTracker.createChangeSummary(e)),void 0!==this._store&&(this._store.dispose(),this._store=void 0),this._runFn(this,e);}catch(e){(0,nf.G)(e);}finally{this._isRunning=!1,void 0!==i&&i.dispose();}}}finally{for(let e of(this._disposed||(_t1=t)!==null&&_t1!==void 0&&_t1.handleAutorunFinished(this),this._dependenciesToBeRemoved)){var _t1;e.removeObserver(this);}this._dependenciesToBeRemoved.clear();}}toString(){return`Autorun<${this.debugName}>`;}beginUpdate(e){3===this._state&&(this._checkIterations(),this._state=1),this._updateCount++;}endUpdate(e){try{if(1===this._updateCount){this._iteration=1;do{if(this._checkIterations())return;if(1===this._state){for(let e of(this._state=3,this._dependencies))if(e.reportChanges(),2===this._state)break;}this._iteration++,3!==this._state&&this._run();}while(3!==this._state);}}finally{this._updateCount--;}(0,n1.W)(()=>this._updateCount>=0);}handlePossibleChange(e){3===this._state&&this._isDependency(e)&&(this._checkIterations(),this._state=1);}handleChange(e,i){if(this._isDependency(e)){var _t10;(_t10=t)===null||_t10===void 0||_t10.handleAutorunDependencyChanged(this,e,i);try{(!this._changeTracker||this._changeTracker.handleChange({changedObservable:e,change:i,didChange:t=>t===e},this._changeSummary))&&(this._checkIterations(),this._state=2);}catch(e){(0,nf.G)(e);}}}_isDependency(e){return this._dependencies.has(e)&&!this._dependenciesToBeRemoved.has(e);}_ensureNoRunning(){if(!this._isRunning)throw new nf.Q("The reader object cannot be used outside its compute function!");}readObservable(e){if(this._ensureNoRunning(),this._disposed)return e.get();e.addObserver(this);let t=e.get();return this._dependencies.add(e),this._dependenciesToBeRemoved.delete(e),t;}get store(){if(this._ensureNoRunning(),this._disposed)throw new nf.Q("Cannot access store after dispose");return void 0===this._store&&(this._store=new i8.q()),this._store;}get delayedStore(){if(this._ensureNoRunning(),this._disposed)throw new nf.Q("Cannot access store after dispose");return void 0===this._delayedStore&&(this._delayedStore=new i8.q()),this._delayedStore;}debugGetState(){return{isRunning:this._isRunning,updateCount:this._updateCount,dependencies:this._dependencies,state:this._state,stateStr:function(e){switch(e){case 1:return"dependenciesMightHaveChanged";case 2:return"stale";case 3:return"upToDate";default:return"<unknown>";}}(this._state)};}debugRerun(){this._isRunning?this._state=2:this._run();}_checkIterations(){return this._iteration>100&&((0,nf.G)(new nf.Q(`Autorun '${this.debugName}' is stuck in an infinite update loop.`)),!0);}}function se(e,t=eq.ofCaller()){return new n7(new nq(void 0,void 0,e),e,void 0,t);}function st(e,t,i=eq.ofCaller()){var _e$debugReferenceFn;return new n7(new nq(e.owner,e.debugName,(_e$debugReferenceFn=e.debugReferenceFn)!==null&&_e$debugReferenceFn!==void 0?_e$debugReferenceFn:t),t,void 0,i);}function si(e,t,i=eq.ofCaller()){var _e$debugReferenceFn2;return new n7(new nq(e.owner,e.debugName,(_e$debugReferenceFn2=e.debugReferenceFn)!==null&&_e$debugReferenceFn2!==void 0?_e$debugReferenceFn2:t),t,e.changeTracker,i);}function sn(e,t){var _e$debugReferenceFn3;let i=new i8.q(),n=si({owner:e.owner,debugName:e.debugName,debugReferenceFn:(_e$debugReferenceFn3=e.debugReferenceFn)!==null&&_e$debugReferenceFn3!==void 0?_e$debugReferenceFn3:t,changeTracker:e.changeTracker},(e,n)=>{i.clear(),t(e,n,i);});return(0,i8.Q)(()=>{n.dispose(),i.dispose();});}function ss(e){let t=new i8.q(),i=st({owner:void 0,debugName:void 0,debugReferenceFn:e},i=>{t.clear(),e(i,t);});return(0,i8.Q)(()=>{i.dispose(),t.dispose();});}function so(e){let t=Error("BugIndicatingErrorRecovery: "+e);(0,nf.C)(t),console.error("recovered from an error that indicates a bug",t);}function sr(e,t){let i=new sd(e,t);try{e(i);}finally{i.finish();}}function sa(e){if(_)e(_);else{let t=new sd(e,void 0);_=t;try{e(t);}finally{t.finish(),_=void 0;}}}async function sl(e,t){let i=new sd(e,t);try{await e(i);}finally{i.finish();}}function sh(e,t,i){e?t(e):sr(t,i);}e.s(["n",0,se,"j",0,function(e,t){let i;return st({debugReferenceFn:t},n=>{let s=e.read(n),o=i;i=s,t({lastValue:o,newValue:s});});},"k",0,si,"R",0,st,"V",0,ss,"q",0,sn,"L",0,function(e,t,i=eq.ofCaller()){let n,s=!1;n=se(i=>{t({delayedStore:i.delayedStore,store:i.store,readObservable:i.readObservable.bind(i),dispose:()=>{n?e.delete(n):s=!0;}});},i),s?n.dispose():e.add(n);}],90103);class sd{constructor(e,i){var _t11;this._fn=e,this._getDebugName=i,this._updatingObservers=[],(_t11=t)===null||_t11===void 0?void 0:_t11.handleBeginTransaction(this);}getDebugName(){return this._getDebugName?this._getDebugName():nX(this._fn);}updateObserver(e,t){if(!this._updatingObservers){so("Transaction already finished!"),sr(i=>{i.updateObserver(e,t);});return;}this._updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t);}finish(){var _t12;let e=this._updatingObservers;if(!e)return void so("transaction.finish() has already been called!");for(let t=0;t<e.length;t++){let{observer:i,observable:n}=e[t];i.endUpdate(n);}this._updatingObservers=null,(_t12=t)===null||_t12===void 0?void 0:_t12.handleEndTransaction(this);}debugGetUpdatingObservers(){return this._updatingObservers;}}function sc(e,t,i=eq.ofCaller()){return new su("string"==typeof e?new nq(void 0,e,void 0):new nq(e,void 0,void 0),t,nB,i);}e.s(["d",0,sd,"H",0,sl,"b",0,sa,"z",0,sh,"O",0,sr],89326);class su extends n0{get debugName(){var _this$_debugNameData$3;return(_this$_debugNameData$3=this._debugNameData.getDebugName(this))!==null&&_this$_debugNameData$3!==void 0?_this$_debugNameData$3:"ObservableValue";}constructor(e,i,n,s){var _t13;super(s),this._debugNameData=e,this._equalityComparator=n,this._value=i,(_t13=t)===null||_t13===void 0?void 0:_t13.handleObservableUpdated(this,{hadValue:!1,newValue:i,change:void 0,didChange:!0,oldValue:void 0});}get(){return this._value;}set(e,i,n){let s;if(!(void 0===n&&this._equalityComparator(this._value,e))){i||(i=s=new sd(()=>{},()=>`Setting ${this.debugName}`));try{let s=this._value;for(let o of(this._setValue(e),(_t14=t)!==null&&_t14!==void 0&&_t14.handleObservableUpdated(this,{oldValue:s,newValue:e,change:n,didChange:!0,hadValue:!0}),this._observers)){var _t14;i.updateObserver(o,this),o.handleChange(this,n);}}finally{s&&s.finish();}}}toString(){return`${this.debugName}: ${this._value}`;}_setValue(e){this._value=e;}debugGetState(){return{value:this._value};}debugSetValue(e){this._value=e;}}function sg(e,t,i=eq.ofCaller()){return new sp("string"==typeof e?new nq(void 0,e,void 0):new nq(e,void 0,void 0),t,nB,i);}class sp extends su{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e);}dispose(){var _this$_value;(_this$_value=this._value)===null||_this$_value===void 0||_this$_value.dispose();}}function sf(...e){let t,i,n,s;return 2===e.length?[i,n]=e:[t,i,n,s]=e,new s_(new nq(t,void 0,n),i,n,()=>s_.globalTransaction,nB,s!==null&&s!==void 0?s:eq.ofCaller());}function sm(e,t,i,n=eq.ofCaller()){var _e$debugReferenceFn4,_e$equalsFn2;return new s_(new nq(e.owner,e.debugName,(_e$debugReferenceFn4=e.debugReferenceFn)!==null&&_e$debugReferenceFn4!==void 0?_e$debugReferenceFn4:i),t,i,()=>{var _e$getTransaction,_e$getTransaction2;return(_e$getTransaction=(_e$getTransaction2=e.getTransaction)===null||_e$getTransaction2===void 0?void 0:_e$getTransaction2.call(e))!==null&&_e$getTransaction!==void 0?_e$getTransaction:s_.globalTransaction;},(_e$equalsFn2=e.equalsFn)!==null&&_e$equalsFn2!==void 0?_e$equalsFn2:nB,n);}e.s(["b",0,su,"s",0,sg,"Q",0,sc],80492);class s_ extends n0{constructor(e,i,n,s,o,r){super(r),this._debugNameData=e,this.event=i,this._getValue=n,this._getTransaction=s,this._equalityComparator=o,this._hasValue=!1,this.handleEvent=e=>{var _t16;let i=this._getValue(e),n=this._value,s=this._hasValue,o=!s||!this._equalityComparator(n,i),r=!1;o&&(this._value=i,this._hasValue=!0,s&&(r=!0,sh(this._getTransaction(),e=>{for(let r of((_t15=t)!==null&&_t15!==void 0&&_t15.handleObservableUpdated(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:s}),this._observers)){var _t15;e.updateObserver(r,this),r.handleChange(this,void 0);}},()=>{let e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"");}))),r||((_t16=t)===null||_t16===void 0?void 0:_t16.handleObservableUpdated(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:s}));};}getDebugName(){return this._debugNameData.getDebugName(this);}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"");}onFirstObserverAdded(){this._subscription=this.event(this.handleEvent);}onLastObserverRemoved(){this._subscription.dispose(),this._subscription=void 0,this._hasValue=!1,this._value=void 0;}get(){return this._subscription?(this._hasValue||this.handleEvent(void 0),this._value):this._getValue(void 0);}debugSetValue(e){this._value=e;}debugGetState(){return{value:this._value,hasValue:this._hasValue};}}function sv(e,t=eq.ofCaller()){return"string"==typeof e?new sb(e,void 0,t):new sb(void 0,e,t);}(z=sf||(sf={})).Observer=s_,z.batchEventsGlobally=function(e,t){let i=!1;void 0===s_.globalTransaction&&(s_.globalTransaction=e,i=!0);try{t();}finally{i&&(s_.globalTransaction=void 0);}},e.s(["q",0,s_,"o",0,sf,"W",0,sm],43491);class sb extends n0{get debugName(){var _nq$getDebugName;return(_nq$getDebugName=new nq(this._owner,this._debugName,void 0).getDebugName(this))!==null&&_nq$getDebugName!==void 0?_nq$getDebugName:"Observable Signal";}toString(){return this.debugName;}constructor(e,t,i){super(i),this._debugName=e,this._owner=t;}trigger(e,t){if(!e)return void sr(e=>{this.trigger(e,t);},()=>`Trigger signal ${this.debugName}`);for(let i of this._observers)e.updateObserver(i,this),i.handleChange(this,t);}get(){}}function sC(e,t){let i=new sw(!0,t);e.addObserver(i);try{i.beginUpdate(e);}finally{i.endUpdate(e);}return(0,i8.Q)(()=>{e.removeObserver(i);});}e.s(["f",0,sv],33128),n=sC;class sw{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0;}beginUpdate(e){this._counter++;}endUpdate(e){1===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges()),this._counter--;}handlePossibleChange(e){}handleChange(e,t){}}function sy(e,t){let i;return n4({owner:e,debugReferenceFn:t},e=>i=t(e,i));}function sS(e,t,i,n){let s=new sx(i,n);return n4({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{s.dispose(),s=new sx(i);}},e=>{let i=t.read(e);return s.setItems(i),s.getItems();});}class sx{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map(),this._items=[];}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear();}setItems(e){let t=[],i=new Set(this._cache.keys());for(let n of e){let e=this._keySelector?this._keySelector(n):n,s=this._cache.get(e);if(s)i.delete(e);else{let t=new i8.q();s={out:this._map(n,t),store:t},this._cache.set(e,s);}t.push(s.out);}for(let e of i)this._cache.get(e).store.dispose(),this._cache.delete(e);this._items=t;}getItems(){return this._items;}}function sL(e){return!!e&&void 0!==e.read&&void 0!==e.reportChanges;}function sk(e,t){switch(typeof e){case"number":default:return""+e;case"string":if(e.length+2<=t)return`"${e}"`;return`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":if(null===e)return"null";if(Array.isArray(e)){var i=e,n=t;let s="[ ",o=!0;for(let e of i){if(o||(s+=", "),s.length-5>n){s+="...";break;}o=!1,s+=`${sk(e,n-s.length)}`;}return s+" ]";}var s=e,o=t;if("function"==typeof s.toString&&s.toString!==Object.prototype.toString){let e=s.toString();return e.length<=o?e:e.substring(0,o-3)+"...";}let r=nY(s),a=r?r+"(":"{ ",l=!0;for(let[e,t]of Object.entries(s)){if(l||(a+=", "),a.length-5>o){a+="...";break;}l=!1,a+=`${e}: ${sk(t,o-a.length)}`;}return a+(r?")":" }");case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;}}e.s(["S",0,function(e,t,i=eq.ofCaller()){let n,s,o=!1;return sf(void 0,i=>{let r=se(r=>{let a=e.read(r);o?(n&&clearTimeout(n),n=setTimeout(()=>{s=a,i();},t)):(o=!0,s=a);});return{dispose(){r.dispose(),o=!1,s=void 0;}};},()=>o?s:e.get(),i);},"h",0,function(e,t,i=eq.ofCaller()){let n,s,o=sv("handleTimeout");return n4({owner:void 0,onLastObserverRemoved:()=>{n=void 0;}},i=>{let r=e.read(i);if(o.read(i),r!==n){let e="number"==typeof t?t:t(n,r);if(0===e)return n=r,r;s&&clearTimeout(s),s=setTimeout(()=>{n=r,o.trigger(void 0);},e);}return n;},i);},"P",0,sy,"c",0,sL,"J",0,sS,"p",0,function(e){let t=sc("promiseValue",{});return e.then(e=>{t.set({value:e},void 0);}),t;},"s",0,sC],15738);class sD{static createClient(e,t){return new sD(e,t);}constructor(e,t){this._channelFactory=e,this._getHandler=t,this._channel=this._channelFactory({handleNotification:e=>{let t=this._getHandler().notifications[e[0]];if(!t)throw Error(`Unknown notification "${e[0]}"!`);t(...e[1]);},handleRequest:e=>{try{let t=this._getHandler().requests[e[0]](...e[1]);return{type:"result",value:t};}catch(e){return{type:"error",value:e};}}});let i=new Proxy({},{get:(e,t)=>{if("then"!==t)return async(...e)=>{let i=await this._channel.sendRequest([t,e]);if("error"!==i.type)return i.value;throw i.value;};}}),n=new Proxy({},{get:(e,t)=>{if("then"!==t)return(...e)=>{this._channel.sendNotification([t,e]);};}});this.api={notifications:n,requests:i};}}class sM{constructor(){this._timeout=void 0;}throttle(e,t){void 0===this._timeout&&(this._timeout=setTimeout(()=>{this._timeout=void 0,e();},t));}dispose(){void 0!==this._timeout&&clearTimeout(this._timeout);}}var sI=e.i(61386);class sN{static getInstance(){return void 0===sN._instance&&(sN._instance=new sN()),sN._instance;}getTransactionState(){let e=[],t=[...this._activeTransactions];if(0===t.length)return;let i=t.flatMap(e=>{var _e$debugGetUpdatingOb;return(_e$debugGetUpdatingOb=e.debugGetUpdatingObservers())!==null&&_e$debugGetUpdatingOb!==void 0?_e$debugGetUpdatingOb:[];}).map(e=>e.observer),n=new Set();for(;i.length>0;){let t=i.shift();if(n.has(t))continue;n.add(t);let s=this._getInfo(t,e=>{n.has(e)||i.push(e);});s&&e.push(s);}return{names:t.map(e=>{var _e$getDebugName;return(_e$getDebugName=e.getDebugName())!==null&&_e$getDebugName!==void 0?_e$getDebugName:"tx";}),affected:e};}_getObservableInfo(e){let t=this._instanceInfos.get(e);return t||void(0,nf.C)(new nf.Q("No info found"));}_getAutorunInfo(e){let t=this._instanceInfos.get(e);return t||void(0,nf.C)(new nf.Q("No info found"));}_getInfo(e,t){if(e instanceof n2){for(let i of[...e.debugGetObservers()])t(i);let i=this._getObservableInfo(e);if(!i)return;let n=e.debugGetState(),s={name:e.debugName,instanceId:i.instanceId,updateCount:n.updateCount},o=[...i.changedObservables].map(e=>{var _this$_instanceInfos$;return(_this$_instanceInfos$=this._instanceInfos.get(e))===null||_this$_instanceInfos$===void 0?void 0:_this$_instanceInfos$.instanceId;}).filter(sI.v);if(n.isComputing)return{...s,type:"observable/derived",state:"updating",changedDependencies:o,initialComputation:!1};switch(n.state){case 0:return{...s,type:"observable/derived",state:"noValue"};case 3:return{...s,type:"observable/derived",state:"upToDate"};case 2:return{...s,type:"observable/derived",state:"stale",changedDependencies:o};case 1:return{...s,type:"observable/derived",state:"possiblyStale"};}}else if(e instanceof n7){let t=this._getAutorunInfo(e);if(!t)return;let i={name:e.debugName,instanceId:t.instanceId,updateCount:t.updateCount},n=[...t.changedObservables].map(e=>this._instanceInfos.get(e).instanceId);if(e.debugGetState().isRunning)return{...i,type:"autorun",state:"updating",changedDependencies:n};switch(e.debugGetState().state){case 3:return{...i,type:"autorun",state:"upToDate"};case 2:return{...i,type:"autorun",state:"stale",changedDependencies:n};case 1:return{...i,type:"autorun",state:"possiblyStale"};}}}_formatObservable(e){let t=this._getObservableInfo(e);if(t)return{name:e.debugName,instanceId:t.instanceId};}_formatObserver(e){var _this$_getObservableI;if(e instanceof n2)return{name:e.toString(),instanceId:(_this$_getObservableI=this._getObservableInfo(e))===null||_this$_getObservableI===void 0?void 0:_this$_getObservableI.instanceId};let t=this._getAutorunInfo(e);if(t)return{name:e.toString(),instanceId:t.instanceId};}constructor(){this._declarationId=0,this._instanceId=0,this._declarations=new Map(),this._instanceInfos=new WeakMap(),this._aliveInstances=new Map(),this._activeTransactions=new Set(),this._channel=function(e,t,_r$$$debugValueEditor){var i;let n,s,o,r=globalThis,a=[],{channel:l,handler:h}=(i={sendNotification:e=>{s?s.sendNotification(e):a.push(e);}},{channel:e=>(n=e,{sendNotification:e=>{i.sendNotification(e);},sendRequest:e=>{throw Error("not supported");}}),handler:{handleRequest:e=>{var _n2,_n3;return"notification"===e.type?(_n2=n)===null||_n2===void 0?void 0:_n2.handleNotification(e.data):(_n3=n)===null||_n3===void 0?void 0:_n3.handleRequest(e.data);}}});return((_r$$$debugValueEditor=r.$$debugValueEditor_debugChannels)!==null&&_r$$$debugValueEditor!==void 0?_r$$$debugValueEditor:r.$$debugValueEditor_debugChannels={})[e]=e=>{for(let i of(o=t(),s=e,a))e.sendNotification(i);return a=[],h;},sD.createClient(l,()=>{if(!o)throw Error("Not supported");return o;});}("observableDevTools",()=>({notifications:{setDeclarationIdFilter:e=>{},logObservableValue:e=>{console.log("logObservableValue",e);},flushUpdates:()=>{this._flushUpdates();},resetUpdates:()=>{this._pendingChanges=null,this._channel.api.notifications.handleChange(this._fullState,!0);}},requests:{getDeclarations:()=>{let e={};for(let t of this._declarations.values())e[t.id]=t;return{decls:e};},getSummarizedInstances:()=>null,getObservableValueInfo:e=>({observers:[...this._aliveInstances.get(e).debugGetObservers()].map(e=>this._formatObserver(e)).filter(sI.v)}),getDerivedInfo:e=>{let t=this._aliveInstances.get(e);return{dependencies:[...t.debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(sI.v),observers:[...t.debugGetObservers()].map(e=>this._formatObserver(e)).filter(sI.v)};},getAutorunInfo:e=>({dependencies:[...this._aliveInstances.get(e).debugGetState().dependencies].map(e=>this._formatObservable(e)).filter(sI.v)}),getTransactionState:()=>this.getTransactionState(),setValue:(e,t)=>{let i=this._aliveInstances.get(e);if(i instanceof n2)i.debugSetValue(t);else if(i instanceof su)i.debugSetValue(t);else if(i instanceof s_)i.debugSetValue(t);else throw new nf.Q("Observable is not supported");let n=[...i.debugGetObservers()];for(let e of n)e.beginUpdate(i);for(let e of n)e.handleChange(i,void 0);for(let e of n)e.endUpdate(i);},getValue:e=>{let t=this._aliveInstances.get(e);return t instanceof n2||t instanceof su?sk(t.debugGetState().value,200):void 0;},logValue:e=>{let t=this._aliveInstances.get(e);if(t&&"get"in t)console.log("Logged Value:",t.get());else throw new nf.Q("Observable is not supported");},rerun:e=>{let t=this._aliveInstances.get(e);if(t instanceof n2)t.debugRecompute();else if(t instanceof n7)t.debugRerun();else throw new nf.Q("Observable is not supported");}}})),this._pendingChanges=null,this._changeThrottler=new sM(),this._fullState={},this._flushUpdates=()=>{null!==this._pendingChanges&&(this._channel.api.notifications.handleChange(this._pendingChanges,!1),this._pendingChanges=null);},eq.enable();}_handleChange(e){!function e(t,i){for(let n in i)null===i[n]?delete t[n]:t[n]&&"object"==typeof t[n]&&i[n]&&"object"==typeof i[n]?e(t[n],i[n]):t[n]=i[n];}(this._fullState,e),null===this._pendingChanges?this._pendingChanges=e:function e(t,i){for(let n in i)t[n]&&"object"==typeof t[n]&&i[n]&&"object"==typeof i[n]?e(t[n],i[n]):t[n]=i[n];}(this._pendingChanges,e),this._changeThrottler.throttle(this._flushUpdates,10);}_getDeclarationId(e,t){if(!t)return-1;let i=this._declarations.get(t.id);return void 0===i&&(i={id:this._declarationId++,type:e,url:t.fileName,line:t.line,column:t.column},this._declarations.set(t.id,i),this._handleChange({decls:{[i.id]:i}})),i.id;}handleObservableCreated(e,t){let i={declarationId:this._getDeclarationId("observable/value",t),instanceId:this._instanceId++,listenerCount:0,lastValue:void 0,updateCount:0,changedObservables:new Set()};this._instanceInfos.set(e,i);}handleOnListenerCountChanged(e,t){let i=this._getObservableInfo(e);if(i){if(0===i.listenerCount&&t>0){let t=e instanceof n2?"observable/derived":"observable/value";this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,formattedValue:i.lastValue,type:t,name:e.debugName}}});}else i.listenerCount>0&&0===t&&(this._handleChange({instances:{[i.instanceId]:null}}),this._aliveInstances.delete(i.instanceId));i.listenerCount=t;}}handleObservableUpdated(e,t){if(e instanceof n2)return void this._handleDerivedRecomputed(e,t);let i=this._getObservableInfo(e);i&&t.didChange&&(i.lastValue=sk(t.newValue,30),i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:i.lastValue}}}));}handleAutorunCreated(e,t){let i={declarationId:this._getDeclarationId("autorun",t),instanceId:this._instanceId++,updateCount:0,changedObservables:new Set()};this._instanceInfos.set(e,i),this._aliveInstances.set(i.instanceId,e),this._handleChange({instances:{[i.instanceId]:{instanceId:i.instanceId,declarationId:i.declarationId,runCount:0,type:"autorun",name:e.debugName}}});}handleAutorunDisposed(e){let t=this._getAutorunInfo(e);t&&(this._handleChange({instances:{[t.instanceId]:null}}),this._instanceInfos.delete(e),this._aliveInstances.delete(t.instanceId));}handleAutorunDependencyChanged(e,t,i){let n=this._getAutorunInfo(e);n&&n.changedObservables.add(t);}handleAutorunStarted(e){}handleAutorunFinished(e){let t=this._getAutorunInfo(e);t&&(t.changedObservables.clear(),t.updateCount++,this._handleChange({instances:{[t.instanceId]:{runCount:t.updateCount}}}));}handleDerivedDependencyChanged(e,t,i){let n=this._getObservableInfo(e);n&&n.changedObservables.add(t);}_handleDerivedRecomputed(e,t){let i=this._getObservableInfo(e);if(!i)return;let n=sk(t.newValue,30);i.updateCount++,i.changedObservables.clear(),i.lastValue=n,i.listenerCount>0&&this._handleChange({instances:{[i.instanceId]:{formattedValue:n,recomputationCount:i.updateCount}}});}handleDerivedCleared(e){let t=this._getObservableInfo(e);t&&(t.lastValue=void 0,t.changedObservables.clear(),t.listenerCount>0&&this._handleChange({instances:{[t.instanceId]:{formattedValue:void 0}}}));}handleBeginTransaction(e){this._activeTransactions.add(e);}handleEndTransaction(e){this._activeTransactions.delete(e);}}_sN=sN;_sN._instance=void 0;var sE=e.i(95583);sE.$&&sE.$.VSCODE_DEV_DEBUG_OBSERVABLES&&(U=sN.getInstance(),t?t instanceof n$?t.loggers.push(U):t=new n$([t,U]):t=U),e.s([],7860);let{getWindow:sT,getDocument:sR,getWindows:sA,getWindowsCount:sO,getWindowId:sP,getWindowById:sF,onDidRegisterWindow:sB,onWillUnregisterWindow:sW,onDidUnregisterWindow:sV}=(v=new Map(),i4(i9,1),b={window:i9,disposables:new nE.q()},v.set(i9.vscodeWindowId,b),C=new nN.S(),w=new nN.S(),y=new nN.S(),{onDidRegisterWindow:C.event,onWillUnregisterWindow:y.event,onDidUnregisterWindow:w.event,registerWindow(e){if(v.has(e.vscodeWindowId))return nE.N.None;let t=new nE.q(),i={window:e,disposables:t.add(new nE.q())};return v.set(e.vscodeWindowId,i),t.add((0,nE.Q)(()=>{v.delete(e.vscodeWindowId),w.fire(e);})),t.add(s$(e,o_.BEFORE_UNLOAD,()=>{y.fire(e);})),C.fire(i),t;},getWindows:()=>v.values(),getWindowsCount:()=>v.size,getWindowId:e=>e.vscodeWindowId,hasWindow:e=>v.has(e),getWindowById:function(e,t){var _ref;return(_ref="number"==typeof e?v.get(e):void 0)!==null&&_ref!==void 0?_ref:t?b:void 0;},getWindow:e=>{var _e$ownerDocument;return e!==null&&e!==void 0&&(_e$ownerDocument=e.ownerDocument)!==null&&_e$ownerDocument!==void 0&&_e$ownerDocument.defaultView?e.ownerDocument.defaultView.window:e!==null&&e!==void 0&&e.view?e.view.window:i9;},getDocument:e=>sT(e).document}),sH=new Set();function sz(e){for(;e.firstChild;)e.firstChild.remove();}class sU{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options);}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null);}}function s$(e,t,i,n){return new sU(e,t,i,n);}function sK(e,t){return function(i){return t(new nD(e,i));};}let sq=function(e,t,i,n){let s=i;if("click"===t||"mousedown"===t||"contextmenu"===t)s=sK(sT(e),i);else("keydown"===t||"keypress"===t||"keyup"===t)&&(s=function(e){return i(new nx(e));});return s$(e,t,s,n);};function sj(e,t,i){return s$(e,i_.I&&ng.pointerEvents?o_.POINTER_DOWN:o_.MOUSE_DOWN,t,i);}function sG(e,t,i){return s$(e,i_.I&&ng.pointerEvents?o_.POINTER_MOVE:o_.MOUSE_MOVE,t,i);}function sQ(e,t,i){return s$(e,i_.I&&ng.pointerEvents?o_.POINTER_UP:o_.MOUSE_UP,t,i);}function sZ(e,t,i){return(0,nI.q)(e,t,i);}class sY extends nI.R{constructor(e,t){super(e,t);}}class sX extends nI.Q{constructor(e){super(),this.defaultTarget=e&&sT(e);}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i!==null&&i!==void 0?i:this.defaultTarget);}}class sJ{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1;}dispose(){this._canceled=!0;}execute(){if(!this._canceled)try{this._runner();}catch(e){(0,nf.C)(e);}}static sort(e,t){return t.priority-e.priority;}}function s0(e){return sT(e).getComputedStyle(e,null);}function s1(e,t,i){let n=sT(e),s=n.document;if(e!==s.body)return new s3(e.clientWidth,e.clientHeight);if(i_.I&&n!==null&&n!==void 0&&n.visualViewport)return new s3(n.visualViewport.width,n.visualViewport.height);if(n!==null&&n!==void 0&&n.innerWidth&&n.innerHeight)return new s3(n.innerWidth,n.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new s3(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new s3(s.documentElement.clientWidth,s.documentElement.clientHeight);throw Error("Unable to figure out browser width and height");}S=new Map(),x=new Map(),L=new Map(),k=new Map(),o=(e,t,i=0)=>{let n=sP(e),s=new sJ(t,i),o=S.get(n);return o||(o=[],S.set(n,o)),o.push(s),L.get(n)||(L.set(n,!0),e.requestAnimationFrame(()=>((e,_S$get)=>{L.set(e,!1);let t=(_S$get=S.get(e))!==null&&_S$get!==void 0?_S$get:[];for(x.set(e,t),S.set(e,[]),k.set(e,!0);t.length>0;)t.sort(sJ.sort),t.shift().execute();k.set(e,!1);})(n))),s;},s=(e,t,i)=>{let n=sP(e);if(!k.get(n))return o(e,t,i);{let e=new sJ(t,i),s=x.get(n);return s||(s=[],x.set(n,s)),s.push(e),e;}};class s2{static convertToPixels(e,t){return parseFloat(t)||0;}static getDimension(e,t){let i=s0(e),n=i?i.getPropertyValue(t):"0";return s2.convertToPixels(e,n);}static getBorderLeftWidth(e){return s2.getDimension(e,"border-left-width");}static getBorderRightWidth(e){return s2.getDimension(e,"border-right-width");}static getBorderTopWidth(e){return s2.getDimension(e,"border-top-width");}static getBorderBottomWidth(e){return s2.getDimension(e,"border-bottom-width");}static getPaddingLeft(e){return s2.getDimension(e,"padding-left");}static getPaddingRight(e){return s2.getDimension(e,"padding-right");}static getPaddingTop(e){return s2.getDimension(e,"padding-top");}static getPaddingBottom(e){return s2.getDimension(e,"padding-bottom");}static getMarginLeft(e){return s2.getDimension(e,"margin-left");}static getMarginTop(e){return s2.getDimension(e,"margin-top");}static getMarginRight(e){return s2.getDimension(e,"margin-right");}static getMarginBottom(e){return s2.getDimension(e,"margin-bottom");}}class s3{constructor(e,t){this.width=e,this.height=t;}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new s3(e,t):this;}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width;}static lift(e){return e instanceof s3?e:new s3(e.width,e.height);}static equals(e,t){return e===t||!!e&&!!t&&e.width===t.width&&e.height===t.height;}}_s2=s3;_s2.None=new _s2(0,0);function s5(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;let s=on(e)?null:s0(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=s2.getBorderLeftWidth(e),i+=s2.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent);}return{left:n,top:i};}function s6(e){let t=e.getBoundingClientRect(),i=sT(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height};}function s4(e){let t=e,i=1;do{let e=s0(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement;}while(null!==t&&t!==t.ownerDocument.documentElement);return i;}function s9(e){let t=s2.getMarginLeft(e)+s2.getMarginRight(e);return e.offsetWidth+t;}function s8(e){let t=s2.getBorderLeftWidth(e)+s2.getBorderRightWidth(e),i=s2.getPaddingLeft(e)+s2.getPaddingRight(e);return e.offsetWidth-t-i;}function s7(e){let t=s2.getBorderTopWidth(e)+s2.getBorderBottomWidth(e),i=s2.getPaddingTop(e)+s2.getPaddingBottom(e);return e.offsetHeight-t-i;}function oe(e){let t=s2.getMarginTop(e)+s2.getMarginBottom(e);return e.offsetHeight+t;}function ot(e,t){return!!(t!==null&&t!==void 0&&t.contains(e));}function oi(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if("string"==typeof t?e.classList.contains(t):t.every(t=>e.classList.contains(t)))return e;if(i){if("string"==typeof i){if(e.classList.contains(i))break;}else if(e===i)break;}e=e.parentNode;}return null;}(e,t,i);}function on(e){return e&&!!e.host&&!!e.mode;}function os(e){return!!oo(e);}function oo(e){for(;e.parentNode;){var _e$ownerDocument2;if(e===((_e$ownerDocument2=e.ownerDocument)===null||_e$ownerDocument2===void 0?void 0:_e$ownerDocument2.body))return null;e=e.parentNode;}return on(e)?e:null;}function or(){let e=oh().activeElement;for(;(_e2=e)!==null&&_e2!==void 0&&_e2.shadowRoot;){var _e2;e=e.shadowRoot.activeElement;}return e;}function oa(e){return or()===e;}function ol(e){return ot(or(),e);}function oh(){if(1>=sO())return i9.document;let e=Array.from(sA()).map(({window:e})=>e.document).find(e=>e.hasFocus());if(e)return e;let t=function(){for(let e of sH){let t=e();if(t.hasFocus&&t.window)return t.window;}}();return t?t.document:i9.document;}function od(){var _e$defaultView$window,_e$defaultView;let e=oh();return(_e$defaultView$window=(_e$defaultView=e.defaultView)===null||_e$defaultView===void 0?void 0:_e$defaultView.window)!==null&&_e$defaultView$window!==void 0?_e$defaultView$window:i9;}let oc=new class{constructor(){this.mutationObservers=new Map();}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map(),this.mutationObservers.set(e,n));let s=(0,nR.R)(i),o=n.get(s);if(o)o.users+=1;else{let r=new nN.S(),a=new MutationObserver(e=>r.fire(e));a.observe(e,i);let l=o={users:1,observer:a,onDidMutate:r.event};t.add((0,nE.Q)(()=>{var _n4,_n5;l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),(_n4=n)!==null&&_n4!==void 0&&_n4.delete(s),((_n5=n)===null||_n5===void 0?void 0:_n5.size)===0&&this.mutationObservers.delete(e));})),n.set(s,o);}return o.onDidMutate;}}();function ou(e){return e instanceof HTMLElement||e instanceof sT(e).HTMLElement;}function og(e){return e instanceof HTMLAnchorElement||e instanceof sT(e).HTMLAnchorElement;}function op(e){return e instanceof SVGElement||e instanceof sT(e).SVGElement;}function of(e){return e instanceof MouseEvent||e instanceof sT(e).MouseEvent;}function om(e){return e instanceof KeyboardEvent||e instanceof sT(e).KeyboardEvent;}let o_={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",RESIZE:"resize",SCROLL:"scroll",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function ov(e){return!!(e&&"function"==typeof e.preventDefault&&"function"==typeof e.stopPropagation);}let ob={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function oC(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t;}function ow(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode;}class oy extends nE.N{get onDidFocus(){return this._onDidFocus.event;}get onDidBlur(){return this._onDidBlur.event;}static hasFocusWithin(e){if(!ou(e))return ot(e.document.activeElement,e.document);{let t=oo(e);return ot(t?t.activeElement:e.ownerDocument.activeElement,e);}}constructor(e){super(),this._onDidFocus=this._register(new nN.S()),this._onDidBlur=this._register(new nN.S());let t=oy.hasFocusWithin(e),i=!1,n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire());},s=()=>{t&&(i=!0,(ou(e)?sT(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire());},0));};this._refreshStateHandler=()=>{oy.hasFocusWithin(e)!==t&&(t?s():n());},this._register(s$(e,o_.FOCUS,n,!0)),this._register(s$(e,o_.BLUR,s,!0)),ou(e)&&(this._register(s$(e,o_.FOCUS_IN,()=>this._refreshStateHandler())),this._register(s$(e,o_.FOCUS_OUT,()=>this._refreshStateHandler())));}}function oS(e){return new oy(e);}function ox(e,t){return e.after(t),t;}function oL(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0];}function ok(e,t){return e.insertBefore(t,e.firstChild),t;}function oD(e,...t){e.textContent="",oL(e,...t);}let oM=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function oI(e,t,i,...n){let s,o=oM.exec(t);if(!o)throw Error("Bad use of emmet");let r=o[1]||"div";return s=e!==ej.HTML?document.createElementNS(e,r):document.createElement(r),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t));}),s.append(...n),s;}function oN(e,t,...i){return oI(ej.HTML,e,t,...i);}function oE(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden");}function oT(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true");}function oR(e,t){return Math.max(1,Math.floor(e.devicePixelRatio*t))/e.devicePixelRatio;}function oA(e){i9.open(e,"_blank","noopener");}function oO(e,t){let i=()=>{t(),n=o(e,i);},n=o(e,i);return(0,nE.Q)(()=>n.dispose());}($=ej||(ej={})).HTML="http://www.w3.org/1999/xhtml",$.SVG="http://www.w3.org/2000/svg",oN.SVG=function(e,t,...i){return oI(ej.SVG,e,t,...i);},nT.k.setPreferredWebSchema(/^https:/.test(i9.location.href)?"https":"http");class oP extends nN.S{constructor(){super(),this._subscriptions=(0,nE.P)(new nE.q()),this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(nN.C.runAndSubscribe(sB,({window:e,disposables:t})=>this.registerListeners(e,t),{window:i9,disposables:this._subscriptions}));}registerListeners(e,t){t.add(s$(e,"keydown",e=>{if(e.defaultPrevented)return;let t=new nx(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0;}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus));}},!0)),t.add(s$(e,"keyup",e=>{!e.defaultPrevented&&(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)));},!0)),t.add(s$(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0;},!0)),t.add(s$(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0;},!0)),t.add(s$(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0);},!0)),t.add(s$(e,"blur",()=>{this.resetKeyStatus();}));}get keyStatus(){return this._keyStatus;}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus);}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1};}static getInstance(){return oP.instance||(oP.instance=new oP()),oP.instance;}dispose(){super.dispose(),this._subscriptions.dispose();}}class oF extends nE.N{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners();}registerListeners(){this.callbacks.onDragStart&&this._register(s$(this.element,o_.DRAG_START,e=>{var _this$callbacks$onDra,_this$callbacks;(_this$callbacks$onDra=(_this$callbacks=this.callbacks).onDragStart)===null||_this$callbacks$onDra===void 0||_this$callbacks$onDra.call(_this$callbacks,e);})),this.callbacks.onDrag&&this._register(s$(this.element,o_.DRAG,e=>{var _this$callbacks$onDra2,_this$callbacks2;(_this$callbacks$onDra2=(_this$callbacks2=this.callbacks).onDrag)===null||_this$callbacks$onDra2===void 0||_this$callbacks$onDra2.call(_this$callbacks2,e);})),this._register(s$(this.element,o_.DRAG_ENTER,e=>{var _this$callbacks$onDra3,_this$callbacks3;this.counter++,this.dragStartTime=e.timeStamp,(_this$callbacks$onDra3=(_this$callbacks3=this.callbacks).onDragEnter)===null||_this$callbacks$onDra3===void 0?void 0:_this$callbacks$onDra3.call(_this$callbacks3,e);})),this._register(s$(this.element,o_.DRAG_OVER,e=>{var _this$callbacks$onDra4,_this$callbacks4;e.preventDefault(),(_this$callbacks$onDra4=(_this$callbacks4=this.callbacks).onDragOver)===null||_this$callbacks$onDra4===void 0?void 0:_this$callbacks$onDra4.call(_this$callbacks4,e,e.timeStamp-this.dragStartTime);})),this._register(s$(this.element,o_.DRAG_LEAVE,e=>{var _this$callbacks$onDra5,_this$callbacks5;this.counter--,0===this.counter&&(this.dragStartTime=0,(_this$callbacks$onDra5=(_this$callbacks5=this.callbacks).onDragLeave)===null||_this$callbacks$onDra5===void 0?void 0:_this$callbacks$onDra5.call(_this$callbacks5,e));})),this._register(s$(this.element,o_.DRAG_END,e=>{var _this$callbacks$onDra6,_this$callbacks6;this.counter=0,this.dragStartTime=0,(_this$callbacks$onDra6=(_this$callbacks6=this.callbacks).onDragEnd)===null||_this$callbacks$onDra6===void 0?void 0:_this$callbacks$onDra6.call(_this$callbacks6,e);})),this._register(s$(this.element,o_.DROP,e=>{var _this$callbacks$onDro,_this$callbacks7;this.counter=0,this.dragStartTime=0,(_this$callbacks$onDro=(_this$callbacks7=this.callbacks).onDrop)===null||_this$callbacks$onDro===void 0?void 0:_this$callbacks$onDro.call(_this$callbacks7,e);}));}}class oB extends nE.N{constructor(e,t,i=i9,n){var _n$resizeObserverCtor;super(),this.name=e;let s=(_n$resizeObserverCtor=n===null||n===void 0?void 0:n.resizeObserverCtor)!==null&&_n$resizeObserverCtor!==void 0?_n$resizeObserverCtor:i.ResizeObserver;this.observer=new s((e,n)=>{var s=i,o=this.name;let r=oW.get(s);if(r||(r={names:new Set(),overflow:!1},oW.set(s,r),s.requestAnimationFrame(()=>oW.delete(s))),!r.names.has(o))if(r.names.size<8)r.names.add(o);else{r.overflow=!0;let e=Array.from(r.names).sort().at(-1);o<e&&(r.names.delete(e),r.names.add(o));}try{t(e,n);}catch(e){(0,nf.C)(e);}}),this._register((0,nE.Q)(()=>this.observer.disconnect()));}observe(e,t){return this.observer.observe(e,t),(0,nE.Q)(()=>this.observer.unobserve(e));}}let oW=new WeakMap(),oV=_wrapRegExp(/([\w\-]+)?(?:#([\w\-]+))?((?:\.(?:[\w\-]+))*)(?:@((?:[\w\_])+))?/,{tag:1,id:2,"class":3,name:4});function oH(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);let s=oV.exec(e);if(!s||!s.groups)throw Error("Bad use of h");let o=s.groups.tag||"div",r=document.createElement(o);s.groups.id&&(r.id=s.groups.id);let a=[];if(s.groups.class)for(let e of s.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(let e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));let l={};if(s.groups.name&&(l[s.groups.name]=r),n)for(let e of n)ou(e)?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(l,e),r.appendChild(e.root));for(let[e,t]of Object.entries(i))if("className"===e)continue;else if("style"===e)for(let[e,i]of Object.entries(t))r.style.setProperty(oz(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(oz(e),t.toString());return l.root=r,l;}function oz(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();}function oU(e,t,i){for(let{name:i,value:n}of e.attributes)t.setAttribute(i,n);}function o$(e){return"input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase()||ou(e)&&!!e.editContext;}var oK=eG||(eG={});function oq(e){return(t,i,n)=>{let s=i.class;delete i.class;let o=i.ref;delete i.ref;let r=i.obsRef;return delete i.obsRef,new oJ(t,o,r,e,s,i,n);};}function oj(e,t){let i=oq(t);return(t,n)=>i(e,t,n);}oK.div=oj("div"),oK.elem=oq(void 0),oK.svg=oj("svg","http://www.w3.org/2000/svg"),oK.svgElem=oq("http://www.w3.org/2000/svg"),oK.ref=function(){let e,t=function(t){e=t;};return Object.defineProperty(t,"element",{get(){if(!e)throw new nf.Q("Make sure the ref is set before accessing the element. Maybe wrong initialization order?");return e;}}),t;};class oG{constructor(e,t,i,n,s,o,r){for(let[r,a]of(this._deriveds=[],this._isHovered=void 0,this._didMouseMoveDuringHover=void 0,this._element=n?document.createElementNS(n,e):document.createElement(e),t&&t(this._element),i&&this._deriveds.push(n5(e=>{i(this),e.store.add({dispose:()=>{i(null);}});})),s&&(!function e(t){return!!sL(t)||!!Array.isArray(t)&&t.some(t=>e(t));}(s)?oQ(this._element,oZ(s,void 0)):this._deriveds.push(n5(this,e=>{oQ(this._element,oZ(s,e));}))),Object.entries(o)))if("style"===r)for(let[e,t]of Object.entries(a)){let i=oz(e);sL(t)?this._deriveds.push(n4({owner:this,debugName:()=>`set.style.${i}`},e=>{this._element.style.setProperty(i,oY(t.read(e)));})):this._element.style.setProperty(i,oY(t));}else"tabIndex"===r?sL(a)?this._deriveds.push(n5(this,e=>{this._element.tabIndex=a.read(e);})):this._element.tabIndex=a:r.startsWith("on")?this._element[r]=a:sL(a)?this._deriveds.push(n4({owner:this,debugName:()=>`set.${r}`},e=>{o0(this._element,r,a.read(e));})):o0(this._element,r,a);if(r){let e=n5(this,e=>{this._element.replaceChildren(...function e(t,i){return sL(i)?e(t,i.read(t)):Array.isArray(i)?i.flatMap(i=>e(t,i)):i instanceof oG?(t&&i.readEffect(t),[i._element]):i?[i]:[];}(e,r));});this._deriveds.push(e),!function e(t){return!!sL(t)||!!Array.isArray(t)&&t.some(t=>e(t));}(r)&&e.get();}}readEffect(e){for(let t of this._deriveds)t.read(e);}keepUpdated(e){return n5(e=>{this.readEffect(e);}).recomputeInitiallyAndOnChange(e),this;}toDisposableLiveElement(){let e=new nE.q();return this.keepUpdated(e),new oX(this._element,e);}get isHovered(){if(!this._isHovered){let e=sc("hovered",!1);this._element.addEventListener("mouseenter",t=>e.set(!0,void 0)),this._element.addEventListener("mouseleave",t=>e.set(!1,void 0)),this._isHovered=e;}return this._isHovered;}get didMouseMoveDuringHover(){if(!this._didMouseMoveDuringHover){let e=!1,t=sc("didMouseMoveDuringHover",!1);this._element.addEventListener("mouseenter",t=>{e=!0;}),this._element.addEventListener("mousemove",i=>{e&&t.set(!0,void 0);}),this._element.addEventListener("mouseleave",i=>{e=!1,t.set(!1,void 0);}),this._didMouseMoveDuringHover=t;}return this._didMouseMoveDuringHover;}}function oQ(e,t){op(e)?e.setAttribute("class",t):e.className=t;}function oZ(e,t){let i="";return!function e(t,i,n){if(sL(t))return void n(t.read(i));if(Array.isArray(t)){for(let s of t)e(s,i,n);return;}n(t);}(e,t,e=>{e&&(0===i.length?i=e:i+=" "+e);}),i;}function oY(e){return"number"==typeof e?e+"px":e;}class oX{constructor(e,t){this.element=e,this._disposable=t;}dispose(){this._disposable.dispose();}}class oJ extends oG{get element(){return this._element;}}function o0(e,t,i){null==i?e.removeAttribute(oz(t)):e.setAttribute(oz(t),String(i));}class o1 extends HTMLElement{disconnectedCallback(){var _this$onDidDisconnect;(_this$onDidDisconnect=this.onDidDisconnect)===null||_this$onDidDisconnect===void 0||_this$onDidDisconnect.call(this);}connectedCallback(){var _this$onDidConnect;(_this$onDidConnect=this.onDidConnect)===null||_this$onDidConnect===void 0||_this$onDidConnect.call(this);}}customElements.get("connection-observer")||customElements.define("connection-observer",o1),e.s(["$",0,oN,"Xy",0,s3,"Qb",0,oB,"wv",0,oF,"ZE",0,ob,"vv",0,o_,"Fj",0,oP,"WK",0,class{constructor(e,t,i){this.originX=e,this.originY=t,this.points=new Int16Array(8);let{top:n,left:s,right:o,bottom:r}=i.getBoundingClientRect(),a=this.points,l=0;a[l++]=s,a[l++]=n,a[l++]=o,a[l++]=n,a[l++]=s,a[l++]=r,a[l++]=o,a[l++]=r;}contains(e,t){let{points:i,originX:n,originY:s}=this;for(let o=0;o<4;o++){let r=2*o,a=(o+1)%4*2;if(nF(e,t,n,s,i[r],i[r+1],i[a],i[a+1]))return!0;}return!1;}},"JB",0,sY,"De",0,sX,"cD",0,sj,"dl",0,sG,"i_",0,sQ,"$x",0,s$,"Cp",0,function(e,t,i){let n=sK(sT(e),t);return sj(e,n,i);},"nG",0,sq,"JO",0,ox,"k4",0,oO,"QX",0,oL,"EV",0,sz,"L3",0,oR,"vV",0,oU,"hS",0,oh,"z7",0,or,"pQ",0,od,"QQ",0,s1,"Gp",0,s0,"y5",0,s7,"sv",0,s8,"Qo",0,sR,"nr",0,s6,"Mf",0,s4,"Dt",0,oo,"gC",0,s5,"N9",0,oe,"gp",0,s9,"cW",0,sT,"qs",0,sF,"n$",0,sP,"GW",0,sA,"h",0,oH,"qh",0,oi,"QA",0,oT,"JA",0,oa,"vC",0,ot,"JP",0,ol,"Si",0,o$,"up",0,ov,"d$",0,og,"Oy",0,ou,"j$",0,os,"F4",0,om,"HJ",0,of,"TY",0,op,"n",0,eG,"$0",0,sB,"mm",0,sV,"cQ",0,sW,"Ix",0,ok,"Xh",0,oD,"Qd",0,ow,"O6",()=>s,"R2",0,sZ,"eR",0,oC,"Z",()=>o,"ej",0,function(e,...t){e?oE(...t):oT(...t);},"oO",0,oc,"Hm",0,oE,"bK",0,function(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`);},"nF",0,oS,"vB",0,oA],23808);var o2=i8;class o3 extends o2.N{constructor(e){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1),this._register((0,o2.Q)(()=>{var _this$_mediaQueryList;return(_this$_mediaQueryList=this._mediaQueryList)===null||_this$_mediaQueryList===void 0?void 0:_this$_mediaQueryList.removeEventListener("change",this._listener);}));}_handleChange(e,t){var _this$_mediaQueryList2;(_this$_mediaQueryList2=this._mediaQueryList)!==null&&_this$_mediaQueryList2!==void 0&&_this$_mediaQueryList2.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire();}}class o5 extends o2.N{get value(){return this._value;}constructor(e){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);let t=this._register(new o3(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value);}));}_getPixelRatio(e){let t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/((t===null||t===void 0?void 0:t.webkitBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.mozBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.msBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.oBackingStorePixelRatio)||(t===null||t===void 0?void 0:t.backingStorePixelRatio)||1);}}let o6=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map();}_getOrCreatePixelRatioMonitor(e){let t=sP(e),i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,o2.P)(new o5(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,o2.P)(iv.C.once(sV)(({vscodeWindowId:e})=>{var _i2;e===t&&((_i2=i)!==null&&_i2!==void 0&&_i2.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t));}))),i;}getInstance(e){return this._getOrCreatePixelRatioMonitor(e);}}();e.s(["f",0,o6],22719);var o4=i8;class o9{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow="";}focus(){this.domNode.focus();}setMaxWidth(e){let t=o8(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth);}setWidth(e){let t=o8(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width);}setHeight(e){let t=o8(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height);}setTop(e){let t=o8(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top);}setLeft(e){let t=o8(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left);}setBottom(e){let t=o8(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom);}setRight(e){let t=o8(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right);}setPaddingLeft(e){let t=o8(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft);}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily);}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight);}setFontSize(e){let t=o8(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize);}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle);}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings);}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings);}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration);}setLineHeight(e){let t=o8(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight);}setLetterSpacing(e){let t=o8(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing);}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className);}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className;}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display);}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position);}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility);}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color);}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor);}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"");}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e);}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain);}setAttribute(e,t){this.domNode.setAttribute(e,t);}removeAttribute(e){this.domNode.removeAttribute(e);}appendChild(e){this.domNode.appendChild(e.domNode);}removeChild(e){this.domNode.removeChild(e.domNode);}}function o8(e){return"number"==typeof e?`${e}px`:e;}function o7(e){return new o9(e);}function re(e,t){e instanceof o9?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px");}e.s(["f",0,re],12235);class rt{constructor(e,t){this.chr=e,this.type=t,this.width=0;}fulfill(e){this.width=e;}}class ri{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null;}read(e){var _this$_container;this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),(_this$_container=this._container)!==null&&_this$_container!==void 0&&_this$_container.remove(),this._container=null,this._testElements=null;}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");re(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");re(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");re(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let s=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let r=document.createElement("span");ri._render(r,e),o.appendChild(r),s.push(r);}this._container=e,this._testElements=s;}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t;}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i;}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){let t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256);}}}class rn extends o4.N{constructor(){super(...arguments),this._cache=new Map(),this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event;}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose();}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire();}_ensureCache(e){let t=sP(e),i=this._cache.get(t);return i||(i=new rs(),this._cache.set(t,i)),i;}_writeToCache(e,t,i,n){this._ensureCache(e).put(t,i,n),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e);},5e3));}_evictUntrustedReadings(e){let t=this._ensureCache(e),i=t.getValues(),n=!1;for(let e of i)e.isTrusted||(n=!0,t.remove(e));n&&this._onDidChange.fire();}readFontInfo(e,t){let i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new iy({pixelRatio:o6.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i,!1);}return i.get(t);}_createRequest(e,t,i,n){let s=new rt(e,t);return i.push(s),n!==null&&n!==void 0&&n.push(s),s;}_actualReadFontInfo(e,t){let i=[],n=[],s=this._createRequest("n",0,i,n),o=this._createRequest("m",0,i,null),r=this._createRequest(" ",0,i,n),a=this._createRequest("0",0,i,n),l=this._createRequest("1",0,i,n),h=this._createRequest("2",0,i,n),d=this._createRequest("3",0,i,n),c=this._createRequest("4",0,i,n),u=this._createRequest("5",0,i,n),g=this._createRequest("6",0,i,n),p=this._createRequest("7",0,i,n),f=this._createRequest("8",0,i,n),m=this._createRequest("9",0,i,n),_=this._createRequest("→",0,i,n),v=this._createRequest("→",0,i,null),b=this._createRequest("·",0,i,n),C=this._createRequest(String.fromCharCode(11825),0,i,null),w="|/-_ilm%";for(let e=0,t=w.length;e<t;e++)this._createRequest(w.charAt(e),0,i,n),this._createRequest(w.charAt(e),1,i,n),this._createRequest(w.charAt(e),2,i,n);new ri(t,i).read(e);let y=Math.max(a.width,l.width,h.width,d.width,c.width,u.width,g.width,p.width,f.width,m.width),S=t.fontFeatureSettings===ij.OFF,x=n[0].width;for(let e=1,t=n.length;S&&e<t;e++){let t=x-n[e].width;if(t<-.001||t>.001){S=!1;break;}}let L=!0;return S&&v.width!==x&&(L=!1),v.width>_.width&&(L=!1),new iy({pixelRatio:o6.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:L,spaceWidth:r.width,middotWidth:b.width,wsmiddotWidth:C.width,maxDigitWidth:y},!0);}}class rs{constructor(){this._wasPopulatedWithRestoredValues=!1,this._wasPopulatedWithCurrentSessionValues=!1,this._keys=Object.create(null),this._values=Object.create(null);}has(e){let t=e.getId();return!!this._values[t];}get(e){let t=e.getId();return this._values[t];}put(e,t,i){let n=e.getId();this._keys[n]=e,this._values[n]=t,i?this._wasPopulatedWithRestoredValues=!0:this._wasPopulatedWithCurrentSessionValues=!0;}remove(e){let t=e.getId();delete this._keys[t],delete this._values[t];}getValues(){return Object.keys(this._keys).map(e=>this._values[e]);}}let ro=new rn();(K=eQ||(eQ={})).serviceIds=new Map(),K.DI_TARGET="$di$target",K.DI_DEPENDENCIES="$di$dependencies",K.getServiceDependencies=function(e){return e[K.DI_DEPENDENCIES]||[];};let rr=ra("instantiationService");function ra(e){if(eQ.serviceIds.has(e))return eQ.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[eQ.DI_TARGET]===e?e[eQ.DI_DEPENDENCIES].push({id:t,index:n}):(e[eQ.DI_DEPENDENCIES]=[{id:t,index:n}],e[eQ.DI_TARGET]=e);};return t.toString=()=>e,eQ.serviceIds.set(e,t),t;}e.s(["V",0,rr,"i",0,eQ,"n",0,ra],66320);let rl=ra("codeEditorService");e.s(["f",0,rl],94899);var rh=e.i(28087);let rd=ra("modelService");e.s(["f",0,rd],66331);let rc=ra("textModelService");e.s(["f",0,rc],22686);var ru=i8;class rg extends ru.N{get onDidChange(){return this._onDidChange.event;}constructor(e,t="",i="",n=!0,s){super(),this._onDidChange=this._register(new iv.S()),this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=s;}get id(){return this._id;}get label(){return this._label;}set label(e){this._setLabel(e);}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}));}get tooltip(){return this._tooltip||"";}set tooltip(e){this._setTooltip(e);}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}));}get class(){return this._cssClass;}set class(e){this._setClass(e);}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}));}get enabled(){return this._enabled;}set enabled(e){this._setEnabled(e);}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}));}get checked(){return this._checked;}set checked(e){this._setChecked(e);}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}));}async run(e,t){this._actionCallback&&(await this._actionCallback(e));}}class rp extends ru.N{constructor(){super(...arguments),this._onWillRun=this._register(new iv.S()),this._onDidRun=this._register(new iv.S());}get onWillRun(){return this._onWillRun.event;}get onDidRun(){return this._onDidRun.event;}async run(e,t){let i;if(e.enabled){this._onWillRun.fire({action:e});try{await this.runAction(e,t);}catch(e){i=e;}this._onDidRun.fire({action:e,error:i});}}async runAction(e,t){await e.run(t);}}class rf{constructor(){this.id=rf.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=void 0;}static join(...e){let t=[];for(let i of e)i.length&&(t=t.length?[...t,new rf(),...i]:i);return t;}static clean(e){for(;e.length>0&&e[0].id===rf.ID;)e.shift();for(;e.length>0&&e[e.length-1].id===rf.ID;)e.pop();for(let t=e.length-2;t>=0;t--)e[t].id===rf.ID&&e[t+1].id===rf.ID&&e.splice(t+1,1);return e;}async run(){}}_rf=rf;_rf.ID="vs.actions.separator";class rm{get actions(){return this._actions;}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i;}async run(){}}class r_ extends rg{constructor(){super(r_.ID,(0,iM.M)(32,"(empty)"),void 0,!1);}}_r_=r_;_r_.ID="vs.actions.empty";function rv(e){var _e$tooltip,_e$enabled;return{id:e.id,label:e.label,tooltip:(_e$tooltip=e.tooltip)!==null&&_e$tooltip!==void 0?_e$tooltip:e.label,class:e.class,enabled:(_e$enabled=e.enabled)!==null&&_e$enabled!==void 0?_e$enabled:!0,checked:e.checked,run:async(...t)=>e.run(...t)};}e.s(["m",0,rg,"M",0,rp,"p",0,r_,"g",0,rf,"h",0,rm,"H",0,rv],9986);var rb=e.i(35041),rC=e.i(89652);(eZ||(eZ={})).isThemeColor=function(e){return!!e&&"object"==typeof e&&"string"==typeof e.id;},function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";let t=RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){let n=t.exec(e.id);if(!n)return i(rC.f.error);let[,s,o]=n,r=["codicon","codicon-"+s];return o&&r.push("codicon-modifier-"+o.substring(1)),r;}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ");},e.asCSSSelector=function(e){return"."+i(e).join(".");},e.isThemeIcon=function(e){return!!e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||eZ.isThemeColor(e.color));};let n=RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){let t=n.exec(e);if(!t)return;let[,i]=t;return{id:i};},e.fromId=function(e){return{id:e};},e.modify=function(e,t){let i=e.id,n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i};},e.getModifier=function(e){let t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1);},e.isEqual=function(e,t){var _e$color,_t$color;return e.id===t.id&&((_e$color=e.color)===null||_e$color===void 0?void 0:_e$color.id)===((_t$color=t.color)===null||_t$color===void 0?void 0:_t$color.id);},e.isFile=function(e){return(e===null||e===void 0?void 0:e.id)===rC.f.file.id;},e.isFolder=function(e){return(e===null||e===void 0?void 0:e.id)===rC.f.folder.id;};}(eY||(eY={})),e.s(["f",0,eY],76140);var rw=e.i(58063);let ry=ra("commandService"),rS=new class{constructor(){this._commands=new Map(),this._onDidRegisterCommand=new iv.S(),this.onDidRegisterCommand=this._onDidRegisterCommand.event;}registerCommand(e,t){if(!e)throw Error("invalid command");if("string"==typeof e){if(!t)throw Error("invalid command");return this.registerCommand({id:e,handler:t});}if(e.metadata&&Array.isArray(e.metadata.args)){let t=[];for(let i of e.metadata.args)t.push(i.constraint);let i=e.handler;e.handler=function(e,...n){return(0,sI.n)(n,t),i(e,...n);};}let{id:i}=e,n=this._commands.get(i);n||(n=new rb.f(),this._commands.set(i,n));let s=n.unshift(e),o=(0,i8.Q)(()=>{s();let e=this._commands.get(i);(e===null||e===void 0?void 0:e.isEmpty())&&this._commands.delete(i);});return this._onDidRegisterCommand.fire(i),(0,i8.P)(o);}registerCommandAlias(e,t){return rS.registerCommand(e,(e,...i)=>e.get(ry).executeCommand(t,...i));}getCommand(e){let t=this._commands.get(e);if(!(!t||t.isEmpty()))return rw.f.first(t);}getCommands(){let e=new Map();for(let t of this._commands.keys()){let i=this.getCommand(t);i&&e.set(t,i);}return e;}}();function rx(...e){switch(e.length){case 1:return(0,iM.M)(1788,"Did you mean {0}?",e[0]);case 2:return(0,iM.M)(1789,"Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,iM.M)(1790,"Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return;}}rS.registerCommand("noop",()=>{}),e.s(["K",0,rS,"I",0,ry],63011);let rL=(0,iM.M)(1791,"Did you forget to open or close the quote?"),rk=(0,iM.M)(1792,"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class rD{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/["-%\*-<>-_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{10340}\u{10342}-\u{10349}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10860}-\u{10876}\u{10880}-\u{1089E}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{10900}-\u{10915}\u{10920}-\u{10939}\u{10940}-\u{10959}\u{10980}-\u{109B7}\u{109BE}\u{109BF}\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A60}-\u{10A7C}\u{10A80}-\u{10A9C}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B60}-\u{10B72}\u{10B80}-\u{10B91}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10D00}-\u{10D23}\u{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC7}\u{10F00}-\u{10F1C}\u{10F27}\u{10F30}-\u{10F45}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FC4}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{11103}-\u{11126}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111DA}\u{111DC}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}\u{113D1}\u{113D3}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11680}-\u{116AA}\u{116B8}\u{11700}-\u{1171A}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118DF}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11BC0}-\u{11BE0}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DB0}-\u{11DDB}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11FB0}\u{12000}-\u{12399}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A70}-\u{16ABE}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D6C}\u{16E40}-\u{16E7F}\u{16EA0}-\u{16EB8}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF2}\u{16FF3}\u{17000}-\u{18CD5}\u{18CFF}-\u{18D1E}\u{18D80}-\u{18DF2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E4D0}-\u{1E4EB}\u{1E5D0}-\u{1E5ED}\u{1E5F0}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6E2}\u{1E6E4}\u{1E6E5}\u{1E6E7}-\u{1E6ED}\u{1E6F0}-\u{1E6F4}\u{1E6FE}\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E900}-\u{1E943}\u{1E94B}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81D}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{33479}]+/uy;}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">";case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,nf.S)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`);}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this;}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e});}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e});}else this._match(126)?this._addToken(9):this._error(rx("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(rx("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(rx("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string();}return this._start=this._current,this._addToken(20),Array.from(this._tokens);}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0);}_advance(){return this._input.charCodeAt(this._current++);}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current);}_addToken(e){this._tokens.push({type:e,offset:this._start});}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n);}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=rD._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start});}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(rL):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}));}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(rk);return;}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break;}e++;}for(;e<this._input.length&&rD._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;let n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start});}_isAtEnd(){return this._current>=this._input.length;}}_rD=rD;_rD._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)));_rD._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let rM=new Map();rM.set("false",!1),rM.set("true",!0),rM.set("isMac",i_.e),rM.set("isLinux",i_.b),rM.set("isWindows",i_.t),rM.set("isChromeOS",i_.$),rM.set("isWeb",i_.n),rM.set("isMacNative",i_.e&&!i_.n),rM.set("isEdge",i_.X),rM.set("isFirefox",i_.D),rM.set("isChrome",i_.o),rM.set("isSafari",i_.G);let rI=Object.prototype.hasOwnProperty,rN={regexParsingWithErrorRecovery:!0},rE=(0,iM.M)(1769,"Empty context key expression"),rT=(0,iM.M)(1770,"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),rR=(0,iM.M)(1771,"'in' after 'not'."),rA=(0,iM.M)(1772,"closing parenthesis ')'"),rO=(0,iM.M)(1773,"Unexpected token"),rP=(0,iM.M)(1774,"Did you forget to put && or || before the token?"),rF=(0,iM.M)(1775,"Unexpected end of expression"),rB=(0,iM.M)(1776,"Did you forget to put a context key?");class rW{constructor(e=rN){this._config=e,this._scanner=new rD(),this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g;}parse(e){if(""===e)return void this._parsingErrors.push({message:rE,offset:0,lexeme:"",additionalInfo:rT});this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?rP:void 0;throw this._parsingErrors.push({message:rO,offset:e.offset,lexeme:rD.getLexeme(e),additionalInfo:t}),rW._parseError;}return e;}catch(e){if(e!==rW._parseError)throw e;return;}}_expr(){return this._or();}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t);}return 1===e.length?e[0]:rV.or(...e);}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t);}return 1===e.length?e[0]:rV.and(...e);}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),rz.INSTANCE;case 12:return this._advance(),rU.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,rA),e===null||e===void 0?void 0:e.negate();}case 17:return this._advance(),rQ.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e);}}return this._primary();}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),rV.true();case 12:return this._advance(),rV.false();case 0:{this._advance();let e=this._expr();return this._consume(1,rA),e;}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,s=n.lastIndexOf("/"),o=s===n.length-1?void 0:this._removeFlagsGY(n.substring(s+1));try{i=new RegExp(n.substring(1,s),o);}catch(t){throw this._errExpectedButGot("REGEX",e);}return r1.create(t,i);}switch(e.type){case 10:case 19:{let i,n=[e.lexeme];this._advance();let s=this._peek(),o=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:o++;break;case 1:o--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;}if(o<0)break;n.push(rD.getLexeme(s)),this._advance(),s=this._peek();}let r=n.join(""),a=r.lastIndexOf("/"),l=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));try{i=new RegExp(r.substring(1,a),l);}catch(t){throw this._errExpectedButGot("REGEX",e);}return rV.regex(t,i);}case 18:{let i=e.lexeme;this._advance();let n=null;if(!(0,i7._)(i)){let t=i.indexOf("/"),s=i.lastIndexOf("/");if(t!==s&&t>=0){let o=i.slice(t+1,s),r="i"===i[s+1]?"i":"";try{n=new RegExp(o,r);}catch(t){throw this._errExpectedButGot("REGEX",e);}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return r1.create(t,n);}default:throw this._errExpectedButGot("REGEX",this._peek());}}if(this._matchOne(14)){this._consume(13,rR);let e=this._value();return rV.notIn(t,e);}switch(this._peek().type){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return rV.equals(t,e);switch(e){case"true":return rV.has(t);case"false":return rV.not(t);default:return rV.equals(t,e);}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return rV.notEquals(t,e);switch(e){case"true":return rV.not(t);case"false":return rV.has(t);default:return rV.notEquals(t,e);}}case 5:return this._advance(),rJ.create(t,this._value());case 6:return this._advance(),r0.create(t,this._value());case 7:return this._advance(),rY.create(t,this._value());case 8:return this._advance(),rX.create(t,this._value());case 13:return this._advance(),rV.in(t,this._value());default:return rV.has(t);}}case 20:throw this._parsingErrors.push({message:rF,offset:e.offset,lexeme:"",additionalInfo:rB}),rW._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
2
2
|
| KEY '=~' REGEX
|
|
3
3
|
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek());}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return"";}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"");}_previous(){return this._tokens[this._current-1];}_matchOne(e){return!!this._check(e)&&(this._advance(),!0);}_advance(){return!this._isAtEnd()&&this._current++,this._previous();}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek());}_errExpectedButGot(e,t,i){let n=(0,iM.M)(1777,"Expected: {0}\nReceived: '{1}'.",e,rD.getLexeme(t)),s=t.offset,o=rD.getLexeme(t);return this._parsingErrors.push({message:n,offset:s,lexeme:o,additionalInfo:i}),rW._parseError;}_check(e){return this._peek().type===e;}_peek(){return this._tokens[this._current];}_isAtEnd(){return 20===this._peek().type;}}_rW=rW;_rW._parseError=Error();class rV{static false(){return rz.INSTANCE;}static true(){return rU.INSTANCE;}static has(e){return r$.create(e);}static equals(e,t){return rK.create(e,t);}static notEquals(e,t){return rG.create(e,t);}static regex(e,t){return r1.create(e,t);}static in(e,t){return rq.create(e,t);}static notIn(e,t){return rj.create(e,t);}static not(e){return rQ.create(e);}static and(...e){return r5.create(e,null,!0);}static or(...e){return r6.create(e,null,!0);}static deserialize(e){if(null!=e)return this._parser.parse(e);}}_rV=rV;_rV._parser=new rW({regexParsingWithErrorRecovery:!1});function rH(e,t){return e.cmp(t);}class rz{constructor(){this.type=0;}cmp(e){return this.type-e.type;}equals(e){return e.type===this.type;}substituteConstants(){return this;}evaluate(e){return!1;}serialize(){return"false";}keys(){return[];}negate(){return rU.INSTANCE;}}_rz=rz;_rz.INSTANCE=new _rz();class rU{constructor(){this.type=1;}cmp(e){return this.type-e.type;}equals(e){return e.type===this.type;}substituteConstants(){return this;}evaluate(e){return!0;}serialize(){return"true";}keys(){return[];}negate(){return rz.INSTANCE;}}_rU=rU;_rU.INSTANCE=new _rU();class r${static create(e,t=null){let i=rM.get(e);return"boolean"==typeof i?i?rU.INSTANCE:rz.INSTANCE:new r$(e,t);}constructor(e,t){this.key=e,this.negated=t,this.type=2;}cmp(e){return e.type!==this.type?this.type-e.type:function(e,t){return e<t?-1:+(e>t);}(this.key,e.key);}equals(e){return e.type===this.type&&this.key===e.key;}substituteConstants(){let e=rM.get(this.key);return"boolean"==typeof e?e?rU.INSTANCE:rz.INSTANCE:this;}evaluate(e){return!!e.getValue(this.key);}serialize(){return this.key;}keys(){return[this.key];}negate(){return this.negated||(this.negated=rQ.create(this.key,this)),this.negated;}}class rK{static create(e,t,i=null){if("boolean"==typeof t)return t?r$.create(e,i):rQ.create(e,i);let n=rM.get(e);return"boolean"==typeof n?t===(n?"true":"false")?rU.INSTANCE:rz.INSTANCE:new rK(e,t,i);}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.value,e.key,e.value);}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value;}substituteConstants(){let e=rM.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?rU.INSTANCE:rz.INSTANCE:this;}evaluate(e){return e.getValue(this.key)==this.value;}serialize(){return`${this.key} == '${this.value}'`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=rG.create(this.key,this.value,this)),this.negated;}}class rq{static create(e,t){return new rq(e,t);}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.valueKey,e.key,e.valueKey);}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey;}substituteConstants(){return this;}evaluate(e){let t=e.getValue(this.valueKey),i=e.getValue(this.key);if(Array.isArray(t)){if(t.includes(i))return!0;if(i_.t&&"string"==typeof i&&i.startsWith("file:///")){let e=i.toLowerCase();return t.some(t=>"string"==typeof t&&t.toLowerCase()===e);}return!1;}if("string"==typeof i&&"object"==typeof t&&null!==t){if(rI.call(t,i))return!0;if(i_.t&&i.startsWith("file:///")){let e=i.toLowerCase();return Object.keys(t).some(t=>t.toLowerCase()===e);}}return!1;}serialize(){return`${this.key} in '${this.valueKey}'`;}keys(){return[this.key,this.valueKey];}negate(){return this.negated||(this.negated=rj.create(this.key,this.valueKey)),this.negated;}}class rj{static create(e,t){return new rj(e,t);}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=rq.create(e,t);}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated);}equals(e){return e.type===this.type&&this._negated.equals(e._negated);}substituteConstants(){return this;}evaluate(e){return!this._negated.evaluate(e);}serialize(){return`${this.key} not in '${this.valueKey}'`;}keys(){return this._negated.keys();}negate(){return this._negated;}}class rG{static create(e,t,i=null){if("boolean"==typeof t)return t?rQ.create(e,i):r$.create(e,i);let n=rM.get(e);return"boolean"==typeof n?t===(n?"true":"false")?rz.INSTANCE:rU.INSTANCE:new rG(e,t,i);}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.value,e.key,e.value);}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value;}substituteConstants(){let e=rM.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?rz.INSTANCE:rU.INSTANCE:this;}evaluate(e){return e.getValue(this.key)!=this.value;}serialize(){return`${this.key} != '${this.value}'`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=rK.create(this.key,this.value,this)),this.negated;}}class rQ{static create(e,t=null){let i=rM.get(e);return"boolean"==typeof i?i?rz.INSTANCE:rU.INSTANCE:new rQ(e,t);}constructor(e,t){this.key=e,this.negated=t,this.type=3;}cmp(e){return e.type!==this.type?this.type-e.type:function(e,t){return e<t?-1:+(e>t);}(this.key,e.key);}equals(e){return e.type===this.type&&this.key===e.key;}substituteConstants(){let e=rM.get(this.key);return"boolean"==typeof e?e?rz.INSTANCE:rU.INSTANCE:this;}evaluate(e){return!e.getValue(this.key);}serialize(){return`!${this.key}`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=r$.create(this.key,this)),this.negated;}}function rZ(e,t){if("string"==typeof e){let t=parseFloat(e);isNaN(t)||(e=t);}return"string"==typeof e||"number"==typeof e?t(e):rz.INSTANCE;}class rY{static create(e,t,i=null){return rZ(t,t=>new rY(e,t,i));}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.value,e.key,e.value);}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value;}substituteConstants(){return this;}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value;}serialize(){return`${this.key} > ${this.value}`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=r0.create(this.key,this.value,this)),this.negated;}}class rX{static create(e,t,i=null){return rZ(t,t=>new rX(e,t,i));}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.value,e.key,e.value);}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value;}substituteConstants(){return this;}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value;}serialize(){return`${this.key} >= ${this.value}`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=rJ.create(this.key,this.value,this)),this.negated;}}class rJ{static create(e,t,i=null){return rZ(t,t=>new rJ(e,t,i));}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.value,e.key,e.value);}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value;}substituteConstants(){return this;}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<this.value;}serialize(){return`${this.key} < ${this.value}`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=rX.create(this.key,this.value,this)),this.negated;}}class r0{static create(e,t,i=null){return rZ(t,t=>new r0(e,t,i));}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15;}cmp(e){return e.type!==this.type?this.type-e.type:r8(this.key,this.value,e.key,e.value);}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value;}substituteConstants(){return this;}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value;}serialize(){return`${this.key} <= ${this.value}`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=rY.create(this.key,this.value,this)),this.negated;}}class r1{static create(e,t){return new r1(e,t);}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null;}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:+(t>i);}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i;}return!1;}substituteConstants(){return this;}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t);}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`;}keys(){return[this.key];}negate(){return this.negated||(this.negated=r2.create(this)),this.negated;}}class r2{static create(e){return new r2(e);}constructor(e){this._actual=e,this.type=8;}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual);}equals(e){return e.type===this.type&&this._actual.equals(e._actual);}substituteConstants(){return this;}evaluate(e){return!this._actual.evaluate(e);}serialize(){return`!(${this._actual.serialize()})`;}keys(){return this._actual.keys();}negate(){return this._actual;}}function r3(e){let t=null;for(let i=0,n=e.length;i<n;i++){let n=e[i].substituteConstants();if(e[i]!==n&&null===t){t=[];for(let n=0;n<i;n++)t[n]=e[n];}null!==t&&(t[i]=n);}return null===t?e:t;}class r5{static create(e,t,i){return r5._normalizeArr(e,t,i);}constructor(e,t){this.expr=e,this.negated=t,this.type=6;}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){let i=rH(this.expr[t],e.expr[t]);if(0!==i)return i;}return 0;}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0;}return!1;}substituteConstants(){let e=r3(this.expr);return e===this.expr?this:r5.create(e,this.negated,!1);}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0;}static _normalizeArr(e,t,i){let n=[],s=!1;for(let t of e)if(t){if(1===t.type){s=!0;continue;}if(0===t.type)return rz.INSTANCE;if(6===t.type){n.push(...t.expr);continue;}n.push(t);}if(0===n.length&&s)return rU.INSTANCE;if(0!==n.length){if(1===n.length)return n[0];n.sort(rH);for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];for(;n.length>1;){let e=n[n.length-1];if(9!==e.type)break;n.pop();let t=n.pop(),s=0===n.length,o=r6.create(e.expr.map(e=>r5.create([e,t],null,i)),null,s);o&&(n.push(o),n.sort(rH));}if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return rz.INSTANCE;if(1===n.length)return n[0];}return new r5(n,t);}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ");}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e;}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=r6.create(e,this,!0);}return this.negated;}}class r6{static create(e,t,i){return r6._normalizeArr(e,t,i);}constructor(e,t){this.expr=e,this.negated=t,this.type=9;}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){let i=rH(this.expr[t],e.expr[t]);if(0!==i)return i;}return 0;}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0;}return!1;}substituteConstants(){let e=r3(this.expr);return e===this.expr?this:r6.create(e,this.negated,!1);}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1;}static _normalizeArr(e,t,i){let n=[],s=!1;if(e){for(let t=0,i=e.length;t<i;t++){let i=e[t];if(i){if(0===i.type){s=!0;continue;}if(1===i.type)return rU.INSTANCE;if(9===i.type){n=n.concat(i.expr);continue;}n.push(i);}}if(0===n.length&&s)return rz.INSTANCE;n.sort(rH);}if(0!==n.length){if(1===n.length)return n[0];for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return rU.INSTANCE;if(1===n.length)return n[0];}return new r6(n,t);}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ");}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e;}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){let t=e.shift(),i=e.shift(),n=[];for(let e of at(t))for(let t of at(i))n.push(r5.create([e,t],null,!1));e.unshift(r6.create(n,null,!1));}this.negated=r6.create(e,this,!0);}return this.negated;}}class r4 extends r${static all(){return r4._info.values();}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?r4._info.push({...i,key:e}):!0!==i&&r4._info.push({key:e,description:i,type:null!=t?typeof t:void 0});}bindTo(e){return e.createKey(this.key,this._defaultValue);}getValue(e){return e.getContextKeyValue(this.key);}toNegated(){return this.negate();}isEqualTo(e){return rK.create(this.key,e);}}_r2=r4;_r2._info=[];let r9=ra("contextKeyService");function r8(e,t,i,n){return e<i?-1:e>i?1:t<n?-1:+(t>n);}function r7(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&ae(e.expr,t.expr);if(9===t.type){for(let i of t.expr)if(r7(e,i))return!0;return!1;}if(6===e.type){if(6===t.type)return ae(t.expr,e.expr);for(let i of e.expr)if(r7(i,t))return!0;return!1;}return e.equals(t);}function ae(e,t){let i=0,n=0;for(;i<e.length&&n<t.length;){let s=e[i].cmp(t[n]);if(s<0)return!1;0===s&&i++,n++;}return i===e.length;}function at(e){return 9===e.type?e.expr:[e];}e.s(["$",0,rV,"G",0,r9,"I",0,r4,"Q",0,r7],10475);let ai=new class{constructor(){this.data=new Map();}add(e,t){(0,n1.N)((0,sI.Z)(e)),(0,n1.N)((0,sI.C)(t)),(0,n1.N)(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t);}as(e){return this.data.get(e)||null;}dispose(){this.data.forEach(e=>{(0,sI.U)(e.dispose)&&e.dispose();}),this.data.clear();}}();e.s(["f",0,ai],34758);class an{constructor(){this._coreKeybindings=new rb.f(),this._coreKeybindingRules=new rb.f(),this._extensionKeybindings=[],this._cachedMergedKeybindings=null;}static bindToPlatform(e,t){if(1===t){if(e&&e.win)return e.win;}else if(2===t){if(e&&e.mac)return e.mac;}else if(e&&e.linux)return e.linux;return e;}static bindToCurrentPlatform(e){return an.bindToPlatform(e,i_.B);}registerKeybindingRule(e){let t=an.bindToCurrentPlatform(e),i=new i8.q();if(t&&t.primary){let n=nm(t.primary,i_.B);n&&i.add(this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when));}if(t&&Array.isArray(t.secondary))for(let n=0,s=t.secondary.length;n<s;n++){let s=nm(t.secondary[n],i_.B);s&&i.add(this._registerDefaultKeybinding(s,e.id,e.args,e.weight,-n-1,e.when));}let n=this._coreKeybindingRules.push(e);return i.add((0,i8.Q)(()=>{n();})),i;}registerCommandAndKeybindingRule(e){return(0,i8.W)(this.registerKeybindingRule(e),rS.registerCommand(e));}_registerDefaultKeybinding(e,t,i,n,s,o){let r=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:o,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,i8.Q)(()=>{r(),this._cachedMergedKeybindings=null;});}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(ao)),this._cachedMergedKeybindings.slice(0);}}let as=new an();function ao(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1;}return e.weight2-t.weight2;}ai.add("platform.keybindingsRegistry",as),e.s(["f",0,as],40194);var ar=function(e,t){return function(i,n){t(i,n,e);};};function aa(e){return void 0!==e.command;}function al(e){return void 0!==e.submenu;}class ah{constructor(e){if(ah._instances.has(e))throw TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);ah._instances.set(e,this),this.id=e;}}_ah=ah;_ah._instances=new Map();_ah.CommandPalette=new _ah("CommandPalette");_ah.DebugBreakpointsContext=new _ah("DebugBreakpointsContext");_ah.DebugCallStackContext=new _ah("DebugCallStackContext");_ah.DebugConsoleContext=new _ah("DebugConsoleContext");_ah.DebugVariablesContext=new _ah("DebugVariablesContext");_ah.NotebookVariablesContext=new _ah("NotebookVariablesContext");_ah.DebugHoverContext=new _ah("DebugHoverContext");_ah.DebugWatchContext=new _ah("DebugWatchContext");_ah.DebugToolBar=new _ah("DebugToolBar");_ah.DebugToolBarStop=new _ah("DebugToolBarStop");_ah.DebugDisassemblyContext=new _ah("DebugDisassemblyContext");_ah.DebugCallStackToolbar=new _ah("DebugCallStackToolbar");_ah.DebugCreateConfiguration=new _ah("DebugCreateConfiguration");_ah.DebugScopesContext=new _ah("DebugScopesContext");_ah.EditorContext=new _ah("EditorContext");_ah.SimpleEditorContext=new _ah("SimpleEditorContext");_ah.EditorContent=new _ah("EditorContent");_ah.EditorLineNumberContext=new _ah("EditorLineNumberContext");_ah.EditorContextCopy=new _ah("EditorContextCopy");_ah.EditorContextPeek=new _ah("EditorContextPeek");_ah.EditorContextShare=new _ah("EditorContextShare");_ah.EditorTitle=new _ah("EditorTitle");_ah.EditorTitleLayout=new _ah("EditorTitleLayout");_ah.ModalEditorTitle=new _ah("ModalEditorTitle");_ah.ModalEditorTitleContext=new _ah("ModalEditorTitleContext");_ah.ModalEditorEditorTitle=new _ah("ModalEditorEditorTitle");_ah.CompactWindowEditorTitle=new _ah("CompactWindowEditorTitle");_ah.EditorTitleRun=new _ah("EditorTitleRun");_ah.EditorTitleContext=new _ah("EditorTitleContext");_ah.EditorTitleContextShare=new _ah("EditorTitleContextShare");_ah.EmptyEditorGroup=new _ah("EmptyEditorGroup");_ah.EmptyEditorGroupContext=new _ah("EmptyEditorGroupContext");_ah.EditorGroupWatermarkToolbar=new _ah("EditorGroupWatermarkToolbar");_ah.EditorTabsBarContext=new _ah("EditorTabsBarContext");_ah.EditorTabsBarShowTabsSubmenu=new _ah("EditorTabsBarShowTabsSubmenu");_ah.EditorTabsBarShowTabsZenModeSubmenu=new _ah("EditorTabsBarShowTabsZenModeSubmenu");_ah.EditorActionsPositionSubmenu=new _ah("EditorActionsPositionSubmenu");_ah.DiffEditorViewSubmenu=new _ah("DiffEditorViewSubmenu");_ah.EditorRenderWhitespaceSubmenu=new _ah("EditorRenderWhitespaceSubmenu");_ah.EditorSplitMoveSubmenu=new _ah("EditorSplitMoveSubmenu");_ah.ExplorerContext=new _ah("ExplorerContext");_ah.ExplorerContextShare=new _ah("ExplorerContextShare");_ah.ExtensionContext=new _ah("ExtensionContext");_ah.ExtensionEditorContextMenu=new _ah("ExtensionEditorContextMenu");_ah.GlobalActivity=new _ah("GlobalActivity");_ah.CommandCenter=new _ah("CommandCenter");_ah.CommandCenterCenter=new _ah("CommandCenterCenter");_ah.LayoutControlMenuSubmenu=new _ah("LayoutControlMenuSubmenu");_ah.LayoutControlMenu=new _ah("LayoutControlMenu");_ah.MenubarMainMenu=new _ah("MenubarMainMenu");_ah.MenubarAppearanceMenu=new _ah("MenubarAppearanceMenu");_ah.MenubarDebugMenu=new _ah("MenubarDebugMenu");_ah.MenubarEditMenu=new _ah("MenubarEditMenu");_ah.MenubarCopy=new _ah("MenubarCopy");_ah.MenubarFileMenu=new _ah("MenubarFileMenu");_ah.MenubarGoMenu=new _ah("MenubarGoMenu");_ah.MenubarHelpMenu=new _ah("MenubarHelpMenu");_ah.MenubarLayoutMenu=new _ah("MenubarLayoutMenu");_ah.MenubarNewBreakpointMenu=new _ah("MenubarNewBreakpointMenu");_ah.PanelAlignmentMenu=new _ah("PanelAlignmentMenu");_ah.PanelPositionMenu=new _ah("PanelPositionMenu");_ah.ActivityBarPositionMenu=new _ah("ActivityBarPositionMenu");_ah.NotificationsCenterPositionMenu=new _ah("NotificationsCenterPositionMenu");_ah.MenubarPreferencesMenu=new _ah("MenubarPreferencesMenu");_ah.MenubarRecentMenu=new _ah("MenubarRecentMenu");_ah.MenubarSelectionMenu=new _ah("MenubarSelectionMenu");_ah.MenubarShare=new _ah("MenubarShare");_ah.MenubarSwitchEditorMenu=new _ah("MenubarSwitchEditorMenu");_ah.MenubarSwitchGroupMenu=new _ah("MenubarSwitchGroupMenu");_ah.MenubarTerminalMenu=new _ah("MenubarTerminalMenu");_ah.MenubarTerminalSuggestStatusMenu=new _ah("MenubarTerminalSuggestStatusMenu");_ah.MenubarViewMenu=new _ah("MenubarViewMenu");_ah.MenubarHomeMenu=new _ah("MenubarHomeMenu");_ah.OpenEditorsContext=new _ah("OpenEditorsContext");_ah.OpenEditorsContextShare=new _ah("OpenEditorsContextShare");_ah.ProblemsPanelContext=new _ah("ProblemsPanelContext");_ah.SCMInputBox=new _ah("SCMInputBox");_ah.SCMChangeContext=new _ah("SCMChangeContext");_ah.SCMResourceContext=new _ah("SCMResourceContext");_ah.SCMResourceContextShare=new _ah("SCMResourceContextShare");_ah.SCMResourceFolderContext=new _ah("SCMResourceFolderContext");_ah.SCMResourceGroupContext=new _ah("SCMResourceGroupContext");_ah.SCMSourceControl=new _ah("SCMSourceControl");_ah.SCMSourceControlInline=new _ah("SCMSourceControlInline");_ah.SCMSourceControlTitle=new _ah("SCMSourceControlTitle");_ah.SCMHistoryTitle=new _ah("SCMHistoryTitle");_ah.SCMHistoryItemContext=new _ah("SCMHistoryItemContext");_ah.SCMHistoryItemChangeContext=new _ah("SCMHistoryItemChangeContext");_ah.SCMHistoryItemRefContext=new _ah("SCMHistoryItemRefContext");_ah.SCMArtifactGroupContext=new _ah("SCMArtifactGroupContext");_ah.SCMArtifactContext=new _ah("SCMArtifactContext");_ah.SCMQuickDiffDecorations=new _ah("SCMQuickDiffDecorations");_ah.SCMTitle=new _ah("SCMTitle");_ah.SearchContext=new _ah("SearchContext");_ah.SearchActionMenu=new _ah("SearchActionContext");_ah.StatusBarWindowIndicatorMenu=new _ah("StatusBarWindowIndicatorMenu");_ah.StatusBarRemoteIndicatorMenu=new _ah("StatusBarRemoteIndicatorMenu");_ah.StickyScrollContext=new _ah("StickyScrollContext");_ah.TestItem=new _ah("TestItem");_ah.TestItemGutter=new _ah("TestItemGutter");_ah.TestProfilesContext=new _ah("TestProfilesContext");_ah.TestMessageContext=new _ah("TestMessageContext");_ah.TestMessageContent=new _ah("TestMessageContent");_ah.TestPeekElement=new _ah("TestPeekElement");_ah.TestPeekTitle=new _ah("TestPeekTitle");_ah.TestCallStack=new _ah("TestCallStack");_ah.TestCoverageFilterItem=new _ah("TestCoverageFilterItem");_ah.TouchBarContext=new _ah("TouchBarContext");_ah.TitleBar=new _ah("TitleBar");_ah.TitleBarAdjacentCenter=new _ah("TitleBarAdjacentCenter");_ah.TitleBarUpdate=new _ah("TitleBarUpdate");_ah.TitleBarContext=new _ah("TitleBarContext");_ah.TitleBarTitleContext=new _ah("TitleBarTitleContext");_ah.TunnelContext=new _ah("TunnelContext");_ah.TunnelPrivacy=new _ah("TunnelPrivacy");_ah.TunnelProtocol=new _ah("TunnelProtocol");_ah.TunnelPortInline=new _ah("TunnelInline");_ah.TunnelTitle=new _ah("TunnelTitle");_ah.TunnelLocalAddressInline=new _ah("TunnelLocalAddressInline");_ah.TunnelOriginInline=new _ah("TunnelOriginInline");_ah.ViewItemContext=new _ah("ViewItemContext");_ah.ViewContainerTitle=new _ah("ViewContainerTitle");_ah.ViewContainerTitleContext=new _ah("ViewContainerTitleContext");_ah.ViewTitle=new _ah("ViewTitle");_ah.ViewTitleContext=new _ah("ViewTitleContext");_ah.CommentEditorActions=new _ah("CommentEditorActions");_ah.CommentThreadTitle=new _ah("CommentThreadTitle");_ah.CommentThreadActions=new _ah("CommentThreadActions");_ah.CommentThreadAdditionalActions=new _ah("CommentThreadAdditionalActions");_ah.CommentThreadTitleContext=new _ah("CommentThreadTitleContext");_ah.CommentThreadCommentContext=new _ah("CommentThreadCommentContext");_ah.CommentTitle=new _ah("CommentTitle");_ah.CommentActions=new _ah("CommentActions");_ah.CommentsViewThreadActions=new _ah("CommentsViewThreadActions");_ah.InteractiveToolbar=new _ah("InteractiveToolbar");_ah.InteractiveCellTitle=new _ah("InteractiveCellTitle");_ah.InteractiveCellDelete=new _ah("InteractiveCellDelete");_ah.InteractiveCellExecute=new _ah("InteractiveCellExecute");_ah.InteractiveInputExecute=new _ah("InteractiveInputExecute");_ah.InteractiveInputConfig=new _ah("InteractiveInputConfig");_ah.ReplInputExecute=new _ah("ReplInputExecute");_ah.IssueReporter=new _ah("IssueReporter");_ah.NotebookToolbar=new _ah("NotebookToolbar");_ah.NotebookToolbarContext=new _ah("NotebookToolbarContext");_ah.NotebookStickyScrollContext=new _ah("NotebookStickyScrollContext");_ah.NotebookCellTitle=new _ah("NotebookCellTitle");_ah.NotebookCellDelete=new _ah("NotebookCellDelete");_ah.NotebookCellInsert=new _ah("NotebookCellInsert");_ah.NotebookCellBetween=new _ah("NotebookCellBetween");_ah.NotebookCellListTop=new _ah("NotebookCellTop");_ah.NotebookCellExecute=new _ah("NotebookCellExecute");_ah.NotebookCellExecuteGoTo=new _ah("NotebookCellExecuteGoTo");_ah.NotebookCellExecutePrimary=new _ah("NotebookCellExecutePrimary");_ah.NotebookDiffCellInputTitle=new _ah("NotebookDiffCellInputTitle");_ah.NotebookDiffDocumentMetadata=new _ah("NotebookDiffDocumentMetadata");_ah.NotebookDiffCellMetadataTitle=new _ah("NotebookDiffCellMetadataTitle");_ah.NotebookDiffCellOutputsTitle=new _ah("NotebookDiffCellOutputsTitle");_ah.NotebookOutputToolbar=new _ah("NotebookOutputToolbar");_ah.NotebookOutlineFilter=new _ah("NotebookOutlineFilter");_ah.NotebookOutlineActionMenu=new _ah("NotebookOutlineActionMenu");_ah.NotebookEditorLayoutConfigure=new _ah("NotebookEditorLayoutConfigure");_ah.NotebookKernelSource=new _ah("NotebookKernelSource");_ah.BulkEditTitle=new _ah("BulkEditTitle");_ah.BulkEditContext=new _ah("BulkEditContext");_ah.TimelineItemContext=new _ah("TimelineItemContext");_ah.TimelineTitle=new _ah("TimelineTitle");_ah.TimelineTitleContext=new _ah("TimelineTitleContext");_ah.TimelineFilterSubMenu=new _ah("TimelineFilterSubMenu");_ah.AccountsContext=new _ah("AccountsContext");_ah.SidebarTitle=new _ah("SidebarTitle");_ah.PanelTitle=new _ah("PanelTitle");_ah.AuxiliaryBarTitle=new _ah("AuxiliaryBarTitle");_ah.TerminalInstanceContext=new _ah("TerminalInstanceContext");_ah.TerminalEditorInstanceContext=new _ah("TerminalEditorInstanceContext");_ah.TerminalNewDropdownContext=new _ah("TerminalNewDropdownContext");_ah.TerminalTabContext=new _ah("TerminalTabContext");_ah.TerminalTabEmptyAreaContext=new _ah("TerminalTabEmptyAreaContext");_ah.TerminalStickyScrollContext=new _ah("TerminalStickyScrollContext");_ah.WebviewContext=new _ah("WebviewContext");_ah.InlineCompletionsActions=new _ah("InlineCompletionsActions");_ah.InlineEditsActions=new _ah("InlineEditsActions");_ah.NewFile=new _ah("NewFile");_ah.MergeInput1Toolbar=new _ah("MergeToolbar1Toolbar");_ah.MergeInput2Toolbar=new _ah("MergeToolbar2Toolbar");_ah.MergeBaseToolbar=new _ah("MergeBaseToolbar");_ah.MergeInputResultToolbar=new _ah("MergeToolbarResultToolbar");_ah.InlineSuggestionToolbar=new _ah("InlineSuggestionToolbar");_ah.InlineEditToolbar=new _ah("InlineEditToolbar");_ah.ChatContext=new _ah("ChatContext");_ah.ChatCodeBlock=new _ah("ChatCodeblock");_ah.ChatCompareBlock=new _ah("ChatCompareBlock");_ah.ChatMessageTitle=new _ah("ChatMessageTitle");_ah.ChatWelcomeContext=new _ah("ChatWelcomeContext");_ah.ChatMessageFooter=new _ah("ChatMessageFooter");_ah.ChatSubagentContent=new _ah("ChatSubagentContent");_ah.ChatExecute=new _ah("ChatExecute");_ah.ChatExecuteQueue=new _ah("ChatExecuteQueue");_ah.ChatInput=new _ah("ChatInput");_ah.ChatInputSecondary=new _ah("ChatInputSecondary");_ah.ChatInputStatus=new _ah("ChatInputStatus");_ah.ChatInputSide=new _ah("ChatInputSide");_ah.AutomationsDialogInput=new _ah("AutomationsDialogInput");_ah.ChatModePicker=new _ah("ChatModePicker");_ah.ChatEditingWidgetToolbar=new _ah("ChatEditingWidgetToolbar");_ah.ChatEditingSessionChangesToolbar=new _ah("ChatEditingSessionChangesToolbar");_ah.ChatEditingSessionTitleToolbar=new _ah("ChatEditingSessionTitleToolbar");_ah.ChatEditingSessionChangesVersionsSubmenu=new _ah("ChatEditingSessionChangesVersionsSubmenu");_ah.ChatEditingSessionChangesFileHeaderToolbar=new _ah("ChatEditingSessionChangesFileHeaderToolbar");_ah.ChatEditingSessionChangesFileHeaderRightToolbar=new _ah("ChatEditingSessionChangesFileHeaderRightToolbar");_ah.ChatEditingEditorContent=new _ah("ChatEditingEditorContent");_ah.ChatEditingEditorHunk=new _ah("ChatEditingEditorHunk");_ah.ChatEditingDeletedNotebookCell=new _ah("ChatEditingDeletedNotebookCell");_ah.ChatInputAttachmentToolbar=new _ah("ChatInputAttachmentToolbar");_ah.ChatEditingWidgetModifiedFilesToolbar=new _ah("ChatEditingWidgetModifiedFilesToolbar");_ah.ChatInputResourceAttachmentContext=new _ah("ChatInputResourceAttachmentContext");_ah.ChatInputSymbolAttachmentContext=new _ah("ChatInputSymbolAttachmentContext");_ah.ChatInlineResourceAnchorContext=new _ah("ChatInlineResourceAnchorContext");_ah.ChatInlineSymbolAnchorContext=new _ah("ChatInlineSymbolAnchorContext");_ah.ChatMessageCheckpoint=new _ah("ChatMessageCheckpoint");_ah.ChatMessageRestoreCheckpoint=new _ah("ChatMessageRestoreCheckpoint");_ah.ChatNewMenu=new _ah("ChatNewMenu");_ah.ChatEditingCodeBlockContext=new _ah("ChatEditingCodeBlockContext");_ah.ChatTitleBarMenu=new _ah("ChatTitleBarMenu");_ah.ChatAttachmentsContext=new _ah("ChatAttachmentsContext");_ah.ChatTipContext=new _ah("ChatTipContext");_ah.ChatTipToolbar=new _ah("ChatTipToolbar");_ah.ChatToolOutputResourceToolbar=new _ah("ChatToolOutputResourceToolbar");_ah.ChatTextEditorMenu=new _ah("ChatTextEditorMenu");_ah.ChatToolOutputResourceContext=new _ah("ChatToolOutputResourceContext");_ah.ChatMultiDiffContext=new _ah("ChatMultiDiffContext");_ah.ChatConfirmationMenu=new _ah("ChatConfirmationMenu");_ah.ChatEditorInlineMenu=new _ah("ChatEditorInlineGutter");_ah.ChatEditorInlineExecute=new _ah("ChatEditorInputExecute");_ah.ChatEditorInlineInputSide=new _ah("ChatEditorInputSide");_ah.InlineChatEditorAffordance=new _ah("InlineChatEditorAffordance");_ah.AccessibleView=new _ah("AccessibleView");_ah.MultiDiffEditorContent=new _ah("MultiDiffEditorContent");_ah.MultiDiffEditorFileToolbar=new _ah("MultiDiffEditorFileToolbar");_ah.DiffEditorHunkToolbar=new _ah("DiffEditorHunkToolbar");_ah.DiffEditorSelectionToolbar=new _ah("DiffEditorSelectionToolbar");_ah.BrowserNavigationToolbar=new _ah("BrowserNavigationToolbar");_ah.BrowserActionsToolbar=new _ah("BrowserActionsToolbar");_ah.BrowserChatActionsMenu=new _ah("BrowserChatActionsMenu");_ah.BrowserEmulationToolbar=new _ah("BrowserEmulationToolbar");_ah.AgentSessionsViewerFilterSubMenu=new _ah("AgentSessionsViewerFilterSubMenu");_ah.AgentSessionsExternalFilterSubMenu=new _ah("AgentSessionsExternalFilterSubMenu");_ah.AgentSessionsContext=new _ah("AgentSessionsContext");_ah.AgentSessionSectionContext=new _ah("AgentSessionSectionContext");_ah.AgentSessionsCreateSubMenu=new _ah("AgentSessionsCreateSubMenu");_ah.AgentSessionsToolbar=new _ah("AgentSessionsToolbar");_ah.AgentSessionItemToolbar=new _ah("AgentSessionItemToolbar");_ah.AgentSessionSectionToolbar=new _ah("AgentSessionSectionToolbar");_ah.SessionItemContextMenu=new _ah("SessionItemContextMenu");_ah.SessionHeaderContext=new _ah("SessionsSessionHeaderContext");_ah.AgentsTitleBarControlMenu=new _ah("AgentsTitleBarControlMenu");_ah.AgentsChangesToolbar=new _ah("AgentsChangesToolbar");_ah.AgentsChangesPrimaryActionSubMenu=new _ah("AgentsChangesPrimaryActionSubMenu");_ah.AgentsChangeInlineToolbar=new _ah("AgentsChangeInlineToolbar");_ah.ChatViewSessionTitleNavigationToolbar=new _ah("ChatViewSessionTitleNavigationToolbar");_ah.ChatViewSessionTitleToolbar=new _ah("ChatViewSessionTitleToolbar");_ah.ChatContextUsageActions=new _ah("ChatContextUsageActions");_ah.MarkerHoverStatusBar=new _ah("MarkerHoverParticipant.StatusBar");let ad=ra("menuService");class ac{static for(e){let t=this._all.get(e);return t||(t=new ac(e),this._all.set(e,t)),t;}static merge(e){let t=new Set();for(let i of e)i instanceof ac&&t.add(i.id);return t;}constructor(e){this.id=e,this.has=t=>t===e;}}_ac=ac;_ac._all=new Map();let au=new class{constructor(){this._commands=new Map(),this._menuItems=new Map(),this._onDidChangeMenu=new iv.M({merge:ac.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event;}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(ac.for(ah.CommandPalette)),(0,i8.P)((0,i8.Q)(()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(ac.for(ah.CommandPalette));}));}getCommand(e){return this._commands.get(e);}getCommands(){let e=new Map();return this._commands.forEach((t,i)=>e.set(i,t)),e;}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new rb.f(),this._menuItems.set(e,i));let n=i.push(t);return this._onDidChangeMenu.fire(ac.for(e)),(0,i8.P)((0,i8.Q)(()=>{n(),this._onDidChangeMenu.fire(ac.for(e));}));}appendMenuItems(e){let t=new i8.q();for(let{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t;}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===ah.CommandPalette&&this._appendImplicitItems(t),t;}_appendImplicitItems(e){let t=new Set();for(let i of e)aa(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach((i,n)=>{t.has(n)||e.push({command:i});});}}();class ag extends rm{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t;}}let ap=eX=class{static label(e,t){return t!==null&&t!==void 0&&t.renderShortTitle&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value;}constructor(e,t,i,n,s,o,r){var _ref2,_e$tooltip2;let a;if(this.hideActions=n,this.menuKeybinding=s,this._commandService=r,this.id=e.id,this.label=eX.label(e,i),this.tooltip=(_ref2="string"==typeof e.tooltip?e.tooltip:(_e$tooltip2=e.tooltip)===null||_e$tooltip2===void 0?void 0:_e$tooltip2.value)!==null&&_ref2!==void 0?_ref2:"",this.enabled=!e.precondition||o.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){let t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=o.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"==typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&eY.isThemeIcon(t.icon)&&(a=t.icon),this.checked&&t.title&&(this.label="string"==typeof t.title?t.title:t.title.value);}a||(a=eY.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new eX(t,void 0,i,n,void 0,o,r):void 0,this._options=i,this.class=a&&eY.asClassName(a);}run(...e){var _this$_options,_this$_options2,_this$_options3;let t=[];return(_this$_options=this._options)!==null&&_this$_options!==void 0&&_this$_options.args?t=[...t,...this._options.args]:((_this$_options2=this._options)===null||_this$_options2===void 0?void 0:_this$_options2.arg)&&(t=[...t,this._options.arg]),(_this$_options3=this._options)!==null&&_this$_options3!==void 0&&_this$_options3.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t);}};ap=eX=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([ar(5,r9),ar(6,ry)],ap);class af{constructor(e){this.desc=e;}}e.s(["i",0,af,"Q",0,ad,"V",0,ah,"W",0,ap,"h",0,au,"b",0,ag,"w",0,aa,"Z",0,al,"H",0,function(e){var _r$metadata;let t=[],i=new e(),{f1:n,menu:s,keybinding:o,...r}=i.desc;if(rS.getCommand(r.id))throw Error(`Cannot register two commands with the same id: ${r.id}`);if(t.push(rS.registerCommand({id:r.id,handler:(e,...t)=>i.run(e,...t),metadata:(_r$metadata=r.metadata)!==null&&_r$metadata!==void 0?_r$metadata:{description:i.desc.title}})),Array.isArray(s))for(let e of s)t.push(au.appendMenuItem(e.id,{command:{...r,precondition:null===e.precondition?void 0:r.precondition},...e}));else s&&t.push(au.appendMenuItem(s.id,{command:{...r,precondition:null===s.precondition?void 0:r.precondition},...s}));if(n&&(t.push(au.appendMenuItem(ah.CommandPalette,{command:r,when:r.precondition})),t.push(au.addCommand(r))),Array.isArray(o))for(let e of o)t.push(as.registerKeybindingRule({...e,id:r.id,when:r.precondition?rV.and(r.precondition,e.when):e.when}));else o&&t.push(as.registerKeybindingRule({...o,id:r.id,when:r.precondition?rV.and(r.precondition,o.when):o.when}));return{dispose(){(0,i8.d)(t);}};}],92267);let am=ra("telemetryService");e.s(["f",0,am],69302);var a_=i8,av=e.i(91359),ab=e.i(11919);function aC(e){return 47===e||92===e;}function aw(e){return e.replace(/[\\/]/g,ab.b.sep);}function ay(e){return-1===e.indexOf("/")&&(e=aw(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e;}function aS(e,t=ab.b.sep){if(!e)return"";let i=e.length,n=e.charCodeAt(0);if(aC(n)){if(aC(e.charCodeAt(1))&&!aC(e.charCodeAt(2))){let n=3;for(;n<i&&!aC(e.charCodeAt(n));n++);if(3!==n&&!aC(e.charCodeAt(n+1))){for(n+=1;n<i;n++)if(aC(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t);}}return t;}if(ak(n)&&58===e.charCodeAt(1))if(aC(e.charCodeAt(2)))return e.slice(0,2)+t;else return e.slice(0,2);let s=e.indexOf("://");if(-1!==s){for(s+=3;s<i;s++)if(aC(e.charCodeAt(s)))return e.slice(0,s+1);}return"";}function ax(e){if(!i_.t||!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t||92!==(t=e.charCodeAt(1)))return!1;let i=2;for(;i<e.length&&92!==(t=e.charCodeAt(i));i++);return!(2===i||isNaN(t=e.charCodeAt(i+1))||92===t);}function aL(e,t,i,n=!1){let s=n?ab.b.sep:ab.q;if(e===t)return!0;if(!e||!t||((e.indexOf("..")>=0||t.indexOf("..")>=0)&&(e=n?ab.b.normalize(e):(0,ab.S)(e),t=n?ab.b.normalize(t):(0,ab.S)(t)),t.length>e.length))return!1;if(i){if(!(0,i7.c)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===s&&i--,e.charAt(i)===s;}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t);}function ak(e){return e>=65&&e<=90||e>=97&&e<=122;}function aD(e){return(0,ne.z)(e,!0);}e.s(["B",0,aS,"V",0,function(e,t=i_.t){return!!t&&ak(e.charCodeAt(0))&&58===e.charCodeAt(1);},"L",0,aL,"u",0,ax,"v",0,ay,"I",0,aw],19984);let aM=new class{constructor(e){this._ignorePathCasing=e;}compare(e,t,i=!1){return e===t?0:(0,i7.z)(this.getComparisonKey(e,i),this.getComparisonKey(t,i));}isEqual(e,t,i=!1){return e===t||!!e&&!!t&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i);}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString();}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===nT.I.file)return aL(aD(e),aD(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(aF(e.authority,t.authority))return aL(e.path,t.path,this._ignorePathCasing(e),!0)&&e.query===t.query&&(i||e.fragment===t.fragment);}return!1;}joinPath(e,...t){return ne.m.joinPath(e,...t);}basenameOrAuthority(e){return aE(e)||e.authority;}basename(e,t){return ab.b.basename(e.path,t);}extname(e){return ab.b.extname(e.path);}dirname(e){let t;return 0===e.path.length?e:(e.scheme===nT.I.file?t=ne.m.file((0,ab.a)(aD(e))).path:(t=ab.b.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t}));}normalizePath(e){let t;return e.path.length?(t=e.scheme===nT.I.file?ne.m.file((0,ab.S)(aD(e))).path:ab.b.normalize(e.path),e.with({path:t})):e;}relativePath(e,t){if(e.scheme!==t.scheme||!aF(e.authority,t.authority))return;if(e.scheme===nT.I.file){let i=(0,ab.u)(aD(e),aD(t));return i_.t?aw(i):i;}let i=e.path||"/",n=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(let t=Math.min(i.length,n.length);e<t&&(i.charCodeAt(e)===n.charCodeAt(e)||i.charAt(e).toLowerCase()===n.charAt(e).toLowerCase());e++);i=n.substr(0,e)+i.substr(e);}return ab.b.relative(i,n);}resolvePath(e,t){if(e.scheme===nT.I.file){let i=ne.m.file((0,ab.f)(aD(e),t));return e.with({authority:i.authority,path:i.path});}return t=ay(t),e.with({path:ab.b.resolve(e.path,t)});}isAbsolutePath(e){return!!e.path&&"/"===e.path[0];}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,i7.Z)(e,t);}hasTrailingPathSeparator(e,t=ab.q){if(e.scheme===nT.I.file){let i=aD(e);return i.length>aS(i).length&&i[i.length-1]===t;}{let t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath);}}removeTrailingPathSeparator(e,t=ab.q){return aB(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e;}addTrailingPathSeparator(e,t=ab.q){let i=!1;if(e.scheme===nT.I.file){let n=aD(e);i=void 0!==n&&n.length===aS(n).length&&n[n.length-1]===t;}else{t="/";let n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1);}return i||aB(e,t)?e:e.with({path:e.path+"/"});}}(()=>!1),aI=aM.isEqual.bind(aM);aM.isEqualOrParent.bind(aM),aM.getComparisonKey.bind(aM);let aN=aM.basenameOrAuthority.bind(aM),aE=aM.basename.bind(aM),aT=aM.extname.bind(aM),aR=aM.dirname.bind(aM),aA=aM.joinPath.bind(aM),aO=aM.normalizePath.bind(aM);aM.relativePath.bind(aM);let aP=aM.resolvePath.bind(aM);aM.isAbsolutePath.bind(aM);let aF=aM.isEqualAuthority.bind(aM),aB=aM.hasTrailingPathSeparator.bind(aM);aM.removeTrailingPathSeparator.bind(aM),aM.addTrailingPathSeparator.bind(aM),(q=eJ||(eJ={})).META_DATA_LABEL="label",q.META_DATA_DESCRIPTION="description",q.META_DATA_SIZE="size",q.META_DATA_MIME="mime",q.parseMetaData=function(e){let t=new Map();e.path.substring(e.path.indexOf(";")+1,e.path.lastIndexOf(";")).split(";").forEach(e=>{let[i,n]=e.split(":");i&&n&&t.set(i,n);});let i=e.path.substring(0,e.path.indexOf(";"));return i&&t.set(q.META_DATA_MIME,i),t;},e.s(["K",0,eJ,"F",0,aE,"S",0,aN,"a",0,aR,"J",0,aM,"L",0,aT,"M",0,aI,"A",0,aA,"y",0,aO,"N",0,aP],93221);let aW=ra("logService"),aV=ra("loggerService");(j=e0||(e0={}))[j.Off=0]="Off",j[j.Trace=1]="Trace",j[j.Debug=2]="Debug",j[j.Info=3]="Info",j[j.Warning=4]="Warning",j[j.Error=5]="Error";let aH=e0.Info;function az(e,t){return e!==e0.Off&&e<=t;}function aU(e,...t){(function(e){switch(e){case"debug":return console.debug;case"error":return console.error;case"info":return console.info;case"log":return console.log;case"warn":return console.warn;}})(e).apply(console,t);}class a$ extends a_.N{constructor(){super(...arguments),this.level=aH,this._onDidChangeLogLevel=this._register(new iv.S());}get onDidChangeLogLevel(){return this._onDidChangeLogLevel.event;}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level));}getLevel(){return this.level;}checkLogLevel(e){return az(this.level,e);}canLog(e){return!this._store.isDisposed&&this.checkLogLevel(e);}}class aK extends a${constructor(e=aH,t=!0){super(),this.useColors=t,this.setLevel(e);}trace(e,...t){this.canLog(e0.Trace)&&(this.useColors?aU("log","%cTRACE","color: #888",e,...t):aU("log",e,...t));}debug(e,...t){this.canLog(e0.Debug)&&(this.useColors?aU("log","%cDEBUG","background: #eee; color: #888",e,...t):aU("log",e,...t));}info(e,...t){this.canLog(e0.Info)&&(this.useColors?aU("log","%c INFO","color: #33f",e,...t):aU("log",e,...t));}warn(e,...t){this.canLog(e0.Warning)&&(this.useColors?aU("warn","%c WARN","color: #993",e,...t):aU("log",e,...t));}error(e,...t){this.canLog(e0.Error)&&(this.useColors?aU("error","%c ERR","color: #f33",e,...t):aU("error",e,...t));}}class aq extends a${constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel());}setLevel(e){for(let t of this.loggers)t.setLevel(e);super.setLevel(e);}trace(e,...t){for(let i of this.loggers)i.trace(e,...t);}debug(e,...t){for(let i of this.loggers)i.debug(e,...t);}info(e,...t){for(let i of this.loggers)i.info(e,...t);}warn(e,...t){for(let i of this.loggers)i.warn(e,...t);}error(e,...t){for(let i of this.loggers)i.error(e,...t);}dispose(){for(let e of this.loggers)e.dispose();super.dispose();}}class aj extends a_.N{constructor(e,t,i){if(super(),this.logLevel=e,this.logsHome=t,this._loggers=new av._(),this._onDidChangeLoggers=this._register(new iv.S()),this._onDidChangeVisibility=this._register(new iv.S()),i)for(let e of i)this._loggers.set(e.resource,{logger:void 0,info:e});}getLoggerEntry(e){return(0,sI.Z)(e)?[...this._loggers.values()].find(t=>t.info.id===e):this._loggers.get(e);}createLogger(e,t){var _t$id,_this$_loggers$get,_ref3;let i=this.toResource(e),n=(0,sI.Z)(e)?e:(_t$id=t===null||t===void 0?void 0:t.id)!==null&&_t$id!==void 0?_t$id:(0,nR.R)(i.toString()).toString(16),s=(_this$_loggers$get=this._loggers.get(i))===null||_this$_loggers$get===void 0?void 0:_this$_loggers$get.logger,o=(t===null||t===void 0?void 0:t.logLevel)==="always"?e0.Trace:t===null||t===void 0?void 0:t.logLevel;s||(s=this.doCreateLogger(i,(_ref3=o!==null&&o!==void 0?o:this.getLogLevel(i))!==null&&_ref3!==void 0?_ref3:this.logLevel,{...t,id:n}));let r={logger:s,info:{resource:i,id:n,logLevel:o,name:t===null||t===void 0?void 0:t.name,hidden:t===null||t===void 0?void 0:t.hidden,group:t===null||t===void 0?void 0:t.group,extensionId:t===null||t===void 0?void 0:t.extensionId,when:t===null||t===void 0?void 0:t.when}};return this.registerLogger(r.info),this._loggers.set(i,r),s;}toResource(e){return(0,sI.Z)(e)?aA(this.logsHome,`${e.replace(/[\\/:\*\?"<>\|]/g,"")}.log`):e;}setVisibility(e,t){let i=this.getLoggerEntry(e);i&&t!==!i.info.hidden&&(i.info.hidden=!t,this._loggers.set(i.info.resource,i),this._onDidChangeVisibility.fire([i.info.resource,t]));}getLogLevel(e){var _this$_loggers$get2;let t;return e&&(t=(_this$_loggers$get2=this._loggers.get(e))===null||_this$_loggers$get2===void 0?void 0:_this$_loggers$get2.info.logLevel),t!==null&&t!==void 0?t:this.logLevel;}registerLogger(e){let t=this._loggers.get(e.resource);t?t.info.hidden!==e.hidden&&this.setVisibility(e.resource,!e.hidden):(this._loggers.set(e.resource,{info:e,logger:void 0}),this._onDidChangeLoggers.fire({added:[e],removed:[]}));}dispose(){this._loggers.forEach(e=>{var _e$logger;return(_e$logger=e.logger)===null||_e$logger===void 0?void 0:_e$logger.dispose();}),this._loggers.clear(),super.dispose();}}class aG{constructor(){this.onDidChangeLogLevel=new iv.S().event;}setLevel(e){}getLevel(){return e0.Info;}trace(e){}debug(e){}info(e){}warn(e){}error(e){}dispose(){}}class aQ extends aj{constructor(){super(e0.Off,ne.m.parse("log:///log"));}doCreateLogger(e,t,i){return new aG();}}new r4("logLevel",function(e){switch(e){case e0.Trace:return"trace";case e0.Debug:return"debug";case e0.Info:return"info";case e0.Warning:return"warn";case e0.Error:return"error";case e0.Off:return"off";}}(e0.Info)),e.s(["N",0,aK,"i",0,aW,"_",0,aV,"d",0,e0,"G",0,aq,"O",0,aQ,"h",0,az],48669);class aZ{static getRegisteredCommands(){return[...aZ.REGISTERED_COMMANDS];}static registerCommand(e){aZ.REGISTERED_COMMANDS.add(e);}}_aZ=aZ;_aZ.REGISTERED_COMMANDS=new Set();e.s(["f",0,aZ],21788);class aY{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata,this.canTriggerInlineEdits=e.canTriggerInlineEdits;}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts)for(let e of Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts]){let t=e.kbExpr;this.precondition&&(t=t?rV.and(t,this.precondition):this.precondition);let i={id:this.id,weight:e.weight,args:e.args,when:t,primary:e.primary,secondary:e.secondary,win:e.win,linux:e.linux,mac:e.mac};as.registerKeybindingRule(i);}rS.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata}),this.canTriggerInlineEdits&&aZ.registerCommand(this.id);}_registerMenuItem(e){au.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order});}}class aX extends aY{constructor(){super(...arguments),this._implementations=[];}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort((e,t)=>t.priority-e.priority),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1);}};}runCommand(e,t){let i=e.get(aW),n=e.get(r9);for(let s of(i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`),this._implementations)){if(s.when){let e=n.getContext(or());if(!s.when.evaluate(e))continue;}let o=s.implementation(e,t);if(o){if(i.trace(`Command '${this.id}' was handled by '${s.name}'.`),"boolean"==typeof o)return;return o;}}i.trace(`The Command '${this.id}' was not handled by any implementation.`);}}class aJ extends aY{constructor(e,t){super(t),this.command=e;}runCommand(e,t){return this.command.runCommand(e,t);}}class a0 extends aY{static bindToContribution(e){return class extends a0{constructor(e){super(e),this._callback=e.handler;}runEditorCommand(t,i,n){let s=e(i);s&&this._callback(s,n);}};}static runEditorCommand(e,t,i,n){let s=e.get(rl),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext(e=>{if(e.get(r9).contextMatchesRules(i!==null&&i!==void 0?i:void 0))return n(e,o,t);});}runCommand(e,t){return a0.runEditorCommand(e,t,this.precondition,(e,t,i)=>this.runEditorCommand(e,t,i));}}class a1 extends a0{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=ah.EditorContext),t.title||(t.title="string"==typeof e.label?e.label:e.label.value),t.when=rV.and(e.precondition,t.when),t;}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e;}constructor(e){var _e$alias,_e$alias2;super(a1.convertOptions(e)),"string"==typeof e.label?(this.label=e.label,this.alias=(_e$alias=e.alias)!==null&&_e$alias!==void 0?_e$alias:e.label):(this.label=e.label.value,this.alias=(_e$alias2=e.alias)!==null&&_e$alias2!==void 0?_e$alias2:e.label.original);}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{});}reportTelemetry(e,t){e.get(am).publicLog2("editorActionInvoked",{name:this.label,id:this.id});}}function a2(e){return a5.INSTANCE.registerEditorCommand(e),e;}function a3(e,t,i){a5.INSTANCE.registerEditorContribution(e,t,i);}(G=e1||(e1={})).getEditorCommand=function(e){return a5.INSTANCE.getEditorCommand(e);},G.getEditorActions=function(){return a5.INSTANCE.getEditorActions();},G.getEditorContributions=function(){return a5.INSTANCE.getEditorContributions();},G.getSomeEditorContributions=function(e){return a5.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0);},G.getDiffEditorContributions=function(){return a5.INSTANCE.getDiffEditorContributions();};class a5{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null);}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i});}getEditorContributions(){return this.editorContributions.slice(0);}getDiffEditorContributions(){return this.diffEditorContributions.slice(0);}registerEditorAction(e){e.register(),this.editorActions.push(e);}getEditorActions(){return this.editorActions;}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e;}getEditorCommand(e){return this.editorCommands[e]||null;}}_a2=a5;_a2.INSTANCE=new _a2();function a6(e){return e.register(),e;}ai.add("editor.contributions",a5.INSTANCE);let a4=a6(new aX({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:ah.MenubarEditMenu,group:"1_do",title:(0,iM.M)(73,"&&Undo"),order:1},{menuId:ah.CommandPalette,group:"",title:(0,iM.M)(74,"Undo"),order:1},{menuId:ah.SimpleEditorContext,group:"1_do",title:(0,iM.M)(75,"Undo"),order:1}]}));a6(new aJ(a4,{id:"default:undo",precondition:void 0}));let a9=a6(new aX({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:ah.MenubarEditMenu,group:"1_do",title:(0,iM.M)(76,"&&Redo"),order:2},{menuId:ah.CommandPalette,group:"",title:(0,iM.M)(77,"Redo"),order:1},{menuId:ah.SimpleEditorContext,group:"1_do",title:(0,iM.M)(78,"Redo"),order:2}]}));a6(new aJ(a9,{id:"default:redo",precondition:void 0}));let a8=a6(new aX({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:ah.MenubarSelectionMenu,group:"1_basic",title:(0,iM.M)(79,"&&Select All"),order:1},{menuId:ah.CommandPalette,group:"",title:(0,iM.M)(80,"Select All"),order:1},{menuId:ah.SimpleEditorContext,group:"9_select",title:(0,iM.M)(81,"Select All"),order:1}]}));e.s(["s",0,aY,"M",0,a1,"Z",0,class extends af{run(e,...t){let i=e.get(rl),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext(e=>{var _this$desc$preconditi,_this$desc$preconditi2;let i=e.get(r9),s=e.get(aW);return i.contextMatchesRules((_this$desc$preconditi=this.desc.precondition)!==null&&_this$desc$preconditi!==void 0?_this$desc$preconditi:void 0)?this.runEditorCommand(e,n,...t):void s.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(_this$desc$preconditi2=this.desc.precondition)===null||_this$desc$preconditi2===void 0?void 0:_this$desc$preconditi2.serialize());});}},"J",0,a0,"y",0,e1,"h",0,class extends a1{constructor(){super(...arguments),this._implementations=[];}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1);}};}run(e,t,i){for(let n of this._implementations){let s=n[1](e,t,i);if(s){if("boolean"==typeof s)return;return s;}}}},"S",0,a9,"$",0,a8,"I",0,a4,"_",0,function(e){let t=new e();return a5.INSTANCE.registerEditorAction(t),t;},"U",0,a2,"N",0,a3,"K",0,function(e){a5.INSTANCE.registerEditorAction(e);},"a",0,function(e,t){rS.registerCommand(e,function(e,...i){let n=e.get(rr),[s,o]=i;(0,sI.T)(ne.m.isUri(s)),(0,sI.T)(rh.f.isIPosition(o));let r=e.get(rd).getModel(s);if(r){let e=rh.f.lift(o);return n.invokeFunction(t,r,e,...i.slice(2));}return e.get(rc).createModelReference(s).then(e=>new Promise((s,r)=>{try{let r=n.invokeFunction(t,e.object.textEditorModel,rh.f.lift(o),i.slice(2));s(r);}catch(e){r(e);}}).finally(()=>{e.dispose();}));});},"m",0,function(e){return a5.INSTANCE.registerEditorAction(e),e;}],45356);var a7=i8,le=e.i(5566);class lt{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label;}}let li=ra("IWebWorkerService");var ln=e.i(20319),ls=i8;(Q=e2||(e2={}))[Q.None=0]="None",Q[Q.Indent=1]="Indent",Q[Q.IndentOutdent=2]="IndentOutdent",Q[Q.Outdent=3]="Outdent";class lo{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx;}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n);}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e;}return null;}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter;}}class lr{constructor(e){for(let t of(this.autoClosingPairsOpenByStart=new Map(),this.autoClosingPairsOpenByEnd=new Map(),this.autoClosingPairsCloseByStart=new Map(),this.autoClosingPairsCloseByEnd=new Map(),this.autoClosingPairsCloseSingleChar=new Map(),e))la(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),la(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),la(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),la(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&la(this.autoClosingPairsCloseSingleChar,t.close,t);}}function la(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i]);}e.s(["o",0,lr,"h",0,e2,"P",0,lo],87282);class ll{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new lo(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new lo({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){let t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new lo({open:t.open,close:t.close||""}));}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:ll.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:ll.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs;}getAutoClosingPairs(){return this._autoClosingPairs;}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets;}getSurroundingPairs(){return this._surroundingPairs;}}_ll=ll;_ll.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n ";_ll.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n ";function lh(e,t){let i=e.getCount(),n=e.findTokenIndexAtOffset(t),s=e.getLanguageId(n),o=n;for(;o+1<i&&e.getLanguageId(o+1)===s;)o++;let r=n;for(;r>0&&e.getLanguageId(r-1)===s;)r--;return new ld(e,s,r,o+1,e.getStartOffset(r),e.getEndOffset(o));}class ld{constructor(e,t,i,n,s,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=s,this._lastCharOffset=o,this.languageIdCodec=e.languageIdCodec;}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset);}getLineLength(){return this._lastCharOffset-this.firstCharOffset;}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e);}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex;}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex;}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex);}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0);}}function lc(e){return(3&e)!=0;}var lu=e.i(52313);function lg(){return r||(r=new TextDecoder("UTF-16LE")),r;}function lp(){return l||(l=(0,i_.M)()?lg():(a||(a=new TextDecoder("UTF-16BE")),a)),l;}function lf(e,t,i){let n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){let n=[],s=0;for(let o=0;o<i;o++){let i=(0,lu.Y)(e,t);t+=2,n[s++]=String.fromCharCode(i);}return n.join("");}(e,t,i):lg().decode(n);}class lm{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0;}reset(){this._completedStrings=null,this._bufferLength=0;}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer();}_buildBuffer(){if(0===this._bufferLength)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return lp().decode(e);}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e;}appendCharCode(e){let t=this._capacity-this._bufferLength;t<=1&&(0===t||(0,i7.K)(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e;}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e;}appendString(e){let t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return;}for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i);}}e.s(["s",0,lm,"I",0,lf,"y",0,lp],76230);class l_{constructor(e,t,i,n,s,o){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=s,this.reversedRegex=o,this._openSet=l_._toSet(this.open),this._closeSet=l_._toSet(this.close);}isOpen(e){return this._openSet.has(e);}isClose(e){return this._closeSet.has(e);}static _toSet(e){let t=new Set();for(let i of e)t.add(i);return t;}}class lv{constructor(e,t){this._richEditBracketsBrand=void 0;let i=function(e){let t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);let i=[];for(let e=0;e<t;e++)i[e]=e;let n=(e,t)=>{let[i,n]=e,[s,o]=t;return i===s||i===o||n===s||n===o;},s=(e,n)=>{let s=Math.min(e,n),o=Math.max(e,n);for(let e=0;e<t;e++)i[e]===o&&(i[e]=s);};for(let o=0;o<t;o++){let r=e[o];for(let a=o+1;a<t;a++)n(r,e[a])&&s(i[o],i[a]);}let o=[];for(let n=0;n<t;n++){let s=[],r=[];for(let o=0;o<t;o++)if(i[o]===n){let[t,i]=e[o];s.push(t),r.push(i);}s.length>0&&o.push({open:s,close:r});}return o;}(t);for(let t of(this.brackets=i.map((t,n)=>new l_(e,n,t.open,t.close,function(e,t,i,n){let s=[];s=(s=s.concat(e)).concat(t);for(let e=0,t=s.length;e<t;e++)lb(s[e],i,n,s);return(s=lw(s)).sort(lC),s.reverse(),lS(s);}(t.open,t.close,i,n),function(e,t,i,n){let s=[];s=(s=s.concat(e)).concat(t);for(let e=0,t=s.length;e<t;e++)lb(s[e],i,n,s);return(s=lw(s)).sort(lC),s.reverse(),lS(s.map(lx));}(t.open,t.close,i,n))),this.forwardRegex=function(e){let t=[];for(let i of e){for(let e of i.open)t.push(e);for(let e of i.close)t.push(e);}return lS(t=lw(t));}(this.brackets),this.reversedRegex=function(e){let t=[];for(let i of e){for(let e of i.open)t.push(e);for(let e of i.close)t.push(e);}return lS((t=lw(t)).map(lx));}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0,this.brackets)){for(let e of t.open)this.textIsBracket[e]=t,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(let e of t.close)this.textIsBracket[e]=t,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);}}}function lb(e,t,i,n){for(let s=0,o=t.length;s<o;s++){if(s===i)continue;let o=t[s];for(let t of o.open)t.indexOf(e)>=0&&n.push(t);for(let t of o.close)t.indexOf(e)>=0&&n.push(t);}}function lC(e,t){return e.length-t.length;}function lw(e){if(e.length<=1)return e;let t=[],i=new Set();for(let n of e)i.has(n)||(t.push(n),i.add(n));return t;}function ly(e){let t=/^[\w ]+$/.test(e);return e=(0,i7.d)(e),t?`\\b${e}\\b`:e;}function lS(e,t){let i=`(${e.map(ly).join(")|(")})`;return(0,i7.v)(i,!0,t);}let lx=(D=null,M=null,function(e){return D!==e&&(M=function(e){let t=new Uint16Array(e.length),i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return lp().decode(t);}(D=e)),M;});class lL{static _findPrevBracketInText(e,t,i,n){let s=i.match(e);if(!s)return null;let o=i.length-(s.index||0),r=s[0].length,a=n+o;return new ln.f(t,a-r+1,t,a+1);}static findPrevBracketInRange(e,t,i,n,s){let o=lx(i).substring(i.length-s,i.length-n);return this._findPrevBracketInText(e,t,o,n);}static findNextBracketInText(e,t,i,n){let s=i.match(e);if(!s)return null;let o=s.index||0,r=s[0].length;if(0===r)return null;let a=n+o;return new ln.f(t,a+1,t,a+1+r);}static findNextBracketInRange(e,t,i,n,s){let o=i.substring(n,s);return this.findNextBracketInText(e,t,o,n);}}class lk{constructor(e){this._richEditBrackets=e;}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t);}return(0,ip.l)(e);}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if(lc(t.getStandardTokenType(n)))return null;let s=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,r=lL.findPrevBracketInRange(s,1,o,0,o.length);if(!r)return null;let a=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;let l=t.getActualLineContentBefore(r.startColumn-1);return /^\s*$/.test(l)?{matchOpenBracket:a}:null;}}function lD(e){return e.global&&(e.lastIndex=0),!0;}class lM{constructor(e){this._indentationRules=e;}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&lD(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e));}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&lD(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e));}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&lD(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e));}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&lD(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e));}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t;}}class lI{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{let t=lI._createOpenBracketRegExp(e[0]),i=lI._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i});}),this._regExpRules=e.onEnterRules||[];}onEnter(e,t,i,n){if(e>=3)for(let e=0,s=this._regExpRules.length;e<s;e++){let s=this._regExpRules[e];if([{reg:s.beforeText,text:i},{reg:s.afterText,text:n},{reg:s.previousLineText,text:t}].every(e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text))))return s.action;}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e<t;e++){let t=this._brackets[e];if(t.openRegExp.test(i)&&t.closeRegExp.test(n))return{indentAction:e2.IndentOutdent};}if(e>=2&&i.length>0){for(let e=0,t=this._brackets.length;e<t;e++)if(this._brackets[e].openRegExp.test(i))return{indentAction:e2.Indent};}return null;}static _createOpenBracketRegExp(e){let t=(0,i7.d)(e);return /\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",lI._safeRegExp(t);}static _createCloseBracketRegExp(e){let t=(0,i7.d)(e);return /\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,lI._safeRegExp(t);}static _safeRegExp(e){try{return new RegExp(e);}catch(e){return(0,nf.C)(e),null;}}}let lN=ra("configurationService");function lE(e,t){let i=Object.create(null);for(let n in e)lT(i,n,e[n],t);return i;}function lT(e,t,i,n){let s=t.split("."),o=s.pop(),r=e;for(let e=0;e<s.length;e++){let i=s[e],o=r[i];switch(typeof o){case"undefined":o=r[i]=Object.create(null);break;case"object":if(null===o)return void n(`Ignoring ${t} as ${s.slice(0,e+1).join(".")} is null`);break;default:n(`Ignoring ${t} as ${s.slice(0,e+1).join(".")} is ${JSON.stringify(o)}`);return;}r=o;}if("object"==typeof r&&null!==r)try{r[o]=i;}catch(e){n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`);}else n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`);}function lR(e,t){!function e(t,i){if(!t)return;let n=i.shift();if(0===i.length)return void delete t[n];if(-1!==Object.keys(t).indexOf(n)){let s=t[n];"object"!=typeof s||null===s||Array.isArray(s)||(e(s,i),0===Object.keys(s).length&&delete t[n]);}}(e,t.split("."));}function lA(e,t,i){let n=function(e,t){let i=e;for(let e of t){if("object"!=typeof i||null===i)return;i=i[e];}return i;}(e,t.split("."));return void 0===n?i:n;}function lO(e){return e.replace(/^\[/,"").replace(/]$/g,"").replace(/\]\[/g,", ");}e.s(["K",0,lN,"q",0,lT,"b",0,lA,"v",0,lO,"i",0,lR,"$",0,lE],26077);let lP=ra("languageService");e.s(["f",0,lP],6620);class lF{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i;}}let lB=[];function lW(e,t,i){t instanceof lF||(t=new lF(t,[],!!i)),lB.push([e,t]);}function lV(){return lB;}e.s(["Y",0,lV,"F",0,lW],65911);var lH=i8;let lz=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list",html:"text/html"});var lU=i8;let l$="base.contributions.json";class lK extends lU.N{constructor(){super(...arguments),this.schemasById={},this._onDidChangeSchema=this._register(new iv.S());}registerSchema(e,t,i){let n=e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e;this.schemasById[n]=t,this._onDidChangeSchema.fire(e),i&&i.add((0,lU.Q)(()=>{delete this.schemasById[n],this._onDidChangeSchema.fire(e);}));}notifySchemaChanged(e){this._onDidChangeSchema.fire(e);}}let lq=new lK();ai.add(l$,lq);var lj=i8;let lG=globalThis.vscode;if(void 0!==lG&&void 0!==lG.context){let e=lG.context.configuration();if(e)h=e.product;else throw Error("Sandbox: unable to resolve product configuration from preload script.");}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){h=globalThis._VSCODE_PRODUCT_JSON;let e=globalThis._VSCODE_PACKAGE_JSON;if(sE.$.VSCODE_DEV&&Object.assign(h,{nameShort:`${h.nameShort} Dev`,nameLong:`${h.nameLong} Dev`,dataFolderName:`${h.dataFolderName}-dev`,serverDataFolderName:h.serverDataFolderName?`${h.serverDataFolderName}-dev`:void 0}),h.version||Object.assign(h,{version:e.version}),!h.copilotVersions){var _e$dependencies;let t=(_e$dependencies=e.dependencies)===null||_e$dependencies===void 0||(_e$dependencies=_e$dependencies["@github/copilot-sdk"])===null||_e$dependencies===void 0?void 0:_e$dependencies.replace(/^[~^]/,"");e.copilotRuntimeVersion&&t&&Object.assign(h,{copilotVersions:{runtime:e.copilotRuntimeVersion,sdk:t}});}}else 0===Object.keys(h={}).length&&Object.assign(h,{version:"1.104.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",defaultChatAgent:{extensionId:"GitHub.copilot",chatExtensionId:"GitHub.copilot-chat",provider:{default:{id:"github",name:"GitHub"},enterprise:{id:"github-enterprise",name:"GitHub Enterprise"}},providerScopes:[]}});var lQ=h;e.s(["f",0,lQ],74232);let lZ={Configuration:"base.contributions.configuration"},lY="vscode://schemas/settings/resourceLanguage",lX=ai.as(l$);class lJ extends lj.N{constructor(){super(),this.registeredConfigurationDefaults=[],this.excludedAgentHostSyncKeys=new Map(),this.overrideIdentifiers=new Set(),this._onDidSchemaChange=this._register(new iv.S()),this._onDidUpdateConfiguration=this._register(new iv.S()),this.configurationDefaultsOverrides=new Map(),this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:(0,iM.M)(1756,"Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map(),this.policyReferenceConfigurations=new Map(),this.agentHostSyncConfigurations=new Map(),this.excludedConfigurationProperties={},lX.registerSchema(lY,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey();}registerConfiguration(e,t=!0){return this.registerConfigurations([e],t),e;}registerConfigurations(e,t=!0){let i=new Set();this.doRegisterConfigurations(e,t,i),lX.registerSchema(lY,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i});}registerDefaultConfigurations(e){let t=new Set();this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0});}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);let i=[];for(let{overrides:n,source:s}of e)for(let e in n){var _this$configurationDe;t.add(e);let o=(_this$configurationDe=this.configurationDefaultsOverrides.get(e))!==null&&_this$configurationDe!==void 0?_this$configurationDe:this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),r=n[e];if(o.configurationDefaultOverrides.push({value:r,source:s}),l2.test(e)){let t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,r,s,o.configurationDefaultOverrideValue);if(!t)continue;o.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,s),i.push(...l3(e));}else{let t=this.mergeDefaultConfigurationsForConfigurationProperty(e,r,s,o.configurationDefaultOverrideValue);if(!t)continue;o.configurationDefaultOverrideValue=t;let i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i));}}this.doRegisterOverrideIdentifiers(i);}updateDefaultOverrideProperty(e,t,i){let n={section:{id:this.defaultLanguageConfigurationOverridesNode.id,title:this.defaultLanguageConfigurationOverridesNode.title,order:this.defaultLanguageConfigurationOverridesNode.order,extensionInfo:this.defaultLanguageConfigurationOverridesNode.extensionInfo},type:"object",default:t.value,description:(0,iM.M)(1757,"Configure settings to be overridden for {0}.",lO(e)),$ref:lY,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=n,this.defaultLanguageConfigurationOverridesNode.properties[e]=n;}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,n){var _n$source;let s=(n===null||n===void 0?void 0:n.value)||{},o=(_n$source=n===null||n===void 0?void 0:n.source)!==null&&_n$source!==void 0?_n$source:new Map();if(!(o instanceof Map))return void console.error("objectConfigurationSources is not a Map");for(let e of Object.keys(t)){let n=t[e];if((0,sI.C)(n)&&((0,sI.l)(s[e])||(0,sI.C)(s[e]))){var _s$e;if(s[e]={...((_s$e=s[e])!==null&&_s$e!==void 0?_s$e:{}),...n},i)for(let t in n)o.set(`${e}.${t}`,i);}else s[e]=n,i?o.set(e,i):o.delete(e);}return{value:s,source:o};}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,n){var _n$value;let s=this.configurationProperties[e],o=(_n$value=n===null||n===void 0?void 0:n.value)!==null&&_n$value!==void 0?_n$value:s===null||s===void 0?void 0:s.defaultDefaultValue,r=i;if((0,sI.C)(t)&&(void 0!==s&&"object"===s.type||void 0===s&&((0,sI.l)(o)||(0,sI.C)(o)))){var _n$source2;if(!((r=(_n$source2=n===null||n===void 0?void 0:n.source)!==null&&_n$source2!==void 0?_n$source2:new Map())instanceof Map))return void console.error("defaultValueSource is not a Map");for(let n in t)i&&r.set(`${e}.${n}`,i);t={...((0,sI.C)(o)?o:{}),...t};}return{value:t,source:r};}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire();}doRegisterOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey();}doRegisterConfigurations(e,t,i){e.forEach(e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e);});}validateAndRegisterProperties(e,t=!0,i,n,s=4,o){s=(0,sI.d)(e.scope)?s:e.scope;let r=e.properties;if(r)for(let a in r){var _l$tags,_l$tags2,_l$tags3,_r$a$policy,_r$a$policyReference;let l=r[a];if(l.section={id:e.id,title:e.title,order:e.order,extensionInfo:e.extensionInfo},t&&function(e,t,i,_t$policy,_t$policy2,_t$policy3,_t$policy4){if(!e.trim())return(0,iM.M)(1762,"Cannot register an empty property");if(l2.test(e))return(0,iM.M)(1763,"Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e);if(void 0!==l5.getConfigurationProperties()[e]&&(!i||!l6.has(i.toLowerCase())))return(0,iM.M)(1764,"Cannot register '{0}'. This property is already registered.",e);if(t.policy&&t.policyReference)return(0,iM.M)(1765,"Cannot register '{0}'. A setting must not declare both 'policy' and 'policyReference'.",e);if((_t$policy=t.policy)!==null&&_t$policy!==void 0&&_t$policy.name&&void 0!==l5.getPolicyConfigurations().get((_t$policy2=t.policy)===null||_t$policy2===void 0?void 0:_t$policy2.name))return(0,iM.M)(1766,"Cannot register '{0}'. The associated policy {1} is already registered with {2}. To attach another setting to the same policy, use 'policyReference'.",e,(_t$policy3=t.policy)===null||_t$policy3===void 0?void 0:_t$policy3.name,l5.getPolicyConfigurations().get((_t$policy4=t.policy)===null||_t$policy4===void 0?void 0:_t$policy4.name));if(t.agentHost){for(let[i,n]of l5.getAgentHostSyncConfigurations())if(n.key===t.agentHost.key&&i!==e)return(0,iM.M)(1767,"Cannot register '{0}'. The agent host configuration key '{1}' is already mirrored from '{2}'.",e,t.agentHost.key,i);}return null;}(a,l,i===null||i===void 0?void 0:i.id)){delete r[a];continue;}l.source=i,l.defaultDefaultValue=r[a].default,this.updatePropertyDefaultValue(a,l),l2.test(a)?l.scope=void 0:(l.scope=(0,sI.d)(l.scope)?s:l.scope,l.restricted=(0,sI.d)(l.restricted)?!!(n!==null&&n!==void 0&&n.includes(a)):l.restricted),l.experiment?((_l$tags=l.tags)===null||_l$tags===void 0?void 0:_l$tags.some(e=>"onexp"===e.toLowerCase()))||(l.tags=(_l$tags2=l.tags)!==null&&_l$tags2!==void 0?_l$tags2:[],l.tags.push("onExP")):((_l$tags3=l.tags)===null||_l$tags3===void 0?void 0:_l$tags3.some(e=>"onexp"===e.toLowerCase()))&&(console.error(`Invalid tag 'onExP' found for property '${a}'. Please use 'experiment' property instead.`),l.experiment={mode:"startup"});let h=r[a].hasOwnProperty("included")&&!r[a].included,d=(_r$a$policy=r[a].policy)===null||_r$a$policy===void 0?void 0:_r$a$policy.name,c=(_r$a$policyReference=r[a].policyReference)===null||_r$a$policyReference===void 0?void 0:_r$a$policyReference.name,u=r[a].agentHost;if(u&&this.agentHostSyncConfigurations.set(a,u),h){if(this.excludedConfigurationProperties[a]=r[a],d&&(this.policyConfigurations.set(d,a),o.add(a)),c&&(this.addPolicyReferenceConfiguration(c,a),o.add(a)),u){o.add(a);let t=this.excludedAgentHostSyncKeys.get(e);t||(t=new Set(),this.excludedAgentHostSyncKeys.set(e,t)),t.add(a);}delete r[a];}else o.add(a),d&&this.policyConfigurations.set(d,a),c&&this.addPolicyReferenceConfiguration(c,a),this.configurationProperties[a]=r[a],!r[a].deprecationMessage&&r[a].markdownDeprecationMessage&&(r[a].deprecationMessage=r[a].markdownDeprecationMessage);}let a=e.allOf;if(a)for(let e of a)this.validateAndRegisterProperties(e,t,i,n,s,o);}addPolicyReferenceConfiguration(e,t){let i=this.policyReferenceConfigurations.get(e);i||(i=new Set(),this.policyReferenceConfigurations.set(e,i)),i.add(t);}getConfigurationProperties(){return this.configurationProperties;}getPolicyConfigurations(){return this.policyConfigurations;}getAgentHostSyncConfigurations(){return this.agentHostSyncConfigurations;}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties;}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let n=e.allOf;n===null||n===void 0||n.forEach(t);};t(e);}updateSchema(e,t){switch(t.scope){case 1:case 2:case 3:case 7:case 4:case 5:break;case 6:this.resourceLanguageSettingsSchema.properties[e]=t;}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:(0,iM.M)(1758,"Configure editor settings to be overridden for a language."),errorMessage:(0,iM.M)(1759,"This setting does not support per-language configuration."),$ref:lY};this.updatePropertyDefaultValue(t,i);}}registerOverridePropertyPatternKey(){(0,iM.M)(1760,"Configure editor settings to be overridden for a language."),(0,iM.M)(1761,"This setting does not support per-language configuration."),this._onDidSchemaChange.fire();}updatePropertyDefaultValue(e,t){var _this$configurationDe2;let i,n,s=(_this$configurationDe2=this.configurationDefaultsOverrides.get(e))===null||_this$configurationDe2===void 0?void 0:_this$configurationDe2.configurationDefaultOverrideValue;!s||t.disallowConfigurationDefault&&s.source||(i=s.value,n=s.source),(0,sI.l)(i)&&(i=t.defaultDefaultValue,n=void 0),(0,sI.l)(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null;}}(t.type)),t.default=i,t.defaultValueSource=n;}}let l0="\\[([^\\]]+)\\]",l1=RegExp(l0,"g"),l2=RegExp(`^(${l0})+$`);function l3(e){let t=[];if(l2.test(e)){let i=l1.exec(e);for(;(_i3=i)!==null&&_i3!==void 0&&_i3.length;){var _i3;let n=i[1].trim();n&&t.push(n),i=l1.exec(e);}}return(0,ip.l)(t);}let l5=new lJ();ai.add(lZ.Configuration,l5);let l6=new Set(lQ.defaultChatAgent?[lQ.defaultChatAgent.extensionId,lQ.defaultChatAgent.chatExtensionId].map(e=>e.toLowerCase()):[]);e.s(["F",0,lZ,"g",0,l2,"u",0,l3],41211);class l4 extends lH.N{constructor(){super(),this._onDidChangeLanguages=this._register(new iv.S()),this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[];}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1);}};}getLanguages(){return this._languages;}}let l9=new l4();ai.add("editor.modesRegistry",l9);let l8="plaintext";l9.registerLanguage({id:l8,extensions:[".txt"],aliases:[(0,iM.M)(834,"Plain Text"),"text"],mimetypes:[lz.text]}),ai.as(lZ.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1},"[go]":{"editor.insertSpaces":!1},"[makefile]":{"editor.insertSpaces":!1},"[shellscript]":{"files.eol":"\n"},"[yaml]":{"editor.insertSpaces":!0,"editor.tabSize":2}}}]),e.s(["q",0,l9,"K",0,l8],96039);var l7=e.i(22693);class he{constructor(e,t){this.languageId=e;let i=t.brackets?ht(t.brackets):[],n=new l7.X(e=>{let t=new Set();return{info:new hn(this,e,t),closing:t};}),s=new l7.X(e=>{let t=new Set(),i=new Set();return{info:new hs(this,e,t,i),opening:t,openingColorized:i};});for(let[e,t]of i){let i=n.get(e),o=s.get(t);i.closing.add(o.info),o.opening.add(i.info);}for(let[e,o]of t.colorizedBracketPairs?ht(t.colorizedBracketPairs):i.filter(e=>"<"!==e[0]||">"!==e[1])){let t=n.get(e),i=s.get(o);t.closing.add(i.info),i.openingColorized.add(t.info),i.opening.add(t.info);}this._openingBrackets=new Map([...n.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...s.cachedValues].map(([e,t])=>[e,t.info]));}get openingBrackets(){return[...this._openingBrackets.values()];}get closingBrackets(){return[...this._closingBrackets.values()];}getOpeningBracketInfo(e){return this._openingBrackets.get(e);}getClosingBracketInfo(e){return this._closingBrackets.get(e);}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e);}getBracketRegExp(e){return lS(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e);}}function ht(e){return e.filter(([e,t])=>""!==e&&""!==t);}class hi{constructor(e,t){this.config=e,this.bracketText=t;}get languageId(){return this.config.languageId;}}class hn extends hi{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0;}}class hs extends hi{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1;}closes(e){return e.config===this.config&&this.openingBrackets.has(e);}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e);}getOpeningBrackets(){return[...this.openingBrackets];}}var ho=function(e,t){return function(i,n){t(i,n,e);};};class hr{constructor(e){this.languageId=e;}affects(e){return!this.languageId||this.languageId===e;}}let ha=ra("languageConfigurationService"),hl=class extends ls.N{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new hm()),this.onDidChangeEmitter=this._register(new iv.S({leakWarningThreshold:500,leakWarningName:"LanguageConfigurationService.onDidChange"})),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map();let i=new Set(Object.values(hh));this._register(this.configurationService.onDidChangeConfiguration(e=>{let t=e.change.keys.some(e=>i.has(e)),n=e.change.overrides.filter(([e,t])=>t.some(e=>i.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new hr(void 0));else for(let e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new hr(e)));})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new hr(e.languageId));}));}register(e,t,i){return this._registry.register(e,t,i);}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){var s,o;let r,a,l=t.getLanguageConfiguration(e);if(!l){if(!n.isRegisteredLanguageId(e))return new h_(e,{});l=new h_(e,{});}let h=(s=l.languageId,r=(o=i).getValue(hh.brackets,{overrideIdentifier:s}),a=o.getValue(hh.colorizedBracketPairs,{overrideIdentifier:s}),{brackets:hd(r),colorizedBracketPairs:hd(a)}),d=hg([l.underlyingConfig,h]);return new h_(l.languageId,d);}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t;}};hl=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([ho(0,lN),ho(1,lP)],hl);let hh={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function hd(e){if(Array.isArray(e))return e.map(e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]];}).filter(e=>!!e);}function hc(e,t,i){let n=e.getLineContent(t),s=(0,i7.j)(n);return s.length>i-1&&(s=s.substring(0,i-1)),s;}class hu{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null;}register(e,t){let i=new hp(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,ls.P)((0,ls.Q)(()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break;}}));}getResolvedConfiguration(){if(!this._resolved){let e=this._resolve();e&&(this._resolved=new h_(this.languageId,e));}return this._resolved;}_resolve(){return 0===this._entries.length?null:(this._entries.sort(hp.cmp),hg(this._entries.map(e=>e.configuration)));}}function hg(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t;}class hp{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i;}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority;}}class hf{constructor(e){this.languageId=e;}}class hm extends ls.N{constructor(){super(),this._entries=new Map(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._register(this.register(l8,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0));}register(e,t,i=0){let n=this._entries.get(e);n||(n=new hu(e),this._entries.set(e,n));let s=n.register(t,i);return this._onDidChange.fire(new hf(e)),(0,ls.P)((0,ls.Q)(()=>{s.dispose(),this._onDidChange.fire(new hf(e));}));}getLanguageConfiguration(e){let t=this._entries.get(e);return(t===null||t===void 0?void 0:t.getResolvedConfiguration())||null;}}class h_{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new lI(this.underlyingConfig):null,this.comments=h_._handleComments(this.underlyingConfig),this.characterPair=new ll(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||iD.q,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new lM(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new he(e,this.underlyingConfig);}getWordDefinition(){return(0,iD.a)(this.wordDefinition);}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new lv(this.languageId,this.underlyingConfig.brackets)),this._brackets;}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new lk(this.brackets)),this._electricCharacter;}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null;}getAutoClosingPairs(){return new lr(this.characterPair.getAutoClosingPairs());}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e);}getSurroundingPairs(){return this.characterPair.getSurroundingPairs();}static _handleComments(e){let t=e.comments;if(!t)return null;let i={};if(t.lineComment&&("string"==typeof t.lineComment?i.lineCommentToken=t.lineComment:(i.lineCommentToken=t.lineComment.comment,i.lineCommentNoIndent=t.lineComment.noIndent)),t.blockComment){let[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n;}return i;}}lW(ha,hl,1),e.s(["j",0,ha,"H",0,hc],66749);var hv=e.i(20572);let hb=ra("textResourceConfigurationService"),hC=ra("textResourcePropertiesService");e.s(["n",0,hb,"J",0,hC],49419);var hw=e.i(27482);let hy=ra("ILanguageFeaturesService");e.s(["f",0,hy],36538);var hS=e.i(70505),hx=e.i(37053),hL=e.i(54877),hk=e.i(87164),hD=e.i(62657);function hM(e,t,i="*"){var _lQ$defaultChatAgent;let n=(_lQ$defaultChatAgent=lQ.defaultChatAgent)===null||_lQ$defaultChatAgent===void 0?void 0:_lQ$defaultChatAgent.completionsEnablementSetting;return!!n&&hI(e.getValue(t,n),i);}function hI(e,t="*"){return!!(0,sI.C)(e)&&(void 0!==e[t]?!!e[t]:!!e["*"]);}e.s(["J",0,hI,"e",0,hM],84584);var hN=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},hE=function(e,t){return function(i,n){t(i,n,e);};};function hT(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing());}let hR=(_Class=class hR extends a7.N{constructor(e,t,i,n,s,o){super(),this._languageConfigurationService=n,this._webWorkerService=o,this._modelService=e,this._workerManager=this._register(new hO(e3.workerDescriptor,this._modelService,this._webWorkerService)),this._logService=i,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!hT(this._modelService,e.uri))return Promise.resolve({links:[]});let i=await this._workerWithResources([e.uri]),n=await i.$computeLinks(e.uri.toString());return n&&{links:n};}})),this._register(s.completionProvider.register("*",new hA(this._workerManager,t,this._modelService,this._languageConfigurationService,this._logService,s)));}canComputeUnicodeHighlights(e){return hT(this._modelService,e);}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i);}async computeDiff(e,t,i,n){let s=await this._workerWithResources([e,t],!0),o=await s.$computeDiff(e.toString(),t.toString(),i,n);if(!o)return null;return{identical:o.identical,quitEarly:o.quitEarly,changes:r(o.changes),moves:o.moves.map(e=>new hS.c(new hx.O(new hL.m(e[0],e[1]),new hL.m(e[2],e[3])),r(e[4])))};function r(e){return e.map(e=>{var _e$;return new hx.Z(new hL.m(e[0],e[1]),new hL.m(e[2],e[3]),(_e$=e[4])===null||_e$===void 0?void 0:_e$.map(e=>new hx.l(new ln.f(e[0],e[1],e[2],e[3]),new ln.f(e[4],e[5],e[6],e[7]))));});}}async computeMoreMinimalEdits(e,t,i=!1){if(!(0,ip.e)(t))return Promise.resolve(void 0);{if(!hT(this._modelService,e))return Promise.resolve(t);let n=hw.f.create(),s=this._workerWithResources([e]).then(n=>n.$computeMoreMinimalEdits(e.toString(),t,i));return s.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([s,(0,nI.W)(1e3).then(()=>t)]);}}canNavigateValueSet(e){return hT(this._modelService,e);}async navigateValueSet(e,t,i){let n=this._modelService.getModel(e);if(!n)return null;let s=this._languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=s.source,r=s.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,o,r);}canComputeWordRanges(e){return hT(this._modelService,e);}async computeWordRanges(e,t){let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let n=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),s=n.source,o=n.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,s,o);}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t);}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString());}async _workerWithResources(e,t=!1){let i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t);}},e3=_Class,_Class.workerDescriptor=new lt({esmModuleLocation:()=>nT.x.asBrowserUri("vs/editor/common/services/editorWebWorkerMain.js"),esmModuleLocationBundler:()=>new e.U(e.r(3696)),label:"editorWorkerService"}),_Class);hR=e3=hN([hE(0,rd),hE(1,hb),hE(2,aW),hE(3,ha),hE(4,hy),hE(5,li)],hR);class hA{constructor(e,t,i,n,s,o){this.languageConfigurationService=n,this.logService=s,this.languageFeaturesService=o,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i;}async provideCompletionItems(e,t){let i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions||"offWithInlineSuggestions"===i.wordBasedSuggestions&&this.languageFeaturesService.inlineCompletionsProvider.has(e)&&hM(this._configurationService,e.uri,e.getLanguageId()))return;let n=[];if("currentDocument"===i.wordBasedSuggestions)hT(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())hT(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestions||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),r=o?new ln.f(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):ln.f.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column);this.logService.trace("[WordBasedCompletionItemProvider]",`word: "${(o===null||o===void 0?void 0:o.word)||""}", wordDef: "${s}", replace: [${r.toString()}], insert: [${a.toString()}]`);let l=await this._workerManager.withWorker(),h=await l.textualSuggest(n,o===null||o===void 0?void 0:o.word,s);if(h)return{duration:h.duration,suggestions:h.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}}))};}}let hO=class extends a7.N{constructor(e,t,i){super(),this._workerDescriptor=e,this._modelService=t,this._webWorkerService=i,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new sX()).cancelAndSet(()=>this._checkStopIdleWorker(),15e4,i9),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()));}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose();}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null);}_checkStopIdleWorker(){!this._editorWorkerClient||new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null);}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new hF(this._workerDescriptor,!1,this._modelService,this._webWorkerService)),Promise.resolve(this._editorWorkerClient);}};hO=hN([hE(1,rd),hE(2,li)],hO);class hP{constructor(e){this._instance=e,this.proxy=this._instance;}dispose(){this._instance.dispose();}setChannel(e,t){throw Error("Not supported");}}let hF=class extends a7.N{constructor(e,t,i,n){super(),this._workerDescriptorOrWorker=e,this._disposed=!1,this._modelService=i,this._webWorkerService=n,this._keepIdleModels=t,this._worker=null,this._modelManager=null;}fhr(e,t){throw Error("Not implemented!");}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(this._webWorkerService.createWorkerClient(this._workerDescriptorOrWorker)),hD.f.setChannel(this._worker,this._createEditorWorkerHost());}catch(e){(0,le.h)(e),this._worker=this._createFallbackLocalWorker();}return this._worker;}async _getProxy(){try{let e=this._getOrCreateWorker().proxy;return await e.$ping(),e;}catch(e){return(0,le.h)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy;}}_createFallbackLocalWorker(){return new hP(new hv.f(null));}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)};}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new hk.c(e,this._modelService,this._keepIdleModels))),this._modelManager;}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,nf.W)());let i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i;}async textualSuggest(e,t,i){let n=await this.workerWithSyncedResources(e),s=i.source,o=i.flags;return n.$textualSuggest(e.map(e=>e.toString()),t,s,o);}dispose(){super.dispose(),this._disposed=!0;}};hF=hN([hE(2,rd),hE(3,li)],hF);class hB extends hF{constructor(e,t,i){super(i.worker,i.keepIdleModels||!1,e,t),this._foreignModuleHost=i.host||null,this._foreignProxy=this._getProxy().then(e=>new Proxy({},{get(t,i,n){if("then"!==i){if("string"!=typeof i)throw Error("Not supported");return(...t)=>e.$fmr(i,t);}}}));}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t));}catch(e){return Promise.reject(e);}}getProxy(){return this._foreignProxy;}withSyncedResources(e){return this.workerWithSyncedResources(e).then(e=>this.getProxy());}}let hW={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};var hV=e.i(12422);let hH=new class{clone(){return this;}equals(e){return this===e;}}();function hz(e,t){return new hV.c([new hV._(0,"",e)],t);}function hU(e,t){let i=new Uint32Array(2);return i[0]=0,i[1]=(0x2008000|e)>>>0,new hV.j(i,[],null===t?hH:t);}var h$=e.i(9579),hK=e.i(63746);function hq(e,t){let i=nu();if(i!==null&&i!==void 0&&i.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t);}catch(e){(0,nf.C)(e);return;}try{var _globalThis$trustedTy;return(_globalThis$trustedTy=globalThis.trustedTypes)===null||_globalThis$trustedTy===void 0?void 0:_globalThis$trustedTy.createPolicy(e,t);}catch(e){(0,nf.C)(e);return;}}e.s(["f",0,hq],13415);class hj{static getLanguageId(e){return(255&e)>>>0;}static getTokenType(e){return(768&e)>>>8;}static containsBalancedBrackets(e){return(1024&e)!=0;}static getFontStyle(e){return(30720&e)>>>11;}static getForeground(e){return(0xff8000&e)>>>15;}static getBackground(e){return(0xff000000&e)>>>24;}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t;}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(s+=`text-decoration:${o};`),s;}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)};}}var hG=e.i(82473);class hQ{static createEmpty(e,t){let i=hQ.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new hQ(n,e,t);}static createFromTextAndMetadata(e,t){let i=0,n="",s=[];for(let{text:t,metadata:o}of e)s.push(i+t.length,o),i+=t.length,n+=t;return new hQ(new Uint32Array(s),n,t);}static convertToEndOffset(e,t){let i=(e.length>>>1)-1;for(let t=0;t<i;t++)e[t<<1]=e[t+1<<1];e[i<<1]=t;}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,n=(e.length>>>1)-1;for(;i<n;){let s=i+Math.floor((n-i)/2),o=e[s<<1];if(o===t)return s+1;o<t?i=s+1:o>t&&(n=s);}return i;}constructor(e,t,i){this._lineTokensBrand=void 0,(e.length>1?e[e.length-2]:0)!==t.length&&(0,nf.C)(Error("Token length and text length do not match!")),this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i;}getTextLength(){return this._text.length;}equals(e){return e instanceof hQ&&this.slicedEquals(e,0,this._tokensCount);}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;let n=t<<1,s=n+(i<<1);for(let t=n;t<s;t++)if(this._tokens[t]!==e._tokens[t])return!1;return!0;}getLineContent(){return this._text;}getCount(){return this._tokensCount;}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0;}getMetadata(e){return this._tokens[(e<<1)+1];}getLanguageId(e){let t=this._tokens[(e<<1)+1],i=hj.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i);}getStandardTokenType(e){let t=this._tokens[(e<<1)+1];return hj.getTokenType(t);}getForeground(e){let t=this._tokens[(e<<1)+1];return hj.getForeground(t);}getClassName(e){let t=this._tokens[(e<<1)+1];return hj.getClassNameFromMetadata(t);}getInlineStyle(e,t){let i=this._tokens[(e<<1)+1];return hj.getInlineStyleFromMetadata(i,t);}getPresentation(e){let t=this._tokens[(e<<1)+1];return hj.getPresentationFromMetadata(t);}getEndOffset(e){return this._tokens[e<<1];}findTokenIndexAtOffset(e){return hQ.findIndexInTokensArray(this._tokens,e);}inflate(){return this;}sliceAndInflate(e,t,i){return new hZ(this,e,t,i);}sliceZeroCopy(e){return this.sliceAndInflate(e.start,e.endExclusive,0);}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="",s=[],o=0;for(;;){let r=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==r&&(null===a||r<=a.offset)){n+=this._text.substring(o,r);let e=this._tokens[(t<<1)+1];s.push(n.length,e),t++,o=r;}else if(a){if(a.offset>o){n+=this._text.substring(o,a.offset);let e=this._tokens[(t<<1)+1];s.push(n.length,e),o=a.offset;}n+=a.text,s.push(n.length,a.tokenMetadata),i++;}else break;}return new hQ(new Uint32Array(s),n,this.languageIdCodec);}getTokensInRange(e){let t=new hJ(),i=this.findTokenIndexAtOffset(e.start),n=this.findTokenIndexAtOffset(e.endExclusive);for(let s=i;s<=n;s++){let i=new hG.G(this.getStartOffset(s),this.getEndOffset(s)).intersectionLength(e);i>0&&t.add(i,this.getMetadata(s));}return t.build();}getTokenText(e){let t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i);}forEach(e){let t=this.getCount();for(let i=0;i<t;i++)e(i);}toString(){let e="";return this.forEach(t=>{e+=`[${this.getTokenText(t)}]{${this.getClassName(t)}}`;}),e;}}_hQ=hQ;_hQ.defaultTokenMetadata=0x2008000;class hZ{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t<n&&!(e.getStartOffset(t)>=i);t++)this._tokensCount++;}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e);}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e);}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset);}equals(e){return e instanceof hZ&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount);}getCount(){return this._tokensCount;}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e);}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e);}getEndOffset(e){let t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset;}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e);}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t);}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e);}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex;}getTokenText(e){let t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),n=this._source.getEndOffset(t),s=this._source.getTokenText(t);return i<this._startOffset&&(s=s.substring(this._startOffset-i)),n>this._endOffset&&(s=s.substring(0,s.length-(n-this._endOffset))),s;}forEach(e){for(let t=0;t<this.getCount();t++)e(t);}}class hY{static fromLineTokens(e){let t=[];for(let i=0;i<e.getCount();i++)t.push(new hX(e.getEndOffset(i)-e.getStartOffset(i),e.getMetadata(i)));return hY.create(t);}static create(e){return new hY(e);}constructor(e){this._tokenInfo=e;}toLineTokens(e,t){return hQ.createFromTextAndMetadata(this.map((t,i)=>({text:t.substring(e),metadata:i.metadata})),t);}forEach(e){let t=0;for(let i of this._tokenInfo)e(new hG.G(t,t+i.length),i),t+=i.length;}map(e){let t=[],i=0;for(let n of this._tokenInfo){let s=new hG.G(i,i+n.length);t.push(e(s,n)),i+=n.length;}return t;}slice(e){let t=[],i=0;for(let n of this._tokenInfo){let s=i,o=s+n.length;if(o>e.start){if(s>=e.endExclusive)break;let i=Math.max(0,e.start-s),r=Math.max(0,o-e.endExclusive);t.push(new hX(n.length-i-r,n.metadata));}i+=n.length;}return hY.create(t);}}class hX{constructor(e,t){this.length=e,this.metadata=t;}}class hJ{constructor(){this._tokens=[];}add(e,t){this._tokens.push(new hX(e,t));}build(){return hY.create(this._tokens);}}e.s(["S",0,hQ,"m",0,hY],19526);class h0{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0;}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type;}static equalsArr(e,t){let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!h0._equals(e[n],t[n]))return!1;return!0;}static extractWrapped(e,t,i){if(0===e.length)return e;let n=t+1,s=i+1,o=i-t,r=[],a=0;for(let t of e)t.endColumn<=n||t.startColumn>=s||(r[a++]=new h0(Math.max(1,t.startColumn-n+1),Math.min(o+1,t.endColumn-n+1),t.className,t.type));return r;}static filter(e,t,i,n){if(0===e.length)return[];let s=[],o=0;for(let r=0,a=e.length;r<a;r++){let a=e[r],l=a.range;if(l.endLineNumber<t||l.startLineNumber>t||l.isEmpty()&&(0===a.type||3===a.type))continue;let h=l.startLineNumber===t?l.startColumn:i,d=l.endLineNumber===t?l.endColumn:n;s[o++]=new h0(h,d,a.inlineClassName,a.type);}return s;}static _typeCompare(e,t){let i=[3,1,2,4,0];return i[e]-i[t];}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;let i=h0._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0;}}class h1{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=n;}}class h2{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0;}static _metadata(e){let t=0;for(let i=0,n=e.length;i<n;i++)t|=e[i];return t;}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new h1(t,this.stopOffsets[e],this.classNames.join(" "),h2._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1;}return this.count>0&&t<e&&(i.push(new h1(t,e-1,this.classNames.join(" "),h2._metadata(this.metadata))),t=e),t;}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break;}this.count++;}}class h3{static normalize(e,t){if(0===t.length)return[];let i=[],n=new h2(),s=0;for(let o=0,r=t.length;o<r;o++){let r=t[o],a=r.startColumn,l=r.endColumn,h=r.className,d=1===r.type?2:4*(2===r.type);if(a>1){let t=e.charCodeAt(a-2);(0,i7.K)(t)&&a--;}if(l>1){let t=e.charCodeAt(l-2);(0,i7.K)(t)&&l--;}let c=a-1,u=l-2;s=n.consumeLowerThan(c,s,i),0===n.count&&(s=c),n.insert(u,h,d);}return n.consumeLowerThan(0x40000000,s,i),i;}}e.s(["W",0,h0,"M",0,h3],67919);class h5{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0;}isWhitespace(){return!!(1&this.metadata);}isPseudoAfter(){return!!(4&this.metadata);}}class h6{get isLTR(){return!this.containsRTL&&this.textDirection!==h$.V.RTL;}constructor(e,t,i,n,s,o,r,a,l,h,d,c,u,g,p,f,m,_,v,b,C,w=!1,y=!1){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=s,this.containsRTL=o,this.fauxIndentLength=r,this.lineTokens=a,this.lineDecorations=l.sort(h0.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=c,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:3*("trailing"===f),this.renderControlCharacters=m,this.fontLigatures=_,this.selectionsOnLine=v&&v.sort((e,t)=>e.start<t.start?-1:1),this.renderNewLineWhenEmpty=w,this.useTwoCellFullwidthCharacters=y,this.textDirection=b,this.verticalScrollbarSize=C,Math.abs(g-c)<Math.abs(u-c)?(this.renderSpaceWidth=g,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=u,this.renderSpaceCharCode=183);}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e||e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0;}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&h0.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)&&this.textDirection===e.textDirection&&this.verticalScrollbarSize===e.verticalScrollbarSize&&this.renderNewLineWhenEmpty===e.renderNewLineWhenEmpty&&this.useTwoCellFullwidthCharacters===e.useTwoCellFullwidthCharacters;}}class h4{constructor(e,t){this.partIndex=e,this.charIndex=t;}}class h9{static getPartIndex(e){return(0xffff0000&e)>>>16;}static getCharIndex(e){return(65535&e)>>>0;}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length);}setColumnInfo(e,t,i,n){this._data[e-1]=(i|t<<16)>>>0,this._horizontalOffset[e-1]=n;}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1];}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e];}getDomPosition(e){let t=this.charOffsetToPartData(e-1);return new h4(h9.getPartIndex(t),h9.getCharIndex(t));}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1;}partDataToCharOffset(e,t,i){let n;if(0===this.length)return 0;let s=(i|e<<16)>>>0,o=0,r=this.length-1;for(;o+1<r;){let e=o+r>>>1,t=this._data[e];if(t===s)return e;t>s?r=e:o=e;}if(o===r)return o;let a=this._data[o],l=this._data[r];if(a===s)return o;if(l===s)return r;let h=h9.getPartIndex(a),d=h9.getCharIndex(a);return n=h!==h9.getPartIndex(l)?t:h9.getCharIndex(l),i-d<=n-i?o:r;}}class h8{constructor(e,t){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsForeignElements=t;}}function h7(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,n=0,s=0;for(let o of e.lineDecorations)(1===o.type||2===o.type||4===o.type)&&(t.appendString('<span class="'),t.appendString(o.className),t.appendString('"></span>'),2===o.type?(s|=2,n++):(s|=1,i++));t.appendString("</span>");let o=new h9(1,i+n);return o.setColumnInfo(1,i,0,0),new h8(o,s);}return e.renderNewLineWhenEmpty?t.appendString("<span><span>\n</span></span>"):t.appendString("<span><span></span></span>"),new h8(new h9(0,0),0);}return function(e,t){var i;let n=e.fontIsMonospace,s=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,r=e.lineContent,a=e.len,l=e.isOverflowing,h=e.overflowingCharCount,d=e.parts,c=e.fauxIndentLength,u=e.tabSize,g=e.startVisibleColumn,p=e.spaceWidth,f=e.renderSpaceCharCode,m=e.renderWhitespace,_=e.renderControlCharacters,v=e.useTwoCellFullwidthCharacters,b=2*e.spaceWidth,C=new h9(a+1,d.length),w=!1,y=0,S=g,x=0,L=0,k=0;t.appendString("<span>");for(let e=0,i=d.length;e<i;e++){let i=d[e],l=i.endIndex,h=i.type,g=i.containsRTL,D=0!==m&&i.isWhitespace(),M=D&&!n&&("mtkw"===h||!o),I=y===l&&i.isPseudoAfter(),N=!g&&v&&(0,i7.a)(r.charCodeAt(y));if(x=0,t.appendString("<span "),g?t.appendString('style="unicode-bidi:isolate" '):N&&(t.appendString('style="width:'),t.appendString(String(b)),t.appendString('px" ')),t.appendString('class="'),t.appendString(M?"mtkz":h),N&&t.appendString(" mtkfullwidth"),t.appendASCIICharCode(34),D){let i=0;{let e=y,t=S;for(;e<l;e++){let n=(9===r.charCodeAt(e)?u-t%u:1)|0;i+=n,e>=c&&(t+=n);}}for(M&&(t.appendString(' style="width:'),t.appendString(String(p*i)),t.appendString('px"')),t.appendASCIICharCode(62);y<l;y++){let i,n;if(C.setColumnInfo(y+1,e-k,x,L),k=0,9===r.charCodeAt(y)){n=i=u-S%u|0,!s||n>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=n;e++)t.appendCharCode(160);}else i=2,n=1,t.appendCharCode(f),t.appendCharCode(8204);x+=i,L+=n,y>=c&&(S+=n);}}else for(t.appendASCIICharCode(62);y<l;y++){C.setColumnInfo(y+1,e-k,x,L),k=0;let i=r.charCodeAt(y),n=1,s=1;switch(i){case 9:s=n=u-S%u;for(let e=1;e<=n;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:_?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:(0,i7.a)(i)&&s++,_&&i<32?t.appendCharCode(9216+i):_&&127===i?t.appendCharCode(9249):_&&dn(i)?(t.appendString("[U+"),t.appendString(i.toString(16).toUpperCase().padStart(4,"0")),t.appendString("]"),s=n=8):t.appendCharCode(i);}x+=n,L+=s,y>=c&&(S+=s);}I?k++:k=0,y>=a&&!w&&i.isPseudoAfter()&&(w=!0,C.setColumnInfo(y+1,e,x,L)),t.appendString("</span>");}return w||C.setColumnInfo(a+1,d.length-1,x,L),l&&(t.appendString('<span class="mtkoverflow">'),t.appendString((0,iM.M)(847,"Show more ({0})",(i=h)<1024?(0,iM.M)(848,"{0} chars",i):i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1024/1024).toFixed(1)} MB`)),t.appendString("</span>")),t.appendString("</span>"),new h8(C,o);}(function(e){let t,i,n,s=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<s.length?(t=!0,i=s.length-e.stopRenderingLineAfter,n=e.stopRenderingLineAfter):(t=!1,i=0,n=s.length);let o=function(e,t,i,n,s){let o=[],r=0;n>0&&(o[r++]=new h5(n,"",0,!1));let a=n;for(let l=0,h=i.getCount();l<h;l++){let h=i.getEndOffset(l);if(h<=n)continue;let d=i.getClassName(l);if(h>=s){let i=!!t&&(0,i7.n)(e.substring(a,s));o[r++]=new h5(s,d,0,i);break;}let c=!!t&&(0,i7.n)(e.substring(a,h));o[r++]=new h5(h,d,0,c),a=h;}return o;}(s,e.containsRTL,e.lineTokens,e.fauxIndentLength,n);e.renderControlCharacters&&!e.isBasicASCII&&(o=function(e,t){let i=[],n=new h5(0,"",0,!1),s=0;for(let o of t){let t=o.endIndex;for(;s<t;s++)dn(e.charCodeAt(s))&&(s>n.endIndex&&(n=new h5(s,o.type,o.metadata,o.containsRTL),i.push(n)),n=new h5(s+1,"mtkcontrol",o.metadata,!1),i.push(n));s>n.endIndex&&(n=new h5(t,o.type,o.metadata,o.containsRTL),i.push(n));}return i;}(s,o)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(o=function(e,t,i,n){let s,o=e.continuesWithWrappedLine,r=e.fauxIndentLength,a=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,c=1===e.renderWhitespace,u=3===e.renderWhitespace,g=e.renderSpaceWidth!==e.spaceWidth,p=[],f=0,m=0,_=n[0].type,v=n[m].containsRTL,b=n[m].endIndex,C=n.length,w=!1,y=(0,i7.H)(t);-1===y?(w=!0,y=i,s=i):s=(0,i7.W)(t);let S=!1,x=0,L=d&&d[x],k=l%a;for(let e=r;e<i;e++){let o,l=t.charCodeAt(e);if(L&&L.endExclusive<=e&&(x++,L=d&&d[x]),e<y||e>s)o=!0;else if(9===l)o=!0;else if(32===l){if(c){if(S)o=!0;else{let n=e+1<i?t.charCodeAt(e+1):0;o=32===n||9===n;}}else o=!0;}else o=!1;if(o&&d&&(o=!!L&&L.start<=e&&e<L.endExclusive),o&&u&&(o=w||e>s),o&&v&&e>=y&&e<=s&&(o=!1),S){if(!o||!h&&k>=a){if(g){let t=f>0?p[f-1].endIndex:r;for(let i=t+1;i<=e;i++)p[f++]=new h5(i,"mtkw",1,!1);}else p[f++]=new h5(e,"mtkw",1,!1);k%=a;}}else(e===b||o&&e>r)&&(p[f++]=new h5(e,_,0,v),k%=a);for(9===l?k=a:(0,i7.a)(l)?k+=2:k++,S=o;e===b;)if(++m<C)_=n[m].type,v=n[m].containsRTL,b=n[m].endIndex;else break;}let D=!1;if(S)if(o&&c){let e=i>0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;(32!==e||32===n||9===n)&&(D=!0);}else D=!0;if(D){if(g){let e=f>0?p[f-1].endIndex:r;for(let t=e+1;t<=i;t++)p[f++]=new h5(t,"mtkw",1,!1);}else p[f++]=new h5(i,"mtkw",1,!1);}else p[f++]=new h5(i,_,0,v);return p;}(e,s,n,o));let r=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){let i=e.lineDecorations[t];3===i.type||1===i.type?r|=1:2===i.type?r|=2:4===i.type&&(r|=1);}o=function(e,t,i){i.sort(h0.compare);let n=h3.normalize(e,i),s=n.length,o=0,r=[],a=0,l=0;for(let e=0,i=t.length;e<i;e++){let i=t[e],h=i.endIndex,d=i.type,c=i.metadata,u=i.containsRTL;for(;o<s&&n[o].startOffset<h;){let e=n[o];if(e.startOffset>l&&(l=e.startOffset,r[a++]=new h5(l,d,c,u)),e.endOffset+1<=h)l=e.endOffset+1,r[a++]=new h5(l,d+" "+e.className,c|e.metadata,u),o++;else{l=h,r[a++]=new h5(l,d+" "+e.className,c|e.metadata,u);break;}}h>l&&(l=h,r[a++]=new h5(l,d,c,u));}let h=t[t.length-1].endIndex;if(o<s&&n[o].startOffset===h)for(;o<s&&n[o].startOffset===h;){let e=n[o];r[a++]=new h5(l,e.className,e.metadata,!1),o++;}return r;}(s,o,e.lineDecorations);}return o=e.containsRTL?function(e,t){if(0===t.length)return t;let i=t[0];if(!i.containsRTL)return t;let n=i.endIndex,s=0;for(let t=0;t<n;t++){let i=e.charCodeAt(t);if(32!==i&&9!==i){s=t;break;}}if(0===s)return t;let o=[];o.push(new h5(s,i.type,i.metadata,!1)),o.push(new h5(n,i.type,i.metadata,i.containsRTL));for(let e=1;e<t.length;e++)o.push(t[e]);return o;}(s,o):function(e,t,i){let n=0,s=[],o=0;if(i)for(let i=0,r=t.length;i<r;i++){let r=t[i],a=r.endIndex;if(n+50<a){let t=r.type,i=r.metadata,l=r.containsRTL,h=-1,d=n;for(let r=n;r<a;r++)32===e.charCodeAt(r)&&(h=r),-1!==h&&r-d>=50&&(s[o++]=new h5(h+1,t,i,l),d=h+1,h=-1);d!==a&&(s[o++]=new h5(a,t,i,l));}else s[o++]=r;n=a;}else for(let e=0,i=t.length;e<i;e++){let i=t[e],r=i.endIndex,a=r-n;if(a>50){let e=i.type,t=i.metadata,l=i.containsRTL,h=Math.ceil(a/50);for(let i=1;i<h;i++){let r=n+50*i;s[o++]=new h5(r,e,t,l);}s[o++]=new h5(r,e,t,l);}else s[o++]=i;n=r;}return s;}(s,o,!e.isBasicASCII||e.fontLigatures),e.useTwoCellFullwidthCharacters&&(o=function(e,t){let i=[],n=0;for(let s of t){let t=!1;for(let o=n;o<s.endIndex;o++)(0,i7.a)(e.charCodeAt(o))&&(o>n&&i.push(new h5(o,s.type,s.metadata,s.containsRTL)),i.push(new h5(o+1,s.type,s.metadata,s.containsRTL)),n=o+1,t=!0);(!t||s.endIndex>n)&&i.push(s),n=s.endIndex;}return i;}(s,o)),new di(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,s,n,t,i,o,r,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters,e.useTwoCellFullwidthCharacters);}(e),t);}class de{constructor(e,t,i){this.characterMapping=e,this.html=t,this.containsForeignElements=i;}}function dt(e){let t=new lm(1e4),i=h7(e,t);return new de(i.characterMapping,t.build(),i.containsForeignElements);}class di{constructor(e,t,i,n,s,o,r,a,l,h,d,c,u,g,p,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=s,this.overflowingCharCount=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=c,this.renderSpaceCharCode=u,this.renderWhitespace=g,this.renderControlCharacters=p,this.useTwoCellFullwidthCharacters=f;}}function dn(e){return e<32?9!==e:127===e||!!(e>=8234)&&!!(e<=8238)||!!(e>=8294)&&!!(e<=8297)||!!(e>=8206)&&!!(e<=8207)||1564===e;}e.s(["d",0,h4,"n",0,h6,"r",0,h8,"j",0,h7,"o",0,dt],70924);class ds{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n;}}class dr{constructor(e,t){this.tabSize=e,this.data=t;}}class da{constructor(e,t,i,n,s,o,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=o,this.inlineDecorations=r;}}class dl{constructor(e,t,i,n,s,o,r,a,l,h,d,c){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=dl.isBasicASCII(i,o),this.containsRTL=dl.containsRTL(i,this.isBasicASCII,s),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h,this.textDirection=d,this.hasVariableFonts=c;}static isBasicASCII(e,t){return!t||(0,i7.G)(e);}static containsRTL(e,t,i){return!t&&!!i&&(0,i7.n)(e);}}class dh{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i;}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:+(e.color>t.color):e.zIndex-t.zIndex;}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&(0,ip.m)(e.data,t.data);}static equalsArr(e,t){return(0,ip.m)(e,t,dh.equals);}}var dd=i8;function dc(e){return"string"==typeof e;}function du(e,t){return e.ignoreCase&&t?t.toLowerCase():t;}function dg(e){return e.replace(/[&<>'"_]/g,"-");}function dp(e,t){return Error(`${e.languageId}: ${t}`);}function df(e,t,i,n,s){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,r,a,l,h,d,c,u,g){return a?"$":l?du(e,i):h&&h<n.length?du(e,n[h]):c&&e&&"string"==typeof e[c]?e[c]:(null===o&&(o=s.split(".")).unshift(s),d&&d<o.length)?du(e,o[d]):"";});}function dm(e,t){let i=t;for(;i&&i.length>0;){let t=e.tokenizer[i];if(t)return t;let n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n);}return null;}class d_{static create(e,t){return this._INSTANCE.create(e,t);}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null);}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new dv(e,t);let i=dv.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new dv(e,t),this._entries[i]=n),n;}}_d_=d_;_d_._INSTANCE=new _d_(5);class dv{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1;}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t;}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent;}return null===e&&null===t;}equals(e){return dv._equals(this,e);}push(e){return d_.create(this,e);}pop(){return this.parent;}popall(){let e=this;for(;e.parent;)e=e.parent;return e;}switchTo(e){return d_.create(this.parent,e);}}class db{constructor(e,t){this.languageId=e,this.state=t;}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state);}clone(){return this.state.clone()===this.state?this:new db(this.languageId,this.state);}}class dC{static create(e,t){return this._INSTANCE.create(e,t);}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null);}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new dw(e,t);let i=dv.getStackElementId(e),n=this._entries[i];return n||(n=new dw(e,null),this._entries[i]=n),n;}}_dC=dC;_dC._INSTANCE=new _dC(5);class dw{constructor(e,t){this.stack=e,this.embeddedLanguageData=t;}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:dC.create(this.stack,this.embeddedLanguageData);}equals(e){return e instanceof dw&&!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData));}}class dy{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null;}enterLanguage(e){this._languageId=e;}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new hV._(e,t,this._languageId)));}nestedLanguageTokenize(e,t,i,n){let s=i.languageId,o=i.state,r=hV.l.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;let a=r.tokenize(e,t,o);if(0!==n)for(let e of a.tokens)this._tokens.push(new hV._(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState;}finalize(e){return new hV.c(this._tokens,e);}}class dS{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0;}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e);}emit(e,t){let i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i));}static _merge(e,t,i){let n=null!==e?e.length:0,s=t.length,o=null!==i?i.length:0;if(0===n&&0===s&&0===o)return new Uint32Array(0);if(0===n&&0===s)return i;if(0===s&&0===o)return e;let r=new Uint32Array(n+s+o);null!==e&&r.set(e);for(let e=0;e<s;e++)r[n+e]=t[e];return null!==i&&r.set(i,n+s),r;}nestedLanguageTokenize(e,t,i,n){let s=i.languageId,o=i.state,r=hV.l.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;let a=r.tokenizeEncoded(e,t,o);if(0!==n)for(let e=0,t=a.tokens.length;e<t;e+=2)a.tokens[e]+=n;return this._prependTokens=dS._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState;}finalize(e){return new hV.j(dS._merge(this._prependTokens,this._tokens,null),[],e);}}let dx=e5=class extends dd.N{constructor(e,t,i,n,s){super(),this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let o=!1;this._register(hV.l.onDidChange(e=>{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){let n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break;}}t&&(o=!0,hV.l.handleChange([this._languageId]),o=!1);})),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}));}));}getLoadStatus(){let e=[];for(let t in this._embeddedLanguages){let i=hV.l.get(t);if(i){if(i instanceof e5){let t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise);}continue;}hV.l.isResolved(t)||e.push(hV.l.getOrCreate(t));}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>void 0)};}getInitialState(){let e=d_.create(null,this._lexer.start);return dC.create(e,null);}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return hz(this._languageId,i);let n=new dy(),s=this._tokenize(e,t,i,n);return n.finalize(s);}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return hU(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new dS(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s);}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n);}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=dm(this._lexer,t.stack.state)))throw dp(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(let o of i){if(dc(o.action)||!("@pop"===o.action.nextEmbedded||o.action.hasEmbeddedEndInCases))continue;s=!0;let i=o.resolveRegex(t.stack.state),r=i.source;if("^(?:"===r.substr(0,4)&&")"===r.substr(r.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(r.substr(4,r.length-5),e);}let a=e.search(i);-1!==a&&(0===a||!o.matchOnlyAtLineStart)&&(-1===n||a<n)&&(n=a);}if(!s)throw dp(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n;}_nestedTokenize(e,t,i,n,s){let o=this._findLeavingNestedLanguageOffset(e,i);if(-1===o){let o=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return dC.create(i.stack,new db(i.embeddedLanguageData.languageId,o));}let r=e.substring(0,o);r.length>0&&s.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);let a=e.substring(o);return this._myTokenize(a,t,i,n+o,s);}_safeRuleName(e){return e?e.name:"(unknown)";}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);let o=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length,l=i.embeddedLanguageData,h=i.stack,d=0,c=null,u=!0;for(;u||d<a;){let i=d,f=h.depth,m=c?c.groups.length:0,_=h.state,v=null,b=null,C=null,w=null,y=null;if(c){v=c.matches;let e=c.groups.shift();b=e.matched,C=e.action,w=c.rule,0===c.groups.length&&(c=null);}else{if(!u&&d>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&!(e=dm(this._lexer,_)))throw dp(this._lexer,"tokenizer state is not defined: "+_);let t=r.substr(d);for(let i of e)if((0===d||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)))){b=v[0],C=i.action;break;}}if(v||(v=[""],b=""),C||(d<a&&(b=(v=[r.charAt(d)])[0]),C=this._lexer.defaultToken),null===b)break;for(d+=b.length;!Array.isArray(C)&&!dc(C)&&C.test;)C=C.test(b,v,_,d===a);let S=null;if("string"==typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){var g,p;if(S=C.tokenSubst?df(this._lexer,C.token,b,v,_):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw dp(this._lexer,"cannot pop embedded language if not inside one");l=null;}else if(l)throw dp(this._lexer,"cannot enter embedded language from within an embedded language");else y=df(this._lexer,C.nextEmbedded,b,v,_);if(C.goBack&&(d=Math.max(0,d-C.goBack)),C.switchTo&&"string"==typeof C.switchTo){let e=df(this._lexer,C.switchTo,b,v,_);if("@"===e[0]&&(e=e.substr(1)),dm(this._lexer,e))h=h.switchTo(e);else throw dp(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(w));}else if(C.transform&&"function"==typeof C.transform)throw dp(this._lexer,"action.transform not supported");else if(C.next)if("@push"===C.next){if(h.depth>=this._lexer.maxStack)throw dp(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");else h=h.push(_);}else if("@pop"===C.next){if(h.depth<=1)throw dp(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));else h=h.pop();}else if("@popall"===C.next)h=h.popall();else{let e=df(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),dm(this._lexer,e))h=h.push(e);else throw dp(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(w));}C.log&&"string"==typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+df(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`));}if(null===S)throw dp(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));let x=i=>{let o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(o);if(!(d<a))return dC.create(h,r);{let i=e.substr(d);return this._nestedTokenize(i,t,dC.create(h,r),n+d,s);}};if(Array.isArray(S)){if(c&&c.groups.length>0)throw dp(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(v.length!==S.length+1)throw dp(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==b.length)throw dp(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));c={rule:w,matches:v,groups:[]};for(let e=0;e<S.length;e++)c.groups[e]={action:S[e],matched:v[e+1]};d-=b.length;continue;}{if("@rematch"===S&&(d-=b.length,b="",v=null,S="",null!==y))return x(y);if(0===b.length)if(0===a||f!==h.depth||_!==h.state||(c?c.groups.length:0)!==m)continue;else throw dp(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w));let e=null;if(dc(S)&&0===S.indexOf("@brackets")){let t=S.substr(9),i=function(e,t){if(!t)return null;for(let i of(t=du(e,t),e.brackets))if(i.open===t)return{token:i.token,bracketType:1};else if(i.close===t)return{token:i.token,bracketType:-1};return null;}(this._lexer,b);if(!i)throw dp(this._lexer,"@brackets token returned but no bracket defined as: "+b);e=dg(i.token+t);}else e=dg(""===S?"":S+this._lexer.tokenPostfix);i<o&&s.emit(i+n,e);}if(null!==y)return x(y);}return dC.create(h,l);}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new db(e,hH);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),hV.l.getOrCreate(e),this._embeddedLanguages[e]=!0);let t=hV.l.get(e);return t?new db(e,t.getInitialState()):new db(e,hH);}};dx=e5=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){lN(e,t,4);}],dx);let dL=hq("standaloneColorizer",{createHTML:e=>e});class dk{static colorizeElement(e,t,i,n){let s=(n=n||{}).theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();let r=t.getLanguageIdByMimeType(o)||o;e.setTheme(s);let a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+s,this.colorize(t,a||"",r,n).then(e=>{var _dL$createHTML;i.innerHTML=(_dL$createHTML=dL===null||dL===void 0?void 0:dL.createHTML(e))!==null&&_dL$createHTML!==void 0?_dL$createHTML:e;},e=>console.error(e));}static async colorize(e,t,i,n){var s,o,r,a;let l=e.languageIdCodec,h=4;n&&"number"==typeof n.tabSize&&(h=n.tabSize),(0,i7.k)(t)&&(t=t.substr(1));let d=(0,i7.B)(t);if(!e.isRegisteredLanguageId(i))return dD(d,h,l);let c=await hV.l.getOrCreate(i);return c?(s=d,o=h,r=c,a=l,new Promise((e,t)=>{let i=()=>{let n=function(e,t,i,n){let s=[],o=i.getInitialState();for(let r=0,a=e.length;r<a;r++){let a=e[r],l=i.tokenizeEncoded(a,!0,o);hQ.convertToEndOffset(l.tokens,a.length);let h=new hQ(l.tokens,a,n),d=dl.isBasicASCII(a,!0),c=dl.containsRTL(a,d,!0),u=dt(new h6(!1,!0,a,!1,d,c,0,h.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null,null,0));(s=s.concat(u.html)).push("<br/>"),o=l.endState;}return s.join("");}(s,o,r,a);if(r instanceof dx){let e=r.getLoadStatus();if(!1===e.loaded)return void e.promise.then(i,t);}e(n);};i();})):dD(d,h,l);}static colorizeLine(e,t,i,n,s=4){let o=dl.isBasicASCII(e,t),r=dl.containsRTL(e,o,i);return dt(new h6(!1,!0,e,!1,o,r,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null,null,0)).html;}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.tokenization.forceTokenization(t);let s=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i);}}function dD(e,t,i){let n=[],s=new Uint32Array(2);s[0]=0,s[1]=0x2008000;for(let o=0,r=e.length;o<r;o++){let r=e[o];s[0]=r.length;let a=new hQ(s,r,i),l=dl.isBasicASCII(r,!0),h=dl.containsRTL(r,l,!0),d=dt(new h6(!1,!0,r,!1,l,h,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null,null,0));(n=n.concat(d.html)).push("<br/>");}return n.join("");}function dM(e){(d=document.createElement("div")).className="monaco-aria-container";let t=()=>{let e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),d.appendChild(e),e;};c=t(),u=t();let i=()=>{let e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),d.appendChild(e),e;};g=i(),p=i(),e.appendChild(d);}function dI(e){d&&(c.textContent!==e?(sz(u),dE(c,e)):(sz(c),dE(u,e)));}function dN(e){d&&(g.textContent!==e?(sz(p),dE(g,e)):(sz(g),dE(p,e)));}function dE(e,t){sz(e),t.length>2e4&&(t=t.substr(0,2e4)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible";}e.s(["$",0,dI,"F",0,dM,"M",0,dN],73299);let dT=ra("editorWorkerService");e.s(["f",0,dT],14515);let dR=ra("markerDecorationsService");e.s(["f",0,dR],30432);let dA=(_Class2=class dA{constructor(e,t){}dispose(){}},_Class2.ID="editor.contrib.markerDecorations",_Class2);dA=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){dR(e,t,1);}],dA),lW(dT,hR,0),a3(dA.ID,dA,0);var dO=iv,dP=i8,dF=i8,dB=i8;class dW extends dB.N{constructor(e,t){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t);}dispose(){this.stopObserving(),super.dispose();}getWidth(){return this._width;}getHeight(){return this._height;}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null,t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe();},i=!1,n=!1,s=()=>{if(i&&!n)try{i=!1,n=!0,t();}finally{o(sT(this._referenceDomElement),()=>{n=!1,s();});}};this._resizeObserver=new ResizeObserver(t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,s();}),this._resizeObserver.observe(this._referenceDomElement);}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null);}observe(e){this.measureReferenceDomElement(!0,e);}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),(this._width!==i||this._height!==n)&&(this._width=i,this._height=n,e&&this._onDidChange.fire());}}class dV{constructor(e,t){this.key=e,this.migrate=t;}apply(e){let t=dV._read(e,this.key);this.migrate(t,t=>dV._read(e,t),(t,i)=>dV._write(e,t,i));}static _read(e,t){if(null==e)return;let i=t.indexOf(".");if(i>=0){let n=t.substring(0,i);return this._read(e[n],t.substring(i+1));}return e[t];}static _write(e,t,i){let n=t.indexOf(".");if(n>=0){let s=t.substring(0,n);e[s]=e[s]||{},this._write(e[s],t.substring(n+1),i);return;}e[t]=i;}}_dV=dV;_dV.items=[];function dH(e,t){dV.items.push(new dV(e,t));}function dz(e,t){dH(e,(i,n,s)=>{if(void 0!==i){for(let[n,o]of t)if(i===n)return void s(e,o);}});}dz("wordWrap",[[!0,"on"],[!1,"off"]]),dz("lineNumbers",[[!0,"on"],[!1,"off"]]),dz("cursorBlinking",[["visible","solid"]]),dz("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),dz("renderLineHighlight",[[!0,"line"],[!1,"none"]]),dz("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),dz("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),dz("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),dz("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),dz("autoIndent",[[!1,"advanced"],[!0,"full"]]),dz("matchBrackets",[[!0,"always"],[!1,"never"]]),dz("renderFinalNewline",[[!0,"on"],[!1,"off"]]),dz("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),dz("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),dz("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),dz("defaultColorDecorators",[[!0,"auto"],[!1,"never"]]),dz("minimap.autohide",[[!0,"mouseover"],[!1,"none"]]),dH("autoClosingBrackets",(e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),void 0===t("autoClosingQuotes")&&i("autoClosingQuotes","never"),void 0===t("autoSurround")&&i("autoSurround","never"));}),dH("renderIndentGuides",(e,t,i)=>{void 0!==e&&(i("renderIndentGuides",void 0),void 0===t("guides.indentation")&&i("guides.indentation",!!e));}),dH("highlightActiveIndentGuide",(e,t,i)=>{void 0!==e&&(i("highlightActiveIndentGuide",void 0),void 0===t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e));});let dU={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};dH("suggest.filteredTypes",(e,t,i)=>{if(e&&"object"==typeof e){for(let n of Object.entries(dU))!1===e[n[0]]&&void 0===t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1);i("suggest.filteredTypes",void 0);}}),dH("quickSuggestions",(e,t,i)=>{if("boolean"==typeof e){let t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t});}}),dH("experimental.stickyScroll.enabled",(e,t,i)=>{"boolean"==typeof e&&(i("experimental.stickyScroll.enabled",void 0),void 0===t("stickyScroll.enabled")&&i("stickyScroll.enabled",e));}),dH("experimental.stickyScroll.maxLineCount",(e,t,i)=>{"number"==typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),void 0===t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e));}),dH("editor.experimentalEditContextEnabled",(e,t,i)=>{"boolean"==typeof e&&(i("editor.experimentalEditContextEnabled",void 0),void 0===t("editor.editContext")&&i("editor.editContext",e));}),dH("codeActionsOnSave",(e,t,i)=>{if(e&&"object"==typeof e){let t=!1,n={};for(let i of Object.entries(e))"boolean"==typeof i[1]?(t=!0,n[i[0]]=i[1]?"explicit":"never"):n[i[0]]=i[1];t&&i("codeActionsOnSave",n);}}),dH("codeActionWidget.includeNearbyQuickfixes",(e,t,i)=>{"boolean"==typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),void 0===t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e));}),dH("lightbulb.enabled",(e,t,i)=>{"boolean"==typeof e&&i("lightbulb.enabled",e?void 0:"off");}),dH("inlineSuggest.edits.codeShifting",(e,t,i)=>{"boolean"==typeof e&&(i("inlineSuggest.edits.codeShifting",void 0),i("inlineSuggest.edits.allowCodeShifting",e?"always":"never"));}),dH("hover.enabled",(e,t,i)=>{"boolean"==typeof e&&i("hover.enabled",e?"on":"off");});var d$=i8;class dK extends d$.N{constructor(){super(...arguments),this._tabFocus=!1,this._onDidChangeTabFocus=this._register(new iv.S()),this.onDidChangeTabFocus=this._onDidChangeTabFocus.event;}getTabFocusMode(){return this._tabFocus;}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus);}}let dq=new dK(),dj=ra("accessibilityService"),dG=new r4("accessibilityModeEnabled",!1);e.s(["k",0,dG,"P",0,dj],56946);let dQ=new class{constructor(){this._inputMode="insert",this._onDidChangeInputMode=new iv.S(),this.onDidChangeInputMode=this._onDidChangeInputMode.event;}getInputMode(){return this._inputMode;}}(),dZ=class extends dF.N{constructor(e,t,i,n,s){super(),this._accessibilityService=s,this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new iv.S()),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new iN(),this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new dW(n,i.dimension)),this._targetWindowId=sT(n).vscodeWindowId,this._rawOptions=d0(i),this._validatedOptions=dJ.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(19)&&this._containerObserver.startObserving(),this._register(ib.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(dq.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(ro.onDidChange(()=>this._recomputeOptions())),this._register(o6.getInstance(sT(n)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._register(dQ.onDidChangeInputMode(()=>this._recomputeOptions()));}_recomputeOptions(){let e=this._computeOptions(),t=dJ.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t));}_computeOptions(){var e,t,i;let n,s,o,r,a,l,h,d=this._readEnvConfiguration(),c=(e=this._validatedOptions,t=d.pixelRatio,i=this.isSimpleWidget,n=e.get(58),s=e.get(62),o=e.get(61),r=e.get(60),a=e.get(63),l=e.get(75),h=e.get(72),iw._create(n,s,o,r,a,l,h,t,i)),u=this._readFontInfo(c),g={memory:this._computeOptionsMemory,outerWidth:d.outerWidth,outerHeight:d.outerHeight-this._reservedHeight,fontInfo:u,extraEditorClassName:d.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:d.emptySelectionClipboard,pixelRatio:d.pixelRatio,tabFocusMode:this._validatedOptions.get(165)||dq.getTabFocusMode(),inputMode:dQ.getInputMode(),accessibilitySupport:d.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount,editContextSupported:d.editContextSupported};return dJ.computeOptions(this._validatedOptions,g);}_readEnvConfiguration(){let e;return{extraEditorClassName:(e="",nl||nh?e+="no-minimap-shadow enable-user-select ":e+="no-user-select ",i_.e&&(e+="mac "),e),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:nr||no,pixelRatio:o6.getInstance(sF(this._targetWindowId,!0).window).value,editContextSupported:"function"==typeof globalThis.EditContext,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()};}_readFontInfo(e){return ro.readFontInfo(sF(this._targetWindowId,!0).window,e);}getRawOptions(){return this._rawOptions;}updateOptions(e){let t=d0(e);dJ.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=dJ.validateOptions(this._rawOptions),this._recomputeOptions());}observeContainer(e){this._containerObserver.observe(e);}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions());}setModelLineCount(e){let t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1;}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions());}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions());}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions());}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions());}};dZ=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){dj(e,t,4);}],dZ);class dY{constructor(){this._values=[];}_read(e){return this._values[e];}get(e){return this._values[e];}_write(e,t){this._values[e]=t;}}class dX{constructor(){this._values=[];}_read(e){if(e>=this._values.length)throw Error("Cannot read uninitialized value");return this._values[e];}get(e){return this._read(e);}_write(e,t){this._values[e]=t;}}class dJ{static validateOptions(e){let t=new dY();for(let i of i2){let n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n));}return t;}static computeOptions(e,t){let i=new dX();for(let n of i2)i._write(n.id,n.compute(t,i,e._read(n.id)));return i;}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!!(Array.isArray(e)&&Array.isArray(t))&&(0,ip.m)(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(!dJ._deepEquals(e[i],t[i]))return!1;return!0;}static checkEquals(e,t){let i=[],n=!1;for(let s of i2){let o=!dJ._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=o,o&&(n=!0);}return n?new iI(i):null;}static applyUpdate(e,t){let i=!1;for(let n of i2)if(t.hasOwnProperty(n.name)){let s=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=s.newValue,i=i||s.didChange;}return i;}}function d0(e){let t=(0,im.F)(e);return dV.items.forEach(e=>e.apply(t)),t;}!function(e){let t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},s={...t},o=0;e.sampleCount=sc("inputLatency.sampleCount",0);let r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2);}function l(){performance.mark("input/start"),r.input=1,c();}function h(){1===r.input&&(performance.mark("input/end"),r.input=2);}function d(){1===r.render&&(performance.mark("render/end"),r.render=2);}function c(){setTimeout(u);}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",s),o++,e.sampleCount.set(e.sampleCount.get()+1,void 0),performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0);}function g(e,t){let i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i);}function p(e){return{average:e.total/o,max:e.max,min:e.min};}function f(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0;}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a);},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(h);},e.onKeyUp=function(){u();},e.onSelectionChange=function(){u();},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(d),c());},e.getAndClearMeasurements=function(){if(0===o)return;let e={keydown:p(t),input:p(i),render:p(n),total:p(s),sampleCount:o};return f(t),f(i),f(n),f(s),o=0,e;};}(e6||(e6={}));var d1=i8,d2=i8;let d3=new Map();class d5 extends d2.N{constructor(){super(...arguments),this._currentCssStyle="",this._styleSheet=void 0;}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.textContent=e:this._styleSheet=d6(i9.document.head,t=>t.textContent=e,this._store));}dispose(){super.dispose(),this._styleSheet=void 0;}}function d6(e=i9.document.head,t,i){let n=document.createElement("style");if(n.type="text/css",n.media="screen",t!==null&&t!==void 0&&t(n),e.appendChild(n),i&&i.add((0,d2.Q)(()=>n.remove())),e===i9.document.head){let e=new Set();for(let{window:t,disposables:s}of(d3.set(n,e),i&&i.add((0,d2.Q)(()=>d3.delete(n))),sA())){if(t===i9)continue;let o=s.add(function(e,t,i){let n=new d2.q(),s=e.cloneNode(!0);for(let t of(i.document.head.appendChild(s),n.add((0,d2.Q)(()=>s.remove())),(_e$sheet$cssRules=(_e$sheet=e.sheet)===null||_e$sheet===void 0?void 0:_e$sheet.cssRules)!==null&&_e$sheet$cssRules!==void 0?_e$sheet$cssRules:[])){var _e$sheet$cssRules,_e$sheet,_s$sheet,_s$sheet2;(_s$sheet=s.sheet)===null||_s$sheet===void 0||_s$sheet.insertRule(t.cssText,(_s$sheet2=s.sheet)===null||_s$sheet2===void 0?void 0:_s$sheet2.cssRules.length);}return n.add(oc.observe(e,n,{childList:!0,subtree:no,characterData:no})(()=>{s.textContent=e.textContent;})),t.add(s),n.add((0,d2.Q)(()=>t.delete(s))),n;}(n,e,t));i===null||i===void 0||i.add(o);}}return n;}let d4=null;function d9(){return d4||(d4=d6()),d4;}function d8(e,t,i=d9()){if(i&&t)for(let n of((_i$sheet=i.sheet)!==null&&_i$sheet!==void 0&&_i$sheet.insertRule(`${e} {${t}}`,0),(_d3$get=d3.get(i))!==null&&_d3$get!==void 0?_d3$get:[])){var _i$sheet,_d3$get;d8(e,t,n);}}e.s(["v",0,d8,"I",0,d6,"t",0,function(e){let t=new d2.q(),i=t.add(new d5());return t.add(se(t=>{i.setStyle(e.read(t));})),t;},"w",0,function e(t,i=d9()){var _i$sheet$cssRules,_i$sheet2;if(!i)return;let n=(_i$sheet$cssRules=(_i$sheet2=i.sheet)===null||_i$sheet2===void 0?void 0:_i$sheet2.cssRules)!==null&&_i$sheet$cssRules!==void 0?_i$sheet$cssRules:[],s=[];for(let e=0;e<n.length;e++){let i=n[e];"string"==typeof i.selectorText&&-1!==i.selectorText.indexOf(t)&&s.push(e);}for(let e=s.length-1;e>=0;e--){var _i$sheet3;(_i$sheet3=i.sheet)===null||_i$sheet3===void 0||_i$sheet3.deleteRule(s[e]);}for(let n of(_d3$get2=d3.get(i))!==null&&_d3$get2!==void 0?_d3$get2:[]){var _d3$get2;e(t,n);}}],68604);class d7{constructor(){this._hooks=new i8.q(),this._pointerMoveCallback=null,this._onStopCallback=null;}dispose(){this.stopMonitoring(!1),this._hooks.dispose();}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t);}isMonitoring(){return!!this._pointerMoveCallback;}startMonitoring(e,t,i,n,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=n,this._onStopCallback=s;let o=e;try{e.setPointerCapture(t),this._hooks.add((0,i8.Q)(()=>{try{e.releasePointerCapture(t);}catch(e){}}));}catch(t){o=sT(e);}this._hooks.add(s$(o,o_.POINTER_MOVE,e=>{e.buttons!==i?this.stopMonitoring(!0):(e.preventDefault(),this._pointerMoveCallback(e));})),this._hooks.add(s$(o,o_.POINTER_UP,e=>this.stopMonitoring(!0)));}}e.s(["f",0,d7],36554);var ce=i8,ct=e.i(72714),ci=i8;function cn(e){return`--vscode-${e.replace(/\./g,"-")}`;}function cs(e){return`var(${cn(e)})`;}function co(e,t){return`var(${cn(e)}, ${t})`;}let cr={ColorContribution:"base.contributions.colors"};class ca extends ci.N{constructor(){super(),this._onDidChangeSchema=this._register(new iv.S()),this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={};}registerColor(e,t,i,n=!1,s){this.colorsById[e]={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:s};let o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(o.deprecationMessage=s),n&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=(0,iM.M)(2124,"This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:i,oneOf:[o,{type:"string",const:"default",description:(0,iM.M)(2125,"Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e;}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e]);}resolveDefaultColor(e,t){let i=this.colorsById[e];if(i!==null&&i!==void 0&&i.defaults){var n;return function e(t,i){if(null===t);else if("string"==typeof t)return"#"===t[0]?ct.G.fromHex(t):i.getColor(t);else if(t instanceof ct.G)return t;else if("object"==typeof t)return function(t,i,_e3,_e4,_e5){switch(t.op){case 0:return(_e3=e(t.value,i))===null||_e3===void 0?void 0:_e3.darken(t.factor);case 1:return(_e4=e(t.value,i))===null||_e4===void 0?void 0:_e4.lighten(t.factor);case 2:return(_e5=e(t.value,i))===null||_e5===void 0?void 0:_e5.transparent(t.factor);case 7:{let n=e(t.color,i)||ct.G.transparent,s=e(t.with,i)||ct.G.transparent;return n.mix(s,t.ratio);}case 3:{var _e6;let n=e(t.background,i);if(!n)return e(t.value,i);return(_e6=e(t.value,i))===null||_e6===void 0?void 0:_e6.makeOpaque(n);}case 4:for(let n of t.values){let t=e(n,i);if(t)return t;}return;case 6:return e(i.defines(t.if)?t.then:t.else,i);case 5:{let n=e(t.value,i);if(!n)return;let s=e(t.background,i);if(!s)return n.transparent(t.factor*t.transparency);return n.isDarkerThan(s)?ct.G.getLighterColor(n,s,t.factor).transparent(t.transparency):ct.G.getDarkerColor(n,s,t.factor).transparent(t.transparency);}default:throw(0,n1.r)();}}(t,i);}(null!==(n=i.defaults)&&"object"==typeof n&&"light"in n&&"dark"in n?i.defaults[t.type]:i.defaults,t);}}getColorSchema(){return this.colorSchema;}toString(){return Object.keys(this.colorsById).sort((e,t)=>{let i=+(-1!==e.indexOf(".")),n=+(-1!==t.indexOf("."));return i!==n?i-n:e.localeCompare(t);}).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n");}}let cl=new ca();function ch(e,t,i,n,s){return cl.registerColor(e,t,i,n,s);}function cd(e,t){return{op:0,value:e,factor:t};}function cc(e,t){return{op:1,value:e,factor:t};}function cu(e,t){return{op:2,value:e,factor:t};}function cg(...e){return{op:4,values:e};}function cp(e,t,i){return{op:6,if:e,then:t,else:i};}function cf(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n};}ai.add(cr.ColorContribution,cl);let cm="vscode://schemas/workbench-colors",c_=ai.as(l$);c_.registerSchema(cm,cl.getColorSchema());let cv=new nI.t(()=>c_.notifySchemaChanged(cm),200);cl.onDidChangeSchema(()=>{cv.isScheduled()||cv.schedule();}),e.s(["F",0,cr,"w",0,cs,"I",0,cn,"i",0,co,"J",0,cd,"E",0,cp,"H",0,cf,"V",0,cc,"K",0,cg,"b",0,ch,"X",0,cu],24357);let cb=ch("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},(0,iM.M)(1871,"Overall foreground color. This color is only used if not overridden by a component."));ch("strongForeground",{dark:"#FFFFFF",light:"#000000",hcDark:"#FFFFFF",hcLight:"#000000"},(0,iM.M)(1872,"Highest-contrast foreground color, intended for text or icons that need maximum legibility across various backgrounds. This color is only used if not overridden by a component.")),ch("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},(0,iM.M)(1873,"Overall foreground for disabled elements. This color is only used if not overridden by a component.")),ch("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},(0,iM.M)(1874,"Overall foreground color for error messages. This color is only used if not overridden by a component."));let cC=ch("descriptionForeground",{light:"#717171",dark:cu(cb,.7),hcDark:cu(cb,.7),hcLight:cu(cb,.7)},(0,iM.M)(1875,"Foreground color for description text providing additional information, for example for a label.")),cw=ch("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},(0,iM.M)(1876,"The default color for icons in the workbench.")),cy=ch("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},(0,iM.M)(1877,"Overall border color for focused elements. This color is only used if not overridden by a component.")),cS=ch("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},(0,iM.M)(1878,"An extra border around elements to separate them from others for greater contrast.")),cx=ch("contrastActiveBorder",{light:null,dark:null,hcDark:cy,hcLight:cy},(0,iM.M)(1879,"An extra border around active elements to separate them from others for greater contrast."));ch("selection.background",null,(0,iM.M)(1880,"The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));let cL=ch("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},(0,iM.M)(1881,"Foreground color for links in text."));ch("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},(0,iM.M)(1882,"Foreground color for links in text when clicked on and on mouse hover.")),ch("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:ct.G.black,hcLight:"#292929"},(0,iM.M)(1883,"Color for text separators.")),ch("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#FFFFFF",hcLight:"#FFFFFF"},(0,iM.M)(1884,"Foreground color for preformatted text segments.")),ch("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:null,hcLight:"#09345f"},(0,iM.M)(1885,"Background color for preformatted text segments.")),ch("textPreformat.border",{light:null,dark:null,hcDark:cS,hcLight:null},(0,iM.M)(1886,"Border color for preformatted text segments.")),ch("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},(0,iM.M)(1887,"Background color for block quotes in text.")),ch("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:ct.G.white,hcLight:"#292929"},(0,iM.M)(1888,"Border color for block quotes in text.")),ch("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:ct.G.black,hcLight:"#F2F2F2"},(0,iM.M)(1889,"Background color for code blocks in text.")),e.s(["_",0,cx,"$",0,cS,"e",0,cC,"Y",0,cy,"h",0,cb,"l",0,cw,"q",0,cL],70305),ch("sash.hoverBorder",cy,(0,iM.M)(2095,"Border color of active sashes."));let ck=ch("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:ct.G.black,hcLight:"#0F4A85"},(0,iM.M)(2096,"Badge background color. Badges are small information labels, e.g. for search results count.")),cD=ch("badge.foreground",{dark:ct.G.white,light:"#333",hcDark:ct.G.white,hcLight:ct.G.white},(0,iM.M)(2097,"Badge foreground color. Badges are small information labels, e.g. for search results count."));ch("activityWarningBadge.foreground",{dark:ct.G.white,light:ct.G.white,hcDark:ct.G.white,hcLight:ct.G.white},(0,iM.M)(2098,"Foreground color of the warning activity badge")),ch("activityWarningBadge.background",{dark:"#B27C00",light:"#B27C00",hcDark:null,hcLight:"#B27C00"},(0,iM.M)(2099,"Background color of the warning activity badge")),ch("activityErrorBadge.foreground",{dark:ct.G.black.lighten(.2),light:ct.G.white,hcDark:null,hcLight:ct.G.black.lighten(.2)},(0,iM.M)(2100,"Foreground color of the error activity badge")),ch("activityErrorBadge.background",{dark:"#F14C4C",light:"#E51400",hcDark:null,hcLight:"#F14C4C"},(0,iM.M)(2101,"Background color of the error activity badge"));let cM=ch("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},(0,iM.M)(2102,"Scrollbar shadow to indicate that the view is scrolled.")),cI=ch("scrollbarSlider.background",{dark:ct.G.fromHex("#797979").transparent(.4),light:ct.G.fromHex("#646464").transparent(.4),hcDark:cu(cS,.6),hcLight:cu(cS,.4)},(0,iM.M)(2103,"Scrollbar slider background color.")),cN=ch("scrollbarSlider.hoverBackground",{dark:ct.G.fromHex("#646464").transparent(.7),light:ct.G.fromHex("#646464").transparent(.7),hcDark:cu(cS,.8),hcLight:cu(cS,.8)},(0,iM.M)(2104,"Scrollbar slider background color when hovering.")),cE=ch("scrollbarSlider.activeBackground",{dark:ct.G.fromHex("#BFBFBF").transparent(.4),light:ct.G.fromHex("#000000").transparent(.6),hcDark:cS,hcLight:cS},(0,iM.M)(2105,"Scrollbar slider background color when clicked on."));ch("scrollbar.background",null,(0,iM.M)(2106,"Scrollbar track background color."));let cT=ch("progressBar.background",{dark:ct.G.fromHex("#0E70C0"),light:ct.G.fromHex("#0E70C0"),hcDark:cS,hcLight:cS},(0,iM.M)(2107,"Background color of the progress bar that can show for long running operations."));ch("chart.line",{dark:"#236B8E",light:"#236B8E",hcDark:"#236B8E",hcLight:"#236B8E"},(0,iM.M)(2108,"Line color for the chart.")),ch("chart.axis",{dark:ct.G.fromHex("#BFBFBF").transparent(.4),light:ct.G.fromHex("#000000").transparent(.6),hcDark:cS,hcLight:cS},(0,iM.M)(2109,"Axis color for the chart.")),ch("chart.guide",{dark:ct.G.fromHex("#BFBFBF").transparent(.2),light:ct.G.fromHex("#000000").transparent(.2),hcDark:cS,hcLight:cS},(0,iM.M)(2110,"Guide line for the chart.")),e.s(["g",0,ck,"r",0,cD,"f",0,cT,"t",0,cM,"T",0,cE,"U",0,cI,"$",0,cN],37784);let cR=ch("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(1898,"Editor background color.")),cA=ch("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:ct.G.white,hcLight:cb},(0,iM.M)(1899,"Editor default foreground color."));ch("editorStickyScroll.background",cR,(0,iM.M)(1900,"Background color of sticky scroll in the editor")),ch("editorStickyScrollGutter.background",cR,(0,iM.M)(1901,"Background color of the gutter part of sticky scroll in the editor")),ch("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:ct.G.fromHex("#0F4A85").transparent(.1)},(0,iM.M)(1902,"Background color of sticky scroll on hover in the editor")),ch("editorStickyScroll.border",{dark:null,light:null,hcDark:cS,hcLight:cS},(0,iM.M)(1903,"Border color of sticky scroll in the editor")),ch("editorStickyScroll.shadow",cM,(0,iM.M)(1904," Shadow color of sticky scroll in the editor"));let cO=ch("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:ct.G.white},(0,iM.M)(1905,"Background color of editor widgets, such as find/replace.")),cP=ch("editorWidget.foreground",cb,(0,iM.M)(1906,"Foreground color of editor widgets, such as find/replace.")),cF=ch("editorWidget.border",{dark:cu(cP,.2),light:cu(cP,.2),hcDark:cS,hcLight:cS},(0,iM.M)(1907,"Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));ch("editorWidget.resizeBorder",null,(0,iM.M)(1908,"Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ch("editorError.background",null,(0,iM.M)(1909,"Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);let cB=ch("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},(0,iM.M)(1910,"Foreground color of error squigglies in the editor.")),cW=ch("editorError.border",{dark:null,light:null,hcDark:ct.G.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},(0,iM.M)(1911,"If set, color of double underlines for errors in the editor.")),cV=ch("editorWarning.background",null,(0,iM.M)(1912,"Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),cH=ch("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},(0,iM.M)(1913,"Foreground color of warning squigglies in the editor.")),cz=ch("editorWarning.border",{dark:null,light:null,hcDark:ct.G.fromHex("#FFCC00").transparent(.8),hcLight:ct.G.fromHex("#FFCC00").transparent(.8)},(0,iM.M)(1914,"If set, color of double underlines for warnings in the editor."));ch("editorInfo.background",null,(0,iM.M)(1915,"Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0);let cU=ch("editorInfo.foreground",{dark:"#59a4f9",light:"#0063d3",hcDark:"#59a4f9",hcLight:"#0063d3"},(0,iM.M)(1916,"Foreground color of info squigglies in the editor.")),c$=ch("editorInfo.border",{dark:null,light:null,hcDark:ct.G.fromHex("#59a4f9").transparent(.8),hcLight:"#292929"},(0,iM.M)(1917,"If set, color of double underlines for infos in the editor.")),cK=ch("editorHint.foreground",{dark:ct.G.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},(0,iM.M)(1918,"Foreground color of hint squigglies in the editor."));ch("editorHint.border",{dark:null,light:null,hcDark:ct.G.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},(0,iM.M)(1919,"If set, color of double underlines for hints in the editor."));let cq=ch("editorLink.activeForeground",{dark:"#4E94CE",light:ct.G.blue,hcDark:ct.G.cyan,hcLight:"#292929"},(0,iM.M)(1920,"Color of active links.")),cj=ch("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},(0,iM.M)(1921,"Color of the editor selection.")),cG=ch("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:ct.G.white},(0,iM.M)(1922,"Color of the selected text for high contrast.")),cQ=ch("editor.inactiveSelectionBackground",{light:cu(cj,.5),dark:cu(cj,.5),hcDark:cu(cj,.7),hcLight:cu(cj,.5)},(0,iM.M)(1923,"Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),cZ=ch("editor.selectionHighlightBackground",{light:cf(cj,cR,.3,.6),dark:cf(cj,cR,.3,.6),hcDark:null,hcLight:null},(0,iM.M)(1924,"Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0);ch("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:cx,hcLight:cx},(0,iM.M)(1925,"Border color for regions with the same content as the selection.")),ch("editor.compositionBorder",{light:"#000000",dark:"#ffffff",hcLight:"#000000",hcDark:"#ffffff"},(0,iM.M)(1926,"The border color for an IME composition.")),ch("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},(0,iM.M)(1927,"Color of the current search match."));let cY=ch("editor.findMatchForeground",null,(0,iM.M)(1928,"Text color of the current search match.")),cX=ch("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},(0,iM.M)(1929,"Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),cJ=ch("editor.findMatchHighlightForeground",null,(0,iM.M)(1930,"Foreground color of the other search matches."),!0);ch("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},(0,iM.M)(1931,"Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ch("editor.findMatchBorder",{light:null,dark:null,hcDark:cx,hcLight:cx},(0,iM.M)(1932,"Border color of the current search match."));let c0=ch("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:cx,hcLight:cx},(0,iM.M)(1933,"Border color of the other search matches.")),c1=ch("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:cu(cx,.4),hcLight:cu(cx,.4)},(0,iM.M)(1934,"Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);ch("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},(0,iM.M)(1935,"Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0);let c2=ch("editorHoverWidget.background",cO,(0,iM.M)(1936,"Background color of the editor hover.")),c3=ch("editorHoverWidget.foreground",cP,(0,iM.M)(1937,"Foreground color of the editor hover.")),c5=ch("editorHoverWidget.border",cF,(0,iM.M)(1938,"Border color of the editor hover."));ch("editorHoverWidget.statusBarBackground",{dark:cc(c2,.2),light:cd(c2,.05),hcDark:cO,hcLight:cO},(0,iM.M)(1939,"Background color of the editor hover status bar."));let c6=ch("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:ct.G.white,hcLight:ct.G.black},(0,iM.M)(1940,"Foreground color of inline hints")),c4=ch("editorInlayHint.background",{dark:cu(ck,.1),light:cu(ck,.1),hcDark:cu(ct.G.white,.1),hcLight:cu(ck,.1)},(0,iM.M)(1941,"Background color of inline hints")),c9=ch("editorInlayHint.typeForeground",c6,(0,iM.M)(1942,"Foreground color of inline hints for types")),c8=ch("editorInlayHint.typeBackground",c4,(0,iM.M)(1943,"Background color of inline hints for types")),c7=ch("editorInlayHint.parameterForeground",c6,(0,iM.M)(1944,"Foreground color of inline hints for parameters")),ue=ch("editorInlayHint.parameterBackground",c4,(0,iM.M)(1945,"Background color of inline hints for parameters")),ut=ch("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},(0,iM.M)(1946,"The color used for the lightbulb actions icon."));ch("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,iM.M)(1947,"The color used for the lightbulb auto fix actions icon.")),ch("editorLightBulbAi.foreground",ut,(0,iM.M)(1948,"The color used for the lightbulb AI icon.")),ch("editor.snippetTabstopHighlightBackground",{dark:new ct.G(new ct.i(124,124,124,.3)),light:new ct.G(new ct.i(10,50,100,.2)),hcDark:new ct.G(new ct.i(124,124,124,.3)),hcLight:new ct.G(new ct.i(10,50,100,.2))},(0,iM.M)(1949,"Highlight background color of a snippet tabstop.")),ch("editor.snippetTabstopHighlightBorder",null,(0,iM.M)(1950,"Highlight border color of a snippet tabstop.")),ch("editor.snippetFinalTabstopHighlightBackground",null,(0,iM.M)(1951,"Highlight background color of the final tabstop of a snippet.")),ch("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new ct.G(new ct.i(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},(0,iM.M)(1952,"Highlight border color of the final tabstop of a snippet."));let ui=new ct.G(new ct.i(155,185,85,.2)),un=new ct.G(new ct.i(255,0,0,.2)),us=ch("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},(0,iM.M)(1953,"Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),uo=ch("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},(0,iM.M)(1954,"Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ur=ch("diffEditor.insertedLineBackground",{dark:ui,light:ui,hcDark:null,hcLight:null},(0,iM.M)(1955,"Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0);ch("diffEditor.removedLineBackground",{dark:un,light:un,hcDark:null,hcLight:null},(0,iM.M)(1956,"Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ch("diffEditorGutter.insertedLineBackground",null,(0,iM.M)(1957,"Background color for the margin where lines got inserted.")),ch("diffEditorGutter.removedLineBackground",null,(0,iM.M)(1958,"Background color for the margin where lines got removed."));let ua=ch("diffEditorOverview.insertedForeground",null,(0,iM.M)(1959,"Diff overview ruler foreground for inserted content.")),ul=ch("diffEditorOverview.removedForeground",null,(0,iM.M)(1960,"Diff overview ruler foreground for removed content."));ch("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},(0,iM.M)(1961,"Outline color for the text that got inserted.")),ch("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},(0,iM.M)(1962,"Outline color for text that got removed.")),ch("diffEditor.border",{dark:null,light:null,hcDark:cS,hcLight:cS},(0,iM.M)(1963,"Border color between the two text editors.")),ch("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},(0,iM.M)(1964,"Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),ch("diffEditor.unchangedRegionBackground","sideBar.background",(0,iM.M)(1965,"The background color of unchanged blocks in the diff editor.")),ch("diffEditor.unchangedRegionForeground","foreground",(0,iM.M)(1966,"The foreground color of unchanged blocks in the diff editor.")),ch("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},(0,iM.M)(1967,"The background color of unchanged code in the diff editor."));let uh=ch("widget.shadow",{dark:cu(ct.G.black,.36),light:cu(ct.G.black,.16),hcDark:null,hcLight:null},(0,iM.M)(1968,"Shadow color of widgets such as find/replace inside the editor.")),ud=ch("widget.border",{dark:null,light:null,hcDark:cS,hcLight:cS},(0,iM.M)(1969,"Border color of widgets such as find/replace inside the editor.")),uc=ch("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},(0,iM.M)(1970,"Toolbar background when hovering over actions using the mouse"));ch("toolbar.hoverOutline",{dark:null,light:null,hcDark:cx,hcLight:cx},(0,iM.M)(1971,"Toolbar outline when hovering over actions using the mouse")),ch("toolbar.activeBackground",{dark:cc(uc,.1),light:cd(uc,.1),hcDark:null,hcLight:null},(0,iM.M)(1972,"Toolbar background when holding the mouse over actions"));let uu=ch("breadcrumb.foreground",cu(cb,.8),(0,iM.M)(1973,"Color of focused breadcrumb items.")),ug=ch("breadcrumb.background",cR,(0,iM.M)(1974,"Background color of breadcrumb items.")),up=ch("breadcrumb.focusForeground",{light:cd(cb,.2),dark:cc(cb,.1),hcDark:cc(cb,.1),hcLight:cc(cb,.1)},(0,iM.M)(1975,"Color of focused breadcrumb items.")),uf=ch("breadcrumb.activeSelectionForeground",{light:cd(cb,.2),dark:cc(cb,.1),hcDark:cc(cb,.1),hcLight:cc(cb,.1)},(0,iM.M)(1976,"Color of selected breadcrumb items."));ch("breadcrumbPicker.background",cO,(0,iM.M)(1977,"Background color of breadcrumb item picker."));let um=ct.G.fromHex("#40C8AE").transparent(.5),u_=ct.G.fromHex("#40A6FF").transparent(.5),uv=ct.G.fromHex("#606060").transparent(.4),ub=ch("merge.currentHeaderBackground",{dark:um,light:um,hcDark:null,hcLight:null},(0,iM.M)(1978,"Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ch("merge.currentContentBackground",cu(ub,.4),(0,iM.M)(1979,"Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let uC=ch("merge.incomingHeaderBackground",{dark:u_,light:u_,hcDark:null,hcLight:null},(0,iM.M)(1980,"Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ch("merge.incomingContentBackground",cu(uC,.4),(0,iM.M)(1981,"Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let uw=ch("merge.commonHeaderBackground",{dark:uv,light:uv,hcDark:null,hcLight:null},(0,iM.M)(1982,"Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);ch("merge.commonContentBackground",cu(uw,.4),(0,iM.M)(1983,"Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let uy=ch("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},(0,iM.M)(1984,"Border color on headers and the splitter in inline merge-conflicts."));ch("editorOverviewRuler.currentContentForeground",{dark:cu(ub,1),light:cu(ub,1),hcDark:uy,hcLight:uy},(0,iM.M)(1985,"Current overview ruler foreground for inline merge-conflicts.")),ch("editorOverviewRuler.incomingContentForeground",{dark:cu(uC,1),light:cu(uC,1),hcDark:uy,hcLight:uy},(0,iM.M)(1986,"Incoming overview ruler foreground for inline merge-conflicts.")),ch("editorOverviewRuler.commonContentForeground",{dark:cu(uw,1),light:cu(uw,1),hcDark:uy,hcLight:uy},(0,iM.M)(1987,"Common ancestor overview ruler foreground for inline merge-conflicts."));let uS=ch("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},(0,iM.M)(1988,"Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0);ch("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",(0,iM.M)(1989,"Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0);let ux=ch("problemsErrorIcon.foreground",cB,(0,iM.M)(1990,"The color used for the problems error icon.")),uL=ch("problemsWarningIcon.foreground",cH,(0,iM.M)(1991,"The color used for the problems warning icon.")),uk=ch("problemsInfoIcon.foreground",cU,(0,iM.M)(1992,"The color used for the problems info icon."));e.s(["e",0,uf,"x",0,ug,"S",0,up,"A",0,uu,"W",0,ui,"h",0,un,"w",0,us,"O",0,ur,"M",0,ua,"f",0,ul,"z",0,uo,"V",0,cq,"u",0,cR,"r",0,cW,"y",0,cB,"s",0,cY,"b",0,cX,"p",0,c0,"T",0,cJ,"_",0,c1,"X",0,cA,"i",0,cK,"q",0,c2,"P",0,c5,"F",0,c3,"j",0,cQ,"Y",0,c$,"G",0,cU,"I",0,c4,"$",0,c6,"Z",0,ue,"t",0,c7,"a",0,c8,"U",0,c9,"m",0,cj,"B",0,cG,"C",0,cZ,"k",0,cV,"J",0,cz,"v",0,cH,"D",0,cO,"l",0,cF,"H",0,cP,"K",0,uS,"n",0,ux,"c",0,uk,"E",0,uL,"L",0,ud,"N",0,uh],10538);let uD=ch("minimap.findMatchHighlight",cX,(0,iM.M)(2084,"Minimap marker color for find matches."),!0);ch("minimap.selectionOccurrenceHighlight",cZ,(0,iM.M)(2085,"Minimap marker color for repeating editor selections."),!0);let uM=ch("minimap.selectionHighlight",cj,(0,iM.M)(2086,"Minimap marker color for the editor selection."),!0),uI=ch("minimap.infoHighlight",{dark:cU,light:cU,hcDark:c$,hcLight:c$},(0,iM.M)(2087,"Minimap marker color for infos.")),uN=ch("minimap.warningHighlight",{dark:cH,light:cH,hcDark:cz,hcLight:cz},(0,iM.M)(2088,"Minimap marker color for warnings.")),uE=ch("minimap.errorHighlight",{dark:new ct.G(new ct.i(255,18,18,.7)),light:new ct.G(new ct.i(255,18,18,.7)),hcDark:new ct.G(new ct.i(255,50,50,1)),hcLight:"#B5200D"},(0,iM.M)(2089,"Minimap marker color for errors.")),uT=ch("minimap.background",null,(0,iM.M)(2090,"Minimap background color.")),uR=ch("minimap.foregroundOpacity",ct.G.fromHex("#000f"),(0,iM.M)(2091,'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.'));ch("minimapSlider.background",cu(cI,.5),(0,iM.M)(2092,"Minimap slider background color.")),ch("minimapSlider.hoverBackground",cu(cN,.5),(0,iM.M)(2093,"Minimap slider background color when hovering.")),ch("minimapSlider.activeBackground",cu(cE,.5),(0,iM.M)(2094,"Minimap slider background color when clicked on.")),e.s(["L",0,uT,"$",0,uE,"F",0,uD,"b",0,uR,"A",0,uI,"g",0,uM,"v",0,uN],23504),ch("charts.foreground",cb,(0,iM.M)(1890,"The foreground color used in charts.")),ch("charts.lines",cu(cb,.5),(0,iM.M)(1891,"The color used for horizontal lines in charts.")),ch("charts.red",cB,(0,iM.M)(1892,"The red color used in chart visualizations.")),ch("charts.blue",cU,(0,iM.M)(1893,"The blue color used in chart visualizations.")),ch("charts.yellow",cH,(0,iM.M)(1894,"The yellow color used in chart visualizations.")),ch("charts.orange",uD,(0,iM.M)(1895,"The orange color used in chart visualizations.")),ch("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},(0,iM.M)(1896,"The green color used in chart visualizations.")),ch("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,iM.M)(1897,"The purple color used in chart visualizations.")),e.s([],25060);let uA=ch("list.focusBackground",null,(0,iM.M)(2041,"List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),uO=ch("list.focusForeground",null,(0,iM.M)(2042,"List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),uP=ch("list.focusOutline",{dark:cy,light:cy,hcDark:cx,hcLight:cx},(0,iM.M)(2043,"List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),uF=ch("list.focusAndSelectionOutline",null,(0,iM.M)(2044,"List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),uB=ch("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:ct.G.fromHex("#0F4A85").transparent(.1)},(0,iM.M)(2045,"List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),uW=ch("list.activeSelectionForeground",{dark:ct.G.white,light:ct.G.white,hcDark:null,hcLight:null},(0,iM.M)(2046,"List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),uV=ch("list.activeSelectionIconForeground",null,(0,iM.M)(2047,"List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),uH=ch("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:ct.G.fromHex("#0F4A85").transparent(.1)},(0,iM.M)(2048,"List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),uz=ch("list.inactiveSelectionForeground",null,(0,iM.M)(2049,"List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),uU=ch("list.inactiveSelectionIconForeground",null,(0,iM.M)(2050,"List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u$=ch("list.inactiveFocusBackground",null,(0,iM.M)(2051,"List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),uK=ch("list.inactiveFocusOutline",null,(0,iM.M)(2052,"List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),uq=ch("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:ct.G.white.transparent(.1),hcLight:ct.G.fromHex("#0F4A85").transparent(.1)},(0,iM.M)(2053,"List/Tree background when hovering over items using the mouse.")),uj=ch("list.hoverForeground",null,(0,iM.M)(2054,"List/Tree foreground when hovering over items using the mouse.")),uG=ch("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},(0,iM.M)(2055,"List/Tree drag and drop background when moving items over other items when using the mouse.")),uQ=ch("list.dropBetweenBackground",{dark:cw,light:cw,hcDark:null,hcLight:null},(0,iM.M)(2056,"List/Tree drag and drop border color when moving items between items when using the mouse.")),uZ=ch("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:cy,hcLight:cy},(0,iM.M)(2057,"List/Tree foreground color of the match highlights when searching inside the list/tree.")),uY=ch("list.focusHighlightForeground",{dark:uZ,light:cp(uB,uZ,"#BBE7FF"),hcDark:uZ,hcLight:uZ},(0,iM.M)(2058,"List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));ch("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},(0,iM.M)(2059,"List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),ch("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},(0,iM.M)(2060,"Foreground color of list items containing errors.")),ch("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},(0,iM.M)(2061,"Foreground color of list items containing warnings."));let uX=ch("listFilterWidget.background",{light:cd(cO,0),dark:cc(cO,0),hcDark:cO,hcLight:cO},(0,iM.M)(2062,"Background color of the type filter widget in lists and trees.")),uJ=ch("listFilterWidget.outline",{dark:ct.G.transparent,light:ct.G.transparent,hcDark:"#f38518",hcLight:"#007ACC"},(0,iM.M)(2063,"Outline color of the type filter widget in lists and trees.")),u0=ch("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:cS,hcLight:cS},(0,iM.M)(2064,"Outline color of the type filter widget in lists and trees, when there are no matches.")),u1=ch("listFilterWidget.shadow",uh,(0,iM.M)(2065,"Shadow color of the type filter widget in lists and trees."));ch("list.filterMatchBackground",{dark:cX,light:cX,hcDark:null,hcLight:null},(0,iM.M)(2066,"Background color of the filtered match.")),ch("list.filterMatchBorder",{dark:c0,light:c0,hcDark:cS,hcLight:cx},(0,iM.M)(2067,"Border color of the filtered match.")),ch("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},(0,iM.M)(2068,"List/Tree foreground color for items that are deemphasized."));let u2=ch("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},(0,iM.M)(2069,"Tree stroke color for the indentation guides.")),u3=ch("tree.inactiveIndentGuidesStroke",cu(u2,.4),(0,iM.M)(2070,"Tree stroke color for the indentation guides that are not active.")),u5=ch("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},(0,iM.M)(2071,"Table border color between columns.")),u6=ch("tree.tableOddRowsBackground",{dark:cu(cb,.04),light:cu(cb,.04),hcDark:null,hcLight:null},(0,iM.M)(2072,"Background color for odd table rows."));ch("editorActionList.background",cO,(0,iM.M)(2073,"Action List background color."));let u4=ch("editorActionList.foreground",cP,(0,iM.M)(2074,"Action List foreground color."));ch("editorActionList.focusForeground",uW,(0,iM.M)(2075,"Action List foreground color for the focused item.")),ch("editorActionList.focusBackground",uB,(0,iM.M)(2076,"Action List background color for the focused item.")),e.s(["p",0,u4,"j",0,uB,"u",0,uW,"x",0,uV,"B",0,uQ,"m",0,uG,"O",0,uX,"h",0,u0,"R",0,uJ,"M",0,u1,"y",0,uF,"I",0,uA,"v",0,uO,"T",0,uY,"C",0,uP,"D",0,uZ,"J",0,uq,"K",0,uj,"V",0,u$,"i",0,uK,"Y",0,uH,"q",0,uz,"w",0,uU,"E",0,u5,"F",0,u6,"r",0,u3,"s",0,u2],16948);let u9=ch("input.background",{dark:"#3C3C3C",light:ct.G.white,hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(1993,"Input box background.")),u8=ch("input.foreground",cb,(0,iM.M)(1994,"Input box foreground.")),u7=ch("input.border",{dark:null,light:null,hcDark:cS,hcLight:cS},(0,iM.M)(1995,"Input box border.")),ge=ch("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:cS,hcLight:cS},(0,iM.M)(1996,"Border color of activated options in input fields.")),gt=ch("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},(0,iM.M)(1997,"Background color of activated options in input fields.")),gi=ch("inputOption.activeBackground",{dark:cu(cy,.4),light:cu(cy,.2),hcDark:ct.G.transparent,hcLight:ct.G.transparent},(0,iM.M)(1998,"Background hover color of options in input fields.")),gn=ch("inputOption.activeForeground",{dark:ct.G.white,light:ct.G.black,hcDark:cb,hcLight:cb},(0,iM.M)(1999,"Foreground color of activated options in input fields."));ch("input.placeholderForeground",{light:cu(cb,.5),dark:cu(cb,.5),hcDark:cu(cb,.7),hcLight:cu(cb,.7)},(0,iM.M)(2e3,"Input box foreground color for placeholder text."));let gs=ch("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(2001,"Input validation background color for information severity.")),go=ch("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:cb},(0,iM.M)(2002,"Input validation foreground color for information severity.")),gr=ch("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:cS,hcLight:cS},(0,iM.M)(2003,"Input validation border color for information severity.")),ga=ch("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(2004,"Input validation background color for warning severity.")),gl=ch("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:cb},(0,iM.M)(2005,"Input validation foreground color for warning severity.")),gh=ch("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:cS,hcLight:cS},(0,iM.M)(2006,"Input validation border color for warning severity.")),gd=ch("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(2007,"Input validation background color for error severity.")),gc=ch("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:cb},(0,iM.M)(2008,"Input validation foreground color for error severity.")),gu=ch("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:cS,hcLight:cS},(0,iM.M)(2009,"Input validation border color for error severity.")),gg=ch("dropdown.background",{dark:"#3C3C3C",light:ct.G.white,hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(2010,"Dropdown background.")),gp=ch("dropdown.listBackground",{dark:null,light:null,hcDark:ct.G.black,hcLight:ct.G.white},(0,iM.M)(2011,"Dropdown list background.")),gf=ch("dropdown.foreground",{dark:"#F0F0F0",light:cb,hcDark:ct.G.white,hcLight:cb},(0,iM.M)(2012,"Dropdown foreground.")),gm=ch("dropdown.border",{dark:gg,light:"#CECECE",hcDark:cS,hcLight:cS},(0,iM.M)(2013,"Dropdown border.")),g_=ch("button.foreground",ct.G.white,(0,iM.M)(2014,"Button foreground color.")),gv=ch("button.separator",cu(g_,.4),(0,iM.M)(2015,"Button separator color.")),gb=ch("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:ct.G.black,hcLight:"#0F4A85"},(0,iM.M)(2016,"Button background color.")),gC=ch("button.hoverBackground",{dark:cc(gb,.2),light:cd(gb,.2),hcDark:gb,hcLight:gb},(0,iM.M)(2017,"Button background color when hovering.")),gw=ch("button.border",cS,(0,iM.M)(2018,"Button border color.")),gy=ch("button.secondaryForeground",{dark:cb,light:cb,hcDark:ct.G.white,hcLight:cb},(0,iM.M)(2019,"Secondary button foreground color.")),gS=ch("button.secondaryBackground",{dark:uq,light:uq,hcDark:null,hcLight:ct.G.white},(0,iM.M)(2020,"Secondary button background color.")),gx=ch("button.secondaryBorder",{dark:cu(cb,.15),light:cu(cb,.15),hcDark:cS,hcLight:cS},(0,iM.M)(2021,"Secondary button border color.")),gL=ch("button.secondaryHoverBackground",{dark:cc(uq,.2),light:cc(uq,.2),hcDark:null,hcLight:null},(0,iM.M)(2022,"Secondary button background color when hovering.")),gk=ch("radio.activeForeground",gn,(0,iM.M)(2023,"Foreground color of active radio option.")),gD=ch("radio.activeBackground",gi,(0,iM.M)(2024,"Background color of active radio option.")),gM=ch("radio.activeBorder",ge,(0,iM.M)(2025,"Border color of the active radio option.")),gI=ch("radio.inactiveForeground",null,(0,iM.M)(2026,"Foreground color of inactive radio option.")),gN=ch("radio.inactiveBackground",null,(0,iM.M)(2027,"Background color of inactive radio option.")),gE=ch("radio.inactiveBorder",{light:cu(gk,.2),dark:cu(gk,.2),hcDark:cu(gk,.4),hcLight:cu(gk,.2)},(0,iM.M)(2028,"Border color of the inactive radio option.")),gT=ch("radio.inactiveHoverBackground",gt,(0,iM.M)(2029,"Background color of inactive active radio option when hovering.")),gR=ch("checkbox.background",gg,(0,iM.M)(2030,"Background color of checkbox widget."));ch("checkbox.selectBackground",cO,(0,iM.M)(2031,"Background color of checkbox widget when the element it's in is selected."));let gA=ch("checkbox.foreground",gf,(0,iM.M)(2032,"Foreground color of checkbox widget.")),gO=ch("checkbox.border",gm,(0,iM.M)(2033,"Border color of checkbox widget."));ch("checkbox.selectBorder",cw,(0,iM.M)(2034,"Border color of checkbox widget when the element it's in is selected."));let gP=ch("checkbox.disabled.background",{op:7,color:gR,with:gA,ratio:.33},(0,iM.M)(2035,"Background of a disabled checkbox.")),gF=ch("checkbox.disabled.foreground",{op:7,color:gA,with:gR,ratio:.33},(0,iM.M)(2036,"Foreground of a disabled checkbox.")),gB=ch("keybindingLabel.background",{dark:new ct.G(new ct.i(128,128,128,.17)),light:new ct.G(new ct.i(221,221,221,.4)),hcDark:ct.G.transparent,hcLight:ct.G.transparent},(0,iM.M)(2037,"Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),gW=ch("keybindingLabel.foreground",{dark:ct.G.fromHex("#CCCCCC"),light:ct.G.fromHex("#555555"),hcDark:ct.G.white,hcLight:cb},(0,iM.M)(2038,"Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),gV=ch("keybindingLabel.border",{dark:new ct.G(new ct.i(51,51,51,.6)),light:new ct.G(new ct.i(204,204,204,.4)),hcDark:new ct.G(new ct.i(111,195,223)),hcLight:cS},(0,iM.M)(2039,"Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),gH=ch("keybindingLabel.bottomBorder",{dark:new ct.G(new ct.i(68,68,68,.6)),light:new ct.G(new ct.i(187,187,187,.4)),hcDark:new ct.G(new ct.i(111,195,223)),hcLight:cb},(0,iM.M)(2040,"Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut."));e.s(["F",0,gb,"V",0,gw,"l",0,g_,"G",0,gC,"a",0,gS,"q",0,gx,"M",0,gy,"T",0,gL,"n",0,gv,"s",0,gR,"r",0,gO,"K",0,gP,"B",0,gF,"U",0,gA,"R",0,gi,"W",0,ge,"u",0,gn,"X",0,u9,"Y",0,u7,"Z",0,u8,"b",0,gd,"L",0,gu,"S",0,gc,"v",0,gs,"_",0,gr,"t",0,go,"J",0,ga,"N",0,gh,"z",0,gl,"$",0,gB,"A",0,gV,"x",0,gH,"E",0,gW,"c",0,gD,"e",0,gM,"H",0,gk,"O",0,gN,"w",0,gE,"P",0,gI,"Q",0,gT,"d",0,gg,"f",0,gm,"g",0,gf,"h",0,gp],66330);let gz=ch("menu.border",{dark:null,light:null,hcDark:cS,hcLight:cS},(0,iM.M)(2077,"Border color of menus.")),gU=ch("menu.foreground",gf,(0,iM.M)(2078,"Foreground color of menu items.")),g$=ch("menu.background",gg,(0,iM.M)(2079,"Background color of menu items."));ch("menu.selectionForeground",uW,(0,iM.M)(2080,"Foreground color of the selected menu item in menus.")),ch("menu.selectionBackground",uB,(0,iM.M)(2081,"Background color of the selected menu item in menus."));let gK=ch("menu.selectionBorder",{dark:null,light:null,hcDark:cx,hcLight:cx},(0,iM.M)(2082,"Border color of the selected menu item in menus.")),gq=ch("menu.separatorBackground",{dark:cu(cb,.2),light:cu(cb,.2),hcDark:cS,hcLight:cS},(0,iM.M)(2083,"Color of a separator menu item in menus."));e.s(["B",0,g$,"I",0,gz,"J",0,gU,"s",0,gK,"S",0,gq],8238);let gj=ch("quickInput.background",cO,(0,iM.M)(2111,"Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),gG=ch("quickInput.foreground",cP,(0,iM.M)(2112,"Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),gQ=ch("quickInputTitle.background",{dark:new ct.G(new ct.i(255,255,255,.105)),light:new ct.G(new ct.i(0,0,0,.06)),hcDark:"#000000",hcLight:ct.G.white},(0,iM.M)(2113,"Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),gZ=ch("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:ct.G.white,hcLight:"#0F4A85"},(0,iM.M)(2114,"Quick picker color for grouping labels.")),gY=ch("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:ct.G.white,hcLight:"#0F4A85"},(0,iM.M)(2115,"Quick picker color for grouping borders.")),gX=ch("quickInput.list.focusBackground",null,"",void 0,(0,iM.M)(2116,"Please use quickInputList.focusBackground instead")),gJ=ch("quickInputList.focusForeground",uW,(0,iM.M)(2117,"Quick picker foreground color for the focused item.")),g0=ch("quickInputList.focusIconForeground",uV,(0,iM.M)(2118,"Quick picker icon foreground color for the focused item.")),g1=ch("quickInputList.focusBackground",{dark:cg(gX,uB),light:cg(gX,uB),hcDark:null,hcLight:null},(0,iM.M)(2119,"Quick picker background color for the focused item."));ch("quickInputList.focusHighlightForeground",uY,(0,iM.M)(2120,"Quick picker foreground color of the match highlights on the focused item.")),e.s(["e",0,gY,"t",0,gZ,"N",0,gj,"v",0,gG,"T",0,g1,"y",0,gJ,"u",0,g0,"w",0,gQ],21836),ch("search.resultsInfoForeground",{light:cb,dark:cu(cb,.65),hcDark:cb,hcLight:cb},(0,iM.M)(2121,"Color of the text in the search viewlet's completion message.")),ch("searchEditor.findMatchBackground",{light:cu(cX,.66),dark:cu(cX,.66),hcDark:cX,hcLight:cX},(0,iM.M)(2122,"Color of the Search Editor query matches.")),ch("searchEditor.findMatchBorder",{light:cu(c0,.66),dark:cu(c0,.66),hcDark:c0,hcLight:c0},(0,iM.M)(2123,"Border color of the Search Editor query matches.")),e.s([],21828);class g2{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0;}toClientCoordinates(e){return new g3(this.x-e.scrollX,this.y-e.scrollY);}}class g3{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0;}toPageCoordinates(e){return new g2(this.clientX+e.scrollX,this.clientY+e.scrollY);}}class g5{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0;}}class g6{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0;}}function g4(e){let t=s6(e);return new g5(t.left,t.top,t.width,t.height);}function g9(e,t,i){let n=t.width/e.offsetWidth,s=t.height/e.offsetHeight;return new g6((i.x-t.x)/n,(i.y-t.y)/s);}class g8 extends nD{get editorPos(){var _this$_editorPos;return(_this$_editorPos=this._editorPos)!==null&&_this$_editorPos!==void 0?_this$_editorPos:this._editorPos=g4(this._editorViewDomNode),this._editorPos;}get relativePos(){var _this$_relativePos;return(_this$_relativePos=this._relativePos)!==null&&_this$_relativePos!==void 0?_this$_relativePos:this._relativePos=g9(this._editorViewDomNode,this.editorPos,this.pos),this._relativePos;}constructor(e,t,i){super(sT(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new g2(this.posx,this.posy),this._editorViewDomNode=i;}}class g7{constructor(e){this._editorViewDomNode=e;}_create(e){return new g8(e,!1,this._editorViewDomNode);}onContextMenu(e,t){return s$(e,o_.CONTEXT_MENU,e=>{t(this._create(e));});}onMouseUp(e,t){return s$(e,o_.MOUSE_UP,e=>{t(this._create(e));});}onMouseDown(e,t){return s$(e,o_.MOUSE_DOWN,e=>{t(this._create(e));});}onPointerDown(e,t){return s$(e,o_.POINTER_DOWN,e=>{t(this._create(e),e.pointerId);});}onMouseLeave(e,t){return s$(e,o_.MOUSE_LEAVE,e=>{t(this._create(e));});}onMouseMove(e,t){return s$(e,o_.MOUSE_MOVE,e=>t(this._create(e)));}}class pe{constructor(e){this._editorViewDomNode=e;}_create(e){return new g8(e,!1,this._editorViewDomNode);}onPointerUp(e,t){return s$(e,"pointerup",e=>{t(this._create(e));});}onPointerDown(e,t){return s$(e,o_.POINTER_DOWN,e=>{t(this._create(e),e.pointerId);});}onPointerLeave(e,t){return s$(e,o_.POINTER_LEAVE,e=>{t(this._create(e));});}onPointerMove(e,t){return s$(e,"pointermove",e=>t(this._create(e)));}}class pt extends ce.N{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new d7()),this._keydownListener=null;}startMonitoring(e,t,i,n,s){this._keydownListener=sq(e.ownerDocument,"keydown",e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent);},!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,e=>{n(new g8(e,!0,this._editorViewDomNode));},e=>{this._keydownListener.dispose(),s(e);});}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0);}}class pi{constructor(e){this._editor=e,this._instanceId=++pi._idPool,this._counter=0,this._rules=new ce.C(),this._garbageCollectionScheduler=new nI.t(()=>this.garbageCollect(),1e3);}dispose(){this._rules.dispose(),this._garbageCollectionScheduler.dispose();}createClassNameRef(e){let t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule();}};}getOrCreateRule(e){let t=this.computeUniqueKey(e),i=this._rules.get(t);if(!i){let n=this._counter++;i=new pn(t,`dyn-rule-${this._instanceId}-${n}`,os(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i);}return i;}computeUniqueKey(e){return JSON.stringify(e);}garbageCollect(){for(let e of this._rules.values())e.hasReferences()||this._rules.deleteAndDispose(e.key);}}_pi=pi;_pi._idPool=0;class pn{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new ce.q(),this._styleElement=d6(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties);}getCssText(e,t){let i=`.${e} {`;for(let e in t){let n,s=t[e];n="object"==typeof s?cs(s.id):s;let o=e.replace(/(^[A-Z])/,([e])=>e.toLowerCase()).replace(/([A-Z])/g,([e])=>`-${e.toLowerCase()}`);i+=`
|
|
4
4
|
${o}: ${n};`;}return i+`
|
|
@@ -726,7 +726,7 @@ ${Oi(rC.f.menuSubmenu)}
|
|
|
726
726
|
${e.toString()}`;}}class Of{constructor(e=new km(),t=!1,i,n=!1){var _i$_globalGraph;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._isDisposed=!1,this._servicesToMaybeDispose=new Set(),this._children=new Set(),this._activeInstantiations=new Set(),this._services.set(rr,this),this._globalGraph=n?(_i$_globalGraph=i===null||i===void 0?void 0:i._globalGraph)!==null&&_i$_globalGraph!==void 0?_i$_globalGraph:new Og(e=>e):void 0;}dispose(){if(!this._isDisposed){for(let e of(this._isDisposed=!0,(0,i8.d)(this._children),this._children.clear(),this._servicesToMaybeDispose))(0,i8.J)(e)&&e.dispose();this._servicesToMaybeDispose.clear();}}_throwIfDisposed(){if(this._isDisposed)throw Error("InstantiationService has been disposed");}createChild(e,t){this._throwIfDisposed();let i=this,n=new class extends Of{dispose(){i._children.delete(n),super.dispose();}}(e,this._strict,this,this._enableTracing);return this._children.add(n),t!==null&&t!==void 0&&t.add(n),n;}invokeFunction(e,...t){this._throwIfDisposed();let i=Om.traceInvocation(this._enableTracing,e),n=!1;try{return e({get:e=>{if(n)throw(0,nf.S)("service accessor is only valid during the invocation of its target method");let t=this._getOrCreateServiceInstance(e,i);return t||this._throwIfStrict(`[invokeFunction] unknown service '${e}'`,!1),t;}},...t);}finally{n=!0,i.stop();}}createInstance(e,...t){let i,n;return this._throwIfDisposed(),e instanceof lF?(i=Om.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Om.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n;}_createInstance(e,t=[],i){let n=eQ.getServiceDependencies(e).sort((e,t)=>e.index-t.index),s=[];for(let t of n){let n=this._getOrCreateServiceInstance(t.id,i);n||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`,!1),s.push(n);}let o=n.length>0?n[0].index:t.length;if(t.length!==o){console.trace(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);let i=o-t.length;t=i>0?t.concat(Array(i)):t.slice(0,o);}return Reflect.construct(e,t.concat(s));}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof lF)this._services.set(e,t);else if(this._parent)this._parent._setCreatedServiceInstance(e,t);else throw Error("illegalState - setting UNKNOWN service instance");}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t;}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));let i=this._getServiceInstanceOrDescriptor(e);return i instanceof lF?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i);}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i);}finally{this._activeInstantiations.delete(e);}}_createAndCacheServiceInstance(e,t,i){let n=new Og(e=>e.id.toString()),s=0,o=[{id:e,desc:t,_trace:i}],r=new Set();for(;o.length;){let t=o.pop();if(!r.has(String(t.id))){if(r.add(String(t.id)),n.lookupOrInsertNode(t),s++>1e3)throw new Op(n);for(let i of eQ.getServiceDependencies(t.desc.ctor)){var _this$_globalGraph;let s=this._getServiceInstanceOrDescriptor(i.id);if(s||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),(_this$_globalGraph=this._globalGraph)!==null&&_this$_globalGraph!==void 0&&_this$_globalGraph.insertEdge(String(t.id),String(i.id)),s instanceof lF){let e={id:i.id,desc:s,_trace:t._trace.branch(i.id,!0)};n.insertEdge(t,e),o.push(e);}}}}for(;;){let e=n.roots();if(0===e.length){if(!n.isEmpty())throw new Op(n);break;}for(let{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof lF){let e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e);}n.removeNode(t);}}return this._getServiceInstanceOrDescriptor(e);}_createServiceInstanceWithOwner(e,t,i=[],n,s){if(this._services.get(e)instanceof lF)return this._createServiceInstance(e,t,i,n,s,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,s);throw Error(`illegalState - creating UNKNOWN service instance ${t.name}`);}_createServiceInstance(e,t,i=[],n,s,o){if(n){let n=new Of(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);let r=new Map(),a=new nI.S(()=>{let e=n._createInstance(t,i,s);for(let[t,i]of r){let n=e[t];if("function"==typeof n)for(let t of i)t.disposable=n.apply(e,t.listener);}return r.clear(),o.add(e),e;});return new Proxy(Object.create(null),{get(e,t){if(!a.isInitialized&&"string"==typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=r.get(t);return e||(e=new rb.f(),r.set(t,e)),(i,n,s)=>{if(a.isInitialized)return a.value[t](i,n,s);{let t={listener:[i,n,s],disposable:void 0},o=e.push(t);return(0,i8.Q)(()=>{var _t$disposable;o(),(_t$disposable=t.disposable)===null||_t$disposable===void 0?void 0:_t$disposable.dispose();});}};}if(t in e)return e[t];let i=a.value,n=i[t];return"function"!=typeof n||(n=n.bind(i),e[t]=n),n;},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype});}{let e=this._createInstance(t,i,s);return o.add(e),e;}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw Error(e);}}class Om{static traceInvocation(e,t){return e?new Om(2,t.name||Error().stack.split("\n").slice(3,4).join("\n")):Om._None;}static traceCreation(e,t){return e?new Om(1,t.name):Om._None;}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[];}branch(e,t){let i=new Om(3,e.toString());return this._dep.push([e,t,i]),i;}stop(){let e=Date.now()-this._start;Om._totals+=e;let t=!1,i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){let s=[],o=Array(i+1).join(" ");for(let[r,a,l]of n._dep)if(a&&l){t=!0,s.push(`${o}CREATES -> ${r}`);let n=e(i+1,l);n&&s.push(n);}else s.push(`${o}uses -> ${r}`);return s.join("\n");}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Om._totals.toFixed(2)}ms)`];(e>2||t)&&Om.all.add(i.join("\n"));}}_Om=Om;_Om.all=new Set();_Om._None=new class extends _Om{constructor(){super(0,null);}stop(){}branch(){return this;}}();_Om._totals=0;var O_=i8;let Ov={kind:0},Ob={kind:1};class OC{constructor(e,t,i){for(let t of(this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map(),e)){let e=t.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0);}this._map=new Map(),this._lookupMap=new Map(),this._keybindings=OC.handleRemovals([].concat(e).concat(t));for(let e=0,t=this._keybindings.length;e<t;e++){var _t$when;let t=this._keybindings[e];if(0===t.chords.length)continue;let i=(_t$when=t.when)===null||_t$when===void 0?void 0:_t$when.substituteConstants();i&&0===i.type||this._addKeyPress(t.chords[0],t);}}static _isTargetedForRemoval(e,t,i){if(t){for(let i=0;i<t.length;i++)if(t[i]!==e.chords[i])return!1;}if(i&&1!==i.type){if(!e.when)return!1;let t=e.when.substituteConstants(),n=i.substituteConstants();if(!OC.whenIsEntirelyIncluded(t,n))return!1;}return!0;}static handleRemovals(e){let t=new Map();for(let i=0,n=e.length;i<n;i++){let n=e[i];if(n.command&&"-"===n.command.charAt(0)){let e=n.command.substring(1);t.has(e)?t.get(e).push(n):t.set(e,[n]);}}if(0===t.size)return e;let i=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(!s.command||0===s.command.length){i.push(s);continue;}if("-"===s.command.charAt(0))continue;let o=t.get(s.command);if(!o||!s.isDefault){i.push(s);continue;}let r=!1;for(let e of o){let t=e.when;if(this._isTargetedForRemoval(s,e.chords,t)){r=!0;break;}}if(!r){i.push(s);continue;}}return i;}_addKeyPress(e,t){let i=this._map.get(e);if(void 0===i){this._map.set(e,[t]),this._addToLookupMap(t);return;}for(let e=i.length-1;e>=0;e--){let n=i[e];if(n.command===t.command)continue;let s=!0;for(let e=1;e<n.chords.length&&e<t.chords.length;e++)if(n.chords[e]!==t.chords[e]){s=!1;break;}s&&OC.whenIsEntirelyIncluded(n.when,t.when)&&this._removeFromLookupMap(n);}i.push(t),this._addToLookupMap(t);}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e);}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(void 0!==t){for(let i=0,n=t.length;i<n;i++)if(t[i]===e)return void t.splice(i,1);}}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!!e&&1!==e.type&&r7(e,t);}getKeybindings(){return this._keybindings;}lookupPrimaryKeybinding(e,t,i=!1){let n=this._lookupMap.get(e);if(void 0===n||0===n.length)return null;if(1===n.length&&!i)return n[0];for(let e=n.length-1;e>=0;e--){let i=n[e];if(t.contextMatchesRules(i.when))return i;}return i?null:n[n.length-1];}resolve(e,t,i){var n;let s=[...t,i];this._log(`| Resolving ${s}`);let o=this._map.get(s[0]);if(void 0===o)return this._log("\\ No keybinding entries."),Ov;let r=null;if(s.length<2)r=o;else{r=[];for(let e=0,t=o.length;e<t;e++){let t=o[e];if(s.length>t.chords.length)continue;let i=!0;for(let e=1;e<s.length;e++)if(t.chords[e]!==s[e]){i=!1;break;}i&&r.push(t);}}let a=this._findCommand(e,r);return a?s.length<a.chords.length?(this._log(`\\ From ${r.length} keybinding entries, awaiting ${a.chords.length-s.length} more chord(s), when: ${Ow(a.when)}, source: ${Oy(a)}.`),Ob):(this._log(`\\ From ${r.length} keybinding entries, matched ${a.command}, when: ${Ow(a.when)}, source: ${Oy(a)}.`),n=a.command,{kind:2,commandId:n,commandArgs:a.commandArgs,isBubble:a.bubble}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ov);}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){let n=t[i];if(OC._contextMatchesRules(e,n.when))return n;}return null;}static _contextMatchesRules(e,t){return!t||t.evaluate(e);}}function Ow(e){return e?`${e.serialize()}`:"no when condition";}function Oy(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user";}let OS=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;function Ox(e){return 114===e.keyCode;}class OL extends O_.N{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:iv.C.None;}get inChordMode(){return this._currentChords.length>0;}constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new iv.S()),this._currentChords=[],this._currentChordChecker=new nI.Q(),this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Ok.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new nI.j(),this._currentlyDispatchingCommandId=null,this._logging=!1;}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`);}getKeybindings(){return this._getResolver().getKeybindings();}lookupKeybinding(e,t,i=!1){let n=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService,i);if(n)return n.resolvedKeybinding;}dispatchEvent(e,t){return this._dispatch(e,t);}softDispatch(e,t){if(this._log("/ Soft dispatching keyboard event"),Ox(e))return this._log("\\ Keyboard event is part of an IME composition"),Ov;let i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),Ov;let[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),Ov;let s=this._contextKeyService.getContext(t),o=this._currentChords.map(({keypress:e})=>e);return this._getResolver().resolve(s,o,n);}_scheduleLeaveChordMode(){let e=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode();},500);}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,nf.S)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status((0,iM.M)(1796,"({0}) was pressed. Waiting for second key of chord...",t));break;default:{let e=this._currentChords.map(({label:e})=>e).join(", ");this._currentChordStatusMessage=this._notificationService.status((0,iM.M)(1797,"({0}) was pressed. Waiting for next key of chord...",e));}}this._scheduleLeaveChordMode(),Cl.enabled&&Cl.disable();}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.close(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],Cl.enable();}_dispatch(e,t){return Ox(e)?(this._log("+ Ignoring keybinding dispatch because an IME composition is in progress."),!1):this._doDispatch(this.resolveKeyboardEvent(e),t,!1);}_singleModifierDispatch(e,t){if(Ox(e))return!1;let i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Ok.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Ok.EMPTY,null===this._currentSingleModifier)?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null;},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1);let[s]=i.getChords();return this._ignoreSingleModifiers=new Ok(s),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1;}_doDispatch(e,t,i=!1){let n=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let s=null,o=null;if(i){let[t]=e.getSingleModifierDispatchChords();s=t,o=t?[t]:[];}else[s]=e.getDispatchChords(),o=this._currentChords.map(({keypress:e})=>e);if(null===s)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;let r=this._contextKeyService.getContext(t),a=e.getLabel(),l=this._getResolver().resolve(r,o,s);switch(l.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",a,"[ No matching keybinding ]"),this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status((0,iM.M)(1798,"The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),n=!0;}return n;case 1:return this._logService.trace("KeybindingService#dispatch",a,"[ Several keybindings match - more chords needed ]"),n=!0,this._expectAnotherChord(s,a),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),n;case 2:if(this._logService.trace("KeybindingService#dispatch",a,`[ Will dispatch command ${l.commandId} ]`),null===l.commandId||""===l.commandId){if(this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status((0,iM.M)(1799,"The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),n=!0;}}else{var _e$getUserSettingsLab;this.inChordMode&&this._leaveChordMode(),l.isBubble||(n=!0),this._log(`+ Invoking command ${l.commandId}.`),this._currentlyDispatchingCommandId=l.commandId;try{void 0===l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,e=>this._notificationService.warn(e));}finally{this._currentlyDispatchingCommandId=null;}OS.test(l.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding",detail:(_e$getUserSettingsLab=e.getUserSettingsLabel())!==null&&_e$getUserSettingsLab!==void 0?_e$getUserSettingsLab:void 0});}return n;}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(!!(e.keyCode>=31)&&!!(e.keyCode<=56)||!!(e.keyCode>=21)&&!!(e.keyCode<=30));}appendKeybinding(e,t,i,n){if(t){var _this$lookupKeybindin;let s=(_this$lookupKeybindin=this.lookupKeybinding(t,i,n))===null||_this$lookupKeybindin===void 0?void 0:_this$lookupKeybindin.getLabel();if(s)return(0,iM.M)(1800,"{0} ({1})",e,s);}return e;}}class Ok{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey;}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey;}}}_Ok=Ok;_Ok.EMPTY=new _Ok(null);class OD{constructor(e,t,i,n,s,o,r,a=!1){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?OM(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=OM(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=o,this.isBuiltinExtension=r,this.systemWide=a;}}function OM(e){let t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n)return[];t.push(n);}return t;}class OI extends nw{constructor(e,t){if(super(),0===t.length)throw(0,nf.X)("chords");this._os=e,this._chords=t;}getLabel(){return Av.toLabel(this._os,this._chords,e=>this._getLabel(e));}getAriaLabel(){return Ab.toLabel(this._os,this._chords,e=>this._getAriaLabel(e));}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:AC.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e));}getUserSettingsLabel(){return Aw.toLabel(this._os,this._chords,e=>this._getUserSettingsLabel(e));}hasMultipleChords(){return this._chords.length>1;}getChords(){return this._chords.map(e=>this._getChord(e));}_getChord(e){return new nC(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e));}getDispatchChords(){return this._chords.map(e=>this._getChordDispatch(e));}getSingleModifierDispatchChords(){return this._chords.map(e=>this._getSingleModifierChordDispatch(e));}}class ON extends OI{constructor(e,t){super(t,e);}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓";}return np.$.toString(e);}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode);}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":np.$.toString(e.keyCode);}_getElectronAccelerator(e){return np.$.toElectronAccelerator(e.keyCode);}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";let t=np.$.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t;}_getChordDispatch(e){return ON.getDispatchStr(e);}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=np.$.toString(e.keyCode);}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl";}static _scanCodeToKeyCode(e){let t=np.w[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:break;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97;}return 0;}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof nv)return e;let t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new nv(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t);}static resolveKeybinding(e,t){let i=OM(e.chords.map(e=>this._toKeyCodeChord(e)));return i.length>0?[new ON(i,t)]:[];}}let OE=ra("labelService");e.s(["f",0,OE],63492);class OT{get templateId(){return this.renderer.templateId;}constructor(e,t){this.renderer=e,this.modelProvider=t;}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:i8.N.None};}renderElement(e,t,i,n){var _i$disposable;if((_i$disposable=i.disposable)!==null&&_i$disposable!==void 0&&_i$disposable.dispose(),!i.data)return;let s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);let o=new n8.R(),r=s.resolve(e,o.token);i.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,i.data),r.then(t=>this.renderer.renderElement(t,e,i.data,n));}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0);}}class OR{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t;}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel();}getAriaLabel(e){let t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null;}}class OA{constructor(e,t,i,n,s={}){this.modelDisposables=new i8.q();let o=()=>this.model,r=n.map(e=>new OT(e,o));this.list=new Ai(e,t,i,r,{...s,accessibilityProvider:s.accessibilityProvider&&new OR(o,s.accessibilityProvider)});}updateOptions(e){this.list.updateOptions(e);}getHTMLElement(){return this.list.getHTMLElement();}get onDidFocus(){return this.list.onDidFocus;}get widget(){return this.list;}get onDidDispose(){return this.list.onDidDispose;}get onMouseDblClick(){return iv.C.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i}));}get onPointer(){return iv.C.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i}));}get onDidChangeSelection(){return iv.C.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:i}));}get model(){return this._model;}set model(e){this.modelDisposables.clear(),this._model=e,this.list.splice(0,this.list.length,(0,ip.q)(e.length)),this.modelDisposables.add(e.onDidIncrementLength(e=>this.list.splice(this.list.length,0,(0,ip.q)(this.list.length,e))));}getFocus(){return this.list.getFocus();}getSelection(){return this.list.getSelection();}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e));}style(e){this.list.style(e);}dispose(){this.list.dispose(),this.modelDisposables.dispose();}}var OO=i8,OP=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;};(ex=tz||(tz={})).North="north",ex.South="south",ex.East="east",ex.West="west";let OF=new iv.S(),OB=new iv.S();class OW{constructor(e){this.el=e,this.disposables=new OO.q();}get onPointerMove(){return this.disposables.add(new ff(sT(this.el),"mousemove")).event;}get onPointerUp(){return this.disposables.add(new ff(sT(this.el),"mouseup")).event;}dispose(){this.disposables.dispose();}}OP([pH],OW.prototype,"onPointerMove",null),OP([pH],OW.prototype,"onPointerUp",null);class OV{get onPointerMove(){return this.disposables.add(new ff(this.el,e7.Change)).event;}get onPointerUp(){return this.disposables.add(new ff(this.el,e7.End)).event;}constructor(e){this.el=e,this.disposables=new OO.q();}dispose(){this.disposables.dispose();}}OP([pH],OV.prototype,"onPointerMove",null),OP([pH],OV.prototype,"onPointerUp",null);class OH{get onPointerMove(){return this.factory.onPointerMove;}get onPointerUp(){return this.factory.onPointerUp;}constructor(e){this.factory=e;}dispose(){}}OP([pH],OH.prototype,"onPointerMove",null),OP([pH],OH.prototype,"onPointerUp",null);let Oz="pointer-events-disabled";class OU extends OO.N{get state(){return this._state;}get orthogonalStartSash(){return this._orthogonalStartSash;}get orthogonalEndSash(){return this._orthogonalEndSash;}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e));}get onDidStart(){return this._onDidStart.event;}get onDidChange(){return this._onDidChange.event;}get onDidReset(){return this._onDidReset.event;}get onDidEnd(){return this._onDidEnd.event;}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){let t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=oL(this.el,oN(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,OO.Q)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(s$(this._orthogonalStartDragHandle,"mouseenter",()=>OU.onMouseEnter(e))),this.orthogonalStartDragHandleDisposables.add(s$(this._orthogonalStartDragHandle,"mouseleave",()=>OU.onMouseLeave(e))));};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state);}this._orthogonalStartSash=e;}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){let t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=oL(this.el,oN(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,OO.Q)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(s$(this._orthogonalEndDragHandle,"mouseenter",()=>OU.onMouseEnter(e))),this.orthogonalEndDragHandleDisposables.add(s$(this._orthogonalEndDragHandle,"mouseleave",()=>OU.onMouseLeave(e))));};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state);}this._orthogonalEndSash=e;}}constructor(e,t,i){let n;super(),this.hoverDelay=300,this.hoverDelayer=this._register(new nI.h(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new iv.S()),this._onDidStart=this._register(new iv.S()),this._onDidChange=this._register(new iv.S()),this._onDidReset=this._register(new iv.S()),this._onDidEnd=this._register(new iv.S()),this.orthogonalStartSashDisposables=this._register(new OO.q()),this.orthogonalStartDragHandleDisposables=this._register(new OO.q()),this.orthogonalEndSashDisposables=this._register(new OO.q()),this.orthogonalEndDragHandleDisposables=this._register(new OO.q()),this.linkedSash=void 0,this.el=oL(e,oN(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),i_.e&&this.el.classList.add("mac"),this._register(s$(this.el,"mousedown",t=>this.onPointerStart(t,new OW(e)))),this._register(s$(this.el,"dblclick",e=>this.onPointerDoublePress(e))),this._register(s$(this.el,"mouseenter",()=>OU.onMouseEnter(this))),this._register(s$(this.el,"mouseleave",()=>OU.onMouseLeave(this))),this._register(pU.addTarget(this.el)),this._register(s$(this.el,e7.Start,e=>this.onPointerStart(e,new OV(this.el)))),this._register(s$(this.el,e7.Tap,e=>{if(n){clearTimeout(n),n=void 0,this.onPointerDoublePress(e);return;}clearTimeout(n),n=setTimeout(()=>n=void 0,250);})),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(OF.event(e=>{this.size=e,this.layout();}))),this._register(OB.event(e=>this.hoverDelay=e)),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout();}onPointerStart(e,t){ob.stop(e);let i=!1;if(!e.__orthogonalSashEvent){let n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new OH(t)));}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new OH(t))),!this.state)return;let n=this.el.ownerDocument.getElementsByTagName("iframe");for(let e of n)e.classList.add(Oz);let s=e.pageX,o=e.pageY,r=e.altKey;this.el.classList.add("active"),this._onDidStart.fire({startX:s,currentX:s,startY:o,currentY:o,altKey:r});let a=d6(this.el),l=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":i_.e?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":i_.e?"col-resize":"ew-resize",a.textContent=`* { cursor: ${e} !important; }`;},h=new OO.q();l(),i||this.onDidEnablementChange.event(l,null,h);let d=e=>{ob.stop(e,!1);let t={startX:s,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:r};this._onDidChange.fire(t);},c=e=>{for(let t of(ob.stop(e,!1),a.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),h.dispose(),n))t.classList.remove(Oz);};t.onPointerMove(d,null,h),t.onPointerUp(c,null,h),h.add(t);}onPointerDoublePress(e){let t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire();}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&OU.onMouseEnter(e.linkedSash,!0);}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&OU.onMouseLeave(e.linkedSash,!0);}clearSashHoverState(){OU.onMouseLeave(this);}layout(){if(0===this.orientation){let e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px");}else{let e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px");}}getOrthogonalSash(e){var _e$initialTarget;let t=(_e$initialTarget=e.initialTarget)!==null&&_e$initialTarget!==void 0?_e$initialTarget:e.target;if(t&&ou(t)&&t.classList.contains("orthogonal-drag-handle"))return t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash;}dispose(){super.dispose(),this.el.remove();}}e.s(["Z",0,tz,"N",0,OU],96044);var O$=i8;let OK={separatorBorder:ct.G.transparent};class Oq{set size(e){this._size=e;}get size(){return this._size;}get visible(){return void 0===this._cachedVisibleSize;}setVisible(e,t){if(e!==this.visible){e?(this.size=nA(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{var _this$view$setVisible,_this$view;(_this$view$setVisible=(_this$view=this.view).setVisible)===null||_this$view$setVisible===void 0||_this$view$setVisible.call(_this$view,e);}catch(e){console.error("Splitview: Failed to set visible view"),console.error(e);}}}get minimumSize(){return this.visible?this.view.minimumSize:0;}get viewMinimumSize(){return this.view.minimumSize;}get maximumSize(){return this.visible?this.view.maximumSize:0;}get viewMaximumSize(){return this.view.maximumSize;}get priority(){return this.view.priority;}get proportionalLayout(){var _this$view$proportion;return(_this$view$proportion=this.view.proportionalLayout)!==null&&_this$view$proportion!==void 0?_this$view$proportion:!0;}get snap(){return!!this.view.snap;}set enabled(e){this.container.style.pointerEvents=e?"":"none";}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize);}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t);}catch(e){console.error("Splitview: Failed to layout view"),console.error(e);}}dispose(){this.disposable.dispose();}}class Oj extends Oq{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`;}}class OG extends Oq{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`;}}(eL=tU||(tU={}))[eL.Idle=0]="Idle",eL[eL.Busy=1]="Busy",(ek=t$||(t$={})).Distribute={type:"distribute"},ek.Split=function(e){return{type:"split",index:e};},ek.Auto=function(e){return{type:"auto",index:e};},ek.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e};};class OQ extends O$.N{get orthogonalStartSash(){return this._orthogonalStartSash;}get orthogonalEndSash(){return this._orthogonalEndSash;}get startSnappingEnabled(){return this._startSnappingEnabled;}get endSnappingEnabled(){return this._endSnappingEnabled;}set orthogonalStartSash(e){for(let t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e;}set orthogonalEndSash(e){for(let t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e;}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement());}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement());}constructor(e,t={}){var _t$orientation,_t$inverseAltBehavior,_t$proportionalLayout,_t$scrollbarVisibilit,_t$scrollbarVisibilit2;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=tU.Idle,this._onDidSashChange=this._register(new iv.S()),this._onDidSashReset=this._register(new iv.S()),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(_t$orientation=t.orientation)!==null&&_t$orientation!==void 0?_t$orientation:0,this.inverseAltBehavior=(_t$inverseAltBehavior=t.inverseAltBehavior)!==null&&_t$inverseAltBehavior!==void 0?_t$inverseAltBehavior:!1,this.proportionalLayout=(_t$proportionalLayout=t.proportionalLayout)!==null&&_t$proportionalLayout!==void 0?_t$proportionalLayout:!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=oL(this.el,oN(".sash-container")),this.viewContainer=oN(".split-view-container"),this.scrollable=this._register(new p5({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>o(sT(this.el),e)})),this.scrollableElement=this._register(new fn(this.viewContainer,{vertical:0===this.orientation?(_t$scrollbarVisibilit=t.scrollbarVisibility)!==null&&_t$scrollbarVisibilit!==void 0?_t$scrollbarVisibilit:1:2,horizontal:1===this.orientation?(_t$scrollbarVisibilit2=t.scrollbarVisibility)!==null&&_t$scrollbarVisibilit2!==void 0?_t$scrollbarVisibilit2:1:2},this.scrollable));let i=this._register(new ff(this.viewContainer,"scroll")).event;this._register(i(e=>{let t=this.scrollableElement.getScrollPosition(),i=1>=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)?void 0:this.viewContainer.scrollLeft,n=1>=Math.abs(this.viewContainer.scrollTop-t.scrollTop)?void 0:this.viewContainer.scrollTop;(void 0!==i||void 0!==n)&&this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n});})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft);})),oL(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||OK),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((e,t)=>{let i=(0,sI.l)(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0);}),this._contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions());}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()));}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n);}layout(e,t){let i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){let n=this.viewItems[i],s=this.proportions[i];"number"==typeof s?t+=s:e-=n.size;}for(let i=0;i<this.viewItems.length;i++){let n=this.viewItems[i],s=this.proportions[i];"number"==typeof s&&t>0&&(n.size=nA(Math.round(s*e/t),n.minimumSize,n.maximumSize));}}else{let t=(0,ip.q)(this.viewItems.length),n=t.filter(e=>1===this.viewItems[e].priority),s=t.filter(e=>2===this.viewItems[e].priority);this.resize(this.viewItems.length-1,e-i,void 0,n,s);}this.distributeEmptySpace(),this.layoutViews();}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map(e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0));}onSashStart({sash:e,start:t,alt:i}){for(let e of this.viewItems)e.enabled=!1;let n=this.sashItems.findIndex(t=>t.sash===e),s=(0,O$.W)(s$(this.el.ownerDocument.body,"keydown",e=>o(this.sashDragState.current,e.altKey)),s$(this.el.ownerDocument.body,"keyup",()=>o(this.sashDragState.current,!1))),o=(e,t)=>{let i,o,r=this.viewItems.map(e=>e.size),a=-1/0,l=1/0;if(this.inverseAltBehavior&&(t=!t),t)if(n===this.sashItems.length-1){let e=this.viewItems[n];a=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2;}else{let e=this.viewItems[n+1];a=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2;}if(!t){let e=(0,ip.q)(n,-1),t=(0,ip.q)(n+1,this.viewItems.length),s=e.reduce((e,t)=>e+(this.viewItems[t].minimumSize-r[t]),0),a=e.reduce((e,t)=>e+(this.viewItems[t].viewMaximumSize-r[t]),0),l=0===t.length?1/0:t.reduce((e,t)=>e+(r[t]-this.viewItems[t].minimumSize),0),h=Math.max(s,0===t.length?-1/0:t.reduce((e,t)=>e+(r[t]-this.viewItems[t].viewMaximumSize),0)),d=Math.min(l,a),c=this.findFirstSnapIndex(e),u=this.findFirstSnapIndex(t);if("number"==typeof c){let e=this.viewItems[c],t=Math.floor(e.viewMinimumSize/2);i={index:c,limitDelta:e.visible?h-t:h+t,size:e.size};}if("number"==typeof u){let e=this.viewItems[u],t=Math.floor(e.viewMinimumSize/2);o={index:u,limitDelta:e.visible?d+t:d-t,size:e.size};}}this.sashDragState={start:e,current:e,index:n,sizes:r,minDelta:a,maxDelta:l,alt:t,snapBefore:i,snapAfter:o,disposable:s};};o(t,i);}onSashChange({current:e}){let{index:t,start:i,sizes:n,alt:s,minDelta:o,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;let h=this.resize(t,e-i,n,void 0,void 0,o,r,a,l);if(s){let e=t===this.sashItems.length-1,i=this.viewItems.map(e=>e.size),n=e?t:t+1,s=this.viewItems[n],o=s.size-s.maximumSize,r=s.size-s.minimumSize;this.resize(e?t-1:t+1,-h,i,void 0,void 0,o,r);}this.distributeEmptySpace(),this.layoutViews();}onSashEnd(e){for(let t of(this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions(),this.viewItems))t.enabled=!0;}onViewChange(e,t){let i=this.viewItems.indexOf(e);if(!(i<0)&&!(i>=this.viewItems.length))if(t=nA(t="number"==typeof t?t:e.size,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0)this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews();else{e.size=t;let n=(0,ip.q)(this.viewItems.length).filter(e=>e!==i),s=[...n.filter(e=>1===this.viewItems[e].priority),i],o=n.filter(e=>2===this.viewItems[e].priority);this.relayout(s,o);}}resizeView(e,t){if(!(e<0)&&!(e>=this.viewItems.length)){if(this.state!==tU.Idle)throw Error("Cant modify splitview");this.state=tU.Busy;try{let i=(0,ip.q)(this.viewItems.length).filter(t=>t!==e),n=[...i.filter(e=>1===this.viewItems[e].priority),e],s=i.filter(e=>2===this.viewItems[e].priority),o=this.viewItems[e];t=Math.round(t),t=nA(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(n,s);}finally{this.state=tU.Idle;}}}distributeViewSizes(){let e=[],t=0;for(let i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);let i=Math.floor(t/e.length);for(let t of e)t.size=nA(i,t.minimumSize,t.maximumSize);let n=(0,ip.q)(this.viewItems.length),s=n.filter(e=>1===this.viewItems[e].priority),o=n.filter(e=>2===this.viewItems[e].priority);this.relayout(s,o);}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size;}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==tU.Idle)throw Error("Cant modify splitview");this.state=tU.Busy;try{let s,o,r=oN(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));let a=e.onDidChange(e=>this.onViewChange(d,e)),l=(0,O$.Q)(()=>r.remove()),h=(0,O$.W)(a,l);"number"==typeof t?s=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),s="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);let d=0===this.orientation?new Oj(r,e,s,h):new OG(r,e,s,h);if(this.viewItems.splice(i,0,d),this.viewItems.length>1){let e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new OU(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new OU(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=iv.C.map(t.onDidStart,n)(this.onSashStart,this),o=iv.C.map(t.onDidChange,n)(this.onSashChange,this),r=iv.C.map(t.onDidEnd,()=>this.sashItems.findIndex(e=>e.sash===t))(this.onSashEnd,this),a=t.onDidReset(()=>{let e=this.sashItems.findIndex(e=>e.sash===t),i=(0,ip.q)(e,-1),n=(0,ip.q)(e+1,this.viewItems.length),s=this.findFirstSnapIndex(i),o=this.findFirstSnapIndex(n);"number"==typeof s&&!this.viewItems[s].visible||("number"!=typeof o||this.viewItems[o].visible)&&this._onDidSashReset.fire(e);}),l=(0,O$.W)(s,o,r,a,t);this.sashItems.splice(i-1,0,{sash:t,disposable:l});}r.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(o=[t.index]),n||this.relayout([i],o),n||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes();}finally{this.state=tU.Idle;}}relayout(e,t){let i=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions();}resize(e,t,i=this.viewItems.map(e=>e.size),n,s,o=-1/0,r=1/0,a,l){if(e<0||e>=this.viewItems.length)return 0;let h=(0,ip.q)(e,-1),d=(0,ip.q)(e+1,this.viewItems.length);if(s)for(let e of s)(0,ip.n)(h,e),(0,ip.n)(d,e);if(n)for(let e of n)(0,ip.v)(h,e),(0,ip.v)(d,e);let c=h.map(e=>this.viewItems[e]),u=h.map(e=>i[e]),g=d.map(e=>this.viewItems[e]),p=d.map(e=>i[e]),f=h.reduce((e,t)=>e+(this.viewItems[t].minimumSize-i[t]),0),m=h.reduce((e,t)=>e+(this.viewItems[t].maximumSize-i[t]),0),_=0===d.length?1/0:d.reduce((e,t)=>e+(i[t]-this.viewItems[t].minimumSize),0),v=Math.max(f,0===d.length?-1/0:d.reduce((e,t)=>e+(i[t]-this.viewItems[t].maximumSize),0),o),b=Math.min(_,m,r),C=!1;if(a){let e=this.viewItems[a.index],i=t>=a.limitDelta;C=i!==e.visible,e.setVisible(i,a.size);}if(!C&&l){let e=this.viewItems[l.index],i=t<l.limitDelta;C=i!==e.visible,e.setVisible(i,l.size);}if(C)return this.resize(e,t,i,n,s,o,r);t=nA(t,v,b);for(let e=0,i=t;e<c.length;e++){let t=c[e],n=nA(u[e]+i,t.minimumSize,t.maximumSize);i-=n-u[e],t.size=n;}for(let e=0,i=t;e<g.length;e++){let t=g[e],n=nA(p[e]-i,t.minimumSize,t.maximumSize);i+=n-p[e],t.size=n;}return t;}distributeEmptySpace(e){let t=this.viewItems.reduce((e,t)=>e+t.size,0),i=this.size-t,n=(0,ip.q)(this.viewItems.length-1,-1),s=n.filter(e=>1===this.viewItems[e].priority);for(let e of n.filter(e=>2===this.viewItems[e].priority))(0,ip.n)(n,e);for(let e of s)(0,ip.v)(n,e);"number"==typeof e&&(0,ip.v)(n,e);for(let e=0;0!==i&&e<n.length;e++){let t=this.viewItems[n[e]],s=nA(t.size+i,t.minimumSize,t.maximumSize);i-=s-t.size,t.size=s;}}layoutViews(){this._contentSize=this.viewItems.reduce((e,t)=>e+t.size,0);let e=0;for(let t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement();}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize});}updateSashEnablement(){let e=!1,t=this.viewItems.map(t=>e=t.size-t.minimumSize>0||e);e=!1;let i=this.viewItems.map(t=>e=t.maximumSize-t.size>0||e),n=[...this.viewItems].reverse();e=!1;let s=n.map(t=>e=t.size-t.minimumSize>0||e).reverse();e=!1;let o=n.map(t=>e=t.maximumSize-t.size>0||e).reverse(),r=0;for(let e=0;e<this.sashItems.length;e++){let{sash:n}=this.sashItems[e];r+=this.viewItems[e].size;let a=!(t[e]&&o[e+1]),l=!(i[e]&&s[e+1]);if(a&&l){let i=(0,ip.q)(e,-1),o=(0,ip.q)(e+1,this.viewItems.length),a=this.findFirstSnapIndex(i),l=this.findFirstSnapIndex(o),h="number"==typeof a&&!this.viewItems[a].visible,d="number"==typeof l&&!this.viewItems[l].visible;h&&s[e]&&(r>0||this.startSnappingEnabled)?n.state=1:d&&t[e]&&(r<this._contentSize||this.endSnappingEnabled)?n.state=2:n.state=0;}else a&&!l?n.state=1:!a&&l?n.state=2:n.state=3;}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0;}findFirstSnapIndex(e){for(let t of e){let e=this.viewItems[t];if(e.visible&&e.snap)return t;}for(let t of e){let e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)break;if(!e.visible&&e.snap)return t;}}areViewsDistributed(){let e,t;for(let i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),(t=void 0===t?i.size:Math.max(t,i.size))-e>2)return!1;return!0;}dispose(){var _this$sashDragState;(_this$sashDragState=this.sashDragState)!==null&&_this$sashDragState!==void 0&&_this$sashDragState.disposable.dispose(),(0,O$.d)(this.viewItems),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[],super.dispose();}}e.s(["k",0,t$,"v",0,OQ],18046);var OZ=i8;class OY{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=OY.TemplateId,this.renderedTemplates=new Set();let n=new Map(t.map(e=>[e.templateId,e]));for(let t of(this.renderers=[],e)){let e=n.get(t.templateId);if(!e)throw Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e);}}renderTemplate(e){let t=oL(e,oN(".monaco-table-tr")),i=[],n=[];for(let e=0;e<this.columns.length;e++){let s=this.renderers[e],o=oL(t,oN(".monaco-table-td",{"data-col-index":e}));o.style.width=`${this.getColumnSize(e)}px`,i.push(o),n.push(s.renderTemplate(o));}let s={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(s),s;}renderElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){let o=this.columns[s].project(e);this.renderers[s].renderElement(o,t,i.cellTemplateData[s],n);}}disposeElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){let o=this.renderers[s];if(o.disposeElement){let r=this.columns[s].project(e);o.disposeElement(r,t,i.cellTemplateData[s],n);}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++)this.renderers[t].disposeTemplate(e.cellTemplateData[t]);sz(e.container),this.renderedTemplates.delete(e);}layoutColumn(e,t){for(let{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`;}}_OY=OY;_OY.TemplateId="row";class OX extends OZ.N{get minimumSize(){var _this$column$minimumW;return(_this$column$minimumW=this.column.minimumWidth)!==null&&_this$column$minimumW!==void 0?_this$column$minimumW:120;}get maximumSize(){var _this$column$maximumW;return(_this$column$maximumW=this.column.maximumWidth)!==null&&_this$column$maximumW!==void 0?_this$column$maximumW:1/0;}get onDidChange(){var _this$column$onDidCha;return(_this$column$onDidCha=this.column.onDidChangeWidthConstraints)!==null&&_this$column$onDidCha!==void 0?_this$column$onDidCha:iv.C.None;}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=this._register(new iv.S()),this.onDidLayout=this._onDidLayout.event,this.element=oN(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register(RC().setupManagedHover(Rf("mouse"),this.element,e.tooltip));}layout(e){this._onDidLayout.fire([this.index,e]);}}class OJ{get onDidChangeFocus(){return this.list.onDidChangeFocus;}get onDidChangeSelection(){return this.list.onDidChangeSelection;}get onDidScroll(){return this.list.onDidScroll;}get onMouseDblClick(){return this.list.onMouseDblClick;}get onPointer(){return this.list.onPointer;}get onDidFocus(){return this.list.onDidFocus;}get scrollTop(){return this.list.scrollTop;}set scrollTop(e){this.list.scrollTop=e;}get scrollHeight(){return this.list.scrollHeight;}get renderHeight(){return this.list.renderHeight;}get onDidDispose(){return this.list.onDidDispose;}constructor(e,t,i,n,s,o){this.virtualDelegate=i,this.columns=n,this.domId=`table_id_${++OJ.InstanceCount}`,this.disposables=new OZ.q(),this.cachedWidth=0,this.cachedHeight=0,this.domNode=oL(t,oN(`.monaco-table.${this.domId}`));let r=n.map((e,t)=>this.disposables.add(new OX(e,t))),a={size:r.reduce((e,t)=>e+t.column.weight,0),views:r.map(e=>({size:e.column.weight,view:e}))};this.splitview=this.disposables.add(new OQ(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:a})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;let l=new OY(n,s,e=>this.splitview.getViewSize(e));this.list=this.disposables.add(new Ai(e,this.domNode,{getHeight:e=>i.getHeight(e),getTemplateId:()=>OY.TemplateId},[l],o)),iv.C.any(...r.map(e=>e.onDidLayout))(([e,t])=>l.layoutColumn(e,t),null,this.disposables),this.splitview.onDidSashReset(e=>{let t=n.reduce((e,t)=>e+t.weight,0),i=n[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i);},null,this.disposables),this.styleElement=d6(this.domNode),this.style(R6);}updateOptions(e){this.list.updateOptions(e);}splice(e,t,i=[]){this.list.splice(e,t,i);}getHTMLElement(){return this.domNode;}style(e){let t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
|
|
727
727
|
top: ${this.virtualDelegate.headerRowHeight+1}px;
|
|
728
728
|
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
|
|
729
|
-
}`),this.styleElement.textContent=t.join("\n"),this.list.style(e);}getSelectedElements(){return this.list.getSelectedElements();}getSelection(){return this.list.getSelection();}getFocus(){return this.list.getFocus();}dispose(){this.disposables.dispose();}}_OJ=OJ;_OJ.InstanceCount=0;var O0=i8;let O1={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class O2 extends Ac{constructor(e,t,i){var _i$toggleStyles,_i$toggleStyles2,_i$toggleStyles3;super(e,t,i);let n=this.options.keybinding?`${this._action.label} (${this.options.keybinding})`:this._action.label;this.toggle=this._register(new O3({actionClassName:this._action.class,isChecked:!!this._action.checked,title:n,notFocusable:!0,inputActiveOptionBackground:(_i$toggleStyles=i.toggleStyles)===null||_i$toggleStyles===void 0?void 0:_i$toggleStyles.inputActiveOptionBackground,inputActiveOptionBorder:(_i$toggleStyles2=i.toggleStyles)===null||_i$toggleStyles2===void 0?void 0:_i$toggleStyles2.inputActiveOptionBorder,inputActiveOptionForeground:(_i$toggleStyles3=i.toggleStyles)===null||_i$toggleStyles3===void 0?void 0:_i$toggleStyles3.inputActiveOptionForeground})),this._register(this.toggle.onChange(()=>{this._action.checked=!!this.toggle&&this.toggle.checked;}));}render(e){this.element=e,this.element.appendChild(this.toggle.domNode),this.updateChecked(),this.updateEnabled();}updateEnabled(){var _this$element6,_this$element7;this.toggle&&(this.isEnabled()?(this.toggle.enable(),(_this$element6=this.element)===null||_this$element6===void 0?void 0:_this$element6.classList.remove("disabled")):(this.toggle.disable(),(_this$element7=this.element)===null||_this$element7===void 0?void 0:_this$element7.classList.add("disabled")));}updateChecked(){this.toggle.checked=!!this._action.checked;}updateLabel(){let e=this.options.keybinding?`${this._action.label} (${this.options.keybinding})`:this._action.label;this.toggle.setTitle(e);}focus(){this.toggle.domNode.tabIndex=0,this.toggle.focus();}blur(){this.toggle.domNode.tabIndex=-1,this.toggle.domNode.blur();}setFocusable(e){this.toggle.domNode.tabIndex=e?0:-1;}}class O3 extends pG{get onChange(){return this._onChange.event;}get onKeyDown(){return this._onKeyDown.event;}constructor(e){super(),this._onChange=this._register(new iv.S()),this._onKeyDown=this._register(new iv.S()),this._opts=e,this._title=this._opts.title,this._checked=this._opts.isChecked;let t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...eY.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._register(RC().setupDelayedHover(this.domNode,()=>({content:DB(this._title)||ou(this._title)?this._title:DT(this._title),style:1}),this._opts.hoverLifecycleOptions)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.setTitle(this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault(),e.stopPropagation());}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,e=>{if(this.enabled){if(10===e.keyCode||3===e.keyCode){this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),e.stopPropagation();return;}this._onKeyDown.fire(e);}});}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled");}focus(){this.domNode.focus();}get checked(){return this._checked;}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles();}setIcon(e){this._icon&&this.domNode.classList.remove(...eY.asClassNameArray(this._icon)),this._icon=e,this._icon&&this.domNode.classList.add(...eY.asClassNameArray(this._icon));}width(){return 22;}applyStyles(){this.domNode&&(this._checked&&this._opts.inputActiveOptionBorder?this.domNode.style.setProperty("--monaco-custom-toggle-border-color",this._opts.inputActiveOptionBorder):this.domNode.style.removeProperty("--monaco-custom-toggle-border-color"),this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"");}enable(){this.domNode.setAttribute("aria-disabled",String(!1)),this.domNode.classList.remove("disabled"),this._opts.notFocusable||(this.domNode.tabIndex=0);}disable(){this.domNode.setAttribute("aria-disabled",String(!0)),this.domNode.classList.add("disabled"),this._opts.notFocusable||(this.domNode.tabIndex=-1);}setTitle(e){this._title=e;let t="string"==typeof e?e:DB(e)?e.value:e.textContent;this.domNode.setAttribute("aria-label",DR(t));}}class O5 extends pG{constructor(e,t,i){super(),this.checkbox=e,this.domNode=t,this.styles=i,this._onChange=this._register(new iv.S()),this.onChange=this._onChange.event,this.applyStyles();}get enabled(){return this.checkbox.enabled;}enable(){this.checkbox.enable(),this.applyStyles(!0);}disable(){this.checkbox.disable(),this.applyStyles(!1);}setTitle(e){this.checkbox.setTitle(e);}applyStyles(e=this.enabled){this.domNode.style.color=(e?this.styles.checkboxForeground:this.styles.checkboxDisabledForeground)||"",this.domNode.style.backgroundColor=(e?this.styles.checkboxBackground:this.styles.checkboxDisabledBackground)||"",this.domNode.style.borderColor=(e?this.styles.checkboxBorder:this.styles.checkboxDisabledBackground)||"";let t=this.styles.size||18;this.domNode.style.width=this.domNode.style.height=this.domNode.style.fontSize=`${t}px`,this.domNode.style.fontSize=`${t-2}px`;}}_O2=O5;_O2.CLASS_NAME="monaco-checkbox";class O6 extends O5{constructor(e,t,i){let n=new O3({title:e,isChecked:t,icon:rC.f.check,actionClassName:O5.CLASS_NAME,hoverLifecycleOptions:i.hoverLifecycleOptions,...O1});super(n,n.domNode,i),this._register(n),this._register(this.checkbox.onChange(e=>{this.applyStyles(),this._onChange.fire(e);}));}get checked(){return this.checkbox.checked;}set checked(e){this.checkbox.checked=e,this.applyStyles();}applyStyles(e){this.checkbox.checked?this.checkbox.setIcon(rC.f.check):this.checkbox.setIcon(void 0),super.applyStyles(e);}}class O4 extends O5{constructor(e,t,i){let n;switch(t){case!0:n=rC.f.check;break;case"mixed":n=rC.f.dash;break;case!1:n=void 0;}let s=new O3({title:e,isChecked:!0===t,icon:n,actionClassName:O6.CLASS_NAME,hoverLifecycleOptions:i.hoverLifecycleOptions,...O1});super(s,s.domNode,i),this._state=t,this._register(s),this._register(this.checkbox.onChange(e=>{this._state=this.checkbox.checked,this.applyStyles(),this._onChange.fire(e);}));}get checked(){return this._state;}set checked(e){this._state!==e&&(this._state=e,this.checkbox.checked=!0===e,this.applyStyles());}applyStyles(e){switch(this._state){case!0:this.checkbox.setIcon(rC.f.check);break;case"mixed":this.checkbox.setIcon(rC.f.dash);break;case!1:this.checkbox.setIcon(void 0);}super.applyStyles(e);}}function O9(e){return(t,i)=>{if(void 0!==t.checked)return new O2(null,t,{...i,toggleStyles:e});};}function O8(e,t,i,n){if(e.equals(15)||e.equals(17)||e.equals(9)){let s=i(),o=s.indexOf(t.ownerDocument.activeElement);if(o>=0){let t=-1;e.equals(17)?t=(o+1)%s.length:e.equals(15)&&(t=0===o?s.length-1:o-1),e.equals(9)?(s[o].blur(),n()):t>=0&&s[t].focus(),ob.stop(e,!0);}}}e.s(["r",0,O6,"z",0,O3,"w",0,O4,"p",0,O9],51845);let O7=(0,iM.M)(2,"Match Case"),Pe=(0,iM.M)(3,"Match Whole Word"),Pt=(0,iM.M)(4,"Use Regular Expression");class Pi extends O3{constructor(e){super({icon:rC.f.caseSensitive,title:O7+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground});}}class Pn extends O3{constructor(e){super({icon:rC.f.wholeWord,title:Pe+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground});}}class Ps extends O3{constructor(e){super({icon:rC.f.regex,title:Pt+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground});}}e.s(["Q",0,Pi,"R",0,Ps,"S",0,Pn,"f",0,O8],6726);class Po{constructor(e){this.source=e,this.index=0;}eos(){return this.index>=this.source.length;}next(){let e=this.peek();return this.advance(),e;}peek(){return this.source[this.index];}advance(){this.index++;}}function Pr(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0;}}class Pa{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n;}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index];}next(){return this.index=Math.min(this.index+1,this.end),this.current();}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current();}first(){return this.index=this.start,this.current();}last(){return this.index=this.end-1,this.current();}}class Pl{constructor(e=new Set(),t=10){this._history=e,this._limit=t,this._onChange(),this._history.onDidChange&&(this._disposable=this._history.onDidChange(()=>this._onChange()));}getHistory(){return this._elements;}add(e){this._history.delete(e),this._history.add(e),this._onChange();}next(){return this._navigator.next();}previous(){return 0!==this._currentPosition()?this._navigator.previous():null;}current(){return this._navigator.current();}first(){return this._navigator.first();}last(){return this._navigator.last();}isLast(){return this._currentPosition()>=this._elements.length-1;}isNowhere(){return null===this._navigator.current();}has(e){return this._history.has(e);}_onChange(){this._reduceToLimit();let e=this._elements;this._navigator=new Pa(e,0,e.length,e.length);}_reduceToLimit(){let e=this._elements;if(e.length>this._limit){let t=e.slice(e.length-this._limit);this._history.replace?this._history.replace(t):this._history=new Set(t);}}_currentPosition(){let e=this._navigator.current();return e?this._elements.indexOf(e):-1;}get _elements(){let e=[];return this._history.forEach(t=>e.push(t)),e;}dispose(){this._disposable&&(this._disposable.dispose(),this._disposable=void 0);}}class Ph extends pG{get onDidChange(){return this._onDidChange.event;}get onDidHeightChange(){return this._onDidHeightChange.event;}constructor(e,t,i){var _this$options$tooltip;super(),this.state="idle",this.maxHeight=1/0,this.hover=this._register(new i8.k()),this.messageResizeObserver=this._register(new i8.k()),this._onDidChange=this._register(new iv.S()),this._onDidHeightChange=this._register(new iv.S()),this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(_this$options$tooltip=this.options.tooltip)!==null&&_this$options$tooltip!==void 0?_this$options$tooltip:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=oL(e,oN(".monaco-inputbox.idle"));let n=this.options.flexibleHeight?"textarea":"input",s=oL(this.element,oN(".ibwrapper"));if(this.input=oL(s,oN(n+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:1/0,this.mirror=oL(s,oN("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new fi(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),oL(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));let t=this._register(new ff(e.ownerDocument,"selectionchange")),i=iv.C.filter(t.event,()=>{let t=e.ownerDocument.getSelection();return(t===null||t===void 0?void 0:t.anchorNode)===s;});this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this));}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this._register(this.ignoreGesture(this.input)),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new A5(this.element,{actionViewItemProvider:this.options.actionViewItemProvider})),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles();}setActions(e,t){this.actionbar?(this.actionbar.clear(),e&&this.actionbar.push(e,{icon:!0,label:!1})):e&&(this.actionbar=this._register(new A5(this.element,{actionViewItemProvider:t!==null&&t!==void 0?t:this.options.actionViewItemProvider})),this.actionbar.push(e,{icon:!0,label:!1}));}get actionsWidth(){var _this$actionbar$getCo,_this$actionbar;return(_this$actionbar$getCo=(_this$actionbar=this.actionbar)===null||_this$actionbar===void 0?void 0:_this$actionbar.getContainer().offsetWidth)!==null&&_this$actionbar$getCo!==void 0?_this$actionbar$getCo:0;}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","");}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"");}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e);}setTooltip(e){this.tooltip=e,this.hover.value||(this.hover.value=this._register(RC().setupDelayedHoverAtMouse(this.input,()=>({content:this.tooltip,appearance:{compact:!0}}))));}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label");}get inputElement(){return this.input;}get value(){return this.input.value;}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange());}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:oe(this.element);}focus(){this.input.focus();}blur(){this.input.blur();}hasFocus(){return oa(this.input);}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth));}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd;}getSelection(){var _this$input$selection;let e=this.input.selectionStart;if(null===e)return null;let t=(_this$input$selection=this.input.selectionEnd)!==null&&_this$input$selection!==void 0?_this$input$selection:e;return{start:e,end:t};}enable(){this.input.removeAttribute("disabled");}disable(){this.blur(),this.input.disabled=!0,this._hideMessage();}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px");}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;let e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i});}showMessage(e,t){if("open"===this.state&&(0,im.m)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));let i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${Rs(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage();}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles();}validate(){var _e8;let e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),(_e8=e)===null||_e8===void 0?void 0:_e8.type;}stylesForType(e){let t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground};}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error";}}_showMessage(){let e;if(!this.contextViewProvider||!this.message)return;let t=()=>e.style.width=s9(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var _a$background,_a$foreground;var n,s,o;if(!this.message)return null;e=oL(i,oN(".monaco-inputbox-container")),t();let r=oN("span.monaco-inputbox-message");if(this.message.formatContent){var _s9,_s0;let e;n=this.message.content,s=void 0,(e=r!==null&&r!==void 0?r:document.createElement("div")).textContent="",function e(t,i,n,s){let o;if(2===i.type)o=document.createTextNode(i.content||"");else if(3===i.type)o=document.createElement("b");else if(4===i.type)o=document.createElement("i");else if(7===i.type&&s)o=document.createElement("code");else if(5===i.type&&n){let e=document.createElement("a");n.disposables.add(sq(e,"click",e=>{n.callback(String(i.index),e);})),o=e;}else 8===i.type?o=document.createElement("br"):1===i.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(i.children)&&i.children.forEach(t=>{e(o,t,n,s);});}(e,function(e){let t={type:1,children:[]},i=0,n=t,s=[],o=new Po(e);for(;!o.eos();){let e=o.next(),t="\\"===e&&0!==Pr(o.peek());if(t&&(e=o.next()),t||0===Pr(e)||e!==o.peek()){if("\n"===e)2===n.type&&(n=s.pop()),n.children.push({type:8});else if(2!==n.type){let t={type:2,content:e};n.children.push(t),s.push(n),n=t;}else n.content+=e;}else{o.advance(),2===n.type&&(n=s.pop());let t=Pr(e);if(n.type===t||5===n.type&&6===t)n=s.pop();else{let e={type:t,children:[]};5===t&&(e.index=i,i++),n.children.push(e),s.push(n),n=e;}}}return 2===n.type&&(n=s.pop()),t;}(n),(_s9=s)===null||_s9===void 0?void 0:_s9.actionHandler,(_s0=s)===null||_s0===void 0?void 0:_s0.renderCodeSegments);}else o=this.message.content,(r!==null&&r!==void 0?r:document.createElement("div")).textContent=o;r.classList.add(this.classForType(this.message.type));let a=this.stylesForType(this.message.type);return r.style.backgroundColor=(_a$background=a.background)!==null&&_a$background!==void 0?_a$background:"",r.style.color=(_a$foreground=a.foreground)!==null&&_a$foreground!==void 0?_a$foreground:"",r.style.border=a.border?`1px solid ${a.border}`:"",oL(e,r),null;},onHide:()=>{this.state="closed",this.messageResizeObserver.clear();},layout:t}),this.observeElementResize(),dI(3===this.message.type?(0,iM.M)(9,"Error: {0}",this.message.content):2===this.message.type?(0,iM.M)(10,"Warning: {0}",this.message.content):(0,iM.M)(11,"Info: {0}",this.message.content)),this.state="open";}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.messageResizeObserver.clear(),this.state="idle");}observeElementResize(){let e=new i8.q(),t=e.add(new oB("InputBox.validationMessage",()=>{this.element.isConnected&&s9(this.element)>0&&this.layoutMessage();},sT(this.element)));e.add(t.observe(this.element)),this.messageResizeObserver.value=e;}layoutMessage(){"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout();}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout(),this.options.hideHoverOnValueChange&&RC().hideHover();}updateMirror(){if(!this.mirror)return;let e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout();}applyStyles(){var _e$inputBackground,_e$inputForeground,_e$inputBorder;let e=this.options.inputBoxStyles,t=(_e$inputBackground=e.inputBackground)!==null&&_e$inputBackground!==void 0?_e$inputBackground:"",i=(_e$inputForeground=e.inputForeground)!==null&&_e$inputForeground!==void 0?_e$inputForeground:"",n=(_e$inputBorder=e.inputBorder)!==null&&_e$inputBorder!==void 0?_e$inputBorder:"";this.element.style.backgroundColor=t,this.element.style.color=i,this.input.style.backgroundColor="inherit",this.input.style.color=i,this.element.style.border=`1px solid ${Rs(n,"transparent")}`;}layout(){if(!this.mirror)return void this.layoutMessage();let e=this.cachedContentHeight;this.cachedContentHeight=oe(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight)),this.layoutMessage();}insertAtCursor(e){let t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;null!==i&&null!==n&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout());}dispose(){var _this$actionbar2;this._hideMessage(),this.message=null,(_this$actionbar2=this.actionbar)!==null&&_this$actionbar2!==void 0&&_this$actionbar2.dispose(),super.dispose();}}class Pd extends Ph{constructor(e,t,i){let n=(0,iM.M)(12," or {0} for history","⇅"),s=(0,iM.M)(13," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new iv.S()),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new iv.S()),this.onDidBlur=this._onDidBlur.event,this.history=this._register(new Pl(i.history,100));let o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){let e=this.placeholder.endsWith(")")?n:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&!oa(this.input)?this.placeholder=t:this.setPlaceHolder(t);}};this.observer=new MutationObserver((e,t)=>{e.forEach(e=>{e.target.textContent||o();});}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>o()),this.onblur(this.input,()=>{let e=e=>{if(!this.placeholder.endsWith(e))return!1;{let t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0;}};e(s)||e(n);});}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0);}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value);}isAtLastInHistory(){return this.history.isLast();}isNowhereInHistory(){return this.history.isNowhere();}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e!==null&&e!==void 0?e:"",dN(this.value?this.value:(0,iM.M)(14,"Cleared Input"));}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,dN(this.value));}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e);}onBlur(){super.onBlur(),this._onDidBlur.fire();}onFocus(){super.onFocus(),this._onDidFocus.fire();}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e;}getPreviousValue(){return this.history.previous()||this.history.first();}getNextValue(){return this.history.next();}}e.s(["f",0,Pd],30296);let Pc=(0,iM.M)(1,"input");class Pu extends pG{get onDidOptionChange(){return this._onDidOptionChange.event;}get onKeyDown(){return this._onKeyDown.event;}get onMouseDown(){return this._onMouseDown.event;}get onCaseSensitiveKeyDown(){return this._onCaseSensitiveKeyDown.event;}get onRegexKeyDown(){return this._onRegexKeyDown.event;}constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new i8.k()),this.additionalToggles=[],this._onDidOptionChange=this._register(new iv.S()),this._onKeyDown=this._register(new iv.S()),this._onMouseDown=this._register(new iv.S()),this._onInput=this._register(new iv.S()),this._onKeyUp=this._register(new iv.S()),this._onCaseSensitiveKeyDown=this._register(new iv.S()),this._onRegexKeyDown=this._register(new iv.S()),this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||Pc,this.showCommonFindToggles=!!i.showCommonFindToggles;let n=i.appendCaseSensitiveLabel||"",s=i.appendWholeWordsLabel||"",o=i.appendRegexLabel||"",r=!!i.flexibleHeight,a=!!i.flexibleWidth,l=i.flexibleMaxHeight;if(this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new Pd(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},showHistoryHint:i.showHistoryHint,flexibleHeight:r,flexibleWidth:a,flexibleMaxHeight:l,inputBoxStyles:i.inputBoxStyles,history:i.history,actions:i.actions,actionViewItemProvider:i.actionViewItemProvider,hideHoverOnValueChange:i.hideHoverOnValueChange})),this.showCommonFindToggles){let e=(i===null||i===void 0?void 0:i.hoverLifecycleOptions)||{groupId:"find-input"};this.regex=this._register(new Ps({appendTitle:o,isChecked:!1,hoverLifecycleOptions:e,...i.toggleStyles})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate();})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e);})),this.wholeWords=this._register(new Pn({appendTitle:s,isChecked:!1,hoverLifecycleOptions:e,...i.toggleStyles})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate();})),this.caseSensitive=this._register(new Pi({appendTitle:n,isChecked:!1,hoverLifecycleOptions:e,...i.toggleStyles})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate();})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e);})),this.onkeydown(this.domNode,e=>{O8(e,this.domNode,()=>this.getToggleDomNodes(),()=>this.inputBox.focus());});}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(i===null||i===void 0?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e!==null&&e!==void 0&&e.appendChild(this.domNode),this._register(s$(this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0;})),this._register(s$(this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire({fromCompositionEnd:!0});})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire({fromCompositionEnd:!1})),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e));}get onDidChange(){return this.inputBox.onDidChange;}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget);}enable(){for(let e of(this.domNode.classList.remove("disabled"),this.inputBox.enable(),(_this$regex=this.regex)!==null&&_this$regex!==void 0&&_this$regex.enable(),(_this$wholeWords=this.wholeWords)!==null&&_this$wholeWords!==void 0&&_this$wholeWords.enable(),(_this$caseSensitive=this.caseSensitive)!==null&&_this$caseSensitive!==void 0&&_this$caseSensitive.enable(),this.additionalToggles)){var _this$regex,_this$wholeWords,_this$caseSensitive;e.enable();}}disable(){for(let e of(this.domNode.classList.add("disabled"),this.inputBox.disable(),(_this$regex2=this.regex)!==null&&_this$regex2!==void 0&&_this$regex2.disable(),(_this$wholeWords2=this.wholeWords)!==null&&_this$wholeWords2!==void 0&&_this$wholeWords2.disable(),(_this$caseSensitive2=this.caseSensitive)!==null&&_this$caseSensitive2!==void 0&&_this$caseSensitive2.disable(),this.additionalToggles)){var _this$regex2,_this$wholeWords2,_this$caseSensitive2;e.disable();}}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e;}setEnabled(e){e?this.enable():this.disable();}setAdditionalToggles(e){for(let e of this.additionalToggles)e.domNode.remove();for(let t of(this.additionalToggles=[],this.additionalTogglesDisposables.value=new i8.q(),e!==null&&e!==void 0?e:[]))this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus();})),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding();}getToggleDomNodes(){let e=[];for(let t of(this.caseSensitive&&e.push(this.caseSensitive.domNode),this.wholeWords&&e.push(this.wholeWords.domNode),this.regex&&e.push(this.regex.domNode),this.additionalToggles))e.push(t.domNode);return e;}setActions(e,t){this.inputBox.setActions(e,t),this.updateInputBoxPadding();}updateInputBoxPadding(e=!1){var _this$caseSensitive$w,_this$caseSensitive3,_this$wholeWords$widt,_this$wholeWords3,_this$regex$width,_this$regex3;let t=e?0:((_this$caseSensitive$w=(_this$caseSensitive3=this.caseSensitive)===null||_this$caseSensitive3===void 0?void 0:_this$caseSensitive3.width())!==null&&_this$caseSensitive$w!==void 0?_this$caseSensitive$w:0)+((_this$wholeWords$widt=(_this$wholeWords3=this.wholeWords)===null||_this$wholeWords3===void 0?void 0:_this$wholeWords3.width())!==null&&_this$wholeWords$widt!==void 0?_this$wholeWords$widt:0)+((_this$regex$width=(_this$regex3=this.regex)===null||_this$regex3===void 0?void 0:_this$regex3.width())!==null&&_this$regex$width!==void 0?_this$regex$width:0)+this.additionalToggles.reduce((e,t)=>e+t.width(),0);this.inputBox.paddingRight=t+this.inputBox.actionsWidth;}getValue(){return this.inputBox.value;}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e);}select(){this.inputBox.select();}focus(){this.inputBox.focus();}getCaseSensitive(){var _this$caseSensitive$c,_this$caseSensitive4;return(_this$caseSensitive$c=(_this$caseSensitive4=this.caseSensitive)===null||_this$caseSensitive4===void 0?void 0:_this$caseSensitive4.checked)!==null&&_this$caseSensitive$c!==void 0?_this$caseSensitive$c:!1;}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e);}getWholeWords(){var _this$wholeWords$chec,_this$wholeWords4;return(_this$wholeWords$chec=(_this$wholeWords4=this.wholeWords)===null||_this$wholeWords4===void 0?void 0:_this$wholeWords4.checked)!==null&&_this$wholeWords$chec!==void 0?_this$wholeWords$chec:!1;}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e);}getRegex(){var _this$regex$checked,_this$regex4;return(_this$regex$checked=(_this$regex4=this.regex)===null||_this$regex4===void 0?void 0:_this$regex4.checked)!==null&&_this$regex$checked!==void 0?_this$regex$checked:!1;}setRegex(e){this.regex&&(this.regex.checked=e,this.validate());}focusOnCaseSensitive(){var _this$caseSensitive5;(_this$caseSensitive5=this.caseSensitive)===null||_this$caseSensitive5===void 0||_this$caseSensitive5.focus();}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions);}validate(){this.inputBox.validate();}showMessage(e){this.inputBox.showMessage(e);}clearMessage(){this.inputBox.hideMessage();}}e.s(["f",0,Pu],63491),(eD=tK||(tK={}))[eD.Expanded=0]="Expanded",eD[eD.Collapsed=1]="Collapsed",eD[eD.PreserveOrExpanded=2]="PreserveOrExpanded",eD[eD.PreserveOrCollapsed=3]="PreserveOrCollapsed",(eM=tq||(tq={}))[eM.Unknown=0]="Unknown",eM[eM.Twistie=1]="Twistie",eM[eM.Element=2]="Element",eM[eM.Filter=3]="Filter";class Pg extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`);}}class Pp{constructor(e){this.fn=e,this._map=new WeakMap();}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t;}}var Pf=e.i(82009),Pm=e.i(92930);function P_(e){return!!e&&void 0!==e.visibility;}function Pv(e){switch(e){case!0:return 1;case!1:return 0;default:return e;}}function Pb(e){return"collapsible"in e;}class PC{constructor(e,t,i={}){var _i$allowNonCollapsibl;this.user=e,this.rootRef=[],this.eventBufferer=new iv.s(),this._onDidSpliceModel=new iv.S(),this.onDidSpliceModel=this._onDidSpliceModel.event,this._onDidSpliceRenderedNodes=new iv.S(),this.onDidSpliceRenderedNodes=this._onDidSpliceRenderedNodes.event,this._onDidChangeCollapseState=new iv.S(),this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new iv.S(),this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this.refilterDelayer=new nI.h(Pf.f),this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.allowNonCollapsibleParents=(_i$allowNonCollapsibl=i.allowNonCollapsibleParents)!==null&&_i$allowNonCollapsibl!==void 0?_i$allowNonCollapsibl:!1,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:t,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0};}splice(e,t,i=rw.f.empty(),n={}){if(0===e.length)throw new Pg(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n);}spliceSmart(e,t,i,n=rw.f.empty(),s,o=(_s$diffDepth=>(_s$diffDepth=s.diffDepth)!==null&&_s$diffDepth!==void 0?_s$diffDepth:0)()){let{parentNode:r}=this.getParentNodeWithListIndex(t);if(!r.lastDiffIds)return this.spliceSimple(t,i,n,s);let a=[...n],l=t[t.length-1],h=new Pm.C({getElements:()=>r.lastDiffIds},{getElements:()=>[...r.children.slice(0,l),...a,...r.children.slice(l+i)].map(t=>e.getId(t.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return r.lastDiffIds=void 0,this.spliceSimple(t,i,a,s);let d=t.slice(0,-1),c=(t,i,n)=>{if(o>0)for(let r=0;r<n;r++)t--,i--,this.spliceSmart(e,[...d,t,0],Number.MAX_SAFE_INTEGER,a[i].children,s,o-1);},u=Math.min(r.children.length,l+i),g=a.length;for(let e of h.changes.sort((e,t)=>t.originalStart-e.originalStart))c(u,g,u-(e.originalStart+e.originalLength)),u=e.originalStart,g=e.modifiedStart-l,this.spliceSimple([...d,u],e.originalLength,rw.f.slice(a,g,g+e.modifiedLength),s);c(u,g,u);}spliceSimple(e,t,i=rw.f.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:o}){let{parentNode:r,listIndex:a,revealed:l,visible:h}=this.getParentNodeWithListIndex(e),d=[],c=rw.f.map(i,e=>this.createTreeNode(e,r,+!!r.visible,l,d,n)),u=e[e.length-1],g=0;for(let e=u;e>=0&&e<r.children.length;e--){let t=r.children[e];if(t.visible){g=t.visibleChildIndex;break;}}let p=[],f=0,m=0;for(let e of c)p.push(e),m+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+f++);let _=(0,ip.r)(r.children,u,t,p);o?r.lastDiffIds?(0,ip.r)(r.lastDiffIds,u,t,p.map(e=>o.getId(e.element).toString())):r.lastDiffIds=r.children.map(e=>o.getId(e.element).toString()):r.lastDiffIds=void 0;let v=0;for(let e of _)e.visible&&v++;if(0!==v)for(let e=u+p.length;e<r.children.length;e++){let t=r.children[e];t.visible&&(t.visibleChildIndex-=v);}if(r.visibleChildrenCount+=f-v,_.length>0&&s){let e=t=>{s(t),t.children.forEach(e);};_.forEach(e);}if(l&&h){let e=_.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(r,m-e),this._onDidSpliceRenderedNodes.fire({start:a,deleteCount:e,elements:d});}this._onDidSpliceModel.fire({insertedNodes:p,deletedNodes:_});let b=r;for(;b;){if(2===b.visibility){this.refilterDelayer.trigger(()=>this.refilter());break;}b=b.parent;}}rerender(e){if(0===e.length)throw new Pg(this.user,"Invalid tree location");let{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this._onDidSpliceRenderedNodes.fire({start:i,deleteCount:1,elements:[t]});}has(e){return this.hasTreeNode(e);}getListIndex(e){let{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1;}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount;}isCollapsible(e){return this.getTreeNode(e).collapsible;}setCollapsible(e,t){let i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);let n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n));}isCollapsed(e){return this.getTreeNode(e).collapsed;}setCollapsed(e,t,i){let n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);let s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s));}_setCollapseState(e,t){let{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&o&&!Pb(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++)if(i.children[e].visible)if(n>-1){n=-1;break;}else n=e;n>-1&&this._setCollapseState([...e,n],t);}return o;}_setListNodeCollapseState(e,t,i,n){let s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;let o=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e);return this._onDidSpliceRenderedNodes.fire({start:t+1,deleteCount:o-(-1!==t),elements:r.slice(1)}),s;}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(Pb(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!Pb(t)&&t.recursive)for(let i of e.children)n=this._setNodeCollapseState(i,t,!0)||n;return n;}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1});});}refilter(){let e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this._onDidSpliceRenderedNodes.fire({start:0,deleteCount:e,elements:t}),this.refilterDelayer.cancel();}createTreeNode(e,t,i,n,s,o){let r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&s.push(r);let l=e.children||rw.f.empty(),h=n&&0!==a&&!r.collapsed,d=0,c=1;for(let e of l){let t=this.createTreeNode(e,r,a,h,s,o);r.children.push(t),c+=t.renderNodeCount,t.visible&&(t.visibleChildIndex=d++);}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=d,r.visible=2===a?d>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=c):(r.renderNodeCount=0,n&&s.pop()),o!==null&&o!==void 0&&o(r),r;}updateNodeAfterCollapseChange(e){let t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i;}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(let i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount;}updateNodeAfterFilterChange(e){let t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,+!!e.visible,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i;}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(0===(s=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e);}let o=i.length;e.renderNodeCount=+(e!==this.root);let r=!1;if(e.collapsed&&0===s)e.visibleChildrenCount=0;else{let t=0;for(let o of e.children)r=this._updateNodeAfterFilterChange(o,s,i,n&&!e.collapsed)||r,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t;}return e!==this.root&&(e.visible=2===s?r:1===s,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-o):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible;}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent;}_filterNode(e,t){let i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,+!!i):P_(i)?(e.filterData=i.data,Pv(i.visibility)):(e.filterData=void 0,Pv(i));}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;let[i,...n]=e;return!(i<0)&&!(i>t.children.length)&&this.hasTreeNode(n,t.children[i]);}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;let[i,...n]=e;if(i<0||i>t.children.length)throw new Pg(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i]);}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new Pg(this.user,"Invalid tree location");let r=t.children[o];return{node:r,listIndex:i,revealed:n,visible:s&&r.visible};}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){let[o,...r]=e;if(o<0||o>t.children.length)throw new Pg(this.user,"Invalid tree location");for(let e=0;e<o;e++)i+=t.children[e].renderNodeCount;return(n=n&&!t.collapsed,s=s&&t.visible,0===r.length)?{parentNode:t,listIndex:i,revealed:n,visible:s}:this.getParentNodeWithListIndex(r,t.children[o],i+1,n,s);}getNode(e=[]){return this.getTreeNode(e);}getNodeLocation(e){let t=[],i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse();}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,ip.N)(e)[0];}getFirstElementChild(e){let t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element;}}class Pw extends RE{constructor(e){super(e.elements.map(e=>e.element)),this.data=e;}}function Py(e){return e instanceof RE?new Pw(e):e;}class PS{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=O0.N.None,this.disposables=new O0.q();}getDragURI(e){return this.dnd.getDragURI(e.element);}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t);}onDragStart(e,t){var _this$dnd$onDragStart3,_this$dnd7;(_this$dnd$onDragStart3=(_this$dnd7=this.dnd).onDragStart)===null||_this$dnd$onDragStart3===void 0||_this$dnd$onDragStart3.call(_this$dnd7,Py(e),t);}onDragOver(e,t,i,n,s,o=!0){let r=this.dnd.onDragOver(Py(e),t&&t.element,i,n,s),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return r;if(a&&"boolean"!=typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,nI.w)(()=>{let e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0;},500,this.disposables)),"boolean"==typeof r||!r.accept||void 0===r.bubble||r.feedback)return o?r:{accept:"boolean"==typeof r?r:r.accept,effect:"boolean"==typeof r?void 0:r.effect,feedback:[i]};if(1===r.bubble){let i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,s,!1);}let l=this.modelProvider(),h=l.getNodeLocation(t),d=l.getListIndex(h),c=l.getListRenderCount(h);return{...r,feedback:(0,ip.q)(d,d+c)};}drop(e,t,i,n,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(Py(e),t&&t.element,i,n,s);}onDragEnd(e){var _this$dnd$onDragEnd3,_this$dnd8;(_this$dnd$onDragEnd3=(_this$dnd8=this.dnd).onDragEnd)===null||_this$dnd$onDragEnd3===void 0||_this$dnd$onDragEnd3.call(_this$dnd8,e);}dispose(){this.disposables.dispose(),this.dnd.dispose();}}class Px{constructor(e){this.delegate=e;}getHeight(e){return this.delegate.getHeight(e.element);}getTemplateId(e){return this.delegate.getTemplateId(e.element);}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element);}setDynamicHeight(e,t){var _this$delegate$setDyn,_this$delegate3;(_this$delegate$setDyn=(_this$delegate3=this.delegate).setDynamicHeight)===null||_this$delegate$setDyn===void 0||_this$delegate$setDyn.call(_this$delegate3,e.element,t);}}(eI=tj||(tj={})).None="none",eI.OnHover="onHover",eI.Always="always";class PL{get elements(){return this._elements;}constructor(e,t=[]){this._elements=t,this.disposables=new O0.q(),this.onDidChange=iv.C.forEach(e,e=>this._elements=e,this.disposables);}dispose(){this.disposables.dispose();}}class Pk{constructor(e,t,i,n,s,o={}){var _e$onDidChangeTwistie;this.renderer=e,this.model=t,this.activeNodes=n,this.renderedIndentGuides=s,this.renderedElements=new Map(),this.renderedNodes=new Map(),this.indent=Pk.DefaultIndent,this.defaultIndent=Pk.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set(),this.indentGuidesDisposable=O0.N.None,this.disposables=new O0.q(),this.templateId=e.templateId,this.updateOptions(o),iv.C.map(i,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(_e$onDidChangeTwistie=e.onDidChangeTwistieState)===null||_e$onDidChangeTwistie===void 0?void 0:_e$onDidChangeTwistie.call(e,this.onDidChangeTwistieState,this,this.disposables);}updateOptions(e={}){if(void 0!==e.defaultIndent&&(this.defaultIndent=e.defaultIndent),void 0!==e.indent||void 0!==e.defaultIndent){let t=void 0!==e.indent?nA(e.indent,0,40):this.indent;if(t!==this.indent||void 0!==e.defaultIndent)for(let[e,i]of(this.indent=t,this.renderedNodes))i.indentSize=this.defaultIndent+(e.depth-1)*this.indent,this.renderTreeElement(e,i);}if(void 0!==e.renderIndentGuides){let t=e.renderIndentGuides!==tj.None;if(t!==this.shouldRenderIndentGuides){for(let[e,i]of(this.shouldRenderIndentGuides=t,this.renderedNodes))this._renderIndentGuides(e,i);if(this.indentGuidesDisposable.dispose(),t){let e=new O0.q();this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements);}}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements),void 0!==e.twistieAdditionalCssClass&&(this.twistieAdditionalCssClass=e.twistieAdditionalCssClass);}renderTemplate(e){this.renderer.rowClassName&&e.classList.add(this.renderer.rowClassName);let t=oL(e,oN(".monaco-tl-row")),i=oL(t,oN(".monaco-tl-indent")),n=oL(t,oN(".monaco-tl-twistie")),s=oL(t,oN(".monaco-tl-contents")),o=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:O0.N.None,indentSize:0,templateData:o};}renderElement(e,t,i,n){i.indentSize=this.defaultIndent+(e.depth-1)*this.indent,this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,{...n,indent:i.indentSize});}disposeElement(e,t,i,n){var _this$renderer$dispos,_this$renderer;i.indentGuidesDisposable.dispose(),(_this$renderer$dispos=(_this$renderer=this.renderer).disposeElement)!==null&&_this$renderer$dispos!==void 0&&_this$renderer$dispos.call(_this$renderer,e,t,i.templateData,{...n,indent:i.indentSize}),"number"==typeof(n===null||n===void 0?void 0:n.height)&&this.renderedNodes.get(e)===i&&(this.renderedNodes.delete(e),this.renderedElements.get(e.element)===e&&this.renderedElements.delete(e.element));}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData);}onDidChangeTwistieState(e){let t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t);}onDidChangeNodeTwistieState(e){let t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t));}renderTreeElement(e,t){t.twistie.className=t.twistie.classList.item(0),t.twistie.style.paddingLeft=`${t.indentSize}px`,t.indent.style.width=`${t.indentSize+this.indent-16}px`,e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...eY.asClassNameArray(rC.f.treeItemExpanded));let i=!1;if(this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...eY.asClassNameArray(rC.f.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this.twistieAdditionalCssClass){let i=this.twistieAdditionalCssClass(e.element);i&&t.twistie.classList.add(i);}this._renderIndentGuides(e,t);}_renderIndentGuides(e,t){if(sz(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let i=new O0.q();for(;;){let n=this.model.getNodeLocation(e),s=this.model.getParentNodeLocation(n);if(!s)break;let o=this.model.getNode(s),r=oN(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(o)&&r.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(r):t.indent.insertBefore(r,t.indent.firstElementChild),this.renderedIndentGuides.add(o,r),i.add((0,O0.Q)(()=>this.renderedIndentGuides.delete(o,r))),e=o;}t.indentGuidesDisposable=i;}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;let t=new Set();e.forEach(e=>{let i=this.model.getNodeLocation(e);try{let n=this.model.getParentNodeLocation(i);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(this.model.getNode(n));}catch{}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.remove("active"));}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.add("active"));}),this.activeIndentNodes=t;}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,O0.d)(this.disposables);}}_Pk=Pk;_Pk.DefaultIndent=8;class PD{get totalCount(){return this._totalCount;}get matchCount(){return this._matchCount;}set findMatchType(e){this._findMatchType=e;}get findMatchType(){return this._findMatchType;}set findMode(e){this._findMode=e;}get findMode(){return this._findMode;}constructor(e,t,i){this._keyboardNavigationLabelProvider=e,this._filter=t,this._defaultFindVisibility=i,this._totalCount=0,this._matchCount=0,this._findMatchType=tQ.Fuzzy,this._findMode=tG.Highlight,this._pattern="",this._lowercasePattern="",this.disposables=new O0.q();}filter(e,t){let i=1;if(this._filter){let n=this._filter.filter(e,t);if(0===(i="boolean"==typeof n?+!!n:P_(n)?Pv(n.visibility):n))return!1;}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:tS.Default,visibility:i};let n=this._keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(let e of s){let t,n=e&&e.toString();if(void 0===n)return{data:tS.Default,visibility:i};if(t=this._findMatchType===tQ.Contiguous?function(e,t){let i,n=t.toLowerCase().indexOf(e);if(n>-1){i=[Number.MAX_SAFE_INTEGER,0];for(let t=e.length;t>0;t--)i.push(n+t-1);}return i;}(this._lowercasePattern,n.toLowerCase()):DL(this._pattern,this._lowercasePattern,0,n,n.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0}))return this._matchCount++,1===s.length?{data:t,visibility:i}:{data:{label:n,score:t},visibility:i};}return this._findMode!==tG.Filter?{data:tS.Default,visibility:i}:"number"==typeof this._defaultFindVisibility?this._defaultFindVisibility:this._defaultFindVisibility?this._defaultFindVisibility(e):2;}reset(){this._totalCount=0,this._matchCount=0;}dispose(){(0,O0.d)(this.disposables);}}class PM{constructor(e){this.stateMap=new Map(e.map(e=>[e.id,{...e}]));}get(e){let t=this.stateMap.get(e);if(void 0===t)throw Error(`No state found for toggle id ${e}`);return t.isChecked;}set(e,t){let i=this.stateMap.get(e);if(void 0===i)throw Error(`No state found for toggle id ${e}`);return i.isChecked!==t&&(i.isChecked=t,!0);}}(eN=tG||(tG={}))[eN.Highlight=0]="Highlight",eN[eN.Filter=1]="Filter",(eE=tQ||(tQ={}))[eE.Fuzzy=0]="Fuzzy",eE[eE.Contiguous=1]="Contiguous",(eT=tZ||(tZ={})).Mode="mode",eT.MatchType="matchType";class PI{get pattern(){return this._pattern;}get placeholder(){return this._placeholder;}set placeholder(e){var _this$widget;this._placeholder=e,(_this$widget=this.widget)===null||_this$widget===void 0?void 0:_this$widget.setPlaceHolder(e);}constructor(e,t,i,n={}){var _n$toggles,_n$placeholder;this.tree=e,this.filter=t,this.contextViewProvider=i,this.options=n,this._pattern="",this._onDidChangePattern=new iv.S(),this._onDidChangeOpenState=new iv.S(),this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new O0.q(),this.disposables=new O0.q(),this.toggles=new PM((_n$toggles=n.toggles)!==null&&_n$toggles!==void 0?_n$toggles:[]),this._placeholder=(_n$placeholder=n.placeholder)!==null&&_n$placeholder!==void 0?_n$placeholder:(0,iM.M)(22,"Type to search");}isOpened(){return!!this.widget;}updateToggleState(e,t){var _this$widget2;this.toggles.set(e,t),(_this$widget2=this.widget)===null||_this$widget2===void 0?void 0:_this$widget2.setToggleState(e,t);}renderMessage(e,t){var _this$tree$options$sh,_this$widget3,_this$widget4,_this$widget5;e?((_this$tree$options$sh=this.tree.options.showNotFoundMessage)!==null&&_this$tree$options$sh!==void 0?_this$tree$options$sh:!0)?(_this$widget3=this.widget)===null||_this$widget3===void 0?void 0:_this$widget3.showMessage({type:2,content:t!==null&&t!==void 0?t:(0,iM.M)(23,"No results found.")}):(_this$widget4=this.widget)===null||_this$widget4===void 0?void 0:_this$widget4.showMessage({type:2}):(_this$widget5=this.widget)===null||_this$widget5===void 0?void 0:_this$widget5.clearMessage();}alertResults(e){e?dI((0,iM.M)(25,"{0} results",e)):dI((0,iM.M)(24,"No results"));}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose();}}class PN extends PI{get mode(){return this.toggles.get(tZ.Mode)?tG.Filter:tG.Highlight;}set mode(e){if(e===this.mode)return;let t=e===tG.Filter;this.updateToggleState(tZ.Mode,t),this.placeholder=t?(0,iM.M)(26,"Type to filter"):(0,iM.M)(27,"Type to search"),this.filter.findMode=e,this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e);}get matchType(){return this.toggles.get(tZ.MatchType)?tQ.Fuzzy:tQ.Contiguous;}set matchType(e){e!==this.matchType&&(this.updateToggleState(tZ.MatchType,e===tQ.Fuzzy),this.filter.findMatchType=e,this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e));}constructor(e,t,i,n={}){var _n$defaultFindMode,_n$defaultFindMatchTy;let s=(_n$defaultFindMode=n.defaultFindMode)!==null&&_n$defaultFindMode!==void 0?_n$defaultFindMode:tG.Highlight,o=(_n$defaultFindMatchTy=n.defaultFindMatchType)!==null&&_n$defaultFindMatchTy!==void 0?_n$defaultFindMatchTy:tQ.Fuzzy,r=[{id:tZ.Mode,icon:rC.f.listFilter,title:(0,iM.M)(28,"Filter"),isChecked:s===tG.Filter},{id:tZ.MatchType,icon:rC.f.searchFuzzy,title:(0,iM.M)(29,"Fuzzy Match"),isChecked:o===tQ.Fuzzy}];t.findMatchType=o,t.findMode=s,super(e,t,i,{...n,toggles:r}),this.filter=t,this._onDidChangeMode=new iv.S(),this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new iv.S(),this.onDidChangeMatchType=this._onDidChangeMatchType.event,this.disposables.add(this.tree.onDidChangeModel(()=>{this.isOpened()&&(0!==this.pattern.length&&this.tree.refilter(),this.render());})),this.disposables.add(this.tree.onWillRefilter(()=>this.filter.reset()));}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType);}shouldAllowFocus(e){return!this.isOpened()||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1||!tS.isDefault(e.filterData);}render(){let e=0===this.filter.matchCount&&this.filter.totalCount>0&&this.pattern.length>0;this.renderMessage(e),this.pattern.length&&this.alertResults(this.filter.matchCount);}}function PE(e,t){return e.position===t.position&&PT(e,t);}function PT(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex&&e.sourceNodeEnd===t.sourceNodeEnd&&e.sourceNodePartiallyVisible===t.sourceNodePartiallyVisible&&e.hasExplicitHeight===t.hasExplicitHeight;}class PR{constructor(e=[]){this.stickyNodes=e;}get count(){return this.stickyNodes.length;}equal(e){return(0,ip.m)(this.stickyNodes,e.stickyNodes,PE);}contains(e){return this.stickyNodes.some(t=>t.node.element===e.element);}lastNodePartiallyVisible(){if(0===this.count)return!1;let e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;let t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position;}animationStateChanged(e){if(!(0,ip.m)(this.stickyNodes,e.stickyNodes,PT)||0===this.count)return!1;let t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position;}}class PA{constrainStickyScrollNodes(e,t,i){for(let n=0;n<e.length;n++){let s=e[n];if(s.position+s.height>i||n>=t)return e.slice(0,n);}return e;}}class PO extends O0.N{get domNode(){return this._widget.domNode;}constructor(e,t,i,n,s,o={}){var _o$stickyScrollDelega,_o$paddingTop;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=s,this.maxWidgetViewRatio=.4;let r=this.validateStickySettings(o);this.stickyScrollMaxItemCount=r.stickyScrollMaxItemCount,this.stickyScrollDelegate=(_o$stickyScrollDelega=o.stickyScrollDelegate)!==null&&_o$stickyScrollDelega!==void 0?_o$stickyScrollDelega:new PA(),this.paddingTop=(_o$paddingTop=o.paddingTop)!==null&&_o$paddingTop!==void 0?_o$paddingTop:0,this._widget=this._register(new PP(i.getScrollableElement(),i,e,n,s,o.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll(()=>this.update())),this._register(i.onDidChangeContentHeight(()=>this.update())),this._register(e.onDidChangeCollapseState(()=>this.update())),this._register(this._widget.onDidChangeHeight(e=>{for(let{index:t,height:i}of e)this.view.updateElementHeight(t,i);})),this._register(t.onDidSpliceRenderedNodes(e=>{let t=this._widget.state;!t||(e.deleteCount>0&&t.stickyNodes.some(e=>!this.model.has(this.model.getNodeLocation(e.node)))?this.update():t.stickyNodes.some(i=>{let n=this.model.getListIndex(this.model.getNodeLocation(i.node));return n>=e.start&&n<e.start+e.deleteCount&&t.contains(i.node);})&&this._widget.rerender());})),this.update();}get height(){return this._widget.height;}getNodeAtHeight(e){let t;if(!((t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop))<0)&&!(t>=this.view.length))return this.view.element(t);}update(){let e=this.getNodeAtHeight(this.paddingTop);if(!e||this.tree.scrollTop<=this.paddingTop||0===this.view.renderHeight)return void this._widget.setState(void 0);let t=this.findStickyState(e);this._widget.setState(t);}findStickyState(e){let t=[],i=e,n=0,s=this.getNextStickyNode(i,void 0,n);for(;s&&(t.push(s),n+=s.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(s)));)s=this.getNextStickyNode(i,s.node,n);let o=this.constrainStickyNodes(t);return o.length?new PR(o):void 0;}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height);}getNextStickyNode(e,t,i){let n=this.getAncestorUnderPrevious(e,t);if(!n||n===e&&!this.nodeIsUncollapsedParent(e))return;let s=this.getStickyScrollNodeSourceRange(n);if(!s||!Number.isFinite(s.start)||!Number.isFinite(s.end)||s.end<=s.start)return;let o=this.view.getElementTop(this.getNodeIndex(n)),r=this.view.scrollTop+i;if(r<=o+s.start)return;let a=this.getStickyScrollNodeHeight(s,i),l=r+a<o+s.end;return this.createStickyScrollNode(n,i,a,s.end,l,void 0!==s.stickyNodeHeight);}getStickyScrollNodeSourceRange(e){let t={start:0,end:this.getNodeHeight(e)},i=this.tree.options.stickyScrollNodeSourceRangeProvider;return i?i(e.element,t):t;}getStickyScrollNodeHeight(e,t){var _e$stickyNodeHeight;let i=this.clampNodeHeight((_e$stickyNodeHeight=e.stickyNodeHeight)!==null&&_e$stickyNodeHeight!==void 0?_e$stickyNodeHeight:e.end-e.start);return e.estimated?Math.min(i,Math.max(1,this.view.renderHeight*this.maxWidgetViewRatio-t)):i;}getNodeHeight(e){let t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);return i>=0?this.view.getElementHeight(i):this.treeDelegate.getHeight(e);}clampNodeHeight(e){let t=this.tree.options.stickyScrollMaxNodeHeight;return void 0!==t?Math.min(e,t):e;}createStickyScrollNode(e,t,i,n,s,o){let{startIndex:r,endIndex:a}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(a,t,i),height:i,startIndex:r,endIndex:a,sourceNodeEnd:n,sourceNodePartiallyVisible:s,hasExplicitHeight:o};}getAncestorUnderPrevious(e,t){let i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i);}if(void 0===t)return i;}calculateStickyNodePosition(e,t,i){let n=this.view.getElementHeight(e),s=this.view.getElementTop(e)+n-this.view.scrollTop;return t+i>s&&t<=s?s-i:t;}constrainStickyNodes(e){if(0===e.length)return[];let t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;let n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];let s=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||s.position+s.height>t)throw Error("stickyScrollDelegate violates constraints");return n;}getParentNode(e){let t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0;}nodeIsUncollapsedParent(e){let t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1;}getNodeIndex(e){let t=this.model.getNodeLocation(e);return this.model.getListIndex(t);}getNodeRange(e){let t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1};}nodePositionTopBelowWidget(e){let t=[],i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let e=0;e<t.length&&e<this.stickyScrollMaxItemCount;e++){let i=this.getStickyScrollNodeSourceRange(t[e]);i&&(n+=this.getStickyScrollNodeHeight(i,n));}return n;}domFocus(){this._widget.domFocus();}focusedLast(){return this._widget.focusedLast();}updateOptions(e={}){if(void 0!==e.paddingTop&&(this.paddingTop=e.paddingTop),void 0!==e.stickyScrollMaxItemCount){let t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update());}}validateStickySettings(e){let t=7;return"number"==typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t};}}class PP{get state(){return this._previousState;}constructor(e,t,i,n,s,o){this.view=t,this.tree=i,this.treeRenderers=n,this.treeDelegate=s,this.accessibilityProvider=o,this._previousElements=[],this._previousElementHeights=[],this._previousStateDisposables=new O0.q(),this._onDidChangeHeight=new iv.S(),this.onDidChangeHeight=this._onDidChangeHeight.event,this._rootDomNode=oN(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);let r=oN(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(r),this.stickyScrollFocus=new PF(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu;}get height(){return this._previousState?this.getRootHeight(this._previousState):0;}get domNode(){return this._rootDomNode;}setState(e){let t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return void this.updateSourceNodeVisibility(e);if(t!==i&&this.setVisible(i),!i){this.updateSourceNodeVisibility(void 0),this._previousState=void 0,this._previousElements=[],this._previousElementHeights=[],this._previousStateDisposables.clear();return;}let n=e.stickyNodes[e.count-1];this._previousState&&e.animationStateChanged(this._previousState)?this._previousElements[this._previousState.count-1].style.top=`${n.position}px`:this.renderState(e),this._previousState=e,this.updateSourceNodeVisibility(e),this.updateRootHeight(e);}updateSourceNodeVisibility(e){let t=!1;for(let i=0;e&&i<e.count;i++){let n=e.stickyNodes[i],s=this._previousElements[i],o=n.sourceNodePartiallyVisible;if(s){let e=this.view.getElementTop(n.startIndex)+n.sourceNodeEnd,t=this.getRenderedNodeHeight(n,i);o=this.view.scrollTop+n.position+t<e;}s!==null&&s!==void 0&&s.classList.toggle("source-node-partially-visible",o),t||(t=o);}this._rootDomNode.classList.toggle("source-node-partially-visible",t);}renderState(e){this._previousStateDisposables.clear();let t=Array(e.count);for(let i=e.count-1;i>=0;i--){let n=e.stickyNodes[i],{element:s,disposable:o}=this.createElement(n,i,e.count);t[i]=s,this._rootDomNode.appendChild(s),this._previousStateDisposables.add(o);}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t,this._previousElementHeights=this.probeDynamicHeights(e,t);}rerender(){this._previousState&&(this.renderState(this._previousState),this.updateSourceNodeVisibility(this._previousState),this.updateRootHeight(this._previousState));}updateRootHeight(e){this._rootDomNode.style.height=`${this.getRootHeight(e)}px`;}getRootHeight(e){let t=e.stickyNodes[e.count-1],i=this.getRenderedNodeHeight(t,e.count-1);return Math.max(0,t.position+i);}getRenderedNodeHeight(e,t){var _this$_previousElemen;return Math.min((_this$_previousElemen=this._previousElementHeights[t])!==null&&_this$_previousElemen!==void 0?_this$_previousElemen:e.height,e.height);}probeDynamicHeights(e,t){let i=[],n=e.stickyNodes.map(e=>e.height);for(let s=0;s<e.count;s++){let o=e.stickyNodes[s];if(!this.treeDelegate.hasDynamicHeight||!this.treeDelegate.hasDynamicHeight(o.node)){let e=t[s].offsetHeight;e>0&&(n[s]=e);continue;}let r=t[s],a=r.style.height;r.style.height="";let l=r.offsetHeight;if(l<=0){r.style.height=a;continue;}let h=this.tree.options.stickyScrollMaxNodeHeight,d=void 0!==h?Math.min(l,h):l,c=o.hasExplicitHeight?o.height:d;n[s]=c,!1!==this.tree.options.setRowHeight&&(r.style.height=`${c}px`),!1!==this.tree.options.setRowLineHeight&&(r.style.lineHeight=`${c}px`),!o.hasExplicitHeight&&d>this.view.getElementHeight(o.startIndex)&&i.push({index:o.startIndex,height:d});}return i.length>0&&this._onDidChangeHeight.fire(i),n;}createElement(e,t,i){let n=e.startIndex,s=document.createElement("div");s.style.top=`${e.position}px`;let o=this.tree.options.stickyScrollMaxNodeHeight,r=void 0!==o?Math.min(e.height,o):e.height;!1!==this.tree.options.setRowHeight&&(s.style.height=`${r}px`),!1!==this.tree.options.setRowLineHeight&&(s.style.lineHeight=`${r}px`),s.style.overflow="hidden",s.classList.add("monaco-tree-sticky-row"),s.classList.add("monaco-list-row"),s.classList.toggle("source-node-partially-visible",e.sourceNodePartiallyVisible),s.setAttribute("data-index",`${n}`),s.setAttribute("data-parity",n%2==0?"even":"odd"),s.setAttribute("id",this.view.getElementID(n));let a=this.setAccessibilityAttributes(s,e.node.element,t,i),l=this.treeDelegate.getTemplateId(e.node),h=this.treeRenderers.find(e=>e.templateId===l);if(!h)throw Error(`No renderer found for template id ${l}`);let d=e.node;d===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(d=new Proxy(e.node,{}));let c=h.renderTemplate(s);h.renderElement(d,e.startIndex,c,{height:e.height});let u=(0,O0.Q)(()=>{a.dispose(),h.disposeElement(d,e.startIndex,c,{height:e.height}),h.disposeTemplate(c),s.remove();});return{element:s,disposable:u};}setAccessibilityAttributes(e,t,i,n){var _this$accessibilityPr4;if(!this.accessibilityProvider)return O0.N.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",(_this$accessibilityPr4=this.accessibilityProvider.getRole(t))!==null&&_this$accessibilityPr4!==void 0?_this$accessibilityPr4:"treeitem");let s=this.accessibilityProvider.getAriaLabel(t),o=s&&"string"!=typeof s?s:RP(s),r=se(t=>{let i=t.readObservable(o);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label");});"string"==typeof s||s&&e.setAttribute("aria-label",s.get());let a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"==typeof a&&e.setAttribute("aria-level",`${a}`),r;}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0);}domFocus(){this.stickyScrollFocus.domFocus();}focusedLast(){return this.stickyScrollFocus.focusedLast();}dispose(){this._onDidChangeHeight.dispose(),this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove();}}class PF extends O0.N{get domHasFocus(){return this._domHasFocus;}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e);}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=this._register(new iv.S()),this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=this._register(new iv.S()),this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register(s$(this.container,"focus",()=>this.onFocus())),this._register(s$(this.container,"blur",()=>this.onBlur())),this._register(this.view.onDidFocus(()=>this.toggleStickyScrollFocused(!1))),this._register(this.view.onKeyDown(e=>this.onKeyDown(e))),this._register(this.view.onMouseDown(e=>this.onMouseDown(e))),this._register(this.view.onContextMenu(e=>this.handleContextMenu(e)));}handleContextMenu(e){let t=e.browserEvent.target;if(!RG(t)&&!Rj(t)){this.focusedLast()&&this.view.domFocus();return;}if(!om(e.browserEvent)){if(!this.state)throw Error("Context menu should not be triggered when state is undefined");let t=this.state.stickyNodes.findIndex(t=>{var _e$element2;return t.node.element===((_e$element2=e.element)===null||_e$element2===void 0?void 0:_e$element2.element);});if(-1===t)throw Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(t);return;}if(!this.state||this.focusedIndex<0)throw Error("Context menu key should not be triggered when focus is not in sticky scroll widget");let i=this.state.stickyNodes[this.focusedIndex].node.element,n=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:n,browserEvent:e.browserEvent,isStickyScroll:!0});}onKeyDown(e){if(this.domHasFocus&&this.state){if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){let e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state);}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation();}}}onMouseDown(e){let t=e.browserEvent.target;(RG(t)||Rj(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation());}updateElements(e,t){if(t&&0===t.count)throw Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw Error("Sticky scroll focus received illigel state");let i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){let e=nA(i,0,t.count-1);this.setFocus(e);}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1;}setFocusedElement(e){let t=this.state;if(!t)throw Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){let i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t);}}scrollNodeUnderWidget(e,t){let i=t.stickyNodes[t.count-1],n=t.count>1?t.stickyNodes[t.count-2]:void 0,s=this.view.getElementTop(e),o=n?n.position+n.height+i.height:i.height;this.view.scrollTop=s-o;}domFocus(){if(!this.state)throw Error("Cannot focus when state is undefined");this.container.focus();}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused");}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1);}setFocus(e){if(0>e)throw Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw Error("Cannot set focus index to an index that does not exist");let t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e;}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t);}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e);}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t);}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t);}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e);}onFocus(){if(!this.state||0===this.elements.length)throw Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0);}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1);}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose();}}function PB(e){let t=tq.Unknown;return oi(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=tq.Twistie:oi(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=tq.Element:oi(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=tq.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t};}function PW(e){let t=RG(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t};}function PV(e,t){t(e),e.children.forEach(e=>PV(e,t));}class PH{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet;}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new iv.S(),this.onDidChange=this._onDidChange.event;}set(e,t){!(t!==null&&t!==void 0&&t.__forceEvent)&&(0,ip.m)(this.nodes,e)||this._set(e,!1,t);}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){let e=this;this._onDidChange.fire({get elements(){return e.get();},browserEvent:i});}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements];}getNodes(){return this.nodes;}has(e){return this.nodeSet.has(e);}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){let e=this.createNodeSet(),i=t=>e.delete(t);t.forEach(e=>PV(e,i)),this.set([...e.values()]);return;}let i=new Set(),n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>PV(e,n));let s=new Map(),o=e=>s.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>PV(e,o));let r=[];for(let e of this.nodes){let t=this.identityProvider.getId(e.element).toString();if(i.has(t)){let e=s.get(t);e&&e.visible&&r.push(e);}else r.push(e);}if(this.nodes.length>0&&0===r.length){let e=this.getFirstViewElementWithTrait();e&&r.push(e);}this._set(r,!0);}createNodeSet(){let e=new Set();for(let t of this.nodes)e.add(t);return e;}}class Pz extends R3{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i;}onViewPointer(e){if(RQ(e.browserEvent.target)||o$(e.browserEvent.target)||R$(e.browserEvent.target)||e.browserEvent.isHandledByList)return;let t=e.element;if(!t||this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);let i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,s=Rj(e.browserEvent.target),o=!1;if(o=!!s||("function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),s)this.handleStickyScrollMouseEvent(e,t);else if(o&&!n&&2!==e.browserEvent.detail||!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible&&(!s||n)){let i=this.tree.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,s),n){e.browserEvent.isHandledByList=!0;return;}}s||super.onViewPointer(e);}handleStickyScrollMouseEvent(e,t){if(RK(e.browserEvent.target)||Rq(e.browserEvent.target))return;let i=this.stickyScrollProvider();if(!i)throw Error("Sticky scroll controller not found");let n=this.list.indexOf(t),s=this.list.getElementTop(n),o=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=s-o,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n]);}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||e.browserEvent.isHandledByList||super.onDoubleClick(e);}onMouseDown(e){let t=e.browserEvent.target;if(!RG(t)&&!Rj(t))return void super.onMouseDown(e);}onContextMenu(e){let t=e.browserEvent.target;if(!RG(t)&&!Rj(t))return void super.onContextMenu(e);}}class PU extends Ai{constructor(e,t,i,n,s,o,r,a){super(e,t,i,n,a),this.focusTrait=s,this.selectionTrait=o,this.anchorTrait=r;}createMouseController(e){return new Pz(this,e.tree,e.stickyScrollProvider);}splice(e,t,i=[]){let n;if(super.splice(e,t,i),0===i.length)return;let s=[],o=[];i.forEach((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&o.push(e+i),this.anchorTrait.has(t)&&(n=e+i);}),s.length>0&&super.setFocus((0,ip.l)([...super.getFocus(),...s])),o.length>0&&super.setSelection((0,ip.l)([...super.getSelection(),...o])),"number"==typeof n&&super.setAnchor(n);}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(e=>this.element(e)),t);}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(e=>this.element(e)),t);}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]));}}class P${get onDidScroll(){return this.view.onDidScroll;}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange);}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange);}get onMouseDblClick(){return iv.C.filter(iv.C.map(this.view.onMouseDblClick,PB),e=>e.target!==tq.Filter);}get onMouseOver(){return iv.C.map(this.view.onMouseOver,PB);}get onMouseOut(){return iv.C.map(this.view.onMouseOut,PB);}get onContextMenu(){var _this$stickyScrollCon,_this$stickyScrollCon2;return iv.C.any(iv.C.filter(iv.C.map(this.view.onContextMenu,PW),e=>!e.isStickyScroll),(_this$stickyScrollCon=(_this$stickyScrollCon2=this.stickyScrollController)===null||_this$stickyScrollCon2===void 0?void 0:_this$stickyScrollCon2.onContextMenu)!==null&&_this$stickyScrollCon!==void 0?_this$stickyScrollCon:iv.C.None);}get onPointer(){return iv.C.map(this.view.onPointer,PB);}get onDidFocus(){return this.view.onDidFocus;}get onDidChangeModel(){return iv.C.any(this.onDidChangeModelRelay.event,this.onDidSwapModel.event);}get onDidChangeCollapseState(){return this.onDidChangeCollapseStateRelay.event;}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick;}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick;}get onDidDispose(){return this.view.onDidDispose;}constructor(e,t,i,n,s={}){var _s$findWidgetEnabled,_s$findWidgetEnabled2;var o,r,a;this._user=e,this._options=s,this.eventBufferer=new iv.s(),this.onDidChangeFindOpenState=iv.C.None,this.onDidChangeStickyScrollFocused=iv.C.None,this.disposables=new O0.q(),this._onDidChangeStickyScrollDomNode=this.disposables.add(new iv.S()),this.onDidSwapModel=this.disposables.add(new iv.S()),this.onDidChangeModelRelay=this.disposables.add(new iv.Q()),this.onDidSpliceModelRelay=this.disposables.add(new iv.Q()),this.onDidChangeCollapseStateRelay=this.disposables.add(new iv.Q()),this.onDidChangeRenderNodeCountRelay=this.disposables.add(new iv.Q()),this.onDidChangeActiveNodesRelay=this.disposables.add(new iv.Q()),this._onWillRefilter=new iv.S(),this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new iv.S(),this.modelDisposables=new O0.q(),s.keyboardNavigationLabelProvider&&((_s$findWidgetEnabled=s.findWidgetEnabled)!==null&&_s$findWidgetEnabled!==void 0?_s$findWidgetEnabled:!0)&&(this.findFilter=new PD(s.keyboardNavigationLabelProvider,s.filter,s.defaultFindVisibility),s={...s,filter:this.findFilter},this.disposables.add(this.findFilter)),this.model=this.createModel(e,s),this.treeDelegate=new Px(i);let l=this.disposables.add(new PL(this.onDidChangeActiveNodesRelay.event)),h=new av.Q();for(let e of(this.renderers=n.map(e=>new Pk(e,this.model,this.onDidChangeCollapseStateRelay.event,l,h,s)),this.renderers))this.disposables.add(e);if(this.focus=new PH(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new PH(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new PH(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new PU(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(o=()=>this.model,r=this.disposables,(a=s)&&{...a,identityProvider:a.identityProvider&&{getId:e=>a.identityProvider.getId(e.element),getGroupId:a.identityProvider.getGroupId?e=>a.identityProvider.getGroupId(e.element):void 0},dnd:a.dnd&&r.add(new PS(o,a.dnd)),multipleSelectionController:a.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>a.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>a.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:a.accessibilityProvider&&{...a.accessibilityProvider,getSetSize(e){let t=o(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount;},getPosInSet:e=>e.visibleChildIndex+1,isChecked:a.accessibilityProvider&&a.accessibilityProvider.isChecked?e=>a.accessibilityProvider.isChecked(e.element):void 0,getRole:a.accessibilityProvider&&a.accessibilityProvider.getRole?e=>a.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>a.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>a.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:a.accessibilityProvider&&a.accessibilityProvider.getWidgetRole?()=>a.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:a.accessibilityProvider&&a.accessibilityProvider.getAriaLevel?e=>a.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:a.accessibilityProvider.getActiveDescendantId&&(e=>a.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:a.keyboardNavigationLabelProvider&&{...a.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.setupModel(this.model),!1!==s.keyboardSupport){let e=iv.C.chain(this.view.onKeyDown,e=>e.filter(e=>!o$(e.target)).map(e=>new nx(e)));iv.C.chain(e,e=>e.filter(e=>15===e.keyCode))(this.onLeftArrow,this,this.disposables),iv.C.chain(e,e=>e.filter(e=>17===e.keyCode))(this.onRightArrow,this,this.disposables),iv.C.chain(e,e=>e.filter(e=>10===e.keyCode))(this.onSpace,this,this.disposables);}if(((_s$findWidgetEnabled2=s.findWidgetEnabled)!==null&&_s$findWidgetEnabled2!==void 0?_s$findWidgetEnabled2:!0)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider){let e={styles:s.findWidgetStyles,defaultFindMode:s.defaultFindMode,defaultFindMatchType:s.defaultFindMatchType,showNotFoundMessage:s.showNotFoundMessage,findWidgetContainer:s.findWidgetContainer};this.findController=this.disposables.add(new PN(this,this.findFilter,s.contextViewProvider,e)),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType;}else this.onDidChangeFindMode=iv.C.None,this.onDidChangeFindMatchType=iv.C.None;s.enableStickyScroll&&(this.stickyScrollController=new PO(this,this.model,this.view,this.renderers,this.treeDelegate,s),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=d6(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===tj.Always);}updateOptions(e={}){var _this$findController;for(let t of(this._options={...this._options,...e},this.renderers))t.updateOptions(e);this.view.updateOptions(e),(_this$findController=this.findController)!==null&&_this$findController!==void 0&&_this$findController.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===tj.Always);}get options(){return this._options;}updateStickyScroll(e){var _this$stickyScrollCon3;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new PO(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus,this._onDidChangeStickyScrollDomNode.fire(this.stickyScrollController.domNode)):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=iv.C.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0,this._onDidChangeStickyScrollDomNode.fire(void 0)),(_this$stickyScrollCon3=this.stickyScrollController)===null||_this$stickyScrollCon3===void 0?void 0:_this$stickyScrollCon3.updateOptions(e);}getHTMLElement(){return this.view.getHTMLElement();}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight;}get scrollTop(){return this.view.scrollTop;}set scrollTop(e){this.view.scrollTop=e;}get scrollHeight(){return this.view.scrollHeight;}get renderHeight(){return this.view.renderHeight;}get ariaLabel(){return this.view.ariaLabel;}set ariaLabel(e){this.view.ariaLabel=e;}domFocus(){var _this$stickyScrollCon4;(_this$stickyScrollCon4=this.stickyScrollController)!==null&&_this$stickyScrollCon4!==void 0&&_this$stickyScrollCon4.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus();}isDOMFocused(){return oa(this.getHTMLElement());}layout(e,t){this.view.layout(e,t);}style(e){var _e$treeStickyScrollBa,_e$listFocusOutline2;let t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { opacity: 1; border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { opacity: 1; border-color: ${e.treeIndentGuidesStroke}; }`));let n=(_e$treeStickyScrollBa=e.treeStickyScrollBackground)!==null&&_e$treeStickyScrollBa!==void 0?_e$treeStickyScrollBa:e.listBackground;n&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${n}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${n}; }`)),e.treeStickyScrollBorder&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));let s=Rs(e.listFocusAndSelectionOutline,Rs(e.listSelectionOutline,(_e$listFocusOutline2=e.listFocusOutline)!==null&&_e$listFocusOutline2!==void 0?_e$listFocusOutline2:""));s&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${s}; outline-offset: -1px;}`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),i.push(`.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.context-menu-visible .monaco-list${t}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e);}getParentElement(e){let t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element;}getFirstElementChild(e){return this.model.getFirstElementChild(e);}getNode(e){return this.model.getNode(e);}getNodeLocation(e){return this.model.getNodeLocation(e);}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t);}expand(e,t=!1){return this.model.setCollapsed(e,!1,t);}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t);}isCollapsible(e){return this.model.isCollapsible(e);}setCollapsible(e,t){return this.model.setCollapsible(e,t);}isCollapsed(e){return this.model.isCollapsed(e);}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter();}setSelection(e,t){this.eventBufferer.bufferEvents(()=>{let i=e.map(e=>this.model.getNode(e));this.selection.set(i,t);let n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(n,t,!0);});}getSelection(){return this.selection.get();}setFocus(e,t){this.eventBufferer.bufferEvents(()=>{let i=e.map(e=>this.model.getNode(e));this.focus.set(i,t);let n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(n,t,!0);});}focusNext(e=1,t=!1,i,n=om(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(e,t,i,n);}focusPrevious(e=1,t=!1,i,n=om(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(e,t,i,n);}focusNextPage(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(e,t);}focusPreviousPage(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(e,t,()=>{var _this$stickyScrollCon5,_this$stickyScrollCon6;return(_this$stickyScrollCon5=(_this$stickyScrollCon6=this.stickyScrollController)===null||_this$stickyScrollCon6===void 0?void 0:_this$stickyScrollCon6.height)!==null&&_this$stickyScrollCon5!==void 0?_this$stickyScrollCon5:0;});}focusLast(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){this.view.focusLast(e,t);}focusFirst(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(e,t);}getFocus(){return this.focus.get();}reveal(e,t){this.model.expandTo(e);let i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){let n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n);}else this.view.reveal(i,t);}onLeftArrow(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){let e=this.model.getParentNodeLocation(n);if(!e)return;let t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t]);}}onRightArrow(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(e=>e.visible))return;let[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t]);}}onSpace(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s);}setupModel(e){this.modelDisposables.clear(),this.modelDisposables.add(e.onDidSpliceRenderedNodes(({start:e,deleteCount:t,elements:i})=>this.view.splice(e,t,i)));let t=iv.C.forEach(e.onDidSpliceModel,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e);});},this.modelDisposables);t(()=>null,null,this.modelDisposables);let i=this.modelDisposables.add(new iv.S()),n=this.modelDisposables.add(new nI.h(0));this.modelDisposables.add(iv.C.any(t,this.focus.onDidChange,this.selection.onDidChange)(()=>{n.trigger(()=>{let e=new Set();for(let t of this.focus.getNodes())e.add(t);for(let t of this.selection.getNodes())e.add(t);i.fire([...e.values()]);});})),this.onDidChangeActiveNodesRelay.input=i.event,this.onDidChangeModelRelay.input=iv.C.signal(e.onDidSpliceModel),this.onDidChangeCollapseStateRelay.input=e.onDidChangeCollapseState,this.onDidChangeRenderNodeCountRelay.input=e.onDidChangeRenderNodeCount,this.onDidSpliceModelRelay.input=e.onDidSpliceModel,i_.e&&this.modelDisposables.add(e.onDidChangeCollapseState(e=>{let{node:t,deep:i}=e;t.collapsible&&!i&&this.isDOMFocused()&&dI(t.collapsed?(0,iM.M)(30,"collapsed"):(0,iM.M)(31,"expanded"));}));}dispose(){var _this$stickyScrollCon7;(0,O0.d)(this.disposables),(_this$stickyScrollCon7=this.stickyScrollController)!==null&&_this$stickyScrollCon7!==void 0&&_this$stickyScrollCon7.dispose(),this.view.dispose(),this.modelDisposables.dispose();}}class PK{constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map(),this.nodesByIdentity=new Map(),this.model=new PC(e,null,t),this.onDidSpliceModel=this.model.onDidSpliceModel,this.onDidSpliceRenderedNodes=this.model.onDidSpliceRenderedNodes,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare:(e,i)=>t.sorter.compare(e.element,i.element)}),this.identityProvider=t.identityProvider;}setChildren(e,t=rw.f.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i);}_setChildren(e,t=rw.f.empty(),i){let n=new Set(),s=new Set(),o=e=>{if(null!==e.element){var _i$onDidCreateNode;if(n.add(e.element),this.nodes.set(e.element,e),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();s.add(t),this.nodesByIdentity.set(t,e);}(_i$onDidCreateNode=i.onDidCreateNode)===null||_i$onDidCreateNode===void 0||_i$onDidCreateNode.call(i,e);}},r=e=>{if(null!==e.element){var _i$onDidDeleteNode;if(n.has(e.element)||this.nodes.delete(e.element),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();s.has(t)||this.nodesByIdentity.delete(t);}(_i$onDidDeleteNode=i.onDidDeleteNode)===null||_i$onDidDeleteNode===void 0||_i$onDidDeleteNode.call(i,e);}};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:o,onDidDeleteNode:r});}preserveCollapseState(e=rw.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),rw.f.map(e,e=>{let t,i=this.nodes.get(e.element);if(!i&&this.identityProvider){let t=this.identityProvider.getId(e.element).toString();i=this.nodesByIdentity.get(t);}if(!i){let t;return t=void 0===e.collapsed?void 0:e.collapsed===tK.Collapsed||e.collapsed===tK.PreserveOrCollapsed||e.collapsed!==tK.Expanded&&e.collapsed!==tK.PreserveOrExpanded&&!!e.collapsed,{...e,children:this.preserveCollapseState(e.children),collapsed:t};}let n="boolean"==typeof e.collapsible?e.collapsible:i.collapsible;return t=void 0===e.collapsed||e.collapsed===tK.PreserveOrCollapsed||e.collapsed===tK.PreserveOrExpanded?i.collapsed:e.collapsed===tK.Collapsed||e.collapsed!==tK.Expanded&&!!e.collapsed,{...e,collapsible:n,collapsed:t,children:this.preserveCollapseState(e.children)};});}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t);}resort(e=null,t=!0){if(!this.sorter)return;let i=this.getElementLocation(e),n=this.model.getNode(i);this._setChildren(i,this.resortChildren(n,t),{});}resortChildren(e,t,i=!0){let n=[...e.children];return(t||i)&&(n=n.sort(this.sorter.compare.bind(this.sorter))),rw.f.map(n,e=>({element:e.element,collapsible:e.collapsible,collapsed:e.collapsed,children:this.resortChildren(e,t,!1)}));}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t);}has(e){return this.nodes.has(e);}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t);}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t);}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t);}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t);}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t);}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i);}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t);}refilter(){this.model.refilter();}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);return t;}getNodeLocation(e){return e.element;}getParentNodeLocation(e){if(null===e)throw new Pg(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element;}getElementLocation(e){if(null===e)return[];let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t);}}function Pq(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:rw.f.map(rw.f.from(e.children),Pq),collapsible:e.collapsible,collapsed:e.collapsed};}function Pj(e){let t,i,n=[e.element],s=e.incompressible||!1;for(;[i,t]=rw.f.consume(rw.f.from(e.children),2),1===i.length&&!i[0].incompressible;)e=i[0],n.push(e.element);return{element:{elements:n,incompressible:s},children:rw.f.map(rw.f.concat(i,t),Pj),collapsible:e.collapsible,collapsed:e.collapsed};}function PG(e){return function e(t,i=0){let n;return(n=i<t.element.elements.length-1?[e(t,i+1)]:rw.f.map(rw.f.from(t.children),t=>e(t,0)),0===i&&t.element.incompressible)?{element:t.element.elements[i],children:n,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[i],children:n,collapsible:t.collapsible,collapsed:t.collapsed};}(e,0);}class PQ{get onDidSpliceRenderedNodes(){return this.model.onDidSpliceRenderedNodes;}get onDidSpliceModel(){return this.model.onDidSpliceModel;}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState;}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount;}constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map(),this.model=new PK(e,t),this.enabled=void 0===t.compressionEnabled||t.compressionEnabled,this.identityProvider=t.identityProvider;}setChildren(e,t=rw.f.empty(),i){let n,s=i.diffIdentityProvider&&{getId:e=>e.elements.map(e=>n.getId(e).toString()).join("\0"),getGroupId:(n=i.diffIdentityProvider).getGroupId?e=>n.getGroupId(e.elements[e.elements.length-1]):void 0};if(null===e){let e=rw.f.map(t,this.enabled?Pj:Pq);this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0});return;}let o=this.nodes.get(e);if(!o)throw new Pg(this.user,"Unknown compressed tree node");let r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),h=function e(t,i,n){return t.element===i?{...t,children:n}:{...t,children:rw.f.map(rw.f.from(t.children),t=>e(t,i,n))};}(PG(r),e,t),d=(this.enabled?Pj:Pq)(h),c=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,ip.m)(d.element.elements,r.element.elements,c))return void this._setChildren(o,d.children||rw.f.empty(),{diffIdentityProvider:s,diffDepth:1});let u=l.children.map(e=>e===r?d:e);this._setChildren(l.element,u,{diffIdentityProvider:s,diffDepth:r.depth-l.depth});}isCompressionEnabled(){return this.enabled;}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let t=this.model.getNode().children,i=rw.f.map(t,PG),n=rw.f.map(i,e?Pj:Pq);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0});}_setChildren(e,t,i){let n=new Set(),s=e=>{for(let t of e.element.elements)n.add(t),this.nodes.set(t,e.element);},o=e=>{for(let t of e.element.elements)n.has(t)||this.nodes.delete(t);};this.model.setChildren(e,t,{...i,onDidCreateNode:s,onDidDeleteNode:o});}has(e){return this.nodes.has(e);}getListIndex(e){let t=this.getCompressedNode(e);return this.model.getListIndex(t);}getListRenderCount(e){let t=this.getCompressedNode(e);return this.model.getListRenderCount(t);}getNode(e){if(void 0===e)return this.model.getNode();let t=this.getCompressedNode(e);return this.model.getNode(t);}getNodeLocation(e){let t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1];}getParentNodeLocation(e){let t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1];}getFirstElementChild(e){let t=this.getCompressedNode(e);return this.model.getFirstElementChild(t);}isCollapsible(e){let t=this.getCompressedNode(e);return this.model.isCollapsible(t);}setCollapsible(e,t){let i=this.getCompressedNode(e);return this.model.setCollapsible(i,t);}isCollapsed(e){let t=this.getCompressedNode(e);return this.model.isCollapsed(t);}setCollapsed(e,t,i){let n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i);}expandTo(e){let t=this.getCompressedNode(e);this.model.expandTo(t);}rerender(e){let t=this.getCompressedNode(e);this.model.rerender(t);}refilter(){this.model.refilter();}resort(e=null,t=!0){let i=this.getCompressedNode(e);this.model.resort(i,t);}getCompressedNode(e){if(null===e)return null;let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);return t;}}let PZ=e=>e[e.length-1];class PY{get element(){return null===this.node.element?null:this.unwrapper(this.node.element);}get children(){return this.node.children.map(e=>new PY(this.unwrapper,e));}get depth(){return this.node.depth;}get visibleChildrenCount(){return this.node.visibleChildrenCount;}get visibleChildIndex(){return this.node.visibleChildIndex;}get collapsible(){return this.node.collapsible;}get collapsed(){return this.node.collapsed;}get visible(){return this.node.visible;}get filterData(){return this.node.filterData;}constructor(e,t){this.unwrapper=e,this.node=t;}}class PX{get onDidSpliceModel(){return iv.C.map(this.model.onDidSpliceModel,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}));}get onDidSpliceRenderedNodes(){return iv.C.map(this.model.onDidSpliceRenderedNodes,({start:e,deleteCount:t,elements:i})=>({start:e,deleteCount:t,elements:i.map(e=>this.nodeMapper.map(e))}));}get onDidChangeCollapseState(){return iv.C.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}));}get onDidChangeRenderNodeCount(){return iv.C.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e));}constructor(e,t={}){this.rootRef=null,this.elementMapper=t.elementMapper||PZ;let i=e=>this.elementMapper(e.elements);this.nodeMapper=new Pp(e=>new PY(i,e)),this.model=new PQ(e,{...t,identityProvider:t.identityProvider&&{getId:e=>t.identityProvider.getId(i(e)),getGroupId:t.identityProvider.getGroupId?e=>t.identityProvider.getGroupId(i(e)):void 0},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter(e,i){let n=e.elements;for(let e=0;e<n.length-1;e++){let s=t.filter.filter(n[e],i);i=Pv(P_(s)?s.visibility:s);}return t.filter.filter(n[n.length-1],i);}}});}setChildren(e,t=rw.f.empty(),i={}){this.model.setChildren(e,t,i);}isCompressionEnabled(){return this.model.isCompressionEnabled();}setCompressionEnabled(e){this.model.setCompressionEnabled(e);}has(e){return this.model.has(e);}getListIndex(e){return this.model.getListIndex(e);}getListRenderCount(e){return this.model.getListRenderCount(e);}getNode(e){return this.nodeMapper.map(this.model.getNode(e));}getNodeLocation(e){return e.element;}getParentNodeLocation(e){return this.model.getParentNodeLocation(e);}getFirstElementChild(e){let t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements);}isCollapsible(e){return this.model.isCollapsible(e);}setCollapsible(e,t){return this.model.setCollapsible(e,t);}isCollapsed(e){return this.model.isCollapsed(e);}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i);}expandTo(e){return this.model.expandTo(e);}rerender(e){return this.model.rerender(e);}refilter(){return this.model.refilter();}resort(e=null,t=!0){return this.model.resort(e,t);}getCompressedTreeNode(e=null){return this.model.getNode(e);}}class PJ extends P${get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState;}constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e;}setChildren(e,t=rw.f.empty(),i){this.model.setChildren(e,t,i);}rerender(e){void 0===e?this.view.rerender():this.model.rerender(e);}resort(e,t=!0){this.model.resort(e,t);}hasElement(e){return this.model.has(e);}createModel(e,t){return new PK(e,t);}}class P0{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider();}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState);}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)};}renderElement(e,t,i,n){let s=this.stickyScrollDelegate.getCompressedNode(e);s||(s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===s.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n));}disposeElement(e,t,i,n){var _this$renderer$dispos2,_this$renderer2,_this$renderer$dispos3,_this$renderer3;i.compressedTreeNode?(_this$renderer$dispos2=(_this$renderer2=this.renderer).disposeCompressedElements)===null||_this$renderer$dispos2===void 0?void 0:_this$renderer$dispos2.call(_this$renderer2,i.compressedTreeNode,t,i.data,n):(_this$renderer$dispos3=(_this$renderer3=this.renderer).disposeElement)===null||_this$renderer$dispos3===void 0?void 0:_this$renderer$dispos3.call(_this$renderer3,e,t,i.data,n);}disposeTemplate(e){this.renderer.disposeTemplate(e.data);}renderTwistie(e,t){var _this$renderer$render,_this$renderer$render2,_this$renderer4;return(_this$renderer$render=(_this$renderer$render2=(_this$renderer4=this.renderer).renderTwistie)===null||_this$renderer$render2===void 0?void 0:_this$renderer$render2.call(_this$renderer4,e,t))!==null&&_this$renderer$render!==void 0?_this$renderer$render:!1;}}!function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);o>3&&r&&Object.defineProperty(t,i,r);}([pH],P0.prototype,"compressedTreeNodeProvider",null);class P1{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map();}getCompressedNode(e){return this.compressedStickyNodes.get(e);}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;n<e.length;n++){let s=e[n],o=s.position+s.height;if(n+1<e.length&&o+e[n+1].height>i||n>=t-1&&t<e.length){let t=e.slice(0,n),i=e.slice(n);return[...t,this.compressStickyNodes(i)];}}return e;}compressStickyNodes(e){if(0===e.length)throw Error("Can't compress empty sticky nodes");let t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];let i=[];for(let n=0;n<e.length;n++){let s=e[n],o=t.getCompressedTreeNode(s.node.element);if(o.element){if(0!==n&&o.element.incompressible)break;i.push(...o.element.elements);}}if(i.length<2)return e[0];let n=e[e.length-1],s={...n.node,children:[],element:{elements:i,incompressible:!1}},o=new Proxy(e[0].node,{}),r={node:o,startIndex:e[0].startIndex,endIndex:n.endIndex,position:e[0].position,height:e[0].height,sourceNodeEnd:e[0].sourceNodeEnd,sourceNodePartiallyVisible:e.some(e=>e.sourceNodePartiallyVisible),hasExplicitHeight:e[0].hasExplicitHeight};return this.compressedStickyNodes.set(o,s),r;}}class P2 extends PJ{constructor(e,t,i,n,s={}){let o=()=>this,r=new P1(()=>this.model);super(e,t,i,n.map(e=>new P0(o,r,e)),{...(s&&{...s,keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(e){let t;try{t=o().getCompressedTreeNode(e);}catch{return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e);}return 1===t.element.elements.length?s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e):s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.element.elements);}}}),stickyScrollDelegate:r});}setChildren(e,t=rw.f.empty(),i){this.model.setChildren(e,t,i);}createModel(e,t){return new PX(e,t);}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled);}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e);}}function P3(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1};}function P5(e,t){return!!t.parent&&(t.parent===e||P5(e,t.parent));}class P6{get element(){return this.node.element.element;}get children(){return this.node.children.map(e=>new P6(e));}get depth(){return this.node.depth;}get visibleChildrenCount(){return this.node.visibleChildrenCount;}get visibleChildIndex(){return this.node.visibleChildIndex;}get collapsible(){return this.node.collapsible;}get collapsed(){return this.node.collapsed;}get visible(){return this.node.visible;}get filterData(){return this.node.filterData;}constructor(e){this.node=e;}}class P4{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map(),this.templateId=e.templateId;}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)};}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n);}renderTwistie(e,t){return e.slow?(t.classList.add(...eY.asClassNameArray(rC.f.treeItemLoading)),!0):(t.classList.remove(...eY.asClassNameArray(rC.f.treeItemLoading)),!1);}disposeElement(e,t,i,n){var _this$renderer$dispos4,_this$renderer5;(_this$renderer$dispos4=(_this$renderer5=this.renderer).disposeElement)===null||_this$renderer$dispos4===void 0||_this$renderer$dispos4.call(_this$renderer5,this.nodeMapper.map(e),t,i.templateData,n);}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData);}dispose(){this.renderedNodes.clear();}}function P9(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)};}function P8(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target};}class P7 extends RE{constructor(e){super(e.elements.map(e=>e.element)),this.data=e;}}function Fe(e){return e instanceof RE?new P7(e):e;}class Ft{constructor(e){this.dnd=e;}getDragURI(e){return this.dnd.getDragURI(e.element);}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t);}onDragStart(e,t){var _this$dnd$onDragStart4,_this$dnd9;(_this$dnd$onDragStart4=(_this$dnd9=this.dnd).onDragStart)===null||_this$dnd$onDragStart4===void 0||_this$dnd$onDragStart4.call(_this$dnd9,Fe(e),t);}onDragOver(e,t,i,n,s,o=!0){return this.dnd.onDragOver(Fe(e),t&&t.element,i,n,s);}drop(e,t,i,n,s){this.dnd.drop(Fe(e),t&&t.element,i,n,s);}onDragEnd(e){var _this$dnd$onDragEnd4,_this$dnd0;(_this$dnd$onDragEnd4=(_this$dnd0=this.dnd).onDragEnd)===null||_this$dnd$onDragEnd4===void 0||_this$dnd$onDragEnd4.call(_this$dnd0,e);}dispose(){this.dnd.dispose();}}class Fi extends PD{constructor(e,t,i){super(t,i),this.findProvider=e,this.isFindSessionActive=!1;}filter(e,t){let i=super.filter(e,t);return this.isFindSessionActive&&this.findMode!==tG.Highlight&&this.findProvider.isVisible?0===Pv(P_(i)?i.visibility:i)?0:this.findProvider.isVisible(e)?i:0:i;}}class Fn extends PN{constructor(e,t,i,n,s){super(e,i,n,s),this.findProvider=t,this.filter=i,this.activeSession=!1,this.asyncWorkInProgress=!1,this.disposables.add((0,i8.Q)(async()=>{var _this$findProvider$en,_this$findProvider;this.activeSession&&(await((_this$findProvider$en=(_this$findProvider=this.findProvider).endSession)===null||_this$findProvider$en===void 0?void 0:_this$findProvider$en.call(_this$findProvider)));}));}render(){if(this.asyncWorkInProgress||!this.activeFindMetadata)return;let e=0===this.activeFindMetadata.matchCount&&this.pattern.length>0;this.renderMessage(e),this.pattern.length&&this.alertResults(this.activeFindMetadata.matchCount);}shouldAllowFocus(e){return this.shouldFocusWhenNavigating(e);}shouldFocusWhenNavigating(e){var _e$element3;if(!this.activeSession||!this.activeFindMetadata)return!0;let t=(_e$element3=e.element)===null||_e$element3===void 0?void 0:_e$element3.element;return!!(t&&this.activeFindMetadata.isMatch(t))||!tS.isDefault(e.filterData);}}function Fs(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element),getGroupId:e.identityProvider.getGroupId?t=>e.identityProvider.getGroupId(t.element):void 0},dnd:e.dnd&&new Ft(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var _e$accessibilityProvi;return!!((_e$accessibilityProvi=e.accessibilityProvider)!==null&&_e$accessibilityProvi!==void 0&&_e$accessibilityProvi.isChecked(t.element));}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},stickyScrollNodeSourceRangeProvider:e.stickyScrollNodeSourceRangeProvider&&((t,i)=>e.stickyScrollNodeSourceRangeProvider(t.element,i)),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),twistieAdditionalCssClass:void 0===e.twistieAdditionalCssClass?void 0:t=>e.twistieAdditionalCssClass(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"==typeof e.defaultFindVisibility?e.defaultFindVisibility:void 0===e.defaultFindVisibility?2:e.defaultFindVisibility(t.element),stickyScrollDelegate:e.stickyScrollDelegate};}function Fo(e,t){t(e),e.children.forEach(e=>Fo(e,t));}class Fr{get onDidScroll(){return this.tree.onDidScroll;}get onDidChangeFocus(){return iv.C.map(this.tree.onDidChangeFocus,P9);}get onDidChangeSelection(){return iv.C.map(this.tree.onDidChangeSelection,P9);}get onMouseDblClick(){return iv.C.map(this.tree.onMouseDblClick,P8);}get onPointer(){return iv.C.map(this.tree.onPointer,P8);}get onDidFocus(){return this.tree.onDidFocus;}get onDidChangeModel(){return this.tree.onDidChangeModel;}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState;}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused;}get onDidDispose(){return this.tree.onDidDispose;}constructor(e,t,i,n,s,o={}){var _o$findWidgetEnabled;let r;this.user=e,this.dataSource=s,this.nodes=new Map(),this.subTreeRefreshPromises=new Map(),this.refreshPromises=new Map(),this._onDidRender=new iv.S(),this._onDidChangeNodeSlowState=new iv.S(),this.nodeMapper=new Pp(e=>new P6(e)),this.disposables=new i8.q(),this.identityProvider=o.identityProvider,this.autoExpandSingleChildren=void 0!==o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.getDefaultCollapseState=e=>o.collapseByDefault?o.collapseByDefault(e)?tK.PreserveOrCollapsed:tK.PreserveOrExpanded:void 0;let a=!1;if(o.findProvider&&((_o$findWidgetEnabled=o.findWidgetEnabled)!==null&&_o$findWidgetEnabled!==void 0?_o$findWidgetEnabled:!0)&&o.keyboardNavigationLabelProvider&&o.contextViewProvider&&(a=!0,r=new Fi(o.findProvider,o.keyboardNavigationLabelProvider,o.filter)),this.tree=this.createTree(e,t,i,n,{...o,findWidgetEnabled:!a,filter:r!==null&&r!==void 0?r:o.filter}),this.root=P3({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables),a){let e={styles:o.findWidgetStyles,showNotFoundMessage:o.showNotFoundMessage,defaultFindMatchType:o.defaultFindMatchType,defaultFindMode:o.defaultFindMode};this.findController=this.disposables.add(new Fn(this.tree,o.findProvider,r,this.tree.options.contextViewProvider,e)),this.focusNavigationFilter=e=>this.findController.shouldFocusWhenNavigating(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType;}else this.onDidChangeFindOpenState=this.tree.onDidChangeFindOpenState,this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType;}createTree(e,t,i,n,s){return new PJ(e,t,new Px(i),n.map(e=>new P4(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),Fs(s)||{});}updateOptions(e={}){this.findController&&(void 0!==e.defaultFindMode&&(this.findController.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.findController.matchType=e.defaultFindMatchType)),this.tree.updateOptions(e);}getHTMLElement(){return this.tree.getHTMLElement();}get scrollTop(){return this.tree.scrollTop;}set scrollTop(e){this.tree.scrollTop=e;}get scrollHeight(){return this.tree.scrollHeight;}get renderHeight(){return this.tree.renderHeight;}domFocus(){this.tree.domFocus();}layout(e,t){this.tree.layout(e,t);}style(e){this.tree.style(e);}getInput(){return this.root.element;}async setInput(e,t){this.cancelAllRefreshPromises(),this.root.element=e;let i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop);}cancelAllRefreshPromises(e=!1){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),e&&(this.subTreeRefreshPromises.forEach(e=>e.cancel()),this.subTreeRefreshPromises.clear());}async _updateChildren(e=this.root.element,t=!0,i=!1,n,s){if(void 0===this.root.element)throw new Pg(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await iv.C.toPromise(this._onDidRender.event));let o=this.getDataNode(e);if(await this.refreshAndRenderNode(o,t,n,s),i)try{this.tree.rerender(o);}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();let t=this.getDataNode(e);this.tree.rerender(t);}getNode(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i);}collapse(e,t=!1){let i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t);}async expand(e,t=!1){if(void 0===this.root.element)throw new Pg(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await iv.C.toPromise(this._onDidRender.event));let i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(await i.refreshPromise,await iv.C.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;let n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await i.refreshPromise,await iv.C.toPromise(this._onDidRender.event)),n;}setSelection(e,t){let i=e.map(e=>this.getDataNode(e));this.tree.setSelection(i,t);}getSelection(){return this.tree.getSelection().map(e=>e.element);}setFocus(e,t){let i=e.map(e=>this.getDataNode(e));this.tree.setFocus(i,t);}getFocus(){return this.tree.getFocus().map(e=>e.element);}reveal(e,t){this.tree.reveal(this.getDataNode(e),t);}getParentElement(e){let t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element;}getFirstElementChild(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element;}getDataNode(e){let t=this.nodes.get(e===this.root.element?null:e);if(!t){var _this$identityProvide;let t=(_this$identityProvide=this.identityProvider)===null||_this$identityProvide===void 0?void 0:_this$identityProvide.getId(e).toString();throw new Pg(this.user,`Data tree node not found${t?`: ${t}`:""}`);}return t;}async refreshAndRenderNode(e,t,i,n){this.disposables.isDisposed||(await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n));}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach((s,o)=>{!n&&(o===e||P5(o,e)||P5(e,o))&&(n=s.then(()=>this.refreshNode(e,t,i)));}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],t,i);return;}return this.doRefreshSubTree(e,t,i);}async doRefreshSubTree(e,t,i){let n=(0,nI.B)(async()=>{let n=await this.doRefreshNode(e,t,i);e.stale=!1,await nI.K.settled(n.map(e=>this.doRefreshSubTree(e,t,i)));});return e.refreshPromise=n,this.subTreeRefreshPromises.set(e,n),n.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e);}),n;}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){let t=this.doGetChildren(e);if((0,sI.O)(t))n=Promise.resolve(t);else{let i=(0,nI.W)(800);i.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e);},e=>null),n=t.finally(()=>i.cancel());}}else n=Promise.resolve(rw.f.empty());try{let s=await n;return this.setChildren(e,s,t,i);}catch(t){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,nf.F)(t))return[];throw t;}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e));}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;let i=this.dataSource.getChildren(e.element);return(0,sI.O)(i)?this.processChildren(i):(t=(0,nI.B)(async()=>this.processChildren(await i)),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e);}));}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(nf.C));}setChildren(e,t,i,n){let s=[...t];if(0===e.children.length&&0===s.length)return[];let o=new Map(),r=new Map();for(let t of e.children)o.set(t.element,t),this.identityProvider&&r.set(t.id,{node:t,collapsed:this.tree.hasElement(t)&&this.tree.isCollapsed(t)});let a=[],l=s.map(t=>{let s=!!this.dataSource.hasChildren(t);if(!this.identityProvider){let i=P3({element:t,parent:e,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&i.defaultCollapseState===tK.PreserveOrExpanded&&a.push(i),i;}let l=this.identityProvider.getId(t).toString(),h=r.get(l);if(h){let e=h.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=s,i?h.collapsed?(e.children.forEach(e=>Fo(e,e=>this.nodes.delete(e.element))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):s&&!h.collapsed&&a.push(e),e;}let d=P3({element:t,parent:e,id:l,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1?a.push(d):s&&d.defaultCollapseState===tK.PreserveOrExpanded&&a.push(d),d;});for(let e of o.values())Fo(e,e=>this.nodes.delete(e.element));for(let e of l)this.nodes.set(e.element,e);return(0,ip.r)(e.children,0,e.children.length,l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a;}render(e,t,i){let n=e.children.map(e=>this.asTreeElement(e,t)),s=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element),getGroupId:i.diffIdentityProvider.getGroupId?e=>i.diffIdentityProvider.getGroupId(e.element):void 0}};this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire();}asTreeElement(e,t){let i;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?rw.f.map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:i});}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e;}dispose(){this._onDidRender.dispose(),this._onDidChangeNodeSlowState.dispose(),this.disposables.dispose(),this.tree.dispose();}}class Fa{get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible};}get children(){return this.node.children.map(e=>new Fa(e));}get depth(){return this.node.depth;}get visibleChildrenCount(){return this.node.visibleChildrenCount;}get visibleChildIndex(){return this.node.visibleChildIndex;}get collapsible(){return this.node.collapsible;}get collapsed(){return this.node.collapsed;}get visible(){return this.node.visible;}get filterData(){return this.node.filterData;}constructor(e){this.node=e;}}class Fl{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map(),this.disposables=[],this.templateId=e.templateId;}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)};}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n);}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n);}renderTwistie(e,t){return e.slow?(t.classList.add(...eY.asClassNameArray(rC.f.treeItemLoading)),!0):(t.classList.remove(...eY.asClassNameArray(rC.f.treeItemLoading)),!1);}disposeElement(e,t,i,n){var _this$renderer$dispos5,_this$renderer6;(_this$renderer$dispos5=(_this$renderer6=this.renderer).disposeElement)===null||_this$renderer$dispos5===void 0||_this$renderer$dispos5.call(_this$renderer6,this.nodeMapper.map(e),t,i.templateData,n);}disposeCompressedElements(e,t,i,n){var _this$renderer$dispos6,_this$renderer7;(_this$renderer$dispos6=(_this$renderer7=this.renderer).disposeCompressedElements)===null||_this$renderer$dispos6===void 0||_this$renderer$dispos6.call(_this$renderer7,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n);}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData);}dispose(){this.renderedNodes.clear(),this.disposables=(0,i8.d)(this.disposables);}}class Fh extends Fr{constructor(e,t,i,n,s,o,r={}){super(e,t,i,s,o,r),this.compressionDelegate=n,this.compressibleNodeMapper=new Pp(e=>new Fa(e)),this.filter=r.filter;}createTree(e,t,i,n,s){let o;return new P2(e,t,new Px(i),n.map(e=>new Fl(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),(o=s&&Fs(s))&&{...o,keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&{...o.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:e=>s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(e.map(e=>e.element))},stickyScrollDelegate:o.stickyScrollDelegate}||{});}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)};}render(e,t,i){if(!this.identityProvider)return super.render(e,t);let n=e=>this.identityProvider.getId(e).toString(),s=e=>{let t=new Set();for(let i of e){let e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(let i of e.element.elements)t.add(n(i.element));}return t;},o=s(this.tree.getSelection()),r=s(this.tree.getFocus());super.render(e,t,i);let a=this.getSelection(),l=!1,h=this.getFocus(),d=!1,c=e=>{let t=e.element;if(t)for(let e=0;e<t.elements.length;e++){let i=n(t.elements[e].element),s=t.elements[t.elements.length-1].element;o.has(i)&&-1===a.indexOf(s)&&(a.push(s),l=!0),r.has(i)&&-1===h.indexOf(s)&&(h.push(s),d=!0);}e.children.forEach(c);};c(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),d&&this.setFocus(h);}processChildren(e){return this.filter&&(e=rw.f.filter(e,e=>{var t;let i="boolean"==typeof(t=this.filter.filter(e,1))?+!!t:P_(t)?Pv(t.visibility):Pv(t);if(2===i)throw Error("Recursive tree visibility not supported in async data compressed trees");return 1===i;})),super.processChildren(e);}}class Fd extends P${constructor(e,t,i,n,s,o={}){super(e,t,i,n,o),this.user=e,this.dataSource=s,this.identityProvider=o.identityProvider;}createModel(e,t){return new PK(e,t);}}var Fc=i8,Fu=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},Fg=function(e,t){return function(i,n){t(i,n,e);};};let Fp=ra("listService");class Ff{get lastFocusedList(){return this._lastFocusedWidget;}constructor(){this.disposables=new Fc.q(),this.lists=[],this._lastFocusedWidget=void 0;}setLastFocusedList(e){var _this$_lastFocusedWid,_this$_lastFocusedWid2;e!==this._lastFocusedWidget&&((_this$_lastFocusedWid=this._lastFocusedWidget)!==null&&_this$_lastFocusedWid!==void 0&&_this$_lastFocusedWid.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(_this$_lastFocusedWid2=this._lastFocusedWidget)===null||_this$_lastFocusedWid2===void 0?void 0:_this$_lastFocusedWid2.getHTMLElement().classList.add("last-focused"));}register(e,t){if(this.lists.some(t=>t.widget===e))throw Error("Cannot register the same widget multiple times");let i={widget:e,extraContextKeys:t};return this.lists.push(i),oa(e.getHTMLElement())&&this.setLastFocusedList(e),(0,Fc.W)(e.onDidFocus(()=>this.setLastFocusedList(e)),(0,Fc.Q)(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(e=>e!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0);}));}dispose(){this.disposables.dispose();}}let Fm=new r4("listScrollAtBoundary","none");rV.or(Fm.isEqualTo("top"),Fm.isEqualTo("both")),rV.or(Fm.isEqualTo("bottom"),Fm.isEqualTo("both"));let F_=new r4("listFocus",!0),Fv=new r4("treestickyScrollFocused",!1),Fb=new r4("listSupportsMultiselect",!0),FC=rV.and(F_,rV.not(T0),Fv.negate()),Fw=new r4("listHasSelectionOrFocus",!1),Fy=new r4("listDoubleSelection",!1),FS=new r4("listMultiSelection",!1),Fx=new r4("listSelectionNavigation",!1),FL=new r4("listSupportsFind",!0),Fk=new r4("treeElementCanCollapse",!1),FD=new r4("treeElementHasParent",!1),FM=new r4("treeElementCanExpand",!1),FI=new r4("treeElementHasChild",!1),FN=new r4("treeFindOpen",!1),FE="listTypeNavigationMode",FT="listAutomaticKeyboardNavigation";function FR(e,t){let i=e.createScoped(t.getHTMLElement());return F_.bindTo(i),i;}function FA(e,t){let i=Fm.bindTo(e),n=()=>{let e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none");};return n(),t.onDidScroll(n);}let FO="workbench.list.multiSelectModifier",FP="workbench.list.openMode",FF="workbench.list.horizontalScrolling",FB="workbench.list.defaultFindMode",FW="workbench.list.typeNavigationMode",FV="workbench.list.keyboardNavigation",FH="workbench.list.scrollByPage",Fz="workbench.list.defaultFindMatchType",FU="workbench.tree.indent",F$="workbench.tree.renderIndentGuides",FK="workbench.list.smoothScrolling",Fq="workbench.list.mouseWheelScrollSensitivity",Fj="workbench.list.fastScrollSensitivity",FG="workbench.tree.expandMode",FQ="workbench.tree.enableStickyScroll",FZ="workbench.tree.stickyScrollMaxItemCount";function FY(e){return"alt"===e.getValue(FO);}class FX extends Fc.N{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=FY(e),this.registerListeners();}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this.useAltAsMultipleSelectionModifier=FY(this.configurationService));}));}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:R0(e);}isSelectionRangeChangeEvent(e){return R1(e);}}function FJ(e,t){var _t$multipleSelectionC;var i;let n,s=e.get(lN),o=e.get(Ch),r=new Fc.q();return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>o.mightProducePrintableCharacter(e)},smoothScrolling:!!s.getValue(FK),mouseWheelScrollSensitivity:s.getValue(Fq),fastScrollSensitivity:s.getValue(Fj),multipleSelectionController:(_t$multipleSelectionC=t.multipleSelectionController)!==null&&_t$multipleSelectionC!==void 0?_t$multipleSelectionC:r.add(new FX(s)),keyboardNavigationEventFilter:(i=o,n=!1,e=>{if(e.toKeyCodeChord().isModifierKey())return!1;if(n)return n=!1,!1;let t=i.softDispatch(e,e.target);return 1===t.kind?(n=!0,!1):(n=!1,0===t.kind);}),scrollByPage:!!s.getValue(FH)},r];}let F0=class extends Ai{constructor(e,t,i,n,s,o,r,a,l){let h=void 0!==s.horizontalScrolling?s.horizontalScrolling:!!a.getValue(FF),[d,c]=l.invokeFunction(FJ,s);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(c),this.contextKeyService=FR(o,this),this.disposables.add(FA(this.contextKeyService,this)),this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this.listHasSelectionOrFocus=Fw.bindTo(this.contextKeyService),this.listDoubleSelection=Fy.bindTo(this.contextKeyService),this.listMultiSelection=FS.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=FY(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length);});})),this.disposables.add(this.onDidChangeFocus(()=>{let e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0);})),this.disposables.add(a.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(a));let t={};if(e.affectsConfiguration(FF)&&void 0===this.horizontalScrolling){let e=!!a.getValue(FF);t={...t,horizontalScrolling:e};}if(e.affectsConfiguration(FH)){let e=!!a.getValue(FH);t={...t,scrollByPage:e};}if(e.affectsConfiguration(FK)){let e=!!a.getValue(FK);t={...t,smoothScrolling:e};}if(e.affectsConfiguration(Fq)){let e=a.getValue(Fq);t={...t,mouseWheelScrollSensitivity:e};}if(e.affectsConfiguration(Fj)){let e=a.getValue(Fj);t={...t,fastScrollSensitivity:e};}Object.keys(t).length>0&&this.updateOptions(t);})),this.navigator=new F5(this,{configurationService:a,...s}),this.disposables.add(this.navigator);}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyles(e){this.style(e?AT(e):AE);}};F0=Fu([Fg(5,r9),Fg(6,Fp),Fg(7,lN),Fg(8,rr)],F0);let F1=class extends OA{constructor(e,t,i,n,s,o,r,a,l){let h=void 0!==s.horizontalScrolling?s.horizontalScrolling:!!a.getValue(FF),[d,c]=l.invokeFunction(FJ,s);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new Fc.q(),this.disposables.add(c),this.contextKeyService=FR(o,this),this.disposables.add(FA(this.contextKeyService,this.widget)),this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this._useAltAsMultipleSelectionModifier=FY(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(a.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(a));let t={};if(e.affectsConfiguration(FF)&&void 0===this.horizontalScrolling){let e=!!a.getValue(FF);t={...t,horizontalScrolling:e};}if(e.affectsConfiguration(FH)){let e=!!a.getValue(FH);t={...t,scrollByPage:e};}if(e.affectsConfiguration(FK)){let e=!!a.getValue(FK);t={...t,smoothScrolling:e};}if(e.affectsConfiguration(Fq)){let e=a.getValue(Fq);t={...t,mouseWheelScrollSensitivity:e};}if(e.affectsConfiguration(Fj)){let e=a.getValue(Fj);t={...t,fastScrollSensitivity:e};}Object.keys(t).length>0&&this.updateOptions(t);})),this.navigator=new F5(this,{configurationService:a,...s}),this.disposables.add(this.navigator);}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyles(e){this.style(e?AT(e):AE);}dispose(){this.disposables.dispose(),super.dispose();}};F1=Fu([Fg(5,r9),Fg(6,Fp),Fg(7,lN),Fg(8,rr)],F1);let F2=class extends OJ{constructor(e,t,i,n,s,o,r,a,l,h){let d=void 0!==o.horizontalScrolling?o.horizontalScrolling:!!l.getValue(FF),[c,u]=h.invokeFunction(FJ,o);super(e,t,i,n,s,{keyboardSupport:!1,...c,horizontalScrolling:d}),this.disposables.add(u),this.contextKeyService=FR(r,this),this.disposables.add(FA(this.contextKeyService,this)),this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listHasSelectionOrFocus=Fw.bindTo(this.contextKeyService),this.listDoubleSelection=Fy.bindTo(this.contextKeyService),this.listMultiSelection=FS.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=FY(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length);});})),this.disposables.add(this.onDidChangeFocus(()=>{let e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0);})),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(l));let t={};if(e.affectsConfiguration(FF)&&void 0===this.horizontalScrolling){let e=!!l.getValue(FF);t={...t,horizontalScrolling:e};}if(e.affectsConfiguration(FH)){let e=!!l.getValue(FH);t={...t,scrollByPage:e};}if(e.affectsConfiguration(FK)){let e=!!l.getValue(FK);t={...t,smoothScrolling:e};}if(e.affectsConfiguration(Fq)){let e=l.getValue(Fq);t={...t,mouseWheelScrollSensitivity:e};}if(e.affectsConfiguration(Fj)){let e=l.getValue(Fj);t={...t,fastScrollSensitivity:e};}Object.keys(t).length>0&&this.updateOptions(t);})),this.navigator=new F6(this,{configurationService:l,...o}),this.disposables.add(this.navigator);}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyles(e){this.style(e?AT(e):AE);}dispose(){this.disposables.dispose(),super.dispose();}};F2=Fu([Fg(6,r9),Fg(7,Fp),Fg(8,lN),Fg(9,rr)],F2);class F3 extends Fc.N{constructor(e,t){var _t$openOnSingleClick;super(),this.widget=e,this._onDidOpen=this._register(new iv.S()),this.onDidOpen=this._onDidOpen.event,this._register(iv.C.filter(this.widget.onDidChangeSelection,e=>om(e.browserEvent))(e=>this.onSelectionFromKeyboard(e))),this._register(this.widget.onPointer(e=>this.onPointer(e.element,e.browserEvent))),this._register(this.widget.onMouseDblClick(e=>this.onMouseDblClick(e.element,e.browserEvent))),"boolean"!=typeof(t===null||t===void 0?void 0:t.openOnSingleClick)&&t!==null&&t!==void 0&&t.configurationService?(this.openOnSingleClick=(t===null||t===void 0?void 0:t.configurationService.getValue(FP))!=="doubleClick",this._register(t===null||t===void 0?void 0:t.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(FP)&&(this.openOnSingleClick=(t===null||t===void 0?void 0:t.configurationService.getValue(FP))!=="doubleClick");}))):this.openOnSingleClick=(_t$openOnSingleClick=t===null||t===void 0?void 0:t.openOnSingleClick)!==null&&_t$openOnSingleClick!==void 0?_t$openOnSingleClick:!0;}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;let t=e.browserEvent,i="boolean"!=typeof t.preserveFocus||t.preserveFocus,n="boolean"==typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent);}onPointer(e,t){if(!this.openOnSingleClick||2===t.detail)return;let i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t);}onMouseDblClick(e,t){if(!t)return;let i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;let n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t);}_open(e,t,i,n,s){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s});}}class F5 extends F3{constructor(e,t){super(e,t),this.widget=e;}getSelectedElement(){return this.widget.getSelectedElements()[0];}}class F6 extends F3{constructor(e,t){super(e,t);}getSelectedElement(){return this.widget.getSelectedElements()[0];}}class F4 extends F3{constructor(e,t){super(e,t);}getSelectedElement(){var _this$widget$getSelec;return(_this$widget$getSelec=this.widget.getSelection()[0])!==null&&_this$widget$getSelec!==void 0?_this$widget$getSelec:void 0;}}let F9=class extends PJ{get onDidOpen(){return this.internals.onDidOpen;}constructor(e,t,i,n,s,o,r,a,l){let{options:h,getTypeNavigationMode:d,disposable:c}=o.invokeFunction(Bs,s);super(e,t,i,n,h),this.disposables.add(c),this.internals=new Bo(this,s,d,s.overrideStyles,r,a,l),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};F9=Fu([Fg(5,rr),Fg(6,r9),Fg(7,Fp),Fg(8,lN)],F9);let F8=class extends P2{constructor(e,t,i,n,s,o,r,a,l){let{options:h,getTypeNavigationMode:d,disposable:c}=o.invokeFunction(Bs,s);super(e,t,i,n,h),this.disposables.add(c),this.internals=new Bo(this,s,d,s.overrideStyles,r,a,l),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};F8=Fu([Fg(5,rr),Fg(6,r9),Fg(7,Fp),Fg(8,lN)],F8);let F7=class extends Fd{constructor(e,t,i,n,s,o,r,a,l,h){let{options:d,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Bs,o);super(e,t,i,n,s,d),this.disposables.add(u),this.internals=new Bo(this,o,c,o.overrideStyles,a,l,h),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};F7=Fu([Fg(6,rr),Fg(7,r9),Fg(8,Fp),Fg(9,lN)],F7);let Be=class extends Fr{get onDidOpen(){return this.internals.onDidOpen;}constructor(e,t,i,n,s,o,r,a,l,h){let{options:d,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Bs,o);super(e,t,i,n,s,d),this.disposables.add(u),this.internals=new Bo(this,o,c,o.overrideStyles,a,l,h),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};Be=Fu([Fg(6,rr),Fg(7,r9),Fg(8,Fp),Fg(9,lN)],Be);let Bt=class extends Fh{constructor(e,t,i,n,s,o,r,a,l,h,d){let{options:c,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Bs,r);super(e,t,i,n,s,o,c),this.disposables.add(g),this.internals=new Bo(this,r,u,r.overrideStyles,l,h,d),this.disposables.add(this.internals);}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e);}};function Bi(e){let t=e.getValue(FB);if("highlight"===t)return tG.Highlight;if("filter"===t)return tG.Filter;let i=e.getValue(FV);return"simple"===i||"highlight"===i?tG.Highlight:"filter"===i?tG.Filter:void 0;}function Bn(e){let t=e.getValue(Fz);return"fuzzy"===t?tQ.Fuzzy:"contiguous"===t?tQ.Contiguous:void 0;}function Bs(e,t){var _t$defaultFindMode,_t$defaultFindMatchTy,_t$expandOnlyOnTwisti,_t$enableStickyScroll,_t$stickyScrollMaxIte;let i=e.get(lN),n=e.get(kP),s=e.get(r9),o=e.get(rr),r=void 0!==t.horizontalScrolling?t.horizontalScrolling:!!i.getValue(FF),[a,l]=o.invokeFunction(FJ,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue(F$);return{getTypeNavigationMode:()=>{let e=s.getContextKeyValue(FE);if("automatic"===e)return tF.Automatic;if("trigger"===e||!1===s.getContextKeyValue(FT))return tF.Trigger;let t=i.getValue(FW);return"automatic"===t?tF.Automatic:"trigger"===t?tF.Trigger:void 0;},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"==typeof i.getValue(FU)?i.getValue(FU):void 0,renderIndentGuides:d,smoothScrolling:!!i.getValue(FK),defaultFindMode:(_t$defaultFindMode=t.defaultFindMode)!==null&&_t$defaultFindMode!==void 0?_t$defaultFindMode:Bi(i),defaultFindMatchType:(_t$defaultFindMatchTy=t.defaultFindMatchType)!==null&&_t$defaultFindMatchTy!==void 0?_t$defaultFindMatchTy:Bn(i),horizontalScrolling:r,scrollByPage:!!i.getValue(FH),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(_t$expandOnlyOnTwisti=t.expandOnlyOnTwistieClick)!==null&&_t$expandOnlyOnTwisti!==void 0?_t$expandOnlyOnTwisti:"doubleClick"===i.getValue(FG),contextViewProvider:n,findWidgetStyles:AI,enableStickyScroll:(_t$enableStickyScroll=t.enableStickyScroll)!==null&&_t$enableStickyScroll!==void 0?_t$enableStickyScroll:!!i.getValue(FQ),stickyScrollMaxItemCount:(_t$stickyScrollMaxIte=t.stickyScrollMaxItemCount)!==null&&_t$stickyScrollMaxIte!==void 0?_t$stickyScrollMaxIte:Number(i.getValue(FZ))}};}Bt=Fu([Fg(7,rr),Fg(8,r9),Fg(9,Fp),Fg(10,lN)],Bt);let Bo=class{get onDidOpen(){return this.navigator.onDidOpen;}constructor(e,t,i,n,s,o,r){var _t$findWidgetEnabled;this.tree=e,this.disposables=[],this.contextKeyService=FR(s,e),this.disposables.push(FA(this.contextKeyService,e)),this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!t.selectionNavigation),this.listSupportFindWidget=FL.bindTo(this.contextKeyService),this.listSupportFindWidget.set((_t$findWidgetEnabled=t.findWidgetEnabled)!==null&&_t$findWidgetEnabled!==void 0?_t$findWidgetEnabled:!0),this.hasSelectionOrFocus=Fw.bindTo(this.contextKeyService),this.hasDoubleSelection=Fy.bindTo(this.contextKeyService),this.hasMultiSelection=FS.bindTo(this.contextKeyService),this.treeElementCanCollapse=Fk.bindTo(this.contextKeyService),this.treeElementHasParent=FD.bindTo(this.contextKeyService),this.treeElementCanExpand=FM.bindTo(this.contextKeyService),this.treeElementHasChild=FI.bindTo(this.contextKeyService),this.treeFindOpen=FN.bindTo(this.contextKeyService),this.treeStickyScrollFocused=Fv.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=FY(r),this.updateStyleOverrides(n);let a=()=>{let t=e.getFocus()[0];if(!t)return;let i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t));},l=new Set();l.add(FE),l.add(FT),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection(()=>{let t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length);});}),e.onDidChangeFocus(()=>{let t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),a();}),e.onDidChangeCollapseState(a),e.onDidChangeModel(a),e.onDidChangeFindOpenState(e=>this.treeFindOpen.set(e)),e.onDidChangeStickyScrollFocused(e=>this.treeStickyScrollFocused.set(e)),r.onDidChangeConfiguration(n=>{let s={};if(n.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(r)),n.affectsConfiguration(FU)){let e=r.getValue(FU);s={...s,indent:e};}if(n.affectsConfiguration(F$)&&void 0===t.renderIndentGuides){let e=r.getValue(F$);s={...s,renderIndentGuides:e};}if(n.affectsConfiguration(FK)){let e=!!r.getValue(FK);s={...s,smoothScrolling:e};}if(n.affectsConfiguration(FB)||n.affectsConfiguration(FV)){let e=Bi(r);s={...s,defaultFindMode:e};}if(n.affectsConfiguration(FW)||n.affectsConfiguration(FV)){let e=i();s={...s,typeNavigationMode:e};}if(n.affectsConfiguration(Fz)){let e=Bn(r);s={...s,defaultFindMatchType:e};}if(n.affectsConfiguration(FF)&&void 0===t.horizontalScrolling){let e=!!r.getValue(FF);s={...s,horizontalScrolling:e};}if(n.affectsConfiguration(FH)){let e=!!r.getValue(FH);s={...s,scrollByPage:e};}if(n.affectsConfiguration(FG)&&void 0===t.expandOnlyOnTwistieClick&&(s={...s,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(FG)}),n.affectsConfiguration(FQ)&&void 0===t.enableStickyScroll){let e=r.getValue(FQ);s={...s,enableStickyScroll:e};}if(n.affectsConfiguration(FZ)&&void 0===t.stickyScrollMaxItemCount){let e=Math.max(1,r.getValue(FZ));s={...s,stickyScrollMaxItemCount:e};}if(n.affectsConfiguration(Fq)){let e=r.getValue(Fq);s={...s,mouseWheelScrollSensitivity:e};}if(n.affectsConfiguration(Fj)){let e=r.getValue(Fj);s={...s,fastScrollSensitivity:e};}Object.keys(s).length>0&&e.updateOptions(s);}),this.contextKeyService.onDidChangeContext(t=>{t.affectsSome(l)&&e.updateOptions({typeNavigationMode:i()});})),this.navigator=new F4(e,{configurationService:r,...t}),this.disposables.push(this.navigator);}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyleOverrides(e){this.tree.style(e?AT(e):AE);}dispose(){this.disposables=(0,Fc.d)(this.disposables);}};Bo=Fu([Fg(4,r9),Fg(5,Fp),Fg(6,lN)],Bo),ai.as(lZ.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,iM.M)(1801,"Workbench"),type:"object",properties:{[FO]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,iM.M)(1802,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,iM.M)(1803,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,iM.M)(1804,"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[FP]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,iM.M)(1805,"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[FF]:{type:"boolean",default:!1,description:(0,iM.M)(1806,"Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[FH]:{type:"boolean",default:!1,description:(0,iM.M)(1807,"Controls whether clicks in the scrollbar scroll page by page.")},[FU]:{type:"number",default:8,minimum:4,maximum:40,description:(0,iM.M)(1808,"Controls tree indentation in pixels.")},[F$]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,iM.M)(1809,"Controls whether the tree should render indent guides.")},[FK]:{type:"boolean",default:!1,description:(0,iM.M)(1810,"Controls whether lists and trees have smooth scrolling.")},[Fq]:{type:"number",default:1,markdownDescription:(0,iM.M)(1811,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Fj]:{type:"number",default:5,markdownDescription:(0,iM.M)(1812,"Scrolling speed multiplier when pressing `Alt`.")},[FB]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,iM.M)(1813,"Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,iM.M)(1814,"Filter elements when searching.")],default:"highlight",description:(0,iM.M)(1815,"Controls the default find mode for lists and trees in the workbench.")},[FV]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,iM.M)(1816,"Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,iM.M)(1817,"Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,iM.M)(1818,"Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,iM.M)(1819,"Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,iM.M)(1820,"Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[Fz]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,iM.M)(1821,"Use fuzzy matching when searching."),(0,iM.M)(1822,"Use contiguous matching when searching.")],default:"fuzzy",description:(0,iM.M)(1823,"Controls the type of matching used when searching lists and trees in the workbench.")},[FG]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,iM.M)(1824,"Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[FQ]:{type:"boolean",default:!0,description:(0,iM.M)(1825,"Controls whether sticky scrolling is enabled in trees.")},[FZ]:{type:"number",minimum:1,default:7,markdownDescription:(0,iM.M)(1826,"Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[FW]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,iM.M)(1827,"Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}}),e.s(["k",0,Fp,"r",0,Ff,"Y",0,Be,"p",0,FC,"e",0,F9,"O",0,Fk,"l",0,FM],2554);var Br=i8;class Ba extends Br.N{constructor(e,t=[]){super(),this.logger=new aq([e,...t]),this._register(e.onDidChangeLogLevel(e=>this.setLevel(e)));}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel;}setLevel(e){this.logger.setLevel(e);}getLevel(){return this.logger.getLevel();}trace(e,...t){this.logger.trace(e,...t);}debug(e,...t){this.logger.debug(e,...t);}info(e,...t){this.logger.info(e,...t);}warn(e,...t){this.logger.warn(e,...t);}error(e,...t){this.logger.error(e,...t);}}(eR=tY||(tY={}))[eR.Hint=1]="Hint",eR[eR.Info=2]="Info",eR[eR.Warning=4]="Warning",eR[eR.Error=8]="Error",(eA=tY||(tY={})).compare=function(e,t){return t-e;},(A=Object.create(null))[eA.Error]=(0,iM.M)(1828,"Error"),A[eA.Warning]=(0,iM.M)(1829,"Warning"),A[eA.Info]=(0,iM.M)(1830,"Info"),eA.toString=function(e){return A[e]||"";},(O=Object.create(null))[eA.Error]=(0,iM.M)(1831,"Errors"),O[eA.Warning]=(0,iM.M)(1832,"Warnings"),O[eA.Info]=(0,iM.M)(1833,"Infos"),eA.toStringPlural=function(e){return O[e]||"";},eA.fromSeverity=function(e){switch(e){case bz.Error:return eA.Error;case bz.Warning:return eA.Warning;case bz.Info:return eA.Info;case bz.Ignore:return eA.Hint;}},eA.toSeverity=function(e){switch(e){case eA.Error:return bz.Error;case eA.Warning:return bz.Warning;case eA.Info:return bz.Info;case eA.Hint:return bz.Ignore;}};var Bl=tX||(tX={});function Bh(e,t){let i=[""];return e.source?i.push(e.source.replace("¦","\\¦")):i.push(""),e.code?"string"==typeof e.code?i.push(e.code.replace("¦","\\¦")):i.push(e.code.value.replace("¦","\\¦")):i.push(""),void 0!==e.severity&&null!==e.severity?i.push(tY.toString(e.severity)):i.push(""),e.message&&t?i.push(e.message.replace("¦","\\¦")):i.push(""),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(""),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(""),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(""),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(""),i.push(""),i.join("¦");}Bl.makeKey=function(e){return Bh(e,!0);},Bl.makeKeyOptionalMessage=Bh;let Bd=ra("markerService");e.s(["O",0,tX,"W",0,Bd,"H",0,tY],3544);let Bc=new Set([nT.I.inMemory,nT.I.vscodeSourceControl,nT.I.walkThrough,nT.I.walkThroughSnippet,nT.I.vscodeChatCodeBlock,nT.I.vscodeTerminal]);class Bu{constructor(){this._byResource=new av._(),this._byOwner=new Map();}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map(),this._byResource.set(e,n)),n.set(t,i);let s=this._byOwner.get(t);s||(s=new av._(),this._byOwner.set(t,s)),s.set(e,i);}get(e,t){let i=this._byResource.get(e);return i===null||i===void 0?void 0:i.get(t);}delete(e,t){let i=!1,n=!1,s=this._byResource.get(e);s&&(i=s.delete(t));let o=this._byOwner.get(t);if(o&&(n=o.delete(e)),i!==n)throw Error("illegal state");return i&&n;}values(e){var _this$_byOwner$get$va,_this$_byOwner$get,_this$_byResource$get,_this$_byResource$get2;return"string"==typeof e?(_this$_byOwner$get$va=(_this$_byOwner$get=this._byOwner.get(e))===null||_this$_byOwner$get===void 0?void 0:_this$_byOwner$get.values())!==null&&_this$_byOwner$get$va!==void 0?_this$_byOwner$get$va:rw.f.empty():ne.m.isUri(e)?(_this$_byResource$get=(_this$_byResource$get2=this._byResource.get(e))===null||_this$_byResource$get2===void 0?void 0:_this$_byResource$get2.values())!==null&&_this$_byResource$get!==void 0?_this$_byResource$get:rw.f.empty():rw.f.map(rw.f.concat(...this._byOwner.values()),e=>e[1]);}}class Bg{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new av._(),this._service=e,this._subscription=e.onMarkerChanged(this._update,this);}dispose(){this._subscription.dispose();}_update(e){for(let t of e){let e=this._data.get(t);e&&this._substract(e);let i=this._resourceStats(t);this._add(i),this._data.set(t,i);}}_resourceStats(e){let t={errors:0,warnings:0,infos:0,unknowns:0};if(Bc.has(e.scheme))return t;for(let{severity:i}of this._service.read({resource:e}))i===tY.Error?t.errors+=1:i===tY.Warning?t.warnings+=1:i===tY.Info?t.infos+=1:t.unknowns+=1;return t;}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns;}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns;}}class Bp{constructor(){this._onMarkerChanged=new iv.M({merge:Bp._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Bu(),this._stats=new Bg(this),this._filteredResources=new av._();}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose();}remove(e,t){for(let i of t||[])this.changeOne(e,i,[]);}changeOne(e,t,i){if((0,ip.w)(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{let n=[];for(let s of i){let i=Bp._toMarker(e,t,s);i&&n.push(i);}this._data.set(t,e,n),this._onMarkerChanged.fire([t]);}}static _toMarker(e,t,i){let{code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:h,endColumn:d,relatedInformation:c,modelVersionId:u,tags:g,origin:p}=i;if(o)return l=l>0?l:1,h=h>=(a=a>0?a:1)?h:a,d=d>0?d:l,{resource:t,owner:e,code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:h,endColumn:d,relatedInformation:c,modelVersionId:u,tags:g,origin:p};}changeAll(e,t){let i=[],n=this._data.values(e);if(n)for(let t of n){let n=rw.f.first(t);n&&(i.push(n.resource),this._data.delete(n.resource,e));}if((0,ip.e)(t)){let n=new av._();for(let{resource:s,marker:o}of t){let t=Bp._toMarker(e,s,o);if(!t)continue;let r=n.get(s);r?r.push(t):(n.set(s,[t]),i.push(s));}for(let[t,i]of n)this._data.set(t,e,i);}i.length>0&&this._onMarkerChanged.fire(i);}_createFilteredMarker(e,t){let i=1===t.length?(0,iM.M)(1834,'Problems are paused because: "{0}"',t[0]):(0,iM.M)(1835,'Problems are paused because: "{0}" and {1} more',t[0],t.length-1);return{owner:"markersFilter",resource:e,severity:tY.Info,message:i,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1};}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:s}=e;if((!s||s<0)&&(s=-1),t&&i){let o=e.ignoreResourceFilters?void 0:this._filteredResources.get(i);if(o!==null&&o!==void 0&&o.length)return[this._createFilteredMarker(i,o)];let r=this._data.get(i,t);if(!r)return[];let a=[];for(let t of r){if(s>0&&a.length===s)break;let o=e.ignoreResourceFilters?void 0:this._filteredResources.get(i);o!==null&&o!==void 0&&o.length?a.push(this._createFilteredMarker(i,o)):Bp._accept(t,n)&&a.push(t);}return a;}{let o=t||i?this._data.values(i!==null&&i!==void 0?i:t):this._data.values(),r=[],a=new av.f();for(let t of o)for(let i of t){if(a.has(i.resource))continue;if(s>0&&r.length===s)break;let t=e.ignoreResourceFilters?void 0:this._filteredResources.get(i.resource);t!==null&&t!==void 0&&t.length?(r.push(this._createFilteredMarker(i.resource,t)),a.add(i.resource)):Bp._accept(i,n)&&r.push(i);}return r;}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity;}static _merge(e){let t=new av._();for(let i of e)for(let e of i)t.set(e,!0);return Array.from(t.keys());}}let Bf=ra("progressService");class Bm{constructor(e){this.callback=e;}report(e){this._value=e,this.callback(this._value);}}_Bm=Bm;_Bm.None=Object.freeze({report(){}});let B_=ra("editorProgressService");e.s(["H",0,B_,"h",0,Bf,"e",0,Bm],38995);class Bv{constructor(){this._modifierObservables=new WeakMap();}readModifierKeyStatus(e,t){let i=e instanceof Window?e:sT(e),n=this._modifierObservables.get(i);if(!n){let e=oP.getInstance();n=sf(this,e.event,()=>({ctrlKey:e.keyStatus.ctrlKey,shiftKey:e.keyStatus.shiftKey,altKey:e.keyStatus.altKey,metaKey:e.keyStatus.metaKey})),this._modifierObservables.set(i,n);}return n.read(t);}createFocusTracker(e,t){let i=t.add(oS(e)),n=sc("isFocused",(e=>{if(e instanceof Window)return e.document.hasFocus();let t=e.getRootNode()instanceof ShadowRoot?e.getRootNode():null,i=t?t.activeElement:e.ownerDocument.activeElement;return e.contains(i);})(e));return t.add(i.onDidFocus(()=>n.set(!0,void 0))),t.add(i.onDidBlur(()=>n.set(!1,void 0))),n;}createHoverTracker(e,t){let i=sc("isHovered",!1),n=()=>i.set(!0,void 0),s=()=>i.set(!1,void 0);return e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",s),t.add({dispose:()=>{e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",s);}}),i;}createDomFocusTracker(e){return oS(e);}}lW(CV,Bv,1);let Bb=ra("contextService");function BC(e){return"string"==typeof(e===null||e===void 0?void 0:e.id)&&ne.m.isUri(e.uri);}let Bw={id:"empty-window"};class By{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name;}toJSON(){return{uri:this.uri,name:this.name,index:this.index};}}(0,iM.M)(2152,"Code Workspace");let BS="4064f6ec-cb38-4ad0-af64-ee6467e63c82";e.s(["a",0,Bb,"b",0,BS,"L",0,"code-workspace","c",0,By,"T",0,function(e){var _t24;var t;return"string"==typeof(e===null||e===void 0?void 0:e.id)&&!BC(e)&&(t=e,!("string"==typeof((_t24=t)===null||_t24===void 0?void 0:_t24.id)&&ne.m.isUri(t.configPath)));},"o",0,BC,"U",0,function(e,t){return"string"==typeof e||void 0===e?"string"==typeof e?{id:(0,ab.F)(e)}:Bw:e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:{id:e.id};}],82747);let Bx=ra("workspaceTrustManagementService"),BL=ra("IWorkspaceEditService");class Bk{constructor(e){this.metadata=e;}static convert(e){return e.edits.map(e=>{if(BD.is(e))return BD.lift(e);if(BM.is(e))return BM.lift(e);throw Error("Unsupported edit");});}}class BD extends Bk{static is(e){return e instanceof BD||(0,sI.C)(e)&&ne.m.isUri(e.resource)&&(0,sI.C)(e.textEdit);}static lift(e){return e instanceof BD?e:new BD(e.resource,e.textEdit,e.versionId,e.metadata);}constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i;}}class BM extends Bk{static is(e){return e instanceof BM||(0,sI.C)(e)&&(!!e.newResource||!!e.oldResource);}static lift(e){return e instanceof BM?e:new BM(e.oldResource,e.newResource,e.options,e.metadata);}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i;}}e.s(["h",0,BL,"V",0,Bk,"y",0,BD],16931),(eO=tJ||(tJ={}))[eO.API=0]="API",eO[eO.USER=1]="USER";var BI=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},BN=function(e,t){return function(i,n){t(i,n,e);};};let BE=class{constructor(e){this._commandService=e;}async open(e,t){if(!(0,nT.y)(e,nT.I.command))return!1;if(!(t!==null&&t!==void 0&&t.allowCommands)||("string"==typeof e&&(e=ne.m.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path)))return!0;let i=[];try{i=Mq(decodeURIComponent(e.query));}catch{try{i=Mq(e.query);}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0;}};BE=BI([BN(0,ry)],BE);let BT=class{constructor(e){this._editorService=e;}async open(e,t){"string"==typeof e&&(e=ne.m.parse(e));let{selection:i,uri:n}=Ny(e);return(e=n).scheme===nT.I.file&&(e=aO(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t!==null&&t!==void 0&&t.fromUserGesture?tJ.USER:tJ.API,...(t===null||t===void 0?void 0:t.editorOptions)}},this._editorService.getFocusedCodeEditor(),t===null||t===void 0?void 0:t.openToSide),!0;}};function BR(e,t){return!!(t!==null&&t!==void 0&&t.openExternal)||(0,nT.t)(e,nT.I.mailto,nT.I.http,nT.I.https,nT.I.vsls);}BT=BI([BN(0,rl)],BT);let BA=class{constructor(e,t){this._openers=new rb.f(),this._validators=new rb.f(),this._resolvers=new rb.f(),this._resolvedUriTargets=new av._(e=>e.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new rb.f(),this._defaultExternalOpener={openExternal:async e=>((0,nT.t)(e,nT.I.http,nT.I.https)?oA(e):i9.location.href=e,!0)},this._externalResourceOpener={open:async(e,t)=>!!BR(e,t)&&(await this._doOpenExternal(e,t),!0)},this._openers.push(this._externalResourceOpener),this._openers.push(new BE(t)),this._openers.push(new BT(e));}registerOpener(e){return{dispose:this._openers.unshift(e)};}async open(e,t){let i,n="string"==typeof e?ne.m.parse(e):e;if(n.scheme===nT.I.internal)return!1;if(t!==null&&t!==void 0&&t.allowContributedOpeners&&t.allowContributedOpeners!==Nw&&BR(e,t)&&(i=await this._resolveExternalUriOpenTarget(e,t),await this._openWithContributedExternalOpeners(i,t)))return!0;if(!(t!==null&&t!==void 0&&t.skipValidation)){var _ref14,_i$validationTarget,_i4;let s=(_ref14=(_i$validationTarget=(_i4=i)===null||_i4===void 0?void 0:_i4.validationTarget)!==null&&_i$validationTarget!==void 0?_i$validationTarget:this._resolvedUriTargets.get(n))!==null&&_ref14!==void 0?_ref14:e;if(!(await this._validate(s,t)))return!1;}for(let n of this._openers){if(i&&n===this._externalResourceOpener)return this._openDefaultExternal(i);if(await n.open(e,t))return!0;}return!1;}async resolveExternalUri(e,t){for(let i of this._resolvers)try{let n=await i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n;}catch{}throw Error("Could not resolve external URI: "+e.toString());}async _resolveExternalUriOpenTarget(e,t){let i,n="string"==typeof e?ne.m.parse(e):e;try{i=(await this.resolveExternalUri(n,t)).resolved;}catch{i=n;}let s="string"==typeof e&&n.toString()===i.toString();return{sourceUri:n,href:s?e:encodeURI(i.toString(!0)),validationTarget:s?e:i};}async _openWithContributedExternalOpeners(e,t){let i="string"==typeof(t===null||t===void 0?void 0:t.allowContributedOpeners)?t.allowContributedOpeners:void 0;for(let t of this._externalOpeners)if(await t.openExternal(e.href,{sourceUri:e.sourceUri,preferredOpenerId:i},n8.c.None))return!0;return!1;}_openDefaultExternal(e){return this._defaultExternalOpener.openExternal(e.href,{sourceUri:e.sourceUri},n8.c.None);}async _doOpenExternal(e,t){let i=await this._resolveExternalUriOpenTarget(e,t);return this._openDefaultExternal(i);}async _validate(e,t){for(let i of this._validators)if(!(await i.shouldOpen(e,t)))return!1;return!0;}dispose(){this._validators.clear();}};BA=BI([BN(0,rl),BN(1,ry)],BA);let BO=ra("renameSymbolTrackerService");class BP{constructor(){this._trackedWord=sc(this,void 0),this.trackedWord=this._trackedWord,this._trackedWord.set(void 0,void 0);}}e.s(["s",0,BO,"r",0,BP],61173);let BF={enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1,hideOriginalLineNumbers:!1},BB={...Object.freeze({id:"editor",order:5,type:"object",title:(0,iM.M)(168,"Editor"),scope:6}),properties:{"editor.tabSize":{type:"number",default:4,minimum:1,maximum:100,markdownDescription:(0,iM.M)(169,"The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:(0,iM.M)(170,'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(171,"Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(172,"Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:!0,description:(0,iM.M)(173,"Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:!0,description:(0,iM.M)(174,"Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","offWithInlineSuggestions","currentDocument","matchingDocuments","allDocuments"],default:"offWithInlineSuggestions",enumDescriptions:[(0,iM.M)(175,"Turn off Word Based Suggestions."),(0,iM.M)(176,"Turn off Word Based Suggestions when Inline Suggestions are present."),(0,iM.M)(177,"Only suggest words from the active document."),(0,iM.M)(178,"Suggest words from all open documents of the same language."),(0,iM.M)(179,"Suggest words from all open documents.")],description:(0,iM.M)(180,"Controls whether completions should be computed based on words in the document and from which documents they are computed."),experiment:{mode:"auto"}},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[(0,iM.M)(181,"Semantic highlighting enabled for all color themes."),(0,iM.M)(182,"Semantic highlighting disabled for all color themes."),(0,iM.M)(183,"Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:(0,iM.M)(184,"Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(185,"Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:(0,iM.M)(186,"Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:(0,iM.M)(187,"Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:(0,iM.M)(188,"Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:(0,iM.M)(189,"Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(190,"Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `#editor.experimental.preferTreeSitter#` for specific languages will take precedence."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.css":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(191,"Controls whether tree sitter parsing should be turned on for css. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for css."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.typescript":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(192,"Controls whether tree sitter parsing should be turned on for typescript. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for typescript."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.ini":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(193,"Controls whether tree sitter parsing should be turned on for ini. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for ini."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.regex":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(194,"Controls whether tree sitter parsing should be turned on for regex. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for regex."),tags:["experimental"],experiment:{mode:"auto"}},"editor.language.brackets":{type:["array","null"],default:null,description:(0,iM.M)(195,"Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:(0,iM.M)(196,"The opening bracket character or string sequence.")},{type:"string",description:(0,iM.M)(197,"The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:(0,iM.M)(198,"Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:(0,iM.M)(199,"The opening bracket character or string sequence.")},{type:"string",description:(0,iM.M)(200,"The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:BF.maxComputationTime,description:(0,iM.M)(201,"Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:BF.maxFileSize,description:(0,iM.M)(202,"Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:BF.renderSideBySide,description:(0,iM.M)(203,"Controls whether the diff editor shows the diff side by side or inline."),agentsWindow:{default:!0}},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:BF.renderSideBySideInlineBreakpoint,description:(0,iM.M)(204,"If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:BF.useInlineViewWhenSpaceIsLimited,description:(0,iM.M)(205,"If enabled and the editor width is too small, the inline view is used."),agentsWindow:{default:!0}},"diffEditor.hideOriginalLineNumbers":{type:["boolean","null"],default:null,description:(0,iM.M)(206,"Controls whether original line numbers are hidden in inline diffs. When set to null, uses the editor's default: hidden in compact multi diff editors and visible in other diff editors.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:BF.renderMarginRevertIcon,description:(0,iM.M)(207,"When enabled, the diff editor shows arrows in its glyph margin to revert changes."),agentsWindow:{default:!1}},"diffEditor.renderGutterMenu":{type:"boolean",default:BF.renderGutterMenu,description:(0,iM.M)(208,"When enabled, the diff editor shows a special gutter for revert and stage actions."),agentsWindow:{default:!1}},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:BF.ignoreTrimWhitespace,description:(0,iM.M)(209,"When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:BF.renderIndicators,description:(0,iM.M)(210,"Controls whether the diff editor shows +/- indicators for added/removed changes."),agentsWindow:{default:!1}},"diffEditor.codeLens":{type:"boolean",default:BF.diffCodeLens,description:(0,iM.M)(211,"Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:BF.diffWordWrap,markdownEnumDescriptions:[(0,iM.M)(212,"Lines will never wrap."),(0,iM.M)(213,"Lines will wrap at the viewport width."),(0,iM.M)(214,"Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced","advanced-external","advanced-wasm"],default:BF.diffAlgorithm,markdownEnumDescriptions:[(0,iM.M)(215,"Uses the legacy diffing algorithm."),(0,iM.M)(216,"Uses the advanced diffing algorithm."),(0,iM.M)(217,"Uses the advanced diffing algorithm from the external `@vscode/diff` package (pure JavaScript)."),(0,iM.M)(218,"Uses the advanced diffing algorithm from the external `@vscode/diff` package (WebAssembly).")]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:BF.hideUnchangedRegions.enabled,markdownDescription:(0,iM.M)(219,"Controls whether the diff editor shows unchanged regions."),agentsWindow:{default:!0}},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:BF.hideUnchangedRegions.revealLineCount,markdownDescription:(0,iM.M)(220,"Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:BF.hideUnchangedRegions.minimumLineCount,markdownDescription:(0,iM.M)(221,"Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:BF.hideUnchangedRegions.contextLineCount,markdownDescription:(0,iM.M)(222,"Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:BF.experimental.showMoves,markdownDescription:(0,iM.M)(223,"Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:BF.experimental.showEmptyDecorations,description:(0,iM.M)(224,"Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:BF.experimental.useTrueInlineView,description:(0,iM.M)(225,"If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(let e of i2){let t=e.schema;if(void 0!==t)if(void 0!==t.type||void 0!==t.anyOf)BB.properties[`editor.${e.name}`]=t;else for(let e in t)Object.hasOwnProperty.call(t,e)&&(BB.properties[e]=t[e]);}let BW=null;function BV(){return null===BW&&(BW=Object.create(null),Object.keys(BB.properties).forEach(e=>{BW[e]=!0;})),BW;}ai.as(lZ.Configuration).registerConfiguration(BB);class BH{static insert(e,t){return{range:new ln.f(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0};}static delete(e){return{range:e,text:null};}static replace(e,t){return{range:e,text:t};}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0};}}e.s(["f",0,BH],25191);let Bz=[];function BU(){return Bz.slice(0);}e.s(["F",0,BU,"f",0,function(e){Bz.push(e);}],98474);var B$=i8,BK=i8;let Bq=[],Bj=[],BG=[];function BQ(e,t=!1){var i,n,s,o,r;let a;i=e,n=!1,s=t,a=(o=i,r=n,{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:r,filepatternParsed:o.filepattern?EY(o.filepattern,{ignoreCase:!0}):void 0,filepatternOnPath:!!o.filepattern&&o.filepattern.indexOf(ab.b.sep)>=0}),Bq.push(a),a.userConfigured?BG.push(a):Bj.push(a),s&&!a.userConfigured&&Bq.forEach(e=>{e.mime!==a.mime&&!e.userConfigured&&(a.extension&&e.extension===a.extension&&console.warn(`Overwriting extension <<${a.extension}>> to now point to mime <<${a.mime}>>`),a.filename&&e.filename===a.filename&&console.warn(`Overwriting filename <<${a.filename}>> to now point to mime <<${a.mime}>>`),a.filepattern&&e.filepattern===a.filepattern&&console.warn(`Overwriting filepattern <<${a.filepattern}>> to now point to mime <<${a.mime}>>`),a.firstline&&e.firstline===a.firstline&&console.warn(`Overwriting firstline <<${a.firstline}>> to now point to mime <<${a.mime}>>`));});}function BZ(e,t,i){let n,s,o;for(let r=i.length-1;r>=0;r--){let a=i[r];if((0,i7.p)(t,a.filename)){n=a;break;}if(a.filepattern&&(!s||a.filepattern.length>s.filepattern.length)){var _a$filepatternParsed;let i=a.filepatternOnPath?e:t;((_a$filepatternParsed=a.filepatternParsed)===null||_a$filepatternParsed===void 0?void 0:_a$filepatternParsed.call(a,i))&&(s=a);}a.extension&&(!o||a.extension.length>o.extension.length)&&(0,i7.Y)(t,a.extension)&&(o=a);}return n||s||o||void 0;}let BY=Object.prototype.hasOwnProperty,BX="vs.editor.nullLanguage";class BJ{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map(),this._register(BX,0),this._register(l8,1),this._nextLanguageId=2;}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t);}register(e){if(this._languageToLanguageId.has(e))return;let t=this._nextLanguageId++;this._register(e,t);}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0;}decodeLanguageId(e){return this._languageIdToLanguage[e]||BX;}}class B0 extends BK.N{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,B0.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new BJ(),this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(l9.onDidChangeLanguages(e=>{this._initializeFromRegistry();})));}dispose(){B0.instanceCount--,super.dispose();}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Bq=Bq.filter(e=>e.userConfigured),Bj=[];let e=[].concat(l9.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e);}_registerLanguages(e){for(let t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach(e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier;}),t.mimetypes.forEach(e=>{this._mimeTypesMap[e]=t.identifier;});}),ai.as(lZ.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire();}_registerLanguage(e){let t,i=e.id;BY.call(this._languages,i)?t=this._languages[i]:(this.languageIdCodec.register(i),t={identifier:i,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[i]=t),this._mergeLanguage(t,e);}_mergeLanguage(e,t){let i=t.id,n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions))for(let s of(t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions),t.extensions))BQ({id:i,mime:n,extension:s},this._warnOnOverwrite);if(Array.isArray(t.filenames))for(let s of t.filenames)BQ({id:i,mime:n,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(let e of t.filenamePatterns)BQ({id:i,mime:n,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{let t=new RegExp(e);(0,i7.A)(t)||BQ({id:i,mime:n,firstline:t},this._warnOnOverwrite);}catch(i){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,i);}}e.aliases.push(i);let s=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(let t of s)t&&0!==t.length&&e.aliases.push(t);let o=null!==s&&s.length>0;if(o&&null===s[0]);else{let t=(o?s[0]:null)||i;(o||!e.name)&&(e.name=t);}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon);}isRegisteredLanguageId(e){return!!e&&BY.call(this._languages,e);}getRegisteredLanguageIds(){return Object.keys(this._languages);}getLanguageIdByLanguageName(e){let t=e.toLowerCase();return BY.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null;}getLanguageIdByMimeType(e){return e&&BY.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null;}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?function(e,t){let i;if(e)switch(e.scheme){case nT.I.file:i=e.fsPath;break;case nT.I.data:i=eJ.parseMetaData(e).get(eJ.META_DATA_LABEL);break;case nT.I.vscodeNotebookCell:i=void 0;break;default:i=e.path;}if(!i)return[{id:"unknown",mime:lz.unknown}];i=i.toLowerCase();let n=(0,ab.F)(i),s=BZ(i,n,BG);if(s)return[s,{id:l8,mime:lz.text}];let o=BZ(i,n,Bj);if(o)return[o,{id:l8,mime:lz.text}];if(t){let e=function(e){if((0,i7.k)(e)&&(e=e.substring(1)),e.length>0)for(let t=Bq.length-1;t>=0;t--){let i=Bq[t];if(!i.firstline)continue;let n=e.match(i.firstline);if(n&&n.length>0)return i;}}(t);if(e)return[e,{id:l8,mime:lz.text}];}return[{id:"unknown",mime:lz.unknown}];}(e,t).map(e=>e.id):[];}}_B2=B0;_B2.instanceCount=0;class B1 extends B$.N{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new iv.S()),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new iv.S()),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new iv.S({leakWarningThreshold:200,leakWarningName:"LanguageService._onDidChange"})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set(),this._requestedRichLanguages=new Set(),B1.instanceCount++,this._registry=this._register(new B0(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()));}dispose(){B1.instanceCount--,super.dispose();}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e);}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e);}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e);}guessLanguageIdByFilepathOrFirstLine(e,t){var _this$_registry$guess;return(_this$_registry$guess=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t).at(0))!==null&&_this$_registry$guess!==void 0?_this$_registry$guess:null;}createById(e){return new B2(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e));}createByFilepathOrFirstLine(e,t){return new B2(this.onDidChange,()=>{let i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i);});}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l8),e;}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e));}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),hV.l.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e));}}_B3=B1;_B3.instanceCount=0;class B2{constructor(e,t){this._value=sf(this,e,()=>t()),this.onDidChange=iv.C.fromObservable(this._value);}get languageId(){return this._value.get();}}var B3=i8,B5=function(e,t){return function(i,n){t(i,n,e);};};let B6=class extends B3.N{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new iv.S()),this._suppressedRanges=new av._(),this._markerDecorations=new av._(),e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this));}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear();}getMarker(e,t){let i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null;}_handleMarkerChange(e){e.forEach(e=>{let t=this._markerDecorations.get(e);t&&this._updateDecorations(t);});}_onModelAdded(e){let t=new B4(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t);}_onModelRemoved(e){var _this$_markerService;let t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===nT.I.inMemory||e.uri.scheme===nT.I.internal||e.uri.scheme===nT.I.vscode)&&((_this$_markerService=this._markerService)===null||_this$_markerService===void 0?void 0:_this$_markerService.read({resource:e.uri}).map(e=>e.owner).forEach(t=>this._markerService.remove(t,[e.uri])));}_updateDecorations(e){let t=this._markerService.read({resource:e.model.uri,take:500}),i=this._suppressedRanges.get(e.model.uri);i&&(t=t.filter(e=>!rw.f.some(i,t=>ln.f.areIntersectingOrTouching(t,e)))),e.update(t)&&this._onDidChangeMarker.fire(e.model);}};B6=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([B5(0,rd),B5(1,Bd)],B6);class B4 extends B3.N{constructor(e){super(),this.model=e,this._map=new av.a(),this._register((0,B3.Q)(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear();}));}update(e){let{added:t,removed:i}=wa(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;let n=i.map(e=>this._map.get(e)),s=t.map(e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)})),o=this.model.deltaDecorations(n,s);for(let e of i)this._map.delete(e);for(let e=0;e<o.length;e++)this._map.set(t[e],o[e]);return!0;}getMarker(e){return this._map.getKey(e.id);}_createDecorationRange(e,t){let i=ln.f.lift(t);if(t.severity!==tY.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),(i=e.validateRange(i)).isEmpty()){let t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;let n=e.getWordAtPosition(i.getStartPosition());n&&(i=new ln.f(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn));}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){let n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n<i.endColumn&&(i=new ln.f(i.startLineNumber,n,i.endLineNumber,i.endColumn),t.startColumn=n);}return i;}_createDecorationOption(e){let t,i,n,s,o;switch(e.severity){case tY.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case tY.Info:t="squiggly-info",s=_o(_q),i=10,n={color:_o(uI),position:1};break;case tY.Warning:t="squiggly-warning",s=_o(_K),i=20,n={color:_o(uN),position:1};break;case tY.Error:default:t="squiggly-error",s=_o(_$),i=30,n={color:_o(uE),position:1};}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:s,position:h$.$.Right},minimap:n,zIndex:i,inlineClassName:o};}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0;}}var B9=i8,B8=function(e,t){return function(i,n){t(i,n,e);};};function B7(e){return e.toString();}class We{constructor(e,t,i){this.model=e,this._modelEventListeners=new B9.q(),this.model=e,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>i(e,t)));}dispose(){this._modelEventListeners.dispose();}}let Wt=i_.b||i_.e?1:2;class Wi{constructor(e,t,i,n,s,o,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=o,this.versionId=r,this.alternativeVersionId=a;}}let Wn=(_Class0=class Wn extends B9.N{constructor(e,t,i,n){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=n,this._onModelAdded=this._register(new iv.S()),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new iv.S()),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new iv.S()),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map(),this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(e=>this._updateModelOptions(e))),this._updateModelOptions(void 0);}static _readModelOptions(e,t){var _e$editor;let i=4;e.editor&&void 0!==e.editor.tabSize&&(i=iB(e.editor.tabSize,4,1,100));let n="tabSize";e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize&&(n=iB(e.editor.indentSize,"tabSize",1,100));let s=!0;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&!!e.editor.insertSpaces);let o=Wt,r=e.eol;"\r\n"===r?o=2:"\n"===r&&(o=1);let a=!0;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&!!e.editor.trimAutoWhitespace);let l=!0;e.editor&&void 0!==e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&!!e.editor.detectIndentation);let h=!0;e.editor&&void 0!==e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&!!e.editor.largeFileOptimizations);let d=ik;if((_e$editor=e.editor)!==null&&_e$editor!==void 0&&_e$editor.bracketPairColorization&&"object"==typeof e.editor.bracketPairColorization){let t=e.editor.bracketPairColorization;d={enabled:!!t.enabled,independentColorPoolPerBracketType:!!t.independentColorPoolPerBracketType};}return{isForSimpleWidget:t,tabSize:i,indentSize:n,insertSpaces:s,detectIndentation:l,defaultEOL:o,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d};}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);let i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===i_.B||2===i_.B?"\n":"\r\n";}_shouldRestoreUndoStack(){let e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e;}getCreationOptions(e,t,i){let n="string"==typeof e?e:e.languageId,s=this._modelCreationOptionsByLanguageAndResource[n+t];if(!s){let e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);s=t0._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=s;}return s;}_updateModelOptions(e){let t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let i=Object.keys(this._models);for(let n=0,s=i.length;n<s;n++){let s=i[n],o=this._models[s],r=o.model.getLanguageId(),a=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:r,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:r,resource:a}))continue;let l=t[r+a],h=this.getCreationOptions(r,a,o.model.isForSimpleWidget);t0._setModelOptionsForModel(o.model,h,l);}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(+(1!==t.defaultEOL)),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,im.m)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}));}_insertDisposedModel(e){this._disposedModels.set(B7(e.uri),e),this._disposedModelsHeapSize+=e.heapSize;}_removeDisposedModel(e){let t=this._disposedModels.get(B7(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(B7(e)),t;}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){let t=[];for(this._disposedModels.forEach(e=>{e.sharesUndoRedoStack||t.push(e);}),t.sort((e,t)=>e.time-t.time);t.length>0&&this._disposedModelsHeapSize>e;){let e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot);}}}_createModelData(e,t,i,n){let s=this.getCreationOptions(t,i,n),o=this._instantiationService.createInstance(xN,e,t,s,i);if(i&&this._disposedModels.has(B7(i))){let e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),s=!!n.canComputeSHA1(o)&&n.computeSHA1(o)===e.sha1;if(s||e.sharesUndoRedoStack){for(let e of t.past)yA(e)&&e.matchesResource(i)&&e.setModel(o);for(let e of t.future)yA(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,e=>yA(e)&&e.matchesResource(i)),s&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot));}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot);}let r=B7(o.uri);if(this._models[r])throw Error("ModelService: Cannot add model because it already exists!");let a=new We(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t));return this._models[r]=a,a;}createModel(e,t,i,n=!1){let s;return s=t?this._createModelData(e,t,i,n):this._createModelData(e,l8,i,n),this._onModelAdded.fire(s.model),s.model;}getModels(){let e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i<n;i++){let n=t[i];e.push(this._models[n].model);}return e;}getModel(e){let t=B7(e),i=this._models[t];return i?i.model:null;}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===nT.I.file||e.scheme===nT.I.vscodeRemote||e.scheme===nT.I.vscodeUserData||e.scheme===nT.I.vscodeNotebookCell||"fake-fs"===e.scheme;}_onWillDispose(e){let t=B7(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString(),s=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){let t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(let i of t.past)yA(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(let i of t.future)yA(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));}}let r=t0.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(s){if(n||!(o>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,t=>yA(t)&&t.matchesResource(e.uri)),this._insertDisposedModel(new Wi(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{let e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e);}}else if(!n){let e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e);}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e);}_onDidChangeLanguage(e,t){let i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);t0._setModelOptionsForModel(e,o,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i});}_getSHA1Computer(){return new Ws();}},t0=_Class0,_Class0.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=0x1400000,_Class0);Wn=t0=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([B8(0,lN),B8(1,hC),B8(2,wc),B8(3,rr)],Wn);class Ws{canComputeSHA1(e){return e.getValueLength()<=Ws.MAX_MODEL_SIZE;}computeSHA1(e){let t,i=new nR.U(),n=e.createSnapshot();for(;t=n.read();)i.update(t);return i.digest();}}_Ws=Ws;_Ws.MAX_MODEL_SIZE=0xa00000;(t1||(t1={})).inspectTokensAction=(0,iM.M)(836,"Developer: Inspect Tokens"),(eP=t2||(t2={})).gotoLineActionLabel=(0,iM.M)(837,"Go to Line/Column..."),eP.gotoOffsetActionLabel=(0,iM.M)(838,"Go to Offset..."),(t3||(t3={})).helpQuickAccessActionLabel=(0,iM.M)(839,"Show all Quick Access Providers"),(eF=t5||(t5={})).quickCommandActionLabel=(0,iM.M)(840,"Command Palette"),eF.quickCommandHelp=(0,iM.M)(841,"Show And Run Commands"),(eB=t6||(t6={})).quickOutlineActionLabel=(0,iM.M)(842,"Go to Symbol..."),eB.quickOutlineByCategoryActionLabel=(0,iM.M)(843,"Go to Symbol by Category..."),(t4||(t4={})).editorViewAccessibleLabel=(0,iM.M)(844,"Editor content"),(t9||(t9={})).toggleHighContrast=(0,iM.M)(845,"Toggle High Contrast Theme"),(t8||(t8={})).bulkEditServiceSummary=(0,iM.M)(846,"Made {0} edits in {1} files"),e.s(["J",0,t5,"i",0,t3,"C",0,t4,"l",0,t8],31135);let Wo=ra("themeService");var Wr=i8;let Wa=class{constructor(e){this._models=new Wl(e);}createModelReference(e){return this._acquire(e);}createSyntheticDocument(e,t){let i=ne.m.from({scheme:nT.I.inMemory,path:`/synthetic/${f_()}`});return this._acquire(i,e,t);}async _acquire(e,t,i=null){let n=this._models.acquire(e.toString(),t,i);try{return await Promise.resolve(),{object:n.object.value,dispose:()=>n.dispose()};}catch(e){throw n.dispose(),e;}}};Wa=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){rd(e,t,0);}],Wa);class Wl extends Wr.S{constructor(e){super(),this._modelService=e;}createReferencedObject(e,t,i=null){return new pM.f(()=>{let n=ne.m.parse(e),s=void 0===t?this._modelService.getModel(n):this._modelService.createModel(t,i,n);if(!s)throw Error("Model not found");return new Wh(s,void 0!==t);});}destroyReferencedObject(e,t){var _t$rawValue;(_t$rawValue=t.rawValue)===null||_t$rawValue===void 0||_t$rawValue.dispose();}}class Wh extends Wr.N{constructor(e,t){super(),this.textEditorModel=e,this._ownsModel=t,this._onWillDispose=this._register(new iv.S());}dispose(){!this.isDisposed()&&(this._onWillDispose.fire(),super.dispose(),this._ownsModel&&this.textEditorModel.dispose());}isDisposed(){return this._store.isDisposed;}}var Wd=i8;(eW=t7||(t7={}))[eW.PRESERVE=0]="PRESERVE",eW[eW.LAST=1]="LAST";let Wc={Quickaccess:"workbench.contributions.quickaccess"};ai.add(Wc.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0;}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),(0,i8.Q)(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0);});}getQuickAccessProviders(e){return(0,ip.d)([this.defaultProvider,...this.providers]).filter(t=>!t.when||e.contextMatchesRules(t.when));}getQuickAccessProvider(e,t){return(e?this.providers.find(i=>e.startsWith(i.prefix)&&(!i.when||t.contextMatchesRules(i.when))):void 0)||this.defaultProvider;}}()),e.s(["S",0,t7,"F",0,Wc],46696);var Wu=function(e,t){return function(i,n){t(i,n,e);};};let Wg=class extends Wd.N{constructor(e,t,i){super(),this.quickInputService=e,this.instantiationService=t,this.contextKeyService=i,this.registry=ai.as(Wc.Quickaccess),this.mapProviderToDescriptor=new Map(),this.lastAcceptedPickerValues=new Map(),this.visibleQuickAccess=void 0,this._register((0,Wd.Q)(()=>{var _this$visibleQuickAcc;for(let e of this.mapProviderToDescriptor.values())(0,Wd.J)(e)&&e.dispose();(_this$visibleQuickAcc=this.visibleQuickAccess)===null||_this$visibleQuickAcc===void 0||_this$visibleQuickAcc.picker.dispose();}));}show(e="",t){this.doShowOrPick(e,!1,t);}doShowOrPick(e,t,i){var _r$picker,_r$picker2,_i$placeholder,_i$itemActivation,_n0;let n,[s,o]=this.getOrInstantiateProvider(e,i===null||i===void 0?void 0:i.enabledProviderPrefixes),r=this.visibleQuickAccess,a=r===null||r===void 0?void 0:r.descriptor;if(r&&o&&a===o){e===o.prefix||i!==null&&i!==void 0&&i.preserveValue||(r.picker.value=e),this.adjustValueSelection(r.picker,o,i);return;}if(o&&!(i!==null&&i!==void 0&&i.preserveValue)){let t;if(r&&a&&a!==o){let e=r.value.substr(a.prefix.length);e&&(t=`${o.prefix}${e}`);}if(!t){let e=s===null||s===void 0?void 0:s.defaultFilterValue;e===t7.LAST?t=this.lastAcceptedPickerValues.get(o):"string"==typeof e&&(t=`${o.prefix}${e}`);}"string"==typeof t&&(e=t);}let l=r===null||r===void 0||(_r$picker=r.picker)===null||_r$picker===void 0?void 0:_r$picker.valueSelection,h=r===null||r===void 0||(_r$picker2=r.picker)===null||_r$picker2===void 0?void 0:_r$picker2.value,d=new Wd.q(),c=d.add(this.quickInputService.createQuickPick({useSeparators:!0}));c.value=e,this.adjustValueSelection(c,o,i),c.placeholder=(_i$placeholder=i===null||i===void 0?void 0:i.placeholder)!==null&&_i$placeholder!==void 0?_i$placeholder:o===null||o===void 0?void 0:o.placeholder,c.quickNavigate=i===null||i===void 0?void 0:i.quickNavigateConfiguration,c.hideInput=!!c.quickNavigate&&!r,("number"==typeof(i===null||i===void 0?void 0:i.itemActivation)||i!==null&&i!==void 0&&i.quickNavigateConfiguration)&&(c.itemActivation=(_i$itemActivation=i===null||i===void 0?void 0:i.itemActivation)!==null&&_i$itemActivation!==void 0?_i$itemActivation:tD.SECOND),c.contextKey=o===null||o===void 0?void 0:o.contextKey,c.filterValue=e=>e.substring(o?o.prefix.length:0),t&&(n=new nI.O(),d.add(iv.C.once(c.onWillAccept)(e=>{e.veto(),c.hide();}))),d.add(this.registerPickerListeners(c,s,o,e,i));let u=d.add(new n8.R());if(s&&d.add(s.provide(c,u.token,i===null||i===void 0?void 0:i.providerOptions)),iv.C.once(c.onDidHide)(()=>{var _n9;0===c.selectedItems.length&&u.cancel(),d.dispose(),(_n9=n)===null||_n9===void 0?void 0:_n9.complete(c.selectedItems.slice(0));}),c.show(),l&&h===e&&(c.valueSelection=l),t)return(_n0=n)===null||_n0===void 0?void 0:_n0.p;}adjustValueSelection(e,t,i){var _t$prefix$length;let n;n=i!==null&&i!==void 0&&i.preserveValue?[e.value.length,e.value.length]:[(_t$prefix$length=t===null||t===void 0?void 0:t.prefix.length)!==null&&_t$prefix$length!==void 0?_t$prefix$length:0,e.value.length],e.valueSelection=n;}registerPickerListeners(e,t,i,n,s){let o=new Wd.q(),r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add((0,Wd.Q)(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0);})),o.add(e.onDidChangeValue(e=>{let[i]=this.getOrInstantiateProvider(e,s===null||s===void 0?void 0:s.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:s===null||s===void 0?void 0:s.enabledProviderPrefixes,preserveValue:!0,providerOptions:s===null||s===void 0?void 0:s.providerOptions}):r.value=e;})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value);})),o;}getOrInstantiateProvider(e,t){let i=this.registry.getQuickAccessProvider(e,this.contextKeyService);if(!i||t&&!(t!==null&&t!==void 0&&t.includes(i.prefix)))return[void 0,void 0];let n=this.mapProviderToDescriptor.get(i);return n||(n=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,n)),[n,i];}};Wg=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([Wu(0,Ec),Wu(1,rr),Wu(2,r9)],Wg);var Wp=i8;class Wf{constructor(e){this.nodes=e;}toString(){return this.nodes.map(e=>"string"==typeof e?e:e.label).join("");}}!function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);o>3&&r&&Object.defineProperty(t,i,r);}([pH],Wf.prototype,"toString",null);let Wm=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi,W_={},Wv=new DK("quick-input-button-icon-");class Wb{constructor(e,t,i,n,s,o,r){this.id=e,this.label=t,this.tooltip=i,this.enabled=s,this._checked=o,this._run=r,this.class=n;}get checked(){return this._checked;}set checked(e){this._checked=e,this._run();}run(){return this._checked=!this._checked,this._run();}}function WC(e,t,i){let n=e.iconClass||function(e){let t;if(!e)return;let i=e.dark.toString();return W_[i]?t=W_[i]:(t=Wv.nextId(),d8(`.${t}, .hc-light .${t}`,`background-image: ${Ra(e.light||e.dark)}`),d8(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${Ra(e.dark)}`),W_[i]=t),t;}(e.iconPath);e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");let s=()=>(e.toggle&&(e.toggle.checked=!e.toggle.checked),i());return e.toggle?new Wb(t,e.tooltip||"","",n,!0,e.toggle.checked,s):{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:s};}function Ww(e,t,i){let n=[],s=[];return e.forEach((e,o)=>{let r=WC(e,`${t}-${o}`,async()=>i(e));e.label&&(r.label=e.label),e.secondary?s.push(r):n.push(r);}),{primary:n,secondary:s};}var Wy=function(e,t){return function(i,n){t(i,n,e);};};let WS="inQuickInput",Wx=new r4(WS,!1,(0,iM.M)(1845,"Whether keyboard focus is inside the quick input control")),WL=rV.has(WS),Wk=new r4("quickInputAlignment","top",(0,iM.M)(1846,"The alignment of the quick input")),WD="quickInputType",WM=new r4(WD,void 0,(0,iM.M)(1847,"The type of the currently visible quick input")),WI="cursorAtEndOfQuickInputBox",WN=new r4(WI,!1,(0,iM.M)(1848,"Whether the cursor in the quick input is at the end of the input box")),WE=rV.has(WI),WT={iconClass:eY.asClassName(rC.f.quickInputBack),tooltip:(0,iM.M)(1849,"Back")};class WR extends Wp.N{constructor(e){super(),this.ui=e,this._visible=sc("visible",!1),this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this._inputButtons=[],this.buttonsUpdated=!1,this.noValidationMessage=WR.noPromptMessage,this._severity=bz.Ignore,this.onDidTriggerButtonEmitter=this._register(new iv.S()),this.onDidHideEmitter=this._register(new iv.S()),this.onWillHideEmitter=this._register(new iv.S()),this.onDisposeEmitter=this._register(new iv.S()),this.visibleDisposables=this._register(new Wp.q()),this.onDidTriggerButton=this.onDidTriggerButtonEmitter.event,this.onDidHide=this.onDidHideEmitter.event;}get visible(){return this._visible.get();}get title(){return this._title;}set title(e){this._title=e,this.update();}get description(){return this._description;}set description(e){this._description=e,this.update();}get step(){return this._steps;}set step(e){this._steps=e,this.update();}get totalSteps(){return this._totalSteps;}set totalSteps(e){this._totalSteps=e,this.update();}get enabled(){return this._enabled;}set enabled(e){this._enabled=e,this.update();}get contextKey(){return this._contextKey;}set contextKey(e){this._contextKey=e,this.update();}get busy(){return this._busy;}set busy(e){this._busy=e,this.update();}get ignoreFocusOut(){return this._ignoreFocusOut;}set ignoreFocusOut(e){let t=this._ignoreFocusOut!==e&&!i_.I;this._ignoreFocusOut=e&&!i_.I,t&&this.update();}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons;}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons,...this._inputButtons];}set buttons(e){let t=[],i=[],n=[],s=[];for(let o of e)if(o===WT)t.push(o);else switch(o.location){case tI.Inline:n.push(o);break;case tI.Input:s.push(o);break;default:i.push(o);}this._leftButtons=t,this._rightButtons=i,this._inlineButtons=n,this._inputButtons=s,this.buttonsUpdated=!0,this.update();}get validationMessage(){return this._validationMessage;}set validationMessage(e){this._validationMessage=e,this.update();}get severity(){return this._severity;}set severity(e){this._severity=e,this.update();}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e);})),this.ui.show(this),this._visible.set(!0,void 0),this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update());}hide(){this.visible&&this.ui.hide();}didHide(e=tk.Other){this._visible.set(!1,void 0),this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e});}willHide(e=tk.Other){this.onWillHideEmitter.fire({reason:e});}update(){if(!this.visible)return;let e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");let t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new nI.j(),this.busyDelay.setIfNotSet(()=>{this.visible&&(this.ui.progressBar.infinite(),this.ui.progressBar.getContainer().removeAttribute("aria-hidden"));},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.ui.progressBar.getContainer().setAttribute("aria-hidden","true"),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1;let e=Ww(this._leftButtons,"left-button",e=>this.onDidTriggerButtonEmitter.fire(e));this.ui.leftActionBar.setActions(e.primary,e.secondary);let t=Ww(this._rightButtons,"right-button",e=>this.onDidTriggerButtonEmitter.fire(e));this.ui.rightActionBar.setActions(t.primary,t.secondary);let i=Ww(this._inlineButtons,"inline-button",e=>this.onDidTriggerButtonEmitter.fire(e));this.ui.inlineActionBar.setActions(i.primary,i.secondary);let n=22*this._inputButtons.length;this.ui.countContainer.style.right=n>0?`${4+n}px`:"4px",this.ui.inputBox.actions=this._inputButtons.map((e,t)=>WC(e,`id-${t}`,async()=>this.onDidTriggerButtonEmitter.fire(e)));}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,oD(this.ui.message),i&&function(e,t,i){oD(t);let n=function(e){let t,i=[],n=0;for(;t=Wm.exec(e);){t.index-n>0&&i.push(e.substring(n,t.index));let[,s,o,,r]=t;r?i.push({label:s,href:o,title:r}):i.push({label:s,href:o}),n=t.index+t[0].length;}return n<e.length&&i.push(e.substring(n)),new Wf(i);}(e),s=0;for(let e of n.nodes)if("string"==typeof e)t.append(...Ni(e));else{let n=e.title;!n&&e.href.startsWith("command:")?n=(0,iM.M)(1868,"Click to execute command '{0}'",e.href.substring(8)):n||(n=e.href);let o=oN("a",{href:e.href,title:n,tabIndex:s++},e.label);o.style.textDecoration="underline";let r=t=>{ov(t)&&ob.stop(t,!0),i.callback(e.href);},a=i.disposables.add(new ff(o,o_.CLICK)).event,l=i.disposables.add(new ff(o,o_.KEY_DOWN)).event,h=iv.C.chain(l,e=>e.filter(e=>{let t=new nx(e);return t.equals(10)||t.equals(3);}));i.disposables.add(pU.addTarget(o));let d=i.disposables.add(new ff(o,e7.Tap)).event;iv.C.any(a,d,h)(r,null,i.disposables),t.appendChild(o);}}(i,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e);},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity));}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():"";}getDescription(){return this.description||"";}getSteps(){return this.step&&this.totalSteps?(0,iM.M)(1851,"{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):"";}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==bz.Ignore){let t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px";}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom="";}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose();}}_WR=WR;_WR.noPromptMessage=(0,iM.M)(1850,"Press 'Enter' to confirm your input or 'Escape' to cancel");class WA extends WR{constructor(e){super(e),this._value="",this.onDidChangeValueEmitter=this._register(new iv.S()),this.onWillAcceptEmitter=this._register(new iv.S()),this.onDidAcceptEmitter=this._register(new iv.S()),this.onDidCustomEmitter=this._register(new iv.S()),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=tD.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new iv.S()),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new iv.S()),this.onDidTriggerItemButtonEmitter=this._register(new iv.S()),this.onDidTriggerSeparatorButtonEmitter=this._register(new iv.S()),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._customButtonSecondary=!1,this._focusEventBufferer=new iv.s(),this.type="quickPick",this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event,this.noValidationMessage=void 0;}get quickNavigate(){return this._quickNavigate;}set quickNavigate(e){this._quickNavigate=e,this.update();}get value(){return this._value;}set value(e){this.doSetValue(e);}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value));}set ariaLabel(e){this._ariaLabel=e,this.update();}get ariaLabel(){return this._ariaLabel;}get placeholder(){return this._placeholder;}set placeholder(e){this._placeholder=e,this.update();}get prompt(){return this.noValidationMessage;}set prompt(e){this.noValidationMessage=e,this.update();}get items(){return this._items;}get scrollTop(){return this.ui.list.scrollTop;}set scrollTop(e){this.ui.list.scrollTop=e;}set items(e){this._items=e,this.itemsUpdated=!0,this.update();}get canSelectMany(){return this._canSelectMany;}set canSelectMany(e){this._canSelectMany=e,this.update();}get canAcceptInBackground(){return this._canAcceptInBackground;}set canAcceptInBackground(e){this._canAcceptInBackground=e;}get matchOnDescription(){return this._matchOnDescription;}set matchOnDescription(e){this._matchOnDescription=e,this.update();}get matchOnDetail(){return this._matchOnDetail;}set matchOnDetail(e){this._matchOnDetail=e,this.update();}get matchOnLabel(){return this._matchOnLabel;}set matchOnLabel(e){this._matchOnLabel=e,this.update();}get matchOnLabelMode(){return this._matchOnLabelMode;}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update();}get sortByLabel(){return this._sortByLabel;}set sortByLabel(e){this._sortByLabel=e,this.update();}get keepScrollPosition(){return this._keepScrollPosition;}set keepScrollPosition(e){this._keepScrollPosition=e;}get itemActivation(){return this._itemActivation;}set itemActivation(e){this._itemActivation=e;}get activeItems(){return this._activeItems;}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update();}get selectedItems(){return this._selectedItems;}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update();}get keyMods(){return this._quickNavigate?Ed:this.ui.keyMods;}get valueSelection(){let e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end];}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update();}get customButton(){return this._customButton;}set customButton(e){this._customButton=e,this.update();}get customLabel(){return this._customButtonLabel;}set customLabel(e){this._customButtonLabel=e,this.update();}get customHover(){return this._customButtonHover;}set customHover(e){this._customButtonHover=e,this.update();}get customButtonSecondary(){return this._customButtonSecondary;}set customButtonSecondary(e){this._customButtonSecondary=e!==null&&e!==void 0?e:!1,this.update();}get ok(){return this._ok;}set ok(e){this._ok=e,this.update();}get okLabel(){var _this$_okLabel;return(_this$_okLabel=this._okLabel)!==null&&_this$_okLabel!==void 0?_this$_okLabel:(0,iM.M)(1853,"OK");}set okLabel(e){this._okLabel=e,this.update();}get hideInput(){return!!this._hideInput;}set hideInput(e){this._hideInput=e,this.update();}trySelectFirst(){this.canSelectMany||this.ui.list.focus(tM.First);}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0);})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1);})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire();})),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,(e,t)=>t)(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,ip.m)(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e));})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany&&!e.some(e=>!1===e.pickable)){e.length&&this.ui.list.setSelectedElements([]);return;}!(this.selectedItemsToConfirm!==this._selectedItems&&(0,ip.m)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(of(t)&&1===t.button));})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||!this.visible||this.selectedItemsToConfirm!==this._selectedItems&&(0,ip.m)(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e));})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered(e=>this.onDidTriggerSeparatorButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show();}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e});}registerQuickNavigation(){return s$(this.ui.container,o_.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;let t=new nx(e),i=t.keyCode;this._quickNavigate.keybindings.some(e=>{let n=e.getChords();return!(n.length>1)&&(n[0].shiftKey&&4===i?!t.ctrlKey&&!t.altKey&&!t.metaKey:!!n[0].altKey&&6===i||!!n[0].ctrlKey&&5===i||!!n[0].metaKey&&57===i);})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0);});}update(){if(!this.visible)return;let e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.titleButtons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage||!!this.prompt,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;!n&&i.inputBox&&(n=this.placeholder,this.title&&(n=n?`${n} - ${this.title}`:this.title),n||(n=WA.DEFAULT_ARIA_LABEL)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=n!==null&&n!==void 0?n:null),this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n!==null&&n!==void 0?n:"input"),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents(()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case tD.NONE:this._itemActivation=tD.FIRST;break;case tD.SECOND:this.ui.list.focus(tM.Second),this._itemActivation=tD.FIRST;break;case tD.LAST:this.ui.list.focus(tM.Last),this._itemActivation=tD.FIRST;break;default:this.trySelectFirst();}})),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.ok.label=this.okLabel||"",this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.customButton.secondary=this.customButtonSecondary||!1,!i.inputBox&&(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(tM.First)),this.keepScrollPosition&&(this.scrollTop=e);}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus();}accept(e){(!e||this._canAcceptInBackground)&&(this.activeItems[0]&&!this._canSelectMany&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(e!==null&&e!==void 0?e:!1));}}_WA=WA;_WA.DEFAULT_ARIA_LABEL=(0,iM.M)(1852,"Type to narrow down results.");class WO extends WR{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new iv.S()),this.onDidAcceptEmitter=this._register(new iv.S()),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event;}get value(){return this._value;}set value(e){this._value=e||"",this.update();}get valueSelection(){let e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end];}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update();}get placeholder(){return this._placeholder;}set placeholder(e){this._placeholder=e,this.update();}get ariaLabel(){return this._ariaLabel;}set ariaLabel(e){this._ariaLabel=e,this.update();}get password(){return this._password;}set password(e){this._password=e,this.update();}get prompt(){return this._prompt;}set prompt(e){this._prompt=e,this.noValidationMessage=e?(0,iM.M)(1854,"{0} (Press 'Enter' to confirm or 'Escape' to cancel)",e):WR.noPromptMessage,this.update();}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e));})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show();}accept(){this.onDidAcceptEmitter.fire();}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");let e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password);let t=this.ariaLabel;!t&&e.inputBox&&(t=this.placeholder?this.title?`${this.placeholder} - ${this.title}`:this.placeholder:this.title?this.title:"input"),this.ui.inputBox.ariaLabel!==t&&(this.ui.inputBox.ariaLabel=t||"input");}}let WP=class extends kO{constructor(e,t){super("mouse",void 0,e=>this.getOverrideOptions(e),e,t);}getOverrideOptions(e){var _e$content$textConten;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(ou(e.content)?(_e$content$textConten=e.content.textContent)!==null&&_e$content$textConten!==void 0?_e$content$textConten:"":"string"==typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}};}};WP=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([Wy(0,lN),Wy(1,kA)],WP);var WF=i8;let WB="--vscode-toolbar-action-min-width";class WW extends WF.N{get onDidChangeDropdownVisibility(){return this._onDidChangeDropdownVisibility.event;}constructor(e,t,i={orientation:0}){var _i$hoverDelegate,_this$options$respons;if(super(),this.container=e,this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new iv.Z()),this.originalPrimaryActions=[],this.originalSecondaryActions=[],this.hiddenActions=[],this.disposables=this._register(new WF.q()),i.hoverDelegate=(_i$hoverDelegate=i.hoverDelegate)!==null&&_i$hoverDelegate!==void 0?_i$hoverDelegate:this._register(Rm()),this.options=i,this.toggleMenuAction=this._register(new WV(()=>{var _this$toggleMenuActio;return(_this$toggleMenuActio=this.toggleMenuActionViewItem)===null||_this$toggleMenuActio===void 0?void 0:_this$toggleMenuActio.show();},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new A5(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var _i$moreIcon;if(e.id===WV.ID)return this.toggleMenuActionViewItem=new Am(e,{getActions:()=>this.toggleMenuAction.menuActions},t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:eY.asClassNameArray((_i$moreIcon=i.moreIcon)!==null&&_i$moreIcon!==void 0?_i$moreIcon:rC.f.toolBarMore),menuClassName:this.options.dropdownMenuClassName,closeAnimation:this.options.dropdownMenuCloseAnimation,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){let t=i.actionViewItemProvider(e,n);if(t)return t;}if(e instanceof rm){let i=new Am(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,menuClassName:this.options.dropdownMenuClassName,closeAnimation:this.options.dropdownMenuCloseAnimation,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i;}}})),(_this$options$respons=this.options.responsiveBehavior)!==null&&_this$options$respons!==void 0&&_this$options$respons.enabled){var _this$options$respons2,_this$options$respons3;this.element.classList.toggle("responsive",!0),this.element.classList.toggle("responsive-all","all"===this.options.responsiveBehavior.kind),this.element.classList.toggle("responsive-last","last"===this.options.responsiveBehavior.kind),this.element.style.setProperty(WB,`${this.getConfiguredActionMinWidth()}px`);let e=new ResizeObserver(()=>{this.updateActions(this.getAvailableWidth());});e.observe((_this$options$respons2=(_this$options$respons3=this.options.responsiveBehavior)===null||_this$options$respons3===void 0?void 0:_this$options$respons3.observedElement)!==null&&_this$options$respons2!==void 0?_this$options$respons2:this.element),this._store.add((0,WF.Q)(()=>e.disconnect()));}}set actionRunner(e){this.actionBar.actionRunner=e;}get actionRunner(){return this.actionBar.actionRunner;}set context(e){for(let t of(this.actionBar.context=e,(_this$toggleMenuActio2=this.toggleMenuActionViewItem)!==null&&_this$toggleMenuActio2!==void 0&&_this$toggleMenuActio2.setActionContext(e),this.submenuActionViewItems)){var _this$toggleMenuActio2;t.setActionContext(e);}}getElement(){return this.element;}getItemAction(e){return this.actionBar.getAction(e);}getItemElement(e){var _this$actionBar$getCo;let t=(_this$actionBar$getCo=this.actionBar.getContainer().firstElementChild)===null||_this$actionBar$getCo===void 0?void 0:_this$actionBar$getCo.children.item(e);return ou(t)?t:void 0;}getItemViewItem(e){return this.actionBar.viewItems[e];}getUnshrunkItemWidth(e){var _this$actionBar$getCo2;let t=(_this$actionBar$getCo2=this.actionBar.getContainer().firstElementChild)===null||_this$actionBar$getCo2===void 0?void 0:_this$actionBar$getCo2.children.item(e);if(!ou(t))return this.actionBar.getWidth(e);let i=t.style.flexShrink,n=t.style.minWidth;try{return t.style.flexShrink="0",n||(t.style.minWidth="0"),this.actionBar.getWidth(e);}finally{t.style.flexShrink=i,t.style.minWidth=n;}}getItemsLength(){return this.actionBar.length();}setActions(e,t){var _this$options$respons4;this.clear(),this.originalPrimaryActions=e?e.slice(0):[],this.originalSecondaryActions=t?t.slice(0):[];let i=e?e.slice(0):[];if(this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.length>0&&this.options.trailingSeparator&&i.push(new rf()),i.forEach(e=>{var _this$options$icon,_this$options$label;this.actionBar.push(e,{icon:(_this$options$icon=this.options.icon)!==null&&_this$options$icon!==void 0?_this$options$icon:!0,label:(_this$options$label=this.options.label)!==null&&_this$options$label!==void 0?_this$options$label:!1,keybinding:this.getKeybindingLabel(e)});}),this.updateOverflowClassName(),this.applyResponsiveActionMinWidths(),(_this$options$respons4=this.options.responsiveBehavior)!==null&&_this$options$respons4!==void 0&&_this$options$respons4.enabled){if(this.hiddenActions.length=0,void 0!==this.options.responsiveBehavior.minItems){let e=this.options.responsiveBehavior.minItems,t=(this.overflowFromStart?this.originalPrimaryActions.slice(Math.max(0,this.originalPrimaryActions.length-e)):this.originalPrimaryActions.slice(0,e)).reduce((e,t)=>e+this.getActionMinWidth(t),0),i=0;(this.originalSecondaryActions.length>0||e<this.originalPrimaryActions.length)&&(i=24);let n=this.options.trailingSeparator&&!this.actionBar.isEmpty()?this.actionBar.getWidth(this.actionBar.length()-1)+4:0;this.container.style.minWidth=`${t+i+n}px`,this.element.style.minWidth=`${t+i+n}px`;}else{let e=this.originalPrimaryActions.length>0?this.getActionMinWidth(this.originalPrimaryActions[0]):24;this.container.style.minWidth=`${e}px`,this.element.style.minWidth=`${e}px`;}this.updateActions(this.getAvailableWidth());}}get overflowFromStart(){var _this$options$respons5;return((_this$options$respons5=this.options.responsiveBehavior)===null||_this$options$respons5===void 0?void 0:_this$options$respons5.kind)==="all"&&"start"===this.options.responsiveBehavior.overflowFrom;}getKeybindingLabel(e){var _this$options$getKeyB,_this$options2,_t$getLabel;let t=(_this$options$getKeyB=(_this$options2=this.options).getKeyBinding)===null||_this$options$getKeyB===void 0?void 0:_this$options$getKeyB.call(_this$options2,e);return(_t$getLabel=t===null||t===void 0?void 0:t.getLabel())!==null&&_t$getLabel!==void 0?_t$getLabel:void 0;}getConfiguredActionMinWidth(e){var _ref15,_this$options$respons6,_this$options$respons7,_this$options$respons8,_this$options$respons9;return(e===null||e===void 0?void 0:e.id)===WV.ID?20:(_ref15=(_this$options$respons6=(_this$options$respons7=this.options.responsiveBehavior)===null||_this$options$respons7===void 0||(_this$options$respons8=_this$options$respons7.getActionMinWidth)===null||_this$options$respons8===void 0?void 0:_this$options$respons8.call(_this$options$respons7,e!==null&&e!==void 0?e:this.toggleMenuAction))!==null&&_this$options$respons6!==void 0?_this$options$respons6:(_this$options$respons9=this.options.responsiveBehavior)===null||_this$options$respons9===void 0?void 0:_this$options$respons9.actionMinWidth)!==null&&_ref15!==void 0?_ref15:20;}getActionMinWidth(e){return this.getConfiguredActionMinWidth(e)+4;}getAvailableWidth(){var _this$options$respons0;return(_this$options$respons0=this.options.responsiveBehavior)!==null&&_this$options$respons0!==void 0&&_this$options$respons0.getAvailableWidth?this.options.responsiveBehavior.getAvailableWidth():this.element.getBoundingClientRect().width;}applyResponsiveActionMinWidths(){var _this$options$respons1;if(!((_this$options$respons1=this.options.responsiveBehavior)!==null&&_this$options$respons1!==void 0&&_this$options$respons1.enabled))return;if("last"===this.options.responsiveBehavior.kind){let e=this.actionBar.hasAction(this.toggleMenuAction)?this.actionBar.length()-2:this.actionBar.length()-1,t=e>=0?this.actionBar.getAction(e):void 0,i=`${this.getConfiguredActionMinWidth(t)}px`;this.element.style.getPropertyValue(WB)!==i&&this.element.style.setProperty(WB,i);return;}let e=this.actionBar.getContainer().firstElementChild;if(ou(e))for(let t=0;t<e.children.length;t++){let i=e.children.item(t);if(!ou(i))continue;let n=this.actionBar.getAction(t),s=n instanceof rf?"0px":`${this.getConfiguredActionMinWidth(n)}px`;n instanceof rf&&(i.style.flexShrink="0"),i.style.minWidth!==s&&(i.style.minWidth=s);}}updateActions(e){if(this.actionBar.isEmpty())return;this.applyResponsiveActionMinWidths();let t=parseInt(this.element.style.minWidth);e=Math.max(e,Number.isNaN(t)?0:t);let i=e=>{let t=this.getItemElement(e);return!t||"none"!==sT(t).getComputedStyle(t).display;},n=()=>{let e=[];for(let t=0;t<this.actionBar.length();t++){let n=this.actionBar.getAction(t);n&&this.originalPrimaryActions.includes(n)&&i(t)&&e.push(t);}return e;},s=()=>n().reduce((e,t)=>e+(this.actionBar.getAction(t)instanceof rf?0:1),0),o=()=>{let e=n(),t=(this.overflowFromStart?e:e.slice().reverse()).find(e=>!(this.actionBar.getAction(e)instanceof rf));if(void 0===t)return[];let s=t,o=t,r=this.overflowFromStart?1:-1;for(let e=t+r;e>=0&&e<this.actionBar.length();e+=r){let t=this.actionBar.getAction(e);if(!(t instanceof rf)||!this.originalPrimaryActions.includes(t)||!i(e))break;s=Math.min(s,e),o=Math.max(o,e);}let a=[];for(let e=s;e<=o;e++){let t=this.actionBar.getAction(e);t&&a.push(t);}return a;},r=()=>{if(0===this.hiddenActions.length)return[];if(this.overflowFromStart){let e=this.hiddenActions.length-1;for(;e>0&&this.hiddenActions[e]instanceof rf;)e--;return this.hiddenActions.slice(e);}let e=0;for(;e<this.hiddenActions.length-1&&this.hiddenActions[e]instanceof rf;)e++;return this.hiddenActions.slice(0,e+1);},a=()=>{var _this$options$respons10;if(((_this$options$respons10=this.options.responsiveBehavior)===null||_this$options$respons10===void 0?void 0:_this$options$respons10.kind)==="last"){let e=this.actionBar.hasAction(this.toggleMenuAction),t=n();if(0===t.length)return 24*!!e;let i=0;for(let e of t.slice(0,-1))i+=this.actionBar.getWidth(e)+4;let s=this.actionBar.getAction(t.at(-1));return i+=this.getActionMinWidth(s),i+=24*!!e;}{let e=0;for(let t=0;t<this.actionBar.length();t++)if(i(t)){let i=this.actionBar.getAction(t);e+=i instanceof rf?this.actionBar.getWidth(t)+4:this.getActionMinWidth(i);}return e;}},l=(e,t)=>{var _this$options$respons11;let s=e.reduce((e,t)=>e+this.getActionMinWidth(t),0);if(((_this$options$respons11=this.options.responsiveBehavior)===null||_this$options$respons11===void 0?void 0:_this$options$respons11.kind)==="last"){let e=n();for(let[t,i]of e.entries())s+=(t===e.length-1?this.getUnshrunkItemWidth(i):this.actionBar.getWidth(i))+4;}else for(let e=0;e<this.actionBar.length();e++){let t=this.actionBar.getAction(e);t&&t!==this.toggleMenuAction&&i(e)&&(s+=t instanceof rf?this.actionBar.getWidth(e)+4:this.getActionMinWidth(t));}return t&&(s+=24),s;},h=a();if(h<=e&&0===this.hiddenActions.length)return;let d=or(),c=ou(d)?this.actionBar.getAction(d):void 0,u=this.hiddenActions.length;if(h>e){var _this$options$respons12,_this$options$respons13;let t=(_this$options$respons12=this.options.responsiveBehavior)===null||_this$options$respons12===void 0?void 0:_this$options$respons12.allowOverflow;if(!1===t||"function"==typeof t&&!t()||((_this$options$respons13=this.options.responsiveBehavior)===null||_this$options$respons13===void 0?void 0:_this$options$respons13.minItems)!==void 0&&s()<=this.options.responsiveBehavior.minItems)return;for(;h>e&&this.actionBar.length()>0&&!(((_this$options$respons14=this.options.responsiveBehavior)===null||_this$options$respons14===void 0?void 0:_this$options$respons14.minItems)!==void 0&&s()<=this.options.responsiveBehavior.minItems);){var _this$options$respons14,_this$options$icon2,_this$options$label2;let e=o();if(0===e.length)break;for(let t of e){this.hiddenActions.push(t);let e=this.actionBar.viewItems.findIndex(e=>e.action===t);-1!==e&&this.actionBar.pull(e);}this.hiddenActions.sort((e,t)=>this.originalPrimaryActions.indexOf(e)-this.originalPrimaryActions.indexOf(t)),0!==this.originalSecondaryActions.length||this.actionBar.hasAction(this.toggleMenuAction)||(this.actionBar.push(this.toggleMenuAction,{icon:(_this$options$icon2=this.options.icon)!==null&&_this$options$icon2!==void 0?_this$options$icon2:!0,label:(_this$options$label2=this.options.label)!==null&&_this$options$label2!==void 0?_this$options$label2:!1,keybinding:this.getKeybindingLabel(this.toggleMenuAction),index:this.options.trailingSeparator?this.actionBar.length()-1:void 0}),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths(),h=a();}}else for(;this.hiddenActions.length>0;){let t=r(),i=this.originalSecondaryActions.length>0||this.hiddenActions.length>t.length;if(l(t,i)>e)break;for(let e of t){var _this$options$icon3,_this$options$label3;this.hiddenActions.splice(this.hiddenActions.indexOf(e),1);let t=new Set(this.actionBar.viewItems.map(e=>e.action));this.actionBar.push(e,{icon:(_this$options$icon3=this.options.icon)!==null&&_this$options$icon3!==void 0?_this$options$icon3:!0,label:(_this$options$label3=this.options.label)!==null&&_this$options$label3!==void 0?_this$options$label3:!1,keybinding:this.getKeybindingLabel(e),index:this.originalPrimaryActions.slice(0,this.originalPrimaryActions.indexOf(e)).reduce((e,i)=>e+ +!!t.has(i),0)});}0===this.originalSecondaryActions.length&&0===this.hiddenActions.length&&(this.toggleMenuAction.menuActions=[],this.actionBar.pull(this.actionBar.viewItems.findIndex(e=>e.action===this.toggleMenuAction)),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths();}let g=this.hiddenActions.map(e=>{var _this$options$respons15,_this$options$respons16,_this$options$respons17;return(_this$options$respons15=(_this$options$respons16=this.options.responsiveBehavior)===null||_this$options$respons16===void 0||(_this$options$respons17=_this$options$respons16.getOverflowAction)===null||_this$options$respons17===void 0?void 0:_this$options$respons17.call(_this$options$respons16,e,()=>{var _this$toggleMenuActio3;return(_this$toggleMenuActio3=this.toggleMenuActionViewItem)===null||_this$toggleMenuActio3===void 0?void 0:_this$toggleMenuActio3.element;}))!==null&&_this$options$respons15!==void 0?_this$options$respons15:e;});if(this.originalSecondaryActions.length>0||g.length>0){let e=this.originalSecondaryActions.slice(0);this.toggleMenuAction.menuActions=rf.clean(rf.join(g,e));}if(this.updateOverflowClassName(),this.applyResponsiveActionMinWidths(),this.hiddenActions.length!==u){for(let e=0;e<this.actionBar.length();e++){let t=this.getItemViewItem(e);t instanceof Ac&&t.setFocusable(!1);}if(c){var _this$getItemElement;let e=Array.from({length:this.actionBar.length()},(e,t)=>t).find(e=>this.actionBar.getAction(e)===c),t=Array.from({length:this.actionBar.length()},(e,t)=>t).find(e=>this.actionBar.getAction(e)===this.toggleMenuAction);if(this.actionBar.focus(e!==null&&e!==void 0?e:t),void 0!==e&&ou(d)&&ot(d,(_this$getItemElement=this.getItemElement(e))!==null&&_this$getItemElement!==void 0?_this$getItemElement:null)&&or()!==d){let t=this.getItemViewItem(e);t instanceof Ac&&t.setFocusable(!1),d.tabIndex=0,d.focus({preventScroll:!0});}}else this.actionBar.setFocusable(!0);}}updateOverflowClassName(){this.actionBar.domNode.classList.toggle("has-overflow",this.actionBar.hasAction(this.toggleMenuAction));}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear();}dispose(){this.clear(),this.disposables.dispose(),this.element.remove(),super.dispose();}}class WV extends rg{constructor(e,t){t=t||(0,iM.M)(19,"More Actions..."),super(WV.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e;}async run(){this.toggleDropdownMenu();}get menuActions(){return this._menuActions;}set menuActions(e){this._menuActions=e;}}_WV=WV;_WV.ID="toolbar.toggle.more";var WH=i8;ct.G.white.toString(),ct.G.white.toString();let Wz=Object.freeze({allowedTags:{override:["b","i","u","code","span"]},allowedAttributes:{override:["class"]}}),WU=Object.freeze({sanitizerConfig:{allowedAttributes:{override:["class"]}}});class W$ extends WH.N{get onDidClick(){return this._onDidClick.event;}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new iv.S()),this._onDidEscape=this._register(new iv.S()),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary),this._element.classList.toggle("small",!!t.small);let i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground,s=t.secondary?t.buttonSecondaryBorder:t.buttonBorder;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",s&&(this._element.style.border=`1px solid ${s}`),t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"==typeof t.title&&this.setTitle(t.title),"string"==typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this.enabled=!t.disabled,this._register(pU.addTarget(this._element)),[o_.CLICK,e7.Tap].forEach(e=>{this._register(s$(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):ob.stop(e);}));}),this._register(s$(this._element,o_.KEY_DOWN,e=>{let t=new nx(e),i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&ob.stop(t,!0);})),this._register(s$(this._element,o_.MOUSE_OVER,e=>{this._element.classList.contains("disabled")||this.updateStyles(!0);})),this._register(s$(this._element,o_.MOUSE_OUT,e=>{this.updateStyles(!1);})),this.focusTracker=this._register(oS(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateStyles(!0);})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateStyles(!1);}));}dispose(){super.dispose(),this._element.remove();}getContentElements(e){let t=[];for(let i of Ni(e))if("string"==typeof i){if(""===(i=i.trim()))continue;let e=document.createElement("span");e.textContent=i,t.push(e);}else t.push(i);return t;}updateStyles(e){let t,i,n;this.options.secondary?(t=e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground,i=this.options.buttonSecondaryForeground,n=this.options.buttonSecondaryBorder):(t=e?this.options.buttonHoverBackground:this.options.buttonBackground,i=this.options.buttonForeground,n=this.options.buttonBorder),this._element.style.backgroundColor=t||"",this._element.style.color=i||"",this._element.style.border=n?`1px solid ${n}`:"";}get element(){return this._element;}set label(e){if(this._label===e||DB(this._label)&&DB(e)&&DW(this._label,e))return;this._element.classList.add("monaco-text-button");let t=this.options.supportShortLabel?this._labelElement:this._element;if(DB(e)){var _i$element$querySelec;let i=Nr(e,WU,document.createElement("span"));i.dispose();let n=(_i$element$querySelec=i.element.querySelector("p"))===null||_i$element$querySelec===void 0?void 0:_i$element$querySelec.innerHTML;n?Ne(t,n,Wz):oD(t);}else this.options.supportIcons?oD(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"==typeof this.options.title?i=this.options.title:this.options.title&&(i=Nf(e)),this.setTitle(i),this._setAriaLabel(),this._label=e;}get label(){return this._label;}_setAriaLabel(){"string"==typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):"string"==typeof this.options.title&&this._element.setAttribute("aria-label",this.options.title);}set icon(e){this._setAriaLabel();let t=Array.from(this._element.classList).filter(e=>e.startsWith("codicon-"));this._element.classList.remove(...t),this._element.classList.add(...eY.asClassNameArray(e));}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)));}get enabled(){return!this._element.classList.contains("disabled");}set secondary(e){this._element.classList.toggle("secondary",e),this.options.secondary=e,this.updateStyles(!1);}setTitle(e){var _this$options$hoverDe3;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register(RC().setupManagedHover((_this$options$hoverDe3=this.options.hoverDelegate)!==null&&_this$options$hoverDe3!==void 0?_this$options$hoverDe3:Rf("element"),this._element,e));}focus(){this._element.focus();}}var WK=i8;class Wq extends WK.N{constructor(e,t,i){super(),this.options=t,this.styles=i,this.count=0,this.hover=this._register(new WK.k()),this.element=oL(e,oN(".monaco-count-badge")),this._register((0,WK.Q)(()=>e.removeChild(this.element))),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0),this.updateHover();}setCount(e){this.count=e,this.render();}setTitleFormat(e){this.titleFormat=e,this.updateHover(),this.render();}updateHover(){""===this.titleFormat||this.hover.value?""===this.titleFormat&&this.hover.value&&(this.hover.value=void 0):this.hover.value=RC().setupDelayedHoverAtMouse(this.element,()=>({content:(0,i7.R)(this.titleFormat,this.count),appearance:{compact:!0}}));}render(){var _this$styles$badgeBac,_this$styles$badgeFor;this.element.textContent=(0,i7.R)(this.countFormat,this.count),this.element.style.backgroundColor=(_this$styles$badgeBac=this.styles.badgeBackground)!==null&&_this$styles$badgeBac!==void 0?_this$styles$badgeBac:"",this.element.style.color=(_this$styles$badgeFor=this.styles.badgeForeground)!==null&&_this$styles$badgeFor!==void 0?_this$styles$badgeFor:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`);}}e.s(["f",0,Wq],82856);var Wj=i8;let WG="done",WQ="active",WZ="infinite",WY="infinite-long-running",WX="discrete",WJ=(0,iM.M)(16,"Progress");class W0 extends Wj.N{constructor(e,t){super(),this.progressSignal=this._register(new Wj.k()),this.workedVal=0,this.showDelayedScheduler=this._register(new nI.t(()=>oE(this.element),0)),this.longRunningScheduler=this._register(new nI.t(()=>this.infiniteLongRunning(),W0.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t);}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),this.element.setAttribute("aria-label",t!==null&&t!==void 0&&t.ariaLabel&&t.ariaLabel.trim()?t.ariaLabel:WJ),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(t===null||t===void 0?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit);}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(WQ,WZ,WY,WX),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear();}stop(){return this.doDone(!1);}doDone(e){return this.element.classList.add(WG),this.element.classList.contains(WZ)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this;}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(WX,WG,WY),this.element.classList.add(WQ,WZ),this.longRunningScheduler.schedule(),this;}infiniteLongRunning(){this.element.classList.add(WY);}getContainer(){return this.element;}}_W2=W0;_W2.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var W1=i8,W2=i8;class W3 extends W2.N{constructor(e,t,i){super(),this.parent=e,this._listFocusMode=!1,this.onDidChange=e=>this.findInput.onDidChange(e),this.container=oL(this.parent,oN(".quick-input-box")),this.findInput=this._register(new Pu(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i,actionViewItemProvider:O9(i),hideHoverOnValueChange:!0}));}get onKeyDown(){return this.findInput.onKeyDown;}get value(){return this.findInput.getValue();}set value(e){this.findInput.setValue(e);}select(e=null){this.findInput.inputBox.select(e);}getSelection(){return this.findInput.inputBox.getSelection();}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd();}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||"";}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e);}get password(){return"password"===this.findInput.inputBox.inputElement.type;}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text";}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e);}set toggles(e){this.findInput.setAdditionalToggles(e);}set actions(e){this.setActions(e);}setActions(e,t){this.findInput.setActions(e,t);}get ariaLabel(){return this.findInput.inputBox.inputElement.getAttribute("aria-label")||"";}set ariaLabel(e){this.findInput.inputBox.inputElement.setAttribute("aria-label",e);}hasFocus(){return this.findInput.inputBox.hasFocus();}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t);}removeAttribute(e){this.findInput.inputBox.inputElement.removeAttribute(e);}setListFocusMode(e){if(this._listFocusMode===e)return;this._listFocusMode=e;let t=this.findInput.inputBox.inputElement;e?(t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-autocomplete","list")):(t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-autocomplete"));}showDecoration(e){e===bz.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===bz.Info?1:e===bz.Warning?2:3,content:""});}stylesForType(e){return this.findInput.inputBox.stylesForType(e===bz.Info?1:e===bz.Warning?2:3);}setFocus(){this.findInput.focus();}layout(){this.findInput.inputBox.layout();}setHeight(e){this.findInput.inputBox.element.style.height=void 0===e?"":`${e}px`;}}var W5=i8;class W6 extends W5.N{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=oL(e,oN("span.monaco-highlighted-label"));}get element(){return this.domNode;}set(e,t=[],i="",n,s){e||(e=""),n&&(e=W6.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&(0,im.m)(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render(s));}render(e){let t=[],i=0;for(let n of this.highlights){if(n.end===n.start)continue;if(i<n.start){let s=this.text.substring(i,n.start);e?t.push(...Ni(s,!0)):t.push(s),i=n.start;}let s=this.text.substring(i,n.end),o=oN("span.highlight",void 0,...(e?Ni(s,!0):[s]));n.extraClasses&&o.classList.add(...n.extraClasses),t.push(o),i=n.end;}if(i<this.text.length){let n=this.text.substring(i);e?t.push(...Ni(n,!0)):t.push(n);}if(oD(this.domNode,...t),this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{var _this$options$hoverDe4,_this$options3;let e=(_this$options$hoverDe4=(_this$options3=this.options)===null||_this$options3===void 0?void 0:_this$options3.hoverDelegate)!==null&&_this$options$hoverDe4!==void 0?_this$options$hoverDe4:Rf("mouse");this.customHover=this._register(RC().setupManagedHover(e,this.domNode,this.title));}this.didEverRender=!0;}static escapeNewLines(e,t){let i=0,n=0;return e.replace(/\r\n|\r|\n/g,(e,s)=>{for(let o of(n="\r\n"===e?-1:0,s+=i,t))!(o.end<=s)&&(o.start>=s&&(o.start+=n),o.end>=s&&(o.end+=n));return i+=n,"⏎";});}}e.s(["f",0,W6],58232);var W4=i8;class W9{constructor(e){this._element=e;}get element(){return this._element;}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e);}set classNames(e){this.disposed||(0,im.m)(e,this._classNames)||(this._classNames=e,this._element.classList.value="",this._element.classList.add(...e));}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"");}dispose(){this.disposed=!0;}}class W8 extends W4.N{constructor(e,t){var _t$hoverDelegate2;super(),this.customHovers=new Map(),this.creationOptions=t,this.domNode=this._register(new W9(oL(e,oN(".monaco-icon-label")))),this.labelContainer=oL(this.domNode.element,oN(".monaco-icon-label-container")),this.nameContainer=oL(this.labelContainer,oN("span.monaco-icon-name-container")),t!==null&&t!==void 0&&t.supportHighlights||t!==null&&t!==void 0&&t.supportIcons?this.nameNode=this._register(new Ve(this.nameContainer,!!t.supportIcons)):this.nameNode=new W7(this.nameContainer),this.hoverDelegate=(_t$hoverDelegate2=t===null||t===void 0?void 0:t.hoverDelegate)!==null&&_t$hoverDelegate2!==void 0?_t$hoverDelegate2:Rf("mouse");}get element(){return this.domNode.element;}setLabel(e,t,i){var _i$suffix;let n=["monaco-icon-label"],s=["monaco-icon-label-container"],o="";i&&(i.extraClasses&&n.push(...i.extraClasses),i.bold&&n.push("bold"),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough"),i.disabledCommand&&s.push("disabled"),i.title&&("string"==typeof i.title?o+=i.title:o+=e));let r=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i!==null&&i!==void 0&&i.iconPath){let e;if(r&&ou(r)?e=r:(e=oN(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),eY.isThemeIcon(i.iconPath)){let t=eY.asClassName(i.iconPath);e.className=`monaco-icon-label-iconpath ${t}`,e.style.backgroundImage="";}else e.style.backgroundImage=Ra(i===null||i===void 0?void 0:i.iconPath);e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="contain";}else r&&r.remove();if(this.domNode.classNames=n,this.domNode.element.setAttribute("aria-label",o),this.labelContainer.classList.value="",this.labelContainer.classList.add(...s),this.setupHover(i!==null&&i!==void 0&&i.descriptionTitle?this.labelContainer:this.element,i===null||i===void 0?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){let e=this.getOrCreateDescriptionNode();if(e instanceof W6){var _i$supportIcons,_this$creationOptions;let n=(_i$supportIcons=i===null||i===void 0?void 0:i.supportIcons)!==null&&_i$supportIcons!==void 0?_i$supportIcons:(_this$creationOptions=this.creationOptions)===null||_this$creationOptions===void 0?void 0:_this$creationOptions.supportIcons;e.set(t||"",i?i.descriptionMatches:void 0,void 0,i===null||i===void 0?void 0:i.labelEscapeNewLines,n),this.setupHover(e.element,i===null||i===void 0?void 0:i.descriptionTitle);}else e.textContent=t&&i!==null&&i!==void 0&&i.labelEscapeNewLines?W6.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(i===null||i===void 0?void 0:i.descriptionTitle)||""),e.empty=!t;}((i===null||i===void 0?void 0:i.suffix)||this.suffixNode)&&(this.getOrCreateSuffixNode().textContent=(_i$suffix=i===null||i===void 0?void 0:i.suffix)!==null&&_i$suffix!==void 0?_i$suffix:"");}setupHover(e,t){var _this$creationOptions2;let i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t)return void e.removeAttribute("title");let n=e;if((_this$creationOptions2=this.creationOptions)!==null&&_this$creationOptions2!==void 0&&_this$creationOptions2.hoverTargetOverride){if(!ot(e,this.creationOptions.hoverTargetOverride))throw Error("hoverTargetOverrride must be an ancestor of the htmlElement");n=this.creationOptions.hoverTargetOverride;}let s=RC().setupManagedHover(this.hoverDelegate,n,t);s&&this.customHovers.set(e,s);}dispose(){for(let e of(super.dispose(),this.customHovers.values()))e.dispose();this.customHovers.clear();}getOrCreateSuffixNode(){if(!this.suffixNode){let e=this._register(new W9(ox(this.nameContainer,oN("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new W9(oL(e.element,oN("span.label-suffix"))));}return this.suffixNode;}getOrCreateDescriptionNode(){if(!this.descriptionNode){var _this$creationOptions3;let e=this._register(new W9(oL(this.labelContainer,oN("span.monaco-icon-description-container"))));(_this$creationOptions3=this.creationOptions)!==null&&_this$creationOptions3!==void 0&&_this$creationOptions3.supportDescriptionHighlights?this.descriptionNode=this._register(new W6(oL(e.element,oN("span.label-description")))):this.descriptionNode=this._register(new W9(oL(e.element,oN("span.label-description"))));}return this.descriptionNode;}}class W7{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0;}setLabel(e,t){if(!(this.label===e&&(0,im.m)(this.options,t)))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.textContent="",this.container.classList.remove("multiple"),this.singleLabel=oL(this.container,oN("a.label-name",{id:t===null||t===void 0?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.textContent="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){let n=e[i],s=(t===null||t===void 0?void 0:t.domId)&&`${t===null||t===void 0?void 0:t.domId}_${i}`;oL(this.container,oN("a.label-name",{id:s,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&oL(this.container,oN("span.label-separator",void 0,(t===null||t===void 0?void 0:t.separator)||"/"));}}}}class Ve extends W4.N{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0,this._labelDisposables=this._register(new W4.q());}setLabel(e,t){var _t$supportIcons;if(this.label===e&&(0,im.m)(this.options,t))return;this.label=e,this.options=t;let i=(_t$supportIcons=t===null||t===void 0?void 0:t.supportIcons)!==null&&_t$supportIcons!==void 0?_t$supportIcons:this.supportIcons;if("string"==typeof e)this.singleLabel||(this._labelDisposables.clear(),this.container.textContent="",this.container.classList.remove("multiple"),this.singleLabel=this._labelDisposables.add(new W6(oL(this.container,oN("a.label-name",{id:t===null||t===void 0?void 0:t.domId}))))),this.singleLabel.set(e,t===null||t===void 0?void 0:t.matches,void 0,t===null||t===void 0?void 0:t.labelEscapeNewLines,i);else{this._labelDisposables.clear(),this.container.textContent="",this.container.classList.add("multiple"),this.singleLabel=void 0;let n=(t===null||t===void 0?void 0:t.separator)||"/",s=function(e,t,i){if(!i)return;let n=0;return e.map(e=>{let s={start:n,end:n+e.length},o=i.map(e=>tx.intersect(s,e)).filter(e=>!tx.isEmpty(e)).map(({start:e,end:t})=>({start:e-n,end:t-n}));return n=s.end+t.length,o;});}(e,n,t===null||t===void 0?void 0:t.matches);for(let o=0;o<e.length;o++){let r=e[o],a=s?s[o]:void 0,l=oN("a.label-name",{id:(t===null||t===void 0?void 0:t.domId)&&`${t===null||t===void 0?void 0:t.domId}_${o}`,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._labelDisposables.add(new W6(oL(this.container,l))).set(r,a,void 0,t===null||t===void 0?void 0:t.labelEscapeNewLines,i),o<e.length-1&&oL(l,oN("span.label-separator",void 0,n));}}}}e.s(["f",0,W8],20998);var Vt=i8;class Vi extends Vt.N{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set(),this.options=i||Object.create(null);let n=this.options.keybindingLabelForeground;this.domNode=oL(e,oN(".monaco-keybinding")),n&&(this.domNode.style.color=n),this.hover=this._register(RC().setupManagedHover(Rf("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode);}set(e,t){this.didEverRender&&this.keybinding===e&&Vi.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render());}render(){if(this.clear(),this.keybinding){let e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let t=1;t<e.length;t++)oL(this.domNode,oN("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[t],this.matches?this.matches.chordPart:null);let t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"");}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0;}clear(){sz(this.domNode),this.keyElements.clear();}renderChord(e,t,i){let n=Av.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!(i!==null&&i!==void 0&&i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!(i!==null&&i!==void 0&&i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,!!(i!==null&&i!==void 0&&i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!(i!==null&&i!==void 0&&i.metaKey),n.separator);let s=t.keyLabel;s&&this.renderKey(e,s,!!(i!==null&&i!==void 0&&i.keyCode),"");}renderKey(e,t,i,n){oL(e,this.createKeyElement(t,i?".highlight":"")),n&&oL(e,oN("span.monaco-keybinding-key-separator",void 0,n));}renderUnbound(e){oL(e,this.createKeyElement((0,iM.M)(15,"Unbound")));}createKeyElement(e,t=""){let i=oN("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i;}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,im.m)(e.firstPart,t.firstPart)&&(0,im.m)(e.chordPart,t.chordPart);}}e.s(["A",0,Vi,"P",0,{keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0}],57826);let Vn=new pM.f(()=>{let e=b8.f.Collator(void 0,{numeric:!0,sensitivity:"base"}).value;return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric};});new pM.f(()=>({collator:b8.f.Collator(void 0,{numeric:!0}).value})),new pM.f(()=>({collator:b8.f.Collator(void 0,{numeric:!0,sensitivity:"accent"}).value}));var Vs=i8,Vo=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},Vr=function(e,t){return function(i,n){t(i,n,e);};};class Va{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new pM.f(()=>{var _i$label;let e=(_i$label=i.label)!==null&&_i$label!==void 0?_i$label:"",t=DO(e).text.trim(),n=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map(e=>DR(e)).filter(e=>!!e).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:n};}),this._saneDescription=i.description,this._saneTooltip=i.tooltip;}get saneLabel(){return this._init.value.saneLabel;}get saneSortLabel(){return this._init.value.saneSortLabel;}get saneAriaLabel(){return this._init.value.saneAriaLabel;}get element(){return this._element;}set element(e){this._element=e;}get hidden(){return this._hidden;}set hidden(e){this._hidden=e;}get saneDescription(){return this._saneDescription;}set saneDescription(e){this._saneDescription=e;}get saneDetail(){return this._saneDetail;}set saneDetail(e){this._saneDetail=e;}get saneTooltip(){return this._saneTooltip;}set saneTooltip(e){this._saneTooltip=e;}get labelHighlights(){return this._labelHighlights;}set labelHighlights(e){this._labelHighlights=e;}get descriptionHighlights(){return this._descriptionHighlights;}set descriptionHighlights(e){this._descriptionHighlights=e;}get detailHighlights(){return this._detailHighlights;}set detailHighlights(e){this._detailHighlights=e;}}class Vl extends Va{constructor(e,t,i,n,s,o,r){var _o$highlights,_o$highlights2,_o$highlights3;super(e,i,o),this.childIndex=t,this.fireButtonTriggered=n,this._onChecked=s,this.item=o,this._separator=r,this._checked=!1,this.onChecked=i?iv.C.map(iv.C.filter(this._onChecked.event,e=>e.element===this),e=>e.checked):iv.C.None,this._saneDetail=o.detail,this._labelHighlights=(_o$highlights=o.highlights)===null||_o$highlights===void 0?void 0:_o$highlights.label,this._descriptionHighlights=(_o$highlights2=o.highlights)===null||_o$highlights2===void 0?void 0:_o$highlights2.description,this._detailHighlights=(_o$highlights3=o.highlights)===null||_o$highlights3===void 0?void 0:_o$highlights3.detail;}get separator(){return this._separator;}set separator(e){this._separator=e;}get checked(){return this._checked;}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}));}get checkboxDisabled(){return!!this.item.disabled;}}(eV=ii||(ii={}))[eV.NONE=0]="NONE",eV[eV.MOUSE_HOVER=1]="MOUSE_HOVER",eV[eV.ACTIVE_ITEM=2]="ACTIVE_ITEM";class Vh extends Va{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=[],this.focusInsideSeparator=ii.NONE;}}class Vd{getHeight(e){return e instanceof Vh?30:e.saneDetail?44:22;}getTemplateId(e){return e instanceof Vl?Vg.ID:Vp.ID;}}class Vc{getWidgetAriaLabel(){return(0,iM.M)(1867,"Quick Input");}getAriaLabel(e){var _e$separator;return(_e$separator=e.separator)!==null&&_e$separator!==void 0&&_e$separator.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel;}getWidgetRole(){return"listbox";}getRole(e){return e.hasCheckbox?"checkbox":"option";}isChecked(e){if(e.hasCheckbox&&e instanceof Vl)return{get value(){return e.checked;},onDidChange:t=>e.onChecked(()=>t())};}}class Vu extends Vs.N{constructor(e,t,i){super(),this.hoverDelegate=e,this.toggleStyles=t,this.contextMenuService=i,this._onDidDisposeFocusedElement=this._register(new iv.S()),this.onDidDisposeFocusedElement=this._onDidDisposeFocusedElement.event;}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=new Vs.q(),t.toDisposeTemplate=new Vs.q(),t.entry=oL(e,oN(".quick-input-list-entry"));let i=oL(t.entry,oN("label.quick-input-list-label"));t.outerLabel=i,t.checkbox=t.toDisposeTemplate.add(new Vs.k()),t.toDisposeTemplate.add(sq(i,o_.CLICK,e=>{if(t.checkbox.value&&!e.defaultPrevented&&t.checkbox.value.enabled){let e=!t.checkbox.value.checked;t.checkbox.value.checked=e,t.element.checked=e;}}));let n=oL(i,oN(".quick-input-list-rows")),s=oL(n,oN(".quick-input-list-row")),o=oL(n,oN(".quick-input-list-row"));return t.label=new W8(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=ok(t.label.element,oN(".quick-input-list-icon")),t.keybinding=new Vi(oL(s,oN(".quick-input-list-entry-keybinding")),i_.B),t.toDisposeTemplate.add(t.keybinding),t.detail=new W8(oL(o,oN(".quick-input-list-label-meta")),{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=oL(t.entry,oN(".quick-input-list-separator")),t.toolBar=new WW(t.entry,this.contextMenuService,{...(this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),actionViewItemProvider:O9(this.toggleStyles),icon:!0,label:!1}),t.toolBar.getElement().classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.toolBar),t;}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose();}disposeElement(e,t,i){ol(i.entry)&&this._onDidDisposeFocusedElement.fire(),i.toDisposeElement.clear(),i.toolBar.setActions([]);}}let Vg=(_Class1=class Vg extends Vu{constructor(e,t,i,n){super(e,t,i),this.themeService=n,this._itemsWithSeparatorsFrequency=new Map();}get templateId(){return ie.ID;}ensureCheckbox(e,t){if(!e.hasCheckbox){var _t$checkbox$value;(_t$checkbox$value=t.checkbox.value)!==null&&_t$checkbox$value!==void 0&&_t$checkbox$value.domNode.remove(),t.checkbox.clear();return;}let i=t.checkbox.value;i?i.setTitle(e.saneLabel):(i=new O6(e.saneLabel,e.checked,{...AD,size:15}),t.checkbox.value=i,t.outerLabel.prepend(i.domNode),i.domNode.tabIndex=-1),e.checkboxDisabled?i.disable():i.enable(),i.checked=e.checked,t.toDisposeElement.add(e.onChecked(e=>i.checked=e)),t.toDisposeElement.add(i.onChange(()=>e.checked=i.checked));}renderElement(e,t,i){var _i$entry,_s$separator;let n,s=e.element;i.element=s,s.element=(_i$entry=i.entry)!==null&&_i$entry!==void 0?_i$entry:void 0;let o=s.item;s.element.classList.toggle("not-pickable",!1===s.item.pickable),"string"==typeof o.id?i.entry.setAttribute("data-quick-input-id",o.id):i.entry.removeAttribute("data-quick-input-id"),this.ensureCheckbox(s,i);let{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=s;if(o.iconPath){var _o$iconPath$light;let e=p_(this.themeService.getColorTheme().type)?o.iconPath.dark:(_o$iconPath$light=o.iconPath.light)!==null&&_o$iconPath$light!==void 0?_o$iconPath$light:o.iconPath.dark,t=ne.m.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=Ra(t);}else i.icon.style.backgroundImage="",i.icon.className=o.iconClass?`quick-input-list-icon ${o.iconClass}`:"";i.icon.style.color=o.iconColor?cs(o.iconColor.id):"",!s.saneTooltip&&s.saneDescription&&(n={markdown:{value:(0,i7.q)(s.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});let h={matches:r||[],descriptionTitle:n,descriptionMatches:a||[],labelEscapeNewLines:!0};if(h.extraClasses=o.iconClasses,h.italic=o.italic,h.strikethrough=o.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,h),i.keybinding.set(o.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:(0,i7.q)(s.saneDetail),supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0});}else i.detail.element.style.display="none";(_s$separator=s.separator)!==null&&_s$separator!==void 0&&_s$separator.label?(i.separator.textContent=s.separator.label,i.separator.style.display="",this.addItemWithSeparator(s)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!s.separator&&0!==s.childIndex);let d=o.buttons;if(d&&d.length){let{primary:e,secondary:t}=Ww(d,"quick-input-item",e=>s.fireButtonTriggered({button:e,item:s.item}));i.toolBar.setActions(e,t),i.entry.classList.add("has-actions");}else i.toolBar.setActions([]),i.entry.classList.remove("has-actions");}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i);}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e);}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1);}removeItemWithSeparator(e){let t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e);}},ie=_Class1,_Class1.ID="quickpickitem",_Class1);Vg=ie=Vo([Vr(2,kF),Vr(3,_s)],Vg);let Vp=(_Class10=class Vp extends Vu{constructor(e,t,i){super(e,t,i),this._visibleSeparatorsFrequency=new Map();}get templateId(){return it.ID;}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()];}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e);}renderElement(e,t,i){var _i$entry2;let n,s=e.element;i.element=s,s.element=(_i$entry2=i.entry)!==null&&_i$entry2!==void 0?_i$entry2:void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);let o=s.separator,{labelHighlights:r,descriptionHighlights:a}=s;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(n={markdown:{value:(0,i7.q)(s.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});let l={matches:r||[],descriptionTitle:n,descriptionMatches:a||[],labelEscapeNewLines:!0};i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");let h=o.buttons;if(h&&h.length){let{primary:e,secondary:t}=Ww(h,"quick-input-separator",e=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}));i.toolBar.setActions(e,t),i.entry.classList.add("has-actions");}else i.toolBar.setActions([]),i.entry.classList.remove("has-actions");this.addSeparator(s);}disposeElement(e,t,i){var _e$element$element;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||(_e$element$element=e.element.element)!==null&&_e$element$element!==void 0&&_e$element$element.classList.remove("focus-inside"),super.disposeElement(e,t,i);}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1);}removeSeparator(e){let t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e);}},it=_Class10,_Class10.ID="quickpickseparator",_Class10);Vp=it=Vo([Vr(2,kF)],Vp);let Vf=class extends Vs.N{constructor(e,t,i,n,s,o,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.styles=s,this.accessibilityService=r,this._onLeave=this._register(new iv.S()),this.onLeave=this._onLeave.event,this._visibleCountObservable=sc("VisibleCount",0),this.onChangedVisibleCount=iv.C.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=sc("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=iv.C.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=sc("CheckedCount",0),this.onChangedCheckedCount=iv.C.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=Sk({equalsFn:ip.m},[]),this.onChangedCheckedElements=iv.C.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=this._register(new iv.S()),this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=this._register(new iv.S()),this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=this._register(new iv.S()),this._elementCheckedEventBufferer=new iv.s(),this._hasCheckboxes=!1,this._inputElements=[],this._elementTree=[],this._itemElements=[],this._elementDisposable=this._register(new Vs.q()),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=oL(this.parent,oN(".quick-input-list")),this._separatorRenderer=this._register(o.createInstance(Vp,t,this.styles.toggle)),this._itemRenderer=this._register(o.createInstance(Vg,t,this.styles.toggle)),this._tree=this._register(o.createInstance(F9,"QuickInput",this._container,new Vd(),[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Vh?2:1},sorter:{compare:(e,t)=>{var i,n,s;let o,r;return this.sortByLabel&&this._lastQueryString?(i=e,n=t,s=this._lastQueryString.toLowerCase(),o=i.labelHighlights||[],r=n.labelHighlights||[],o.length&&!r.length?-1:!o.length&&r.length?1:0===o.length&&0===r.length?0:function(e,t,i){let n,s,o,r=e.toLowerCase(),a=t.toLowerCase(),l=function(e,t,i){let n=e.toLowerCase(),s=t.toLowerCase(),o=n.startsWith(i),r=s.startsWith(i);if(o!==r)return o?-1:1;if(o&&r){if(n.length<s.length)return-1;if(n.length>s.length)return 1;}return 0;}(e,t,i);if(l)return l;let h=r.endsWith(i);if(h!==a.endsWith(i))return h?-1:1;let d=(n=r||"",s=a||"",o=Vn.value.collator.compare(n,s),Vn.value.collatorIsNumeric&&0===o&&n!==s?n<s?-1:1:o);return 0!==d?d:r.localeCompare(a);}(i.saneSortLabel,n.saneSortLabel,s)):0;}},accessibilityProvider:new Vc(),setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:tj.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._register(this._itemRenderer.onDidDisposeFocusedElement(()=>this._tree.domFocus())),this._register(this._separatorRenderer.onDidDisposeFocusedElement(()=>this._tree.domFocus())),this._registerListeners();}get onDidChangeFocus(){return iv.C.map(this._tree.onDidChangeFocus,e=>e.elements.filter(e=>e instanceof Vl).map(e=>e.item),this._store);}get onDidChangeSelection(){return iv.C.map(this._tree.onDidChangeSelection,e=>({items:e.elements.filter(e=>e instanceof Vl).map(e=>e.item),event:e.browserEvent}),this._store);}get displayed(){return"none"!==this._container.style.display;}set displayed(e){this._container.style.display=e?"":"none";}get scrollTop(){return this._tree.scrollTop;}set scrollTop(e){this._tree.scrollTop=e;}get ariaLabel(){return this._tree.ariaLabel;}set ariaLabel(e){this._tree.ariaLabel=e!==null&&e!==void 0?e:"";}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none";}get matchOnDescription(){return this._matchOnDescription;}set matchOnDescription(e){this._matchOnDescription=e;}get matchOnDetail(){return this._matchOnDetail;}set matchOnDetail(e){this._matchOnDetail=e;}get matchOnLabel(){return this._matchOnLabel;}set matchOnLabel(e){this._matchOnLabel=e;}get matchOnLabelMode(){return this._matchOnLabelMode;}set matchOnLabelMode(e){this._matchOnLabelMode=e;}get sortByLabel(){return this._sortByLabel;}set sortByLabel(e){this._sortByLabel=e;}get shouldLoop(){return this._shouldLoop;}set shouldLoop(e){this._shouldLoop=e;}_registerListeners(){this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners();}_registerOnContainerClick(){this._register(s$(this._container,o_.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire();}));}_registerOnMouseMiddleClick(){this._register(s$(this._container,o_.AUXCLICK,e=>{1===e.button&&this._onLeave.fire();}));}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel(()=>{let e=this._itemElements.filter(e=>!e.hidden).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables();}));}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,(e,t)=>t)(e=>this._updateCheckedObservables()));}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]));}));}_registerHoverListeners(){let e=this._register(new nI.X("function"==typeof this.hoverDelegate.delay?this.hoverDelegate.delay():this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async t=>{var _t$element;if(og(t.browserEvent.target))return void e.cancel();if(!(!og(t.browserEvent.relatedTarget)&&ot(t.browserEvent.relatedTarget,(_t$element=t.element)===null||_t$element===void 0?void 0:_t$element.element)))try{await e.trigger(async()=>{t.element instanceof Vl&&this.showHover(t.element);});}catch(e){if(!(0,nf.F)(e))throw e;}})),this._register(this._tree.onMouseOut(t=>{var _t$element2;ot(t.browserEvent.relatedTarget,(_t$element2=t.element)===null||_t$element2===void 0?void 0:_t$element2.element)||e.cancel();}));}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{let t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(let e of this._separatorRenderer.visibleSeparators){let i=e===t;!!(e.focusInsideSeparator&ii.ACTIVE_ITEM)!==i&&(i?e.focusInsideSeparator|=ii.ACTIVE_ITEM:e.focusInsideSeparator&=~ii.ACTIVE_ITEM,this._tree.rerender(e));}})),this._register(this._tree.onMouseOver(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let e of this._separatorRenderer.visibleSeparators)e===t&&(e.focusInsideSeparator&ii.MOUSE_HOVER||(e.focusInsideSeparator|=ii.MOUSE_HOVER,this._tree.rerender(e)));})),this._register(this._tree.onMouseOut(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let e of this._separatorRenderer.visibleSeparators)e===t&&e.focusInsideSeparator&ii.MOUSE_HOVER&&(e.focusInsideSeparator&=~ii.MOUSE_HOVER,this._tree.rerender(e));}));}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{let t=e.elements.filter(e=>e instanceof Vl);t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Vh&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t));}));}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents(()=>{this._itemElements.forEach(t=>{t.hidden||t.checkboxDisabled||!1===t.item.pickable||(t.checked=e);});});}setElements(e){let t;this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes"),this._itemElements=[],this._elementTree=e.reduce((i,n,s)=>{let o;if("separator"===n.type){if(!n.buttons)return i;o=t=new Vh(s,e=>this._onSeparatorButtonTriggered.fire(e),n);}else{var _t25;let r,a=s>0?e[s-1]:void 0;a&&"separator"===a.type&&!a.buttons&&(r=a);let l=new Vl(s,(_t25=t)!==null&&_t25!==void 0&&_t25.children?t.children.length:s,this._hasCheckboxes&&!1!==n.pickable,e=>this._onButtonTriggered.fire(e),this._elementChecked,n,r);if(this._itemElements.push(l),t)return t.children.push(l),i;o=l;}return i.push(o),i;},[]),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&(0,nI.w)(()=>{let e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e===null||e===void 0?void 0:e.parentNode;if(e&&t){let i=e.nextSibling;e.remove(),t.insertBefore(e,i);}},0,this._elementDisposable);}setFocusedElements(e){let t=e.map(e=>this._itemElements.find(t=>t.item===e)).filter(e=>!!e).filter(e=>!e.hidden);if(this._tree.setFocus(t),e.length>0){let e=this._tree.getFocus()[0];e&&this._tree.reveal(e);}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant");}setSelectedElements(e){let t=e.map(e=>this._itemElements.find(t=>t.item===e)).filter(e=>!!e);this._tree.setSelection(t);}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item);}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents(()=>{let t=new Set();for(let i of e)t.add(i);for(let e of this._itemElements)e.checked=t.has(e.item);});}focus(e){if(this._itemElements.length)switch(e===tM.Second&&this._itemElements.length<2&&(e=tM.First),e){case tM.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,e=>e.element instanceof Vl);break;case tM.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,t=>t.element instanceof Vl&&(!!e||(e=!e,!1)));break;}case tM.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,e=>e.element instanceof Vl);break;case tM.Next:{let e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,e=>e.element instanceof Vl&&(this._tree.reveal(e.element),!0));let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.Previous:{let e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,e=>{if(!(e.element instanceof Vl))return!1;let t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0;});let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.NextPage:this._tree.focusNextPage(void 0,e=>e.element instanceof Vl&&(this._tree.reveal(e.element),!0));break;case tM.PreviousPage:this._tree.focusPreviousPage(void 0,e=>{if(!(e.element instanceof Vl))return!1;let t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0;});break;case tM.NextSeparator:{let e=!1,t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,t=>{if(e)return!0;if(t.element instanceof Vh)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof Vl){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;}return!1;}),t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,e=>e.element instanceof Vl));break;}case tM.PreviousSeparator:{var _this$_tree$getFocus$;let e,t=!!((_this$_tree$getFocus$=this._tree.getFocus()[0])!==null&&_this$_tree$getFocus$!==void 0&&_this$_tree$getFocus$.separator);this._tree.focusPrevious(void 0,!0,void 0,i=>{if(i.element instanceof Vh)t?e||(this._separatorRenderer.isSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element.children[0]):t=!0;else if(i.element instanceof Vl&&!e){if(i.element.separator)this._itemRenderer.isItemWithSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element;else if(i.element===this._elementTree[0])return this._tree.reveal(i.element,0),!0;}return!1;}),e&&this._tree.setFocus([e]);}}}clearFocus(){this._tree.setFocus([]);}domFocus(){this._tree.domFocus();}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${44*Math.floor(e/44)+6}px`:"",this._tree.layout();}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach(n=>{var _DP,_ref16,_DP2,_DP3;let s;s="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(_DP=DP(e,DO(n.saneLabel)))!==null&&_DP!==void 0?_DP:void 0:void 0:this.matchOnLabel?(_ref16=function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return Vm(e,i);let s=(0,i7.x)(i," "),o=i.length-s.length,r=Vm(e,s);if(r)for(let e of r){let t=n[e.start+o]+o;e.start+=t,e.end+=t;}return r;}(t,DO(n.saneLabel)))!==null&&_ref16!==void 0?_ref16:void 0:void 0;let o=this.matchOnDescription?(_DP2=DP(e,DO(n.saneDescription||"")))!==null&&_DP2!==void 0?_DP2:void 0:void 0,r=this.matchOnDetail?(_DP3=DP(e,DO(n.saneDetail||"")))!==null&&_DP3!==void 0?_DP3:void 0:void 0;if(s||o||r?(n.labelHighlights=s,n.descriptionHighlights=o,n.detailHighlights=r,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){let e=n.index&&this._inputElements[n.index-1]||void 0;(e===null||e===void 0?void 0:e.type)!=="separator"||e.buttons||(i=e),i&&!n.hidden&&(n.separator=i,i=void 0);}});}else this._itemElements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0);});return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0;}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents(()=>{let e=this._tree.getFocus().filter(e=>e instanceof Vl),t=this._allVisibleChecked(e);for(let i of e)i.checkboxDisabled||(i.checked=!t);});}style(e){this._tree.style(e);}toggleHover(){let e=this._tree.getFocus()[0];if(!(e!==null&&e!==void 0&&e.saneTooltip)||!(e instanceof Vl))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);let t=new Vs.q();t.add(this._tree.onDidChangeFocus(e=>{e.elements[0]instanceof Vl&&this.showHover(e.elements[0]);})),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t);}_setElementsToTree(e){let t=[];for(let i of e)i instanceof Vh?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map(e=>({element:e,collapsible:!1,collapsed:!1}))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t);}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden&&!1!==n.item.pickable)if(!n.checked)return!1;else t=!0;}return t;}_updateCheckedObservables(){sr(e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);let t=this._itemElements.filter(e=>e.checked).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e);});}showHover(e){var _this$hoverDelegate$o,_this$hoverDelegate,_this$_lastHover;this._lastHover&&!this._lastHover.isDisposed&&((_this$hoverDelegate$o=(_this$hoverDelegate=this.hoverDelegate).onDidHideHover)!==null&&_this$hoverDelegate$o!==void 0&&_this$hoverDelegate$o.call(_this$hoverDelegate),(_this$_lastHover=this._lastHover)!==null&&_this$_lastHover!==void 0&&_this$_lastHover.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e);},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1));}};function Vm(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null;}function V_(e,t={}){var _e$secondary;as.registerCommandAndKeybindingRule({weight:200,when:rV.and(rV.or(rV.equals(WD,"quickPick"),rV.equals(WD,"quickTree")),WL),metadata:{description:(0,iM.M)(1856,"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...e,secondary:Vb(e.primary,(_e$secondary=e.secondary)!==null&&_e$secondary!==void 0?_e$secondary:[],t)});}Vo([pH],Vf.prototype,"onDidChangeFocus",null),Vo([pH],Vf.prototype,"onDidChangeSelection",null),Vf=Vo([Vr(5,rr),Vr(6,dj)],Vf);let Vv=i_.e?256:2048;function Vb(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(Vv+e),i.withAltMod&&t.push(512+Vv+e)),i.withShiftMod&&(t.push(1024+e),i.withAltMod&&t.push(1536+e),i.withCtrlMod&&(t.push(Vv+1024+e),i.withAltMod&&t.push(512+Vv+1024+e))),i.withCmdMod&&i_.e&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t;}function VC(e,t){return i=>{let n=i.get(Ec).currentQuickInput;if(n)return t&&n.quickNavigate?n.focus(t):n.focus(e);};}V_({id:"quickInput.pageNext",primary:12,handler:VC(tM.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),V_({id:"quickInput.pagePrevious",primary:11,handler:VC(tM.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),V_({id:"quickInput.first",primary:Vv+14,handler:VC(tM.First)},{withAltMod:!0,withCmdMod:!0}),V_({id:"quickInput.last",primary:Vv+13,handler:VC(tM.Last)},{withAltMod:!0,withCmdMod:!0}),V_({id:"quickInput.next",primary:18,handler:VC(tM.Next)},{withCtrlMod:!0}),V_({id:"quickInput.previous",primary:16,handler:VC(tM.Previous)},{withCtrlMod:!0});let Vw=(0,iM.M)(1857,"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),Vy=(0,iM.M)(1858,"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");i_.e?(V_({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:VC(tM.NextSeparator,tM.Next),metadata:{description:Vw}}),V_({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:VC(tM.NextSeparator)},{withCtrlMod:!0}),V_({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:VC(tM.PreviousSeparator,tM.Previous),metadata:{description:Vy}}),V_({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:VC(tM.PreviousSeparator)},{withCtrlMod:!0})):(V_({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:VC(tM.NextSeparator,tM.Next),metadata:{description:Vw}}),V_({id:"quickInput.nextSeparator",primary:2578,handler:VC(tM.NextSeparator)}),V_({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:VC(tM.PreviousSeparator,tM.Previous),metadata:{description:Vy}}),V_({id:"quickInput.previousSeparator",primary:2576,handler:VC(tM.PreviousSeparator)})),as.registerCommandAndKeybindingRule({id:"quickInput.accept",primary:3,weight:200,when:rV.and(rV.notEquals(WD,"quickWidget"),WL),metadata:{description:(0,iM.M)(1859,"Used while in the context of some quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},handler:e=>{let t=e.get(Ec).currentQuickInput;t===null||t===void 0||t.accept();},secondary:Vb(3,[],{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0,withShiftMod:!0})}),V_({id:"quickInput.acceptInBackground",when:rV.and(WL,rV.equals(WD,"quickPick"),rV.or(T1.negate(),WE)),primary:17,weight:250,handler:e=>{let t=e.get(Ec).currentQuickInput;t===null||t===void 0||t.accept(!0);}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),function(e,t={},_e$secondary2){as.registerCommandAndKeybindingRule({weight:200,when:WL,metadata:{description:(0,iM.M)(1855,"Used while in the context of any kind of quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...e,secondary:Vb(e.primary,(_e$secondary2=e.secondary)!==null&&_e$secondary2!==void 0?_e$secondary2:[],t)});}({id:"quickInput.hide",primary:9,handler:e=>{let t=e.get(Ec).currentQuickInput;t===null||t===void 0||t.hide();}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),V_({id:"quickInput.toggleCheckbox",when:rV.and(WL,rV.or(rV.equals(WD,"quickPick"),rV.equals(WD,"quickTree")),T1.negate()),primary:10,handler:e=>{e.get(Ec).toggle();}}),V_({id:"quickInput.toggleHover",primary:10|Vv,handler:e=>{e.get(Ec).toggleHover();}});var VS=i8,Vx=i8,VL=function(e,t){return function(i,n){t(i,n,e);};};class Vk extends Vx.N{constructor(){super(...arguments),this._onDidChangeCheckboxState=this._register(new iv.S()),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event;}setCheckboxState(e,t){this._onDidChangeCheckboxState.fire({item:e,checked:t});}}let VD=(_Class11=class VD extends Vx.N{constructor(e,t,i,n,s,o,r){super(),this._hoverDelegate=e,this._buttonTriggeredEmitter=t,this.onCheckedEvent=i,this._checkboxStateHandler=n,this._toggleStyles=s,this._contextMenuService=o,this._themeService=r,this.templateId=is.ID,this._onDidDisposeFocusedElement=this._register(new iv.S()),this.onDidDisposeFocusedElement=this._onDidDisposeFocusedElement.event;}renderTemplate(e){let t=new Vx.q(),i=oL(e,oN(".quick-input-tree-entry")),n=t.add(new O4("",!1,{...AD,size:15}));i.appendChild(n.domNode);let s=oL(i,oN("label.quick-input-tree-label")),o=oL(s,oN(".quick-input-tree-rows")),r=oL(o,oN(".quick-input-tree-row")),a=ok(r,oN(".quick-input-tree-icon")),l=t.add(new W8(r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this._hoverDelegate})),h=t.add(new WW(i,this._contextMenuService,{actionViewItemProvider:O9(this._toggleStyles),hoverDelegate:this._hoverDelegate,icon:!0,label:!1}));return h.getElement().classList.add("quick-input-tree-entry-action-bar"),{toDisposeTemplate:t,entry:i,checkbox:n,icon:a,label:l,actionBar:h,toDisposeElement:new Vx.q()};}renderElement(e,t,i,n){let s,o=i.toDisposeElement,r=e.element;if(!1===r.pickable)i.checkbox.domNode.style.display="none";else{var _r$checked;let e=i.checkbox;e.domNode.style.display="",e.checked=(_r$checked=r.checked)!==null&&_r$checked!==void 0?_r$checked:!1,o.add(iv.C.filter(this.onCheckedEvent,e=>e.item===r)(t=>e.checked=t.checked)),r.disabled&&e.disable(),o.add(e.onChange(t=>this._checkboxStateHandler.setCheckboxState(r,e.checked)));}if(r.iconPath){var _r$iconPath$light;let e=p_(this._themeService.getColorTheme().type)?r.iconPath.dark:(_r$iconPath$light=r.iconPath.light)!==null&&_r$iconPath$light!==void 0?_r$iconPath$light:r.iconPath.dark,t=ne.m.revive(e);i.icon.className="quick-input-tree-icon",i.icon.style.backgroundImage=Ra(t);}else i.icon.style.backgroundImage="",i.icon.className=r.iconClass?`quick-input-tree-icon ${r.iconClass}`:"";i.icon.style.color=r.iconColor?cs(r.iconColor.id):"";let{labelHighlights:a,descriptionHighlights:l}=e.filterData||{};r.description&&(s={markdown:{value:(0,i7.q)(r.description),supportThemeIcons:!0},markdownNotSupportedFallback:r.description}),i.label.setLabel(r.label,r.description,{matches:a,descriptionMatches:l,extraClasses:r.iconClasses,italic:r.italic,strikethrough:r.strikethrough,labelEscapeNewLines:!0,descriptionTitle:s});let h=r.buttons;if(h&&h.length){let{primary:e,secondary:t}=Ww(h,"quick-input-tree",e=>this._buttonTriggeredEmitter.fire({item:r,button:e}));i.actionBar.setActions(e,t),i.entry.classList.add("has-actions");}else i.actionBar.setActions([]),i.entry.classList.remove("has-actions");}disposeElement(e,t,i,n){ol(i.entry)&&this._onDidDisposeFocusedElement.fire(),i.toDisposeElement.clear(),i.actionBar.setActions([]);}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose();}},is=_Class11,_Class11.ID="quickInputTreeElement",_Class11);VD=is=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([VL(5,kF),VL(6,_s)],VD);class VM{getHeight(e){return 22;}getTemplateId(e){return VD.ID;}}function VI(e){let t=!1,i=!1,n=!1;for(let s of e){var _s$element;switch((_s$element=s.element)===null||_s$element===void 0?void 0:_s$element.checked){case"mixed":n=!0;break;case!0:t=!0;break;default:i=!0;}if(t&&i&&n)break;}return i?n?"mixed":!!t&&"mixed":n?"mixed":t;}class VN{constructor(e){this.onCheckedEvent=e;}getWidgetAriaLabel(){return(0,iM.M)(1869,"Quick Tree");}getAriaLabel(e){return e.ariaLabel||[e.label,e.description].map(e=>DR(e)).filter(e=>!!e).join(", ");}getWidgetRole(){return"tree";}getRole(e){return"checkbox";}isChecked(e){return{get value(){return"mixed"===e.checked?"mixed":!!e.checked;},onDidChange:t=>iv.C.filter(this.onCheckedEvent,t=>t.item===e)(e=>t())};}}class VE{constructor(){this.filterValue="",this.matchOnLabel=!0,this.matchOnDescription=!1;}filter(e,t){var _DP4,_DP5;if(!this.filterValue||!(this.matchOnLabel||this.matchOnDescription))return e.children?{visibility:2,data:{}}:{visibility:1,data:{}};let i=this.matchOnLabel?(_DP4=DP(this.filterValue,DO(e.label)))!==null&&_DP4!==void 0?_DP4:void 0:void 0,n=this.matchOnDescription?(_DP5=DP(this.filterValue,DO(e.description||"")))!==null&&_DP5!==void 0?_DP5:void 0:void 0;return{visibility:1===t||i||n?1:2*!!e.children,data:{labelHighlights:i,descriptionHighlights:n}};}}var VT=i8;class VR extends VT.N{constructor(){super(...arguments),this._sortByLabel=!0;}get sortByLabel(){return this._sortByLabel;}set sortByLabel(e){this._sortByLabel=e;}compare(e,t){if(!this._sortByLabel)return 0;if(e.label<t.label)return-1;if(e.label>t.label)return 1;if(e.description&&t.description){if(e.description<t.description)return-1;else if(e.description>t.description)return 1;}else if(e.description)return-1;else if(t.description)return 1;return 0;}}class VA{constructor(){this._elementIds=new WeakMap(),this._counter=0;}getId(e){let t=e.id;return void 0!==t||void 0!==(t=this._elementIds.get(e))||(t=`__generated_${this._counter++}`,this._elementIds.set(e,t)),t;}}let VO=class extends VS.N{constructor(e,t,i,n){super(),this.instantiationService=n,this._onDidTriggerButton=this._register(new iv.S()),this._onDidChangeCheckboxState=this._register(new iv.S()),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event,this._onDidCheckedLeafItemsChange=this._register(new iv.S()),this.onDidChangeCheckedLeafItems=this._onDidCheckedLeafItemsChange.event,this._onLeave=this._register(new iv.S()),this.onLeave=this._onLeave.event,this._onDidAccept=this._register(new iv.S()),this.onDidAccept=this._onDidAccept.event,this._container=oL(e,oN(".quick-input-tree")),this._checkboxStateHandler=this._register(new Vk()),this._renderer=this._register(this.instantiationService.createInstance(VD,t,this._onDidTriggerButton,this.onDidChangeCheckboxState,this._checkboxStateHandler,i.toggle)),this._filter=this.instantiationService.createInstance(VE),this._sorter=this._register(new VR()),this._tree=this._register(this.instantiationService.createInstance(F9,"QuickInputTree",this._container,new VM(),[this._renderer],{accessibilityProvider:new VN(this.onDidChangeCheckboxState),horizontalScrolling:!1,multipleSelectionSupport:!1,findWidgetEnabled:!1,alwaysConsumeMouseWheel:!0,hideTwistiesOfChildlessElements:!0,renderIndentGuides:tj.None,expandOnDoubleClick:!0,expandOnlyOnTwistieClick:!0,disableExpandOnSpacebar:!0,sorter:this._sorter,filter:this._filter,identityProvider:new VA()})),this._register(this._renderer.onDidDisposeFocusedElement(()=>{this._tree.domFocus();})),this.registerCheckboxStateListeners(),this.registerOnDidChangeFocus();}get tree(){return this._tree;}get displayed(){return"none"!==this._container.style.display;}set displayed(e){this._container.style.display=e?"":"none";}get sortByLabel(){return this._sorter.sortByLabel;}set sortByLabel(e){this._sorter.sortByLabel=e,this._tree.resort(null,!0);}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant");}filter(e){this._filter.filterValue=e,this._tree.refilter();}updateFilterOptions(e){void 0!==e.matchOnLabel&&(this._filter.matchOnLabel=e.matchOnLabel),void 0!==e.matchOnDescription&&(this._filter.matchOnDescription=e.matchOnDescription),this._tree.refilter();}setTreeData(e){let t=!1,i=e=>{let n;return e.children&&e.children.length>0&&(t=!0,n=e.children.map(e=>i(e)),e.checked=VI(n)),{element:e,children:n,collapsible:!!n,collapsed:e.collapsed?tK.PreserveOrCollapsed:tK.PreserveOrExpanded};},n=e.map(e=>i(e));this._tree.setChildren(null,n),this._container.classList.toggle("quick-input-tree-flat",!t);}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${44*Math.floor(e/44)+6}px`:"",this._tree.layout();}focus(e){switch(e){case tM.First:this._tree.scrollTop=0,this._tree.focusFirst();break;case tM.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,t=>!!e||(e=!e,!1));break;}case tM.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast();break;case tM.Next:{let e=this._tree.getFocus();this._tree.focusNext(void 0,!1,void 0,e=>(this._tree.reveal(e.element),!0));let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.Previous:{let e=this._tree.getFocus();this._tree.focusPrevious(void 0,!1,void 0,e=>(this._tree.reveal(e.element),!0));let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.NextPage:this._tree.focusNextPage(void 0,e=>(this._tree.reveal(e.element),!0));break;case tM.PreviousPage:this._tree.focusPreviousPage(void 0,e=>(this._tree.reveal(e.element),!0));break;case tM.NextSeparator:case tM.PreviousSeparator:return;}}registerCheckboxStateListeners(){this._register(this._tree.onDidOpen(e=>{var _e$browserEvent2;let t=e.element;if(!t||t.disabled)return;if(!1===t.pickable){this._tree.setFocus([t]),this._onDidAccept.fire();return;}let i=(_e$browserEvent2=e.browserEvent)===null||_e$browserEvent2===void 0?void 0:_e$browserEvent2.target;i&&i.classList.contains(O6.CLASS_NAME)||this.updateCheckboxState(t,!0===t.checked);})),this._register(this._checkboxStateHandler.onDidChangeCheckboxState(e=>{this.updateCheckboxState(e.item,!0===e.checked,!0),this._tree.setFocus([e.item]),this._tree.setSelection([e.item]);}));}updateCheckboxState(e,t,i=!1){var _e$checked,_e$checked2;if(((_e$checked=e.checked)!==null&&_e$checked!==void 0?_e$checked:!1)===t)return;e.checked=t,i||this._tree.rerender(e);let n=new Set(),s=[...this._tree.getNode(e).children];for(;s.length;){var _t$element$checked;let t=s.shift();(t===null||t===void 0?void 0:t.element)&&!n.has(t.element)&&(n.add(t.element),((_t$element$checked=t.element.checked)!==null&&_t$element$checked!==void 0?_t$element$checked:!1)!==e.checked&&(t.element.checked=e.checked,this._tree.rerender(t.element)),s.push(...t.children));}let o=this._tree.getParentElement(e);for(;o;){var _o$checked;let e=VI([...this._tree.getNode(o).children]);((_o$checked=o.checked)!==null&&_o$checked!==void 0?_o$checked:!1)!==e&&(o.checked=e,this._tree.rerender(o)),o=this._tree.getParentElement(o);}this._onDidChangeCheckboxState.fire({item:e,checked:(_e$checked2=e.checked)!==null&&_e$checked2!==void 0?_e$checked2:!1}),this._onDidCheckedLeafItemsChange.fire(this.getCheckedLeafItems());}registerOnDidChangeFocus(){this._register(this._tree.onDidChangeFocus(e=>{let t=this._tree.getFocus().findLast(e=>null!==e);this._tree.setSelection(t?[t]:[],e.browserEvent);}));}getCheckedLeafItems(){let e=new Set(),t=[...this._tree.getNode().children],i=[];for(;t.length;){let n=t.shift();!(!(n!==null&&n!==void 0&&n.element)||e.has(n.element))&&n.element.checked&&(e.add(n.element),t.push(...n.children),n.element.children||i.push(n.element));}return i;}getActiveItems(){return this._tree.getFocus().filter(e=>null!==e);}toggleCheckbox(){for(let e of this.getActiveItems())!1===e.pickable||e.disabled||this.updateCheckboxState(e,!0!==e.checked);}checkAll(e){let t=new Set(),i=[...this._tree.getNode().children],n=!1;for(;i.length;){let s=i.shift();!(s!==null&&s!==void 0&&s.element)||t.has(s.element)||s.element.checked!==e&&(n=!0,s.element.checked=e,i.push(...s.children),t.add(s.element),this._tree.rerender(s.element),this._onDidChangeCheckboxState.fire({item:s.element,checked:s.element.checked}));}n&&this._onDidCheckedLeafItemsChange.fire(this.getCheckedLeafItems());}};VO=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){rr(e,t,3);}],VO);class VP extends WR{constructor(e){super(e),this.type="quickTree",this._value=sc("value",""),this._ariaLabel=sc("ariaLabel",void 0),this._placeholder=sc("placeholder",void 0),this._matchOnDescription=sc("matchOnDescription",!1),this._matchOnLabel=sc("matchOnLabel",!0),this._sortByLabel=sc("sortByLabel",!0),this._activeItems=sc("activeItems",[]),this._itemTree=sc("itemTree",[]),this._onDidChangeCheckedLeafItems=this._register(new iv.S()),this._onDidChangeCheckboxState=this._register(new iv.S()),this._onDidAcceptEmitter=this._register(new iv.S()),this.onDidAccept=iv.C.any(e.onDidAccept,this._onDidAcceptEmitter.event),this._registerAutoruns(),this._register(e.tree.onDidChangeCheckedLeafItems(e=>this._onDidChangeCheckedLeafItems.fire(e))),this._register(e.tree.onDidChangeCheckboxState(e=>this._onDidChangeCheckboxState.fire(e.item))),this._register(e.tree.tree.onDidChangeFocus(t=>{this._activeItems.set(e.tree.getActiveItems(),void 0);}));}get placeholder(){return this._placeholder.get();}set placeholder(e){this._placeholder.set(e,void 0);}show(){if(!this.visible){let e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description,checkAll:!0,checkBox:!0,inputBox:!0,progressBar:!0,visibleCount:!0,count:!0,ok:!0,list:!1,tree:!0,message:!!this.validationMessage,customButton:!1};this.ui.setVisibilities(e),this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this._value.set(e,void 0);})),this.visibleDisposables.add(this.ui.tree.onDidChangeCheckboxState(e=>{let t=VI([...this.ui.tree.tree.getNode().children]);this.ui.checkAll.checked!==t&&(this.ui.checkAll.checked=t);})),this.visibleDisposables.add(this.ui.checkAll.onChange(e=>{let t=this.ui.checkAll.checked;this.ui.tree.checkAll(t);})),this.visibleDisposables.add(this.ui.tree.onDidChangeCheckedLeafItems(e=>{this.ui.count.setCount(e.length);}));}super.show(),(0,i_.j)(()=>this.ui.count.setCount(this.ui.tree.getCheckedLeafItems().length));let e=VI([...this.ui.tree.tree.getNode().children]);this.ui.checkAll.checked!==e&&(this.ui.checkAll.checked=e);}update(){if(!this.visible)return;let e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description,checkAll:!0,checkBox:!0,inputBox:!0,progressBar:!0,visibleCount:!0,count:!0,ok:!0,tree:!0,message:!!this.validationMessage};this.ui.setVisibilities(e),super.update();}_registerAutoruns(){this.registerVisibleAutorun(e=>{let t=this._value.read(e);this.ui.inputBox.value=t,this.ui.tree.filter(t);}),this.registerVisibleAutorun(e=>{let t=this._ariaLabel.read(e);!t&&(t=this.placeholder||VP.DEFAULT_ARIA_LABEL,this.title&&(t+=` - ${this.title}`)),this.ui.list.ariaLabel!==t&&(this.ui.list.ariaLabel=t!==null&&t!==void 0?t:null),this.ui.inputBox.ariaLabel!==t&&(this.ui.inputBox.ariaLabel=t!==null&&t!==void 0?t:"input");}),this.registerVisibleAutorun(e=>{let t=this._placeholder.read(e);this.ui.inputBox.placeholder!==t&&(this.ui.inputBox.placeholder=t!==null&&t!==void 0?t:"");}),this.registerVisibleAutorun(e=>{let t=this._matchOnLabel.read(e),i=this._matchOnDescription.read(e);this.ui.tree.updateFilterOptions({matchOnLabel:t,matchOnDescription:i});}),this.registerVisibleAutorun(e=>{let t=this._sortByLabel.read(e);this.ui.tree.sortByLabel=t;}),this.registerVisibleAutorun(e=>{let t=this._itemTree.read(e);this.ui.tree.setTreeData(t);});}registerVisibleAutorun(e){this._register(se(t=>{this._visible.read(t)&&e(t);}));}focus(e){this.ui.tree.focus(e),this.ui.tree.tree.domFocus();}accept(e){this._onDidAcceptEmitter.fire();}}_VP=VP;_VP.DEFAULT_ARIA_LABEL=(0,iM.M)(1870,"Type to narrow down results.");var VF=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},VB=function(e,t){return function(i,n){t(i,n,e);};};let VW="workbench.quickInput.viewState",VV="quick-input-widget-closing",VH="quick-input-widget-overlay",Vz=["modern-ui","monaco-enable-motion"],VU=(_Class12=class VU extends W1.N{get currentQuickInput(){var _this$controller;return(_this$controller=this.controller)!==null&&_this$controller!==void 0?_this$controller:void 0;}get container(){return this._container;}constructor(e,t,i,n,s,o){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.storageService=s,this.contextMenuService=o,this.enabled=!0,this.onDidAcceptEmitter=this._register(new iv.S()),this.onDidCustomEmitter=this._register(new iv.S()),this.onDidTriggerButtonEmitter=this._register(new iv.S()),this.keyMods={ctrlCmd:!1,alt:!1,shift:!1},this.controller=null,this.onShowEmitter=this._register(new iv.S()),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new iv.S()),this.onHide=this.onHideEmitter.event,this.closeAnimation=this._register(new W1.k()),this._alignment=sc(this,"top"),this.alignment=this._alignment,this.inQuickInputContext=Wx.bindTo(n),this.quickInputTypeContext=WM.bindTo(n),this.endOfQuickInputBoxContext=WN.bindTo(n),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(iv.C.runAndSubscribe(sB,({window:e,disposables:t})=>this.registerKeyModsListeners(e,t),{window:i9,disposables:this._store})),this._register(sW(e=>{this.ui&&sT(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop));})),this.viewState=this.loadViewState();}registerKeyModsListeners(e,t){let i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey,this.keyMods.shift=e.shiftKey;};for(let n of[o_.KEY_DOWN,o_.KEY_UP,o_.MOUSE_DOWN])t.add(s$(e,n,i,!0));}getUI(e){if(this.ui)return e&&sT(this._container)!==sT(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let t=oL(this._container,oN(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";let i=d6(t),n=oL(t,oN(".quick-input-titlebar")),s=this._register(new WW(n,this.contextMenuService,{hoverDelegate:this.options.hoverDelegate,actionViewItemProvider:O9(this.styles.toggle),icon:!0,label:!1}));s.getElement().classList.add("quick-input-left-action-bar");let o=oL(n,oN(".quick-input-title")),r=this._register(new WW(n,this.contextMenuService,{hoverDelegate:this.options.hoverDelegate,actionViewItemProvider:O9(this.styles.toggle),icon:!0,label:!1}));r.getElement().classList.add("quick-input-right-action-bar");let a=oL(t,oN(".quick-input-header")),l=this._register(new O4((0,iM.M)(1860,"Toggle all checkboxes"),!1,{...AD,size:15}));oL(a,l.domNode),this._register(l.onChange(()=>{let e=l.checked;D.setAllVisibleChecked(!0===e);})),this._register(s$(l.domNode,o_.CLICK,e=>{(e.x||e.y)&&u.setFocus();}));let h=oL(a,oN(".quick-input-description")),d=oL(a,oN(".quick-input-and-message")),c=oL(d,oN(".quick-input-filter")),u=this._register(new W3(c,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);let g=oL(c,oN(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");let p=this._register(new Wq(g,{countFormat:(0,iM.M)(1861,"{0} Results")},this.styles.countBadge)),f=oL(c,oN(".quick-input-count"));f.setAttribute("aria-live","polite");let m=this._register(new Wq(f,{countFormat:(0,iM.M)(1862,"{0} Selected")},this.styles.countBadge)),_=this._register(new WW(a,this.contextMenuService,{hoverDelegate:this.options.hoverDelegate,actionViewItemProvider:O9(this.styles.toggle),icon:!0,label:!1}));_.getElement().classList.add("quick-input-inline-action-bar");let v=oL(a,oN(".quick-input-action")),b=this._register(new W$(v,this.styles.button));b.label=(0,iM.M)(1863,"OK"),this._register(b.onDidClick(e=>{this.onDidAcceptEmitter.fire();}));let C=oL(a,oN(".quick-input-action")),w=this._register(new W$(C,{...this.styles.button,supportIcons:!0}));w.label=(0,iM.M)(1864,"Custom"),this._register(w.onDidClick(e=>{this.onDidCustomEmitter.fire();}));let y=oL(d,oN(`#${this.idPrefix}message.quick-input-message`)),S=this._register(new W0(t,this.styles.progressBar));S.getContainer().classList.add("quick-input-progress");let x=oL(t,oN(".quick-input-html-widget"));x.tabIndex=-1;let L=oL(t,oN(".quick-input-description")),k=this.idPrefix+"list",D=this._register(this.instantiationService.createInstance(Vf,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,k,this.styles));u.setAttribute("aria-controls",k),this._register(D.onDidChangeFocus(()=>{if(u.hasFocus()){let e=D.getActiveDescendant();e?(u.setAttribute("aria-activedescendant",e),u.setListFocusMode(!0)):(u.removeAttribute("aria-activedescendant"),u.setListFocusMode(!1));}})),this._register(D.onChangedAllVisibleChecked(e=>{l.checked=e;})),this._register(D.onChangedVisibleCount(e=>{p.setCount(e);})),this._register(D.onChangedCheckedCount(e=>{(0,i_.j)(()=>m.setCount(e));})),this._register(D.onLeave(()=>{setTimeout(()=>{this.controller&&(u.setFocus(),this.controller instanceof WA&&this.controller.canSelectMany&&D.clearFocus());},0);}));let M=this._register(this.instantiationService.createInstance(VO,t,this.options.hoverDelegate,this.styles));this._register(M.tree.onDidChangeFocus(()=>{if(u.hasFocus()){let e=M.getActiveDescendant();e?(u.setAttribute("aria-activedescendant",e),u.setListFocusMode(!0)):(u.removeAttribute("aria-activedescendant"),u.setListFocusMode(!1));}})),this._register(M.onLeave(()=>{setTimeout(()=>{this.controller&&(u.setFocus(),M.tree.setFocus([]));},0);})),this._register(M.onDidAccept(()=>{this.onDidAcceptEmitter.fire();})),this._register(M.tree.onDidChangeContentHeight(()=>this.updateLayout()));let I=oS(t);return this._register(I),this._register(s$(t,o_.FOCUS,e=>{let t=this.getUI();if(ot(e.relatedTarget,t.inputContainer)){let e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e);}ot(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=ou(e.relatedTarget)?e.relatedTarget:void 0);},!0)),this._register(I.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(tk.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0;})),this._register(u.onKeyDown(e=>{let t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t),(0,np.N)(e.keyCode)||(u.removeAttribute("aria-activedescendant"),u.setListFocusMode(!1));})),this._register(s$(t,o_.FOCUS,e=>{u.setFocus();})),this.dndController=this._register(this.instantiationService.createInstance(V$,this._container,t,[{node:n,includeChildren:!0,excludeNodes:[s.getElement(),r.getElement()]},{node:a,includeChildren:!1}],this.viewState)),this._register(se(e=>{var _this$dndController;let t=(_this$dndController=this.dndController)===null||_this$dndController===void 0?void 0:_this$dndController.dndViewState.read(e);t&&(void 0!==t.top&&void 0!==t.left?this.viewState={...this.viewState,top:t.top,left:t.left}:this.viewState=void 0,this.updateLayout(),t.done&&this.saveViewState(this.viewState));})),this._register(se(e=>{this._alignment.set(this.dndController.alignment.read(e),void 0);})),this.ui={container:t,styleSheet:i,leftActionBar:s,titleBar:n,title:o,description1:L,description2:h,widget:x,rightActionBar:r,inlineActionBar:_,checkAll:l,inputContainer:d,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:f,count:m,okContainer:v,ok:b,message:y,customButtonContainer:C,customButton:w,list:D,tree:M,progressBar:S,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui;}reparentUI(e){var _this$dndController2;this.ui&&(this._container=e,oL(this._container,this.ui.container),(_this$dndController2=this.dndController)===null||_this$dndController2===void 0?void 0:_this$dndController2.reparentUI(this._container));}pick(e,t={},i=n8.c.None){return new Promise((n,s)=>{let o,r=e=>{var _t$onKeyMods;r=n,(_t$onKeyMods=t.onKeyMods)!==null&&_t$onKeyMods!==void 0&&_t$onKeyMods.call(t,a.keyMods),n(e);};if(i.isCancellationRequested)return void r(void 0);let a=this.createQuickPick({useSeparators:!0}),l=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{let e=a.activeItems[0];e&&(r(e),a.hide());}}),a.onDidChangeActive(e=>{let i=e[0];i&&t.onDidFocus&&t.onDidFocus(i);}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){let t=e[0];t&&(r(t),a.hide());}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{let t=a.items.indexOf(e.item);if(-1!==t){let e=a.items.slice(),i=e.splice(t,1),n=a.activeItems.filter(e=>e!==i[0]),s=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,n&&(a.activeItems=n),a.keepScrollPosition=s;}}})),a.onDidTriggerSeparatorButton(e=>{var _t$onDidTriggerSepara;return(_t$onDidTriggerSepara=t.onDidTriggerSeparatorButton)===null||_t$onDidTriggerSepara===void 0?void 0:_t$onDidTriggerSepara.call(t,e);}),a.onDidChangeValue(e=>{o&&!e&&(1!==a.activeItems.length||a.activeItems[0]!==o)&&(a.activeItems=[o]);}),i.onCancellationRequested(()=>{a.hide();}),a.onDidHide(()=>{(0,W1.d)(l),r(void 0);})];a.title=t.title,t.value&&(a.value=t.value),a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.prompt=t.prompt,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,void 0!==t.sortByLabel&&(a.sortByLabel=t.sortByLabel),a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.anchor=t.anchor,a.anchorPosition=t.anchorPosition,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{o=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),o&&(a.activeItems=[o]);}),a.show(),Promise.resolve(e).then(void 0,e=>{s(e),a.hide();});});}setValidationOnInput(e,t){t&&(0,sI.Z)(t)?(e.severity=bz.Error,e.validationMessage=t):t&&!(0,sI.Z)(t)?(e.severity=t.severity,e.validationMessage=t.content):(e.severity=bz.Ignore,e.validationMessage=void 0);}input(e={},t=n8.c.None){return new Promise(i=>{if(t.isCancellationRequested)return void i(void 0);let n=this.createInputBox(),s=e.validateInput||(()=>Promise.resolve(void 0)),o=iv.C.debounce(n.onDidChangeValue,(e,t)=>t,100),r=e.value||"",a=Promise.resolve(s(r)),l=[n,o(e=>{e!==r&&(a=Promise.resolve(s(e)),r=e),a.then(t=>{e===r&&this.setValidationOnInput(n,t);});}),n.onDidAccept(()=>{let e=n.value;e!==r&&(a=Promise.resolve(s(e)),r=e),a.then(t=>{t&&((0,sI.Z)(t)||t.severity===bz.Error)?e===r&&this.setValidationOnInput(n,t):(i(e),n.hide());});}),t.onCancellationRequested(()=>{n.hide();}),n.onDidHide(()=>{(0,W1.d)(l),i(void 0);})];n.title=e.title,n.value=e.value||"",n.valueSelection=e.valueSelection,n.prompt=e.prompt,n.placeholder=e.placeHolder,n.password=!!e.password,n.ignoreFocusOut=!!e.ignoreFocusLost,n.show();});}createQuickPick(e={useSeparators:!1}){return new WA(this.getUI(!0));}createInputBox(){return new WO(this.getUI(!0));}show(e){var _this$dndController3,_this$dndController4,_this$dndController$a,_this$dndController5;this.completeCloseAnimation();let t=this.getUI(!0),i=this.controller;if(this.controller=e,i!==null&&i!==void 0&&i.didHide(),ou(e.anchor)){let t=sT(e.anchor);sT(this._container)!==t&&this.reparentUI(this.layoutService.getContainer(t));}this.setEnabled(!0),t.leftActionBar.setActions([]),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",oD(t.widget),t.rightActionBar.setActions([]),t.inlineActionBar.setActions([]),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(bz.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),t.countContainer.style.right="4px",oD(t.message),t.progressBar.stop(),t.progressBar.getContainer().setAttribute("aria-hidden","true"),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.tree.updateFilterOptions({matchOnDescription:!1,matchOnLabel:!0}),t.tree.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0,t.inputBox.actions=void 0,t.inputBox.setHeight(void 0);let n=this.options.backKeybindingLabel();WT.tooltip=n?(0,iM.M)(1865,"Back ({0})",n):(0,iM.M)(1866,"Back"),this.overlayLayoutCorrection=void 0,t.container.classList.toggle(VH,"overlay"===e.anchorPosition),t.container.style.display="",this.updateLayout(),(_this$dndController3=this.dndController)!==null&&_this$dndController3!==void 0&&_this$dndController3.setEnabled(!e.anchor),(_this$dndController4=this.dndController)!==null&&_this$dndController4!==void 0&&_this$dndController4.layoutContainer(),e.anchor?this._alignment.set("custom",void 0):this._alignment.set((_this$dndController$a=(_this$dndController5=this.dndController)===null||_this$dndController5===void 0?void 0:_this$dndController5.alignment.get())!==null&&_this$dndController$a!==void 0?_this$dndController$a:"top",void 0),this.onShowEmitter.fire(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type);}isVisible(){return!!this.controller;}setVisibilities(e){let t=this.getUI();t.titleBar.style.display=e.title?"":"none",t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.domNode.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.tree.displayed=!!e.tree,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.overlayLayoutCorrection=void 0,this.updateLayout();}setEnabled(e){if(e!==this.enabled){this.enabled=e;let t=this.getUI();for(let i=0;i<t.leftActionBar.getItemsLength();i++){let n=t.leftActionBar.getItemAction(i);n&&(n.enabled=e);}for(let i=0;i<t.rightActionBar.getItemsLength();i++){let n=t.rightActionBar.getItemAction(i);n&&(n.enabled=e);}e?t.checkAll.enable():t.checkAll.disable(),t.inputBox.enabled=e,t.ok.enabled=e,t.list.enabled=e;}}hide(e){var _this$ui;let t=this.controller;if(!t)return;t.willHide(e);let i=(_this$ui=this.ui)===null||_this$ui===void 0?void 0:_this$ui.container,n=i&&!ol(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(!i.classList.contains(VH)&&oi(i,Vz)?(i.inert=!0,i.classList.add(VV),this.closeAnimation.value=(0,nI.w)(()=>this.completeCloseAnimation(),150)):i.style.display="none"),!n){var _e9;let e=this.previousFocusElement;for(;e&&!e.offsetParent;){var _e$parentElement4;e=(_e$parentElement4=e.parentElement)!==null&&_e$parentElement4!==void 0?_e$parentElement4:void 0;}(_e9=e)!==null&&_e9!==void 0&&_e9.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus();}t.didHide(e);}completeCloseAnimation(){var _this$ui2;if(!this.closeAnimation.value)return;this.closeAnimation.clear();let e=(_this$ui2=this.ui)===null||_this$ui2===void 0?void 0:_this$ui2.container;e&&(e.inert=!1,e.classList.remove(VV),e.style.display="none");}dispose(){this.completeCloseAnimation(),super.dispose();}toggle(){this.isVisible()&&(this.controller instanceof WA&&this.controller.canSelectMany?this.getUI().list.toggleCheckbox():this.controller instanceof VP&&this.getUI().tree.toggleCheckbox());}toggleHover(){this.isVisible()&&this.controller instanceof WA&&this.getUI().list.toggleHover();}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.overlayLayoutCorrection=void 0,this.updateLayout();}updateLayout(){if(this.ui&&this.isVisible()){var _this$controller2,_this$viewState,_this$viewState$left,_this$viewState2;let e,t=this.ui.container.style,i=Math.min(.62*this.dimension.width,io.MAX_WIDTH);t.width=i+"px";let n=this.dimension&&.4*this.dimension.height;if((_this$controller2=this.controller)!==null&&_this$controller2!==void 0&&_this$controller2.anchor){let s=this.controller.anchor,o=ou(s)?sT(s):od(),r=this.layoutService.getContainer(o).getBoundingClientRect(),a=NK(s),l=1,h=.2,d=200;"overlay"===this.controller.anchorPosition?(e=a,this.ui.inputBox.setHeight(a.height),i=a.width,h=.4,a={...a,height:0},d=Math.min(400,r.bottom-a.top-48),l=0):i=380;let{top:c,left:u,right:g,bottom:p,anchorAlignment:f,anchorPosition:m}=NO(r,{width:i,height:Math.floor(n=this.dimension?Math.min(this.dimension.height*h,d):d)+48},a,{anchorPosition:l});1===f?(t.right=`${g}px`,t.left="initial"):(t.left=`${u}px`,t.right="initial"),1===m?(t.bottom=`${p}px`,t.top="initial"):(t.top=`${c}px`,t.bottom="initial"),t.width=`${i}px`,t.height="";}else t.top=`${((_this$viewState=this.viewState)===null||_this$viewState===void 0?void 0:_this$viewState.top)!==void 0?Math.round(this.dimension.height*this.viewState.top):this.titleBarOffset}px`,t.left=`${Math.round(this.dimension.width*((_this$viewState$left=(_this$viewState2=this.viewState)===null||_this$viewState2===void 0?void 0:_this$viewState2.left)!==null&&_this$viewState$left!==void 0?_this$viewState$left:.5)-i/2)}px`,t.right="",t.bottom="",t.height="";e&&this.alignOverlayInput(e),this.ui.inputBox.layout(),this.ui.list.layout(n),this.ui.tree.layout(n);}}alignOverlayInput(e){let t=this.ui.container.style,i=this.overlayLayoutCorrection;if(!i||i.anchor.left!==e.left||i.anchor.top!==e.top||i.anchor.width!==e.width||i.anchor.height!==e.height){this.ui.inputBox.layout();let t=this.ui.filterContainer.getBoundingClientRect();i=this.overlayLayoutCorrection={anchor:e,left:e.left-t.left,right:t.right-(e.left+e.width),top:e.top-t.top,bottom:t.bottom-(e.top+e.height),width:e.width-t.width};}t.width=`${parseFloat(t.width)+i.width}px`,"initial"!==t.left?t.left=`${parseFloat(t.left)+i.left}px`:t.right=`${parseFloat(t.right)+i.right}px`,"initial"!==t.top?t.top=`${parseFloat(t.top)+i.top}px`:t.bottom=`${parseFloat(t.bottom)+i.bottom}px`;}applyStyles(e){this.styles=e,this.updateStyles();}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e!==null&&e!==void 0?e:"",this.ui.container.style.backgroundColor=t!==null&&t!==void 0?t:"",this.ui.container.style.color=i!==null&&i!==void 0?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.list.style(this.styles.list),this.ui.tree.tree.style(this.styles.list);let s=[];this.styles.pickerGroup.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));let o=s.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o);}}loadViewState(){try{let e=JSON.parse(this.storageService.get(VW,-1,"{}"));if(void 0!==e.top||void 0!==e.left)return e;}catch{}}saveViewState(e){this.layoutService.activeContainer===this.layoutService.mainContainer&&(void 0!==e?this.storageService.store(VW,JSON.stringify(e),-1,1):this.storageService.remove(VW,-1));}},io=_Class12,_Class12.MAX_WIDTH=600,_Class12);VU=io=VF([VB(1,NQ),VB(2,rr),VB(3,r9),VB(4,E_),VB(5,kF)],VU);let V$=class extends W1.N{constructor(e,t,i,n,s,o,r){super(),this._container=e,this._quickInputContainer=t,this._quickInputDragAreas=i,this._layoutService=s,this.configurationService=r,this.dndViewState=sc(this,void 0),this._enabled=!0,this._snapThreshold=20,this._snapLineHorizontalRatio=.25,this._alignment=sc(this,"top"),this.alignment=this._alignment,this._quickInputAlignmentContext=Wk.bindTo(o);let a="custom"===function(e){if(i_.n||i_.e||"native"===A$(e))return"native";let t=e.getValue("window"),i=t===null||t===void 0?void 0:t.controlsStyle;return"custom"===i||"hidden"===i?i:"native";}(this.configurationService);this._controlsOnLeft=a&&1===i_.p,this._controlsOnRight=a&&(3===i_.p||2===i_.p),this._registerLayoutListener(),this.registerMouseListeners(),this.dndViewState.set({...n,done:!0},void 0),(n===null||n===void 0?void 0:n.top)!==void 0&&(n===null||n===void 0?void 0:n.left)!==void 0&&this._setAlignmentState(void 0);}reparentUI(e){this._container=e;}layoutContainer(e=this._layoutService.activeContainerDimension){if(!this._enabled)return;let t=this.dndViewState.get(),i=this._quickInputContainer.getBoundingClientRect();if((t===null||t===void 0?void 0:t.top)!==void 0&&(t===null||t===void 0?void 0:t.left)!==void 0){let n=Math.round(100*t.left)/100,s=e.width,o=i.width;this._layout(t.top*e.height,n*s-o/2);}}setEnabled(e){this._enabled=e,this._quickInputContainer.classList.toggle("no-drag",!e);}_setAlignmentState(e){this._quickInputAlignmentContext.set(e),this._alignment.set(e!==null&&e!==void 0?e:"custom",void 0);}_registerLayoutListener(){this._register(iv.C.filter(this._layoutService.onDidLayoutContainer,e=>e.container===this._container)(e=>this.layoutContainer(e.dimension)));}registerMouseListeners(){let e=this._quickInputContainer;this._register(sQ(e,t=>{var _n$excludeNodes;if(!this._enabled)return;let i=new nD(sT(e),t);if(2!==i.detail)return;let n=this._quickInputDragAreas.find(({node:e,includeChildren:t})=>t?ot(i.target,e):i.target===e);!n||((_n$excludeNodes=n.excludeNodes)===null||_n$excludeNodes===void 0?void 0:_n$excludeNodes.some(e=>ot(i.target,e)))||(this.dndViewState.set({top:void 0,left:void 0,done:!0},void 0),this._setAlignmentState("top"));})),this._register(sj(e,e=>{var _n$excludeNodes2;if(!this._enabled)return;let t=sT(this._layoutService.activeContainer),i=new nD(t,e),n=this._quickInputDragAreas.find(({node:e,includeChildren:t})=>t?ot(i.target,e):i.target===e);if(!n||(_n$excludeNodes2=n.excludeNodes)!==null&&_n$excludeNodes2!==void 0&&_n$excludeNodes2.some(e=>ot(i.target,e)))return;let s=this._quickInputContainer.getBoundingClientRect(),o=i.browserEvent.clientX-s.left,r=i.browserEvent.clientY-s.top,a=!1,l=sG(t,e=>{new nD(t,e).preventDefault(),a||(a=!0),this._layout(e.clientY-r,e.clientX-o);}),h=sQ(t,e=>{if(a){let e=this.dndViewState.get();this.dndViewState.set({top:e===null||e===void 0?void 0:e.top,left:e===null||e===void 0?void 0:e.left,done:!0},void 0);}l.dispose(),h.dispose();});}));}_layout(e,t){let i=this._getTopSnapValue(),n=this._getCenterYSnapValue(),s=this._getCenterXSnapValue();(e=Math.max(0,Math.min(e,this._container.clientHeight-this._quickInputContainer.clientHeight)))<this._layoutService.activeContainerOffset.top&&(this._controlsOnLeft?t=Math.max(t,80/nn(od())):this._controlsOnRight&&(t=Math.min(t,this._container.clientWidth-this._quickInputContainer.clientWidth-140/nn(od()))));let o=Math.abs(e-i)<this._snapThreshold,r=Math.abs((e=o?i:e)-n)<this._snapThreshold,a=(e=r?n:e)/this._container.clientHeight,l=Math.abs((t=Math.max(0,Math.min(t,this._container.clientWidth-this._quickInputContainer.clientWidth)))-s)<this._snapThreshold;t=l?s:t;let h=this._container.clientWidth,d=this._quickInputContainer.clientWidth,c=t;if(this.dndViewState.set({top:a,left:(c+d/2)/h,done:!1},void 0),l){if(o)return void this._setAlignmentState("top");else if(r)return void this._setAlignmentState("center");}this._setAlignmentState(void 0);}_getTopSnapValue(){return this._layoutService.activeContainerOffset.quickPickTop;}_getCenterYSnapValue(){return Math.round(this._container.clientHeight*this._snapLineHorizontalRatio);}_getCenterXSnapValue(){return Math.round(this._container.clientWidth/2)-Math.round(this._quickInputContainer.clientWidth/2);}};V$=VF([VB(4,NQ),VB(5,r9),VB(6,lN)],V$);var VK=function(e,t){return function(i,n){t(i,n,e);};};let Vq=class extends _c{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller;}get hasController(){return!!this._controller;}get currentQuickInput(){return this.controller.currentQuickInput;}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Wg))),this._quickAccess;}constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=s,this._alignment=sc(this,"top"),this._onShow=this._register(new iv.S()),this._onHide=this._register(new iv.S()),this.contexts=new Map();}createController(e=this.layoutService,t){let i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>void 0,setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction(t=>{t.get(NC).open(e,{allowCommands:!0,fromUserGesture:!0});});},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(WP))},n=this._register(this.instantiationService.createInstance(VU,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer(t=>{sT(e.activeContainer)===sT(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop);})),this._register(e.onDidChangeActiveContainer(()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop);})),this._register(n.onShow(()=>{this.resetContextKeys(),this._onShow.fire();})),this._register(n.onHide(()=>{this.resetContextKeys(),this._onHide.fire();})),this._register(se(e=>{this._alignment.set(n.alignment.read(e),void 0);})),n;}setContextKey(e){var _t26;let t;e&&((t=this.contexts.get(e))||(t=new r4(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),(_t26=t)===null||_t26===void 0?void 0:_t26.set(!0));}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset();});}pick(e,t,i=n8.c.None){return this.controller.pick(e,t,i);}input(e={},t=n8.c.None){return this.controller.input(e,t);}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e);}createInputBox(){return this.controller.createInputBox();}toggle(){this.controller.toggle();}toggleHover(){this.hasController&&this.controller.toggleHover();}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles());}computeStyles(){return{widget:{quickInputBackground:cs(gj),quickInputForeground:cs(gG),quickInputTitleBackground:cs(gQ),widgetBorder:cs(ud),widgetShadow:cs(uh)},inputBox:AM,toggle:Ak,countBadge:AN,button:Ax,progressBar:AL,keybindingLabel:AS,list:AT({listBackground:gj,listFocusBackground:g1,listFocusForeground:gJ,listInactiveFocusForeground:gJ,listInactiveSelectionIconForeground:g0,listInactiveFocusBackground:g1,listInactiveSelectionBackground:g1,listInactiveSelectionForeground:gJ,listFocusOutline:cx,listInactiveFocusOutline:cx,treeStickyScrollBackground:gj}),pickerGroup:{pickerGroupBorder:cs(gY),pickerGroupForeground:cs(gZ)}};}};Vq=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([VK(0,rr),VK(1,r9),VK(2,_s),VK(3,NQ),VK(4,lN)],Vq);var Vj=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},VG=function(e,t){return function(i,n){t(i,n,e);};};let VQ=class extends Vq{constructor(e,t,i,n,s,o){super(t,i,n,new Tc(e.getContainerDomNode(),s),o),this.host=void 0;let r=VY.get(e);if(r){let t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode();},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()];},get activeContainer(){return t.getDomNode();},get mainContainerDimension(){return e.getLayoutInfo();},get activeContainerDimension(){return e.getLayoutInfo();},get onDidLayoutMainContainer(){return e.onDidLayoutChange;},get onDidLayoutActiveContainer(){return e.onDidLayoutChange;},get onDidLayoutContainer(){return iv.C.map(e.onDidLayoutChange,e=>({container:t.getDomNode(),dimension:e}));},get onDidChangeActiveContainer(){return iv.C.None;},get onDidAddContainer(){return iv.C.None;},get mainContainerOffset(){return{top:0,quickPickTop:0};},get activeContainerOffset(){return{top:0,quickPickTop:0};},focus:()=>e.focus()};}else this.host=void 0;}createController(){return super.createController(this.host);}};VQ=Vj([VG(1,rr),VG(2,r9),VG(3,_s),VG(4,rl),VG(5,lN)],VQ);let VZ=class{get activeService(){let e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){let i=t=this.instantiationService.createInstance(VQ,e);this.mapEditorToService.set(e,t),(0,vU.f)(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e);});}return t;}get currentQuickInput(){return this.activeService.currentQuickInput;}get quickAccess(){return this.activeService.quickAccess;}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map();}pick(e,t,i=n8.c.None){return this.activeService.pick(e,t,i);}input(e,t){return this.activeService.input(e,t);}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e);}createInputBox(){return this.activeService.createInputBox();}toggle(){return this.activeService.toggle();}toggleHover(){return this.activeService.toggleHover();}};VZ=Vj([VG(0,rr),VG(1,rl)],VZ);class VY{static get(e){return e.getContribution(VY.ID);}constructor(e){this.editor=e,this.widget=new VX(this.editor);}dispose(){this.widget.dispose();}}_VY=VY;_VY.ID="editor.controller.quickInput";class VX{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this);}getId(){return VX.ID;}getDomNode(){return this.domNode;}getPosition(){return{preference:{top:0,left:0}};}dispose(){this.codeEditor.removeOverlayWidget(this);}}_VX=VX;_VX.ID="editor.contrib.quickInputWidget";a3(VY.ID,VY,4);var VJ=i8;class V0{createWorkerClient(e){var t;let i,n=++V0._workerIdPool;return i=e instanceof Worker||(t=e)&&"function"==typeof t.then?Promise.resolve(e):this._createWorker(e),new le.w(new V2(i,n));}_createWorker(e){let t=this.getWorkerUrl(e),i=function(e,t,i){if(/^((http:)|(https:)|(file:))/.test(t)&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{let i=t.lastIndexOf("?"),n=t.lastIndexOf("#",i),s=i>0?new URLSearchParams(t.substring(i+1,~n?n:void 0)):new URLSearchParams();nT.$.addSearchParam(s,!0,!0),t=s.toString()?`${t}?${s.toString()}#${e}`:`${t}#${e}`;}let n=new Blob([(0,ip.d)([`/*${e}*/`,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,iM.B)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,iM.F)())};`,`globalThis._VSCODE_FILE_ROOT = ${JSON.stringify(globalThis._VSCODE_FILE_ROOT)};`,`globalThis._VSCODE_PRODUCT_JSON = ${JSON.stringify(globalThis._VSCODE_PRODUCT_JSON)};`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",i?"try {":"",`await import(ttPolicy?.createScriptURL(${JSON.stringify(t)}) ?? ${JSON.stringify(t)});`,i?`} catch (err) { console.error(${JSON.stringify(i)}, err); throw err; }`:"","globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n);}(e.label,t,this._getWorkerLoadingFailedErrorMessage(e));try{var n;return(n=function(e,t){if(!e.startsWith("blob:"))throw URIError("Not a blob-url: "+e);return new Worker(V1?V1.createScriptURL(e):e,{...t,type:"module"});}(i,{name:e.label,type:"module"}),new Promise((e,t)=>{n.onmessage=function(t){"vscode-worker-ready"===t.data.type&&(n.onmessage=null,e(n));},n.onerror=t;})).finally(()=>URL.revokeObjectURL(i));}catch(e){throw URL.revokeObjectURL(i),e;}}_getWorkerLoadingFailedErrorMessage(e){}getWorkerUrl(e){if(!e.esmModuleLocation)throw Error("Missing esmModuleLocation in WebWorkerDescriptor");return("function"==typeof e.esmModuleLocation?e.esmModuleLocation():e.esmModuleLocation).toString(!0);}}_V2=V0;_V2._workerIdPool=0;let V1=(P=globalThis,"object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==P.workerttPolicy?P.workerttPolicy:hq("defaultWorkerFactory",{createScriptURL:e=>e}));class V2 extends VJ.N{constructor(e,t){super(),this._onMessage=this._register(new iv.S()),this.onMessage=this._onMessage.event,this._onError=this._register(new iv.S()),this.onError=this._onError.event,this.id=t,this.worker=e,this.postMessage("-please-ignore-",[]);let i=e=>{this._onError.fire(e);};this.worker.then(e=>{e.onmessage=e=>{this._onMessage.fire(e.data);},e.onmessageerror=e=>{this._onError.fire(e);},"function"==typeof e.addEventListener&&e.addEventListener("error",i);}),this._register((0,VJ.Q)(()=>{var _this$worker;(_this$worker=this.worker)!==null&&_this$worker!==void 0&&_this$worker.then(e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",i),e.terminate();}),this.worker=null;}));}getId(){return this.id;}postMessage(e,t){var _this$worker2;(_this$worker2=this.worker)===null||_this$worker2===void 0||_this$worker2.then(i=>{try{i.postMessage(e,t);}catch(e){(0,nf.C)(e),(0,nf.C)(Error("FAILED to post message to worker",{cause:e}));}});}}let V3={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[cR]:"#FFFFFE",[cA]:"#000000",[cQ]:"#E5EBF1",[_L]:"#D3D3D3",[_E]:"#939393",[cZ]:"#ADD6FF4D"}},V5={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[cR]:"#1E1E1E",[cA]:"#D4D4D4",[cQ]:"#3A3D41",[_L]:"#404040",[_E]:"#707070",[cZ]:"#ADD6FF26"}},V6={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[cR]:"#000000",[cA]:"#FFFFFF",[_L]:"#FFFFFF",[_E]:"#FFFFFF"}},V4={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[cR]:"#FFFFFF",[cA]:"#292929",[_L]:"#292929",[_E]:"#292929"}};var V9=i8,V8=i8;(ir||(ir={})).getDefinition=function(e,t){let i=e.defaults;for(;eY.isThemeIcon(i);){let e=Hi.getIcon(i.id);if(!e)return;i=e.defaults;}return i;},(eH=ia||(ia={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))};},eH.fromJSONObject=function(e){let t=e=>(0,sI.Z)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,sI.Z)(e.format)&&(0,sI.Z)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:ne.m.parse(e.location)}))};};let V7=/^([\w_-]+)$/,He=(0,iM.M)(2126,"The font ID must only contain letters, numbers, underscores and dashes.");class Ht extends V8.N{constructor(){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,iM.M)(2127,"The id of the font to use. If not set, the font that is defined first is used."),pattern:V7.source,patternErrorMessage:He},fontCharacter:{type:"string",description:(0,iM.M)(2128,"The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${eY.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={};}registerIcon(e,t,i,n){let s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire();}return s;}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let o={$ref:"#/definitions/icons"};return n&&(o.deprecationMessage=n),i&&(o.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e};}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e]);}getIcon(e){return this.iconsById[e];}getIconSchema(){return this.iconSchema;}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;eY.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`;},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let s of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${eY.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);for(let s of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!eY.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n");}}let Hi=new Ht();function Hn(e,t,i,n){return Hi.registerIcon(e,t,i,n);}function Hs(){return Hi;}ai.add("base.contributions.icons",Hi);let Ho=(0,A6.q)();for(let e in Ho){let t="\\"+Ho[e].toString(16);Hi.registerIcon(e,{fontCharacter:t});}let Hr="vscode://schemas/icons",Ha=ai.as(l$);Ha.registerSchema(Hr,Hi.getIconSchema());let Hl=new nI.t(()=>Ha.notifySchemaChanged(Hr),200);Hi.onDidChange(()=>{Hl.isScheduled()||Hl.schedule();});let Hh=Hn("widget-close",rC.f.close,(0,iM.M)(2129,"Icon for the close action in widgets."));Hn("goto-previous-location",rC.f.arrowUp,(0,iM.M)(2130,"Icon for goto previous editor location.")),Hn("goto-next-location",rC.f.arrowDown,(0,iM.M)(2131,"Icon for goto next editor location.")),eY.modify(rC.f.sync,"spin"),eY.modify(rC.f.loading,"spin"),e.s(["Q",0,Hs,"T",0,Hn,"_",0,Hh],98837);class Hd{getIcon(e){let t=Hs(),i=e.defaults;for(;eY.isThemeIcon(i);){let e=t.getIcon(i.id);if(!e)return;i=e.defaults;}return i;}}let Hc="vs-dark",Hu="hc-black",Hg="hc-light",Hp=ai.as(cr.ColorContribution),Hf=ai.as(_a.ThemingContribution);class Hm{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(H_(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null;}get base(){return this.themeData.base;}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null);}getColors(){if(!this.colors){let e=new Map();for(let t in this.themeData.colors)e.set(t,ct.G.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=Hv(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,ct.G.fromHex(t.colors[i]));}this.colors=e;}return this.colors;}getColor(e,t){let i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0);}getDefault(e){let t=this.defaultColors[e];return t||(t=Hp.resolveDefaultColor(e,this),this.defaultColors[e]=t),t;}defines(e){return this.getColors().has(e);}get type(){switch(this.base){case"vs":return e4.LIGHT;case Hu:return e4.HIGH_CONTRAST_DARK;case Hg:return e4.HIGH_CONTRAST_LIGHT;default:return e4.DARK;}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let i=Hv(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors);}let i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){let t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t);}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=SB.createFromRawTokenTheme(e,t);}return this._tokenTheme;}getTokenStyleMetadata(e,t,i){let n=this.tokenTheme._match([e].concat(t).join(".")).metadata,s=hj.getForeground(n),o=hj.getFontStyle(n);return{foreground:s,italic:!!(1&o),bold:!!(2&o),underline:!!(4&o),strikethrough:!!(8&o)};}get tokenColorMap(){return[];}}function H_(e){return"vs"===e||e===Hc||e===Hu||e===Hg;}function Hv(e){switch(e){case"vs":return V3;case Hc:return V5;case Hu:return V6;case Hg:return V4;}}function Hb(e){let t=Hv(e);return new Hm(e,t);}class HC extends V9.N{constructor(){var e;let t,i,n;super(),this._onColorThemeChange=this._register(new iv.S()),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new iv.S()),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new Hd(),this._autoDetectHighContrast=!0,this._knownThemes=new Map(),this._knownThemes.set("vs",Hb("vs")),this._knownThemes.set(Hc,Hb(Hc)),this._knownThemes.set(Hu,Hb(Hu)),this._knownThemes.set(Hg,Hb(Hg));let s=this._register((e=this,i=(t=new i8.q()).add(new iv.S()),n=Hs(),t.add(n.onDidChange(()=>i.fire())),e&&t.add(e.onDidProductIconThemeChange(()=>i.fire())),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){let t=e?e.getProductIconTheme():new Hd(),i={},s=new Rd(),o=new Rd();for(let e of n.getIcons()){let n=t.getIcon(e);if(!n)continue;let r=n.font,a=Rh`--vscode-icon-${Rl(e.id)}-font-family`,l=Rh`--vscode-icon-${Rl(e.id)}-content`;r?(i[r.id]=r.definition,o.push(Rh`${a}: ${Rr(r.id)};`,Rh`${l}: ${Rr(n.fontCharacter)};`),s.push(Rh`.codicon-${Rl(e.id)}:before { content: ${Rr(n.fontCharacter)}; font-family: ${Rr(r.id)}; }`)):(o.push(Rh`${l}: ${Rr(n.fontCharacter)}; ${a}: 'codicon';`),s.push(Rh`.codicon-${Rl(e.id)}:before { content: ${Rr(n.fontCharacter)}; }`));}for(let e in i){let t=i[e],n=t.weight?Rh`font-weight: ${Ro(t.weight)};`:Rh``,o=t.style?Rh`font-style: ${Ro(t.style)};`:Rh``,r=new Rd();for(let e of t.src)r.push(Rh`${Ra(e.location)} format(${Rr(e.format)})`);s.push(Rh`@font-face { src: ${r.join(", ")}; font-family: ${Rr(e)};${n}${o} font-display: block; }`);}return s.push(Rh`:root { ${o.join(" ")} }`),s.join("\n");}}));this._codiconCSS=s.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|
|
729
|
+
}`),this.styleElement.textContent=t.join("\n"),this.list.style(e);}getSelectedElements(){return this.list.getSelectedElements();}getSelection(){return this.list.getSelection();}getFocus(){return this.list.getFocus();}dispose(){this.disposables.dispose();}}_OJ=OJ;_OJ.InstanceCount=0;var O0=i8;let O1={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class O2 extends Ac{constructor(e,t,i){var _i$toggleStyles,_i$toggleStyles2,_i$toggleStyles3;super(e,t,i);let n=this.options.keybinding?`${this._action.label} (${this.options.keybinding})`:this._action.label;this.toggle=this._register(new O3({actionClassName:this._action.class,isChecked:!!this._action.checked,title:n,notFocusable:!0,inputActiveOptionBackground:(_i$toggleStyles=i.toggleStyles)===null||_i$toggleStyles===void 0?void 0:_i$toggleStyles.inputActiveOptionBackground,inputActiveOptionBorder:(_i$toggleStyles2=i.toggleStyles)===null||_i$toggleStyles2===void 0?void 0:_i$toggleStyles2.inputActiveOptionBorder,inputActiveOptionForeground:(_i$toggleStyles3=i.toggleStyles)===null||_i$toggleStyles3===void 0?void 0:_i$toggleStyles3.inputActiveOptionForeground})),this._register(this.toggle.onChange(()=>{this._action.checked=!!this.toggle&&this.toggle.checked;}));}render(e){this.element=e,this.element.appendChild(this.toggle.domNode),this.updateChecked(),this.updateEnabled();}updateEnabled(){var _this$element6,_this$element7;this.toggle&&(this.isEnabled()?(this.toggle.enable(),(_this$element6=this.element)===null||_this$element6===void 0?void 0:_this$element6.classList.remove("disabled")):(this.toggle.disable(),(_this$element7=this.element)===null||_this$element7===void 0?void 0:_this$element7.classList.add("disabled")));}updateChecked(){this.toggle.checked=!!this._action.checked;}updateLabel(){let e=this.options.keybinding?`${this._action.label} (${this.options.keybinding})`:this._action.label;this.toggle.setTitle(e);}focus(){this.toggle.domNode.tabIndex=0,this.toggle.focus();}blur(){this.toggle.domNode.tabIndex=-1,this.toggle.domNode.blur();}setFocusable(e){this.toggle.domNode.tabIndex=e?0:-1;}}class O3 extends pG{get onChange(){return this._onChange.event;}get onKeyDown(){return this._onKeyDown.event;}constructor(e){super(),this._onChange=this._register(new iv.S()),this._onKeyDown=this._register(new iv.S()),this._opts=e,this._title=this._opts.title,this._checked=this._opts.isChecked;let t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...eY.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._register(RC().setupDelayedHover(this.domNode,()=>({content:DB(this._title)||ou(this._title)?this._title:DT(this._title),style:1}),this._opts.hoverLifecycleOptions)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.setTitle(this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault(),e.stopPropagation());}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,e=>{if(this.enabled){if(10===e.keyCode||3===e.keyCode){this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),e.stopPropagation();return;}this._onKeyDown.fire(e);}});}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled");}focus(){this.domNode.focus();}get checked(){return this._checked;}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles();}setIcon(e){this._icon&&this.domNode.classList.remove(...eY.asClassNameArray(this._icon)),this._icon=e,this._icon&&this.domNode.classList.add(...eY.asClassNameArray(this._icon));}width(){return 22;}applyStyles(){this.domNode&&(this._checked&&this._opts.inputActiveOptionBorder?this.domNode.style.setProperty("--monaco-custom-toggle-border-color",this._opts.inputActiveOptionBorder):this.domNode.style.removeProperty("--monaco-custom-toggle-border-color"),this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"");}enable(){this.domNode.setAttribute("aria-disabled",String(!1)),this.domNode.classList.remove("disabled"),this._opts.notFocusable||(this.domNode.tabIndex=0);}disable(){this.domNode.setAttribute("aria-disabled",String(!0)),this.domNode.classList.add("disabled"),this._opts.notFocusable||(this.domNode.tabIndex=-1);}setTitle(e){this._title=e;let t="string"==typeof e?e:DB(e)?e.value:e.textContent;this.domNode.setAttribute("aria-label",DR(t));}}class O5 extends pG{constructor(e,t,i){super(),this.checkbox=e,this.domNode=t,this.styles=i,this._onChange=this._register(new iv.S()),this.onChange=this._onChange.event,this.applyStyles();}get enabled(){return this.checkbox.enabled;}enable(){this.checkbox.enable(),this.applyStyles(!0);}disable(){this.checkbox.disable(),this.applyStyles(!1);}setTitle(e){this.checkbox.setTitle(e);}applyStyles(e=this.enabled){this.domNode.style.color=(e?this.styles.checkboxForeground:this.styles.checkboxDisabledForeground)||"",this.domNode.style.backgroundColor=(e?this.styles.checkboxBackground:this.styles.checkboxDisabledBackground)||"",this.domNode.style.borderColor=(e?this.styles.checkboxBorder:this.styles.checkboxDisabledBackground)||"";let t=this.styles.size||18;this.domNode.style.width=this.domNode.style.height=this.domNode.style.fontSize=`${t}px`,this.domNode.style.fontSize=`${t-2}px`;}}_O2=O5;_O2.CLASS_NAME="monaco-checkbox";class O6 extends O5{constructor(e,t,i){let n=new O3({title:e,isChecked:t,icon:rC.f.check,actionClassName:O5.CLASS_NAME,hoverLifecycleOptions:i.hoverLifecycleOptions,...O1});super(n,n.domNode,i),this._register(n),this._register(this.checkbox.onChange(e=>{this.applyStyles(),this._onChange.fire(e);}));}get checked(){return this.checkbox.checked;}set checked(e){this.checkbox.checked=e,this.applyStyles();}applyStyles(e){this.checkbox.checked?this.checkbox.setIcon(rC.f.check):this.checkbox.setIcon(void 0),super.applyStyles(e);}}class O4 extends O5{constructor(e,t,i){let n;switch(t){case!0:n=rC.f.check;break;case"mixed":n=rC.f.dash;break;case!1:n=void 0;}let s=new O3({title:e,isChecked:!0===t,icon:n,actionClassName:O6.CLASS_NAME,hoverLifecycleOptions:i.hoverLifecycleOptions,...O1});super(s,s.domNode,i),this._state=t,this._register(s),this._register(this.checkbox.onChange(e=>{this._state=this.checkbox.checked,this.applyStyles(),this._onChange.fire(e);}));}get checked(){return this._state;}set checked(e){this._state!==e&&(this._state=e,this.checkbox.checked=!0===e,this.applyStyles());}applyStyles(e){switch(this._state){case!0:this.checkbox.setIcon(rC.f.check);break;case"mixed":this.checkbox.setIcon(rC.f.dash);break;case!1:this.checkbox.setIcon(void 0);}super.applyStyles(e);}}function O9(e){return(t,i)=>{if(void 0!==t.checked)return new O2(null,t,{...i,toggleStyles:e});};}function O8(e,t,i,n){if(e.equals(15)||e.equals(17)||e.equals(9)){let s=i(),o=s.indexOf(t.ownerDocument.activeElement);if(o>=0){let t=-1;e.equals(17)?t=(o+1)%s.length:e.equals(15)&&(t=0===o?s.length-1:o-1),e.equals(9)?(s[o].blur(),n()):t>=0&&s[t].focus(),ob.stop(e,!0);}}}e.s(["r",0,O6,"z",0,O3,"w",0,O4,"p",0,O9],51845);let O7=(0,iM.M)(2,"Match Case"),Pe=(0,iM.M)(3,"Match Whole Word"),Pt=(0,iM.M)(4,"Use Regular Expression");class Pi extends O3{constructor(e){super({icon:rC.f.caseSensitive,title:O7+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground});}}class Pn extends O3{constructor(e){super({icon:rC.f.wholeWord,title:Pe+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground});}}class Ps extends O3{constructor(e){super({icon:rC.f.regex,title:Pt+e.appendTitle,isChecked:e.isChecked,hoverLifecycleOptions:e.hoverLifecycleOptions,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground});}}e.s(["Q",0,Pi,"R",0,Ps,"S",0,Pn,"f",0,O8],6726);class Po{constructor(e){this.source=e,this.index=0;}eos(){return this.index>=this.source.length;}next(){let e=this.peek();return this.advance(),e;}peek(){return this.source[this.index];}advance(){this.index++;}}function Pr(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0;}}class Pa{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n;}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index];}next(){return this.index=Math.min(this.index+1,this.end),this.current();}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current();}first(){return this.index=this.start,this.current();}last(){return this.index=this.end-1,this.current();}}class Pl{constructor(e=new Set(),t=10){this._history=e,this._limit=t,this._onChange(),this._history.onDidChange&&(this._disposable=this._history.onDidChange(()=>this._onChange()));}getHistory(){return this._elements;}add(e){this._history.delete(e),this._history.add(e),this._onChange();}next(){return this._navigator.next();}previous(){return 0!==this._currentPosition()?this._navigator.previous():null;}current(){return this._navigator.current();}first(){return this._navigator.first();}last(){return this._navigator.last();}isLast(){return this._currentPosition()>=this._elements.length-1;}isNowhere(){return null===this._navigator.current();}has(e){return this._history.has(e);}_onChange(){this._reduceToLimit();let e=this._elements;this._navigator=new Pa(e,0,e.length,e.length);}_reduceToLimit(){let e=this._elements;if(e.length>this._limit){let t=e.slice(e.length-this._limit);this._history.replace?this._history.replace(t):this._history=new Set(t);}}_currentPosition(){let e=this._navigator.current();return e?this._elements.indexOf(e):-1;}get _elements(){let e=[];return this._history.forEach(t=>e.push(t)),e;}dispose(){this._disposable&&(this._disposable.dispose(),this._disposable=void 0);}}class Ph extends pG{get onDidChange(){return this._onDidChange.event;}get onDidHeightChange(){return this._onDidHeightChange.event;}constructor(e,t,i){var _this$options$tooltip;super(),this.state="idle",this.maxHeight=1/0,this.hover=this._register(new i8.k()),this.messageResizeObserver=this._register(new i8.k()),this._onDidChange=this._register(new iv.S()),this._onDidHeightChange=this._register(new iv.S()),this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(_this$options$tooltip=this.options.tooltip)!==null&&_this$options$tooltip!==void 0?_this$options$tooltip:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=oL(e,oN(".monaco-inputbox.idle"));let n=this.options.flexibleHeight?"textarea":"input",s=oL(this.element,oN(".ibwrapper"));if(this.input=oL(s,oN(n+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:1/0,this.mirror=oL(s,oN("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new fi(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),oL(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));let t=this._register(new ff(e.ownerDocument,"selectionchange")),i=iv.C.filter(t.event,()=>{let t=e.ownerDocument.getSelection();return(t===null||t===void 0?void 0:t.anchorNode)===s;});this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this));}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this._register(this.ignoreGesture(this.input)),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new A5(this.element,{actionViewItemProvider:this.options.actionViewItemProvider})),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles();}setActions(e,t){this.actionbar?(this.actionbar.clear(),e&&this.actionbar.push(e,{icon:!0,label:!1})):e&&(this.actionbar=this._register(new A5(this.element,{actionViewItemProvider:t!==null&&t!==void 0?t:this.options.actionViewItemProvider})),this.actionbar.push(e,{icon:!0,label:!1}));}get actionsWidth(){var _this$actionbar$getCo,_this$actionbar;return(_this$actionbar$getCo=(_this$actionbar=this.actionbar)===null||_this$actionbar===void 0?void 0:_this$actionbar.getContainer().offsetWidth)!==null&&_this$actionbar$getCo!==void 0?_this$actionbar$getCo:0;}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","");}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"");}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e);}setTooltip(e){this.tooltip=e,this.hover.value||(this.hover.value=this._register(RC().setupDelayedHoverAtMouse(this.input,()=>({content:this.tooltip,appearance:{compact:!0}}))));}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label");}get inputElement(){return this.input;}get value(){return this.input.value;}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange());}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:oe(this.element);}focus(){this.input.focus();}blur(){this.input.blur();}hasFocus(){return oa(this.input);}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth));}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd;}getSelection(){var _this$input$selection;let e=this.input.selectionStart;if(null===e)return null;let t=(_this$input$selection=this.input.selectionEnd)!==null&&_this$input$selection!==void 0?_this$input$selection:e;return{start:e,end:t};}enable(){this.input.removeAttribute("disabled");}disable(){this.blur(),this.input.disabled=!0,this._hideMessage();}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px");}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;let e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i});}showMessage(e,t){if("open"===this.state&&(0,im.m)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));let i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${Rs(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage();}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles();}validate(){var _e8;let e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),(_e8=e)===null||_e8===void 0?void 0:_e8.type;}stylesForType(e){let t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground};}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error";}}_showMessage(){let e;if(!this.contextViewProvider||!this.message)return;let t=()=>e.style.width=s9(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var _a$background,_a$foreground;var n,s,o;if(!this.message)return null;e=oL(i,oN(".monaco-inputbox-container")),t();let r=oN("span.monaco-inputbox-message");if(this.message.formatContent){var _s9,_s0;let e;n=this.message.content,s=void 0,(e=r!==null&&r!==void 0?r:document.createElement("div")).textContent="",function e(t,i,n,s){let o;if(2===i.type)o=document.createTextNode(i.content||"");else if(3===i.type)o=document.createElement("b");else if(4===i.type)o=document.createElement("i");else if(7===i.type&&s)o=document.createElement("code");else if(5===i.type&&n){let e=document.createElement("a");n.disposables.add(sq(e,"click",e=>{n.callback(String(i.index),e);})),o=e;}else 8===i.type?o=document.createElement("br"):1===i.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(i.children)&&i.children.forEach(t=>{e(o,t,n,s);});}(e,function(e){let t={type:1,children:[]},i=0,n=t,s=[],o=new Po(e);for(;!o.eos();){let e=o.next(),t="\\"===e&&0!==Pr(o.peek());if(t&&(e=o.next()),t||0===Pr(e)||e!==o.peek()){if("\n"===e)2===n.type&&(n=s.pop()),n.children.push({type:8});else if(2!==n.type){let t={type:2,content:e};n.children.push(t),s.push(n),n=t;}else n.content+=e;}else{o.advance(),2===n.type&&(n=s.pop());let t=Pr(e);if(n.type===t||5===n.type&&6===t)n=s.pop();else{let e={type:t,children:[]};5===t&&(e.index=i,i++),n.children.push(e),s.push(n),n=e;}}}return 2===n.type&&(n=s.pop()),t;}(n),(_s9=s)===null||_s9===void 0?void 0:_s9.actionHandler,(_s0=s)===null||_s0===void 0?void 0:_s0.renderCodeSegments);}else o=this.message.content,(r!==null&&r!==void 0?r:document.createElement("div")).textContent=o;r.classList.add(this.classForType(this.message.type));let a=this.stylesForType(this.message.type);return r.style.backgroundColor=(_a$background=a.background)!==null&&_a$background!==void 0?_a$background:"",r.style.color=(_a$foreground=a.foreground)!==null&&_a$foreground!==void 0?_a$foreground:"",r.style.border=a.border?`1px solid ${a.border}`:"",oL(e,r),null;},onHide:()=>{this.state="closed",this.messageResizeObserver.clear();},layout:t}),this.observeElementResize(),dI(3===this.message.type?(0,iM.M)(9,"Error: {0}",this.message.content):2===this.message.type?(0,iM.M)(10,"Warning: {0}",this.message.content):(0,iM.M)(11,"Info: {0}",this.message.content)),this.state="open";}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.messageResizeObserver.clear(),this.state="idle");}observeElementResize(){let e=new i8.q(),t=e.add(new oB("InputBox.validationMessage",()=>{this.element.isConnected&&s9(this.element)>0&&this.layoutMessage();},sT(this.element)));e.add(t.observe(this.element)),this.messageResizeObserver.value=e;}layoutMessage(){"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout();}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout(),this.options.hideHoverOnValueChange&&RC().hideHover();}updateMirror(){if(!this.mirror)return;let e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout();}applyStyles(){var _e$inputBackground,_e$inputForeground,_e$inputBorder;let e=this.options.inputBoxStyles,t=(_e$inputBackground=e.inputBackground)!==null&&_e$inputBackground!==void 0?_e$inputBackground:"",i=(_e$inputForeground=e.inputForeground)!==null&&_e$inputForeground!==void 0?_e$inputForeground:"",n=(_e$inputBorder=e.inputBorder)!==null&&_e$inputBorder!==void 0?_e$inputBorder:"";this.element.style.backgroundColor=t,this.element.style.color=i,this.input.style.backgroundColor="inherit",this.input.style.color=i,this.element.style.border=`1px solid ${Rs(n,"transparent")}`;}layout(){if(!this.mirror)return void this.layoutMessage();let e=this.cachedContentHeight;this.cachedContentHeight=oe(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight)),this.layoutMessage();}insertAtCursor(e){let t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;null!==i&&null!==n&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout());}dispose(){var _this$actionbar2;this._hideMessage(),this.message=null,(_this$actionbar2=this.actionbar)!==null&&_this$actionbar2!==void 0&&_this$actionbar2.dispose(),super.dispose();}}class Pd extends Ph{constructor(e,t,i){let n=(0,iM.M)(12," or {0} for history","⇅"),s=(0,iM.M)(13," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new iv.S()),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new iv.S()),this.onDidBlur=this._onDidBlur.event,this.history=this._register(new Pl(i.history,100));let o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){let e=this.placeholder.endsWith(")")?n:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&!oa(this.input)?this.placeholder=t:this.setPlaceHolder(t);}};this.observer=new MutationObserver((e,t)=>{e.forEach(e=>{e.target.textContent||o();});}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>o()),this.onblur(this.input,()=>{let e=e=>{if(!this.placeholder.endsWith(e))return!1;{let t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0;}};e(s)||e(n);});}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0);}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value);}isAtLastInHistory(){return this.history.isLast();}isNowhereInHistory(){return this.history.isNowhere();}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e!==null&&e!==void 0?e:"",dN(this.value?this.value:(0,iM.M)(14,"Cleared Input"));}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,dN(this.value));}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e);}onBlur(){super.onBlur(),this._onDidBlur.fire();}onFocus(){super.onFocus(),this._onDidFocus.fire();}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e;}getPreviousValue(){return this.history.previous()||this.history.first();}getNextValue(){return this.history.next();}}e.s(["f",0,Pd],30296);let Pc=(0,iM.M)(1,"input");class Pu extends pG{get onDidOptionChange(){return this._onDidOptionChange.event;}get onKeyDown(){return this._onKeyDown.event;}get onMouseDown(){return this._onMouseDown.event;}get onCaseSensitiveKeyDown(){return this._onCaseSensitiveKeyDown.event;}get onRegexKeyDown(){return this._onRegexKeyDown.event;}constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new i8.k()),this.additionalToggles=[],this._onDidOptionChange=this._register(new iv.S()),this._onKeyDown=this._register(new iv.S()),this._onMouseDown=this._register(new iv.S()),this._onInput=this._register(new iv.S()),this._onKeyUp=this._register(new iv.S()),this._onCaseSensitiveKeyDown=this._register(new iv.S()),this._onRegexKeyDown=this._register(new iv.S()),this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||Pc,this.showCommonFindToggles=!!i.showCommonFindToggles;let n=i.appendCaseSensitiveLabel||"",s=i.appendWholeWordsLabel||"",o=i.appendRegexLabel||"",r=!!i.flexibleHeight,a=!!i.flexibleWidth,l=i.flexibleMaxHeight;if(this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new Pd(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},showHistoryHint:i.showHistoryHint,flexibleHeight:r,flexibleWidth:a,flexibleMaxHeight:l,inputBoxStyles:i.inputBoxStyles,history:i.history,actions:i.actions,actionViewItemProvider:i.actionViewItemProvider,hideHoverOnValueChange:i.hideHoverOnValueChange})),this.showCommonFindToggles){let e=(i===null||i===void 0?void 0:i.hoverLifecycleOptions)||{groupId:"find-input"};this.regex=this._register(new Ps({appendTitle:o,isChecked:!1,hoverLifecycleOptions:e,...i.toggleStyles})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate();})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e);})),this.wholeWords=this._register(new Pn({appendTitle:s,isChecked:!1,hoverLifecycleOptions:e,...i.toggleStyles})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate();})),this.caseSensitive=this._register(new Pi({appendTitle:n,isChecked:!1,hoverLifecycleOptions:e,...i.toggleStyles})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate();})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e);})),this.onkeydown(this.domNode,e=>{O8(e,this.domNode,()=>this.getToggleDomNodes(),()=>this.inputBox.focus());});}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(i===null||i===void 0?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e!==null&&e!==void 0&&e.appendChild(this.domNode),this._register(s$(this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0;})),this._register(s$(this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire({fromCompositionEnd:!0});})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire({fromCompositionEnd:!1})),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e));}get onDidChange(){return this.inputBox.onDidChange;}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget);}enable(){for(let e of(this.domNode.classList.remove("disabled"),this.inputBox.enable(),(_this$regex=this.regex)!==null&&_this$regex!==void 0&&_this$regex.enable(),(_this$wholeWords=this.wholeWords)!==null&&_this$wholeWords!==void 0&&_this$wholeWords.enable(),(_this$caseSensitive=this.caseSensitive)!==null&&_this$caseSensitive!==void 0&&_this$caseSensitive.enable(),this.additionalToggles)){var _this$regex,_this$wholeWords,_this$caseSensitive;e.enable();}}disable(){for(let e of(this.domNode.classList.add("disabled"),this.inputBox.disable(),(_this$regex2=this.regex)!==null&&_this$regex2!==void 0&&_this$regex2.disable(),(_this$wholeWords2=this.wholeWords)!==null&&_this$wholeWords2!==void 0&&_this$wholeWords2.disable(),(_this$caseSensitive2=this.caseSensitive)!==null&&_this$caseSensitive2!==void 0&&_this$caseSensitive2.disable(),this.additionalToggles)){var _this$regex2,_this$wholeWords2,_this$caseSensitive2;e.disable();}}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e;}setEnabled(e){e?this.enable():this.disable();}setAdditionalToggles(e){for(let e of this.additionalToggles)e.domNode.remove();for(let t of(this.additionalToggles=[],this.additionalTogglesDisposables.value=new i8.q(),e!==null&&e!==void 0?e:[]))this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus();})),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding();}getToggleDomNodes(){let e=[];for(let t of(this.caseSensitive&&e.push(this.caseSensitive.domNode),this.wholeWords&&e.push(this.wholeWords.domNode),this.regex&&e.push(this.regex.domNode),this.additionalToggles))e.push(t.domNode);return e;}setActions(e,t){this.inputBox.setActions(e,t),this.updateInputBoxPadding();}updateInputBoxPadding(e=!1){var _this$caseSensitive$w,_this$caseSensitive3,_this$wholeWords$widt,_this$wholeWords3,_this$regex$width,_this$regex3;let t=e?0:((_this$caseSensitive$w=(_this$caseSensitive3=this.caseSensitive)===null||_this$caseSensitive3===void 0?void 0:_this$caseSensitive3.width())!==null&&_this$caseSensitive$w!==void 0?_this$caseSensitive$w:0)+((_this$wholeWords$widt=(_this$wholeWords3=this.wholeWords)===null||_this$wholeWords3===void 0?void 0:_this$wholeWords3.width())!==null&&_this$wholeWords$widt!==void 0?_this$wholeWords$widt:0)+((_this$regex$width=(_this$regex3=this.regex)===null||_this$regex3===void 0?void 0:_this$regex3.width())!==null&&_this$regex$width!==void 0?_this$regex$width:0)+this.additionalToggles.reduce((e,t)=>e+t.width(),0);this.inputBox.paddingRight=t+this.inputBox.actionsWidth;}getValue(){return this.inputBox.value;}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e);}select(){this.inputBox.select();}focus(){this.inputBox.focus();}getCaseSensitive(){var _this$caseSensitive$c,_this$caseSensitive4;return(_this$caseSensitive$c=(_this$caseSensitive4=this.caseSensitive)===null||_this$caseSensitive4===void 0?void 0:_this$caseSensitive4.checked)!==null&&_this$caseSensitive$c!==void 0?_this$caseSensitive$c:!1;}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e);}getWholeWords(){var _this$wholeWords$chec,_this$wholeWords4;return(_this$wholeWords$chec=(_this$wholeWords4=this.wholeWords)===null||_this$wholeWords4===void 0?void 0:_this$wholeWords4.checked)!==null&&_this$wholeWords$chec!==void 0?_this$wholeWords$chec:!1;}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e);}getRegex(){var _this$regex$checked,_this$regex4;return(_this$regex$checked=(_this$regex4=this.regex)===null||_this$regex4===void 0?void 0:_this$regex4.checked)!==null&&_this$regex$checked!==void 0?_this$regex$checked:!1;}setRegex(e){this.regex&&(this.regex.checked=e,this.validate());}focusOnCaseSensitive(){var _this$caseSensitive5;(_this$caseSensitive5=this.caseSensitive)===null||_this$caseSensitive5===void 0||_this$caseSensitive5.focus();}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions);}validate(){this.inputBox.validate();}showMessage(e){this.inputBox.showMessage(e);}clearMessage(){this.inputBox.hideMessage();}}e.s(["f",0,Pu],63491),(eD=tK||(tK={}))[eD.Expanded=0]="Expanded",eD[eD.Collapsed=1]="Collapsed",eD[eD.PreserveOrExpanded=2]="PreserveOrExpanded",eD[eD.PreserveOrCollapsed=3]="PreserveOrCollapsed",(eM=tq||(tq={}))[eM.Unknown=0]="Unknown",eM[eM.Twistie=1]="Twistie",eM[eM.Element=2]="Element",eM[eM.Filter=3]="Filter";class Pg extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`);}}class Pp{constructor(e){this.fn=e,this._map=new WeakMap();}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t;}}var Pf=e.i(82009),Pm=e.i(92930);function P_(e){return!!e&&void 0!==e.visibility;}function Pv(e){switch(e){case!0:return 1;case!1:return 0;default:return e;}}function Pb(e){return"collapsible"in e;}class PC{constructor(e,t,i={}){var _i$allowNonCollapsibl;this.user=e,this.rootRef=[],this.eventBufferer=new iv.s(),this._onDidSpliceModel=new iv.S(),this.onDidSpliceModel=this._onDidSpliceModel.event,this._onDidSpliceRenderedNodes=new iv.S(),this.onDidSpliceRenderedNodes=this._onDidSpliceRenderedNodes.event,this._onDidChangeCollapseState=new iv.S(),this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new iv.S(),this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this.refilterDelayer=new nI.h(Pf.f),this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.allowNonCollapsibleParents=(_i$allowNonCollapsibl=i.allowNonCollapsibleParents)!==null&&_i$allowNonCollapsibl!==void 0?_i$allowNonCollapsibl:!1,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:t,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0};}splice(e,t,i=rw.f.empty(),n={}){if(0===e.length)throw new Pg(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n);}spliceSmart(e,t,i,n=rw.f.empty(),s,o=(_s$diffDepth=>(_s$diffDepth=s.diffDepth)!==null&&_s$diffDepth!==void 0?_s$diffDepth:0)()){let{parentNode:r}=this.getParentNodeWithListIndex(t);if(!r.lastDiffIds)return this.spliceSimple(t,i,n,s);let a=[...n],l=t[t.length-1],h=new Pm.C({getElements:()=>r.lastDiffIds},{getElements:()=>[...r.children.slice(0,l),...a,...r.children.slice(l+i)].map(t=>e.getId(t.element).toString())}).ComputeDiff(!1);if(h.quitEarly)return r.lastDiffIds=void 0,this.spliceSimple(t,i,a,s);let d=t.slice(0,-1),c=(t,i,n)=>{if(o>0)for(let r=0;r<n;r++)t--,i--,this.spliceSmart(e,[...d,t,0],Number.MAX_SAFE_INTEGER,a[i].children,s,o-1);},u=Math.min(r.children.length,l+i),g=a.length;for(let e of h.changes.sort((e,t)=>t.originalStart-e.originalStart))c(u,g,u-(e.originalStart+e.originalLength)),u=e.originalStart,g=e.modifiedStart-l,this.spliceSimple([...d,u],e.originalLength,rw.f.slice(a,g,g+e.modifiedLength),s);c(u,g,u);}spliceSimple(e,t,i=rw.f.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:o}){let{parentNode:r,listIndex:a,revealed:l,visible:h}=this.getParentNodeWithListIndex(e),d=[],c=rw.f.map(i,e=>this.createTreeNode(e,r,+!!r.visible,l,d,n)),u=e[e.length-1],g=0;for(let e=u;e>=0&&e<r.children.length;e--){let t=r.children[e];if(t.visible){g=t.visibleChildIndex;break;}}let p=[],f=0,m=0;for(let e of c)p.push(e),m+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+f++);let _=(0,ip.r)(r.children,u,t,p);o?r.lastDiffIds?(0,ip.r)(r.lastDiffIds,u,t,p.map(e=>o.getId(e.element).toString())):r.lastDiffIds=r.children.map(e=>o.getId(e.element).toString()):r.lastDiffIds=void 0;let v=0;for(let e of _)e.visible&&v++;if(0!==v)for(let e=u+p.length;e<r.children.length;e++){let t=r.children[e];t.visible&&(t.visibleChildIndex-=v);}if(r.visibleChildrenCount+=f-v,_.length>0&&s){let e=t=>{s(t),t.children.forEach(e);};_.forEach(e);}if(l&&h){let e=_.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(r,m-e),this._onDidSpliceRenderedNodes.fire({start:a,deleteCount:e,elements:d});}this._onDidSpliceModel.fire({insertedNodes:p,deletedNodes:_});let b=r;for(;b;){if(2===b.visibility){this.refilterDelayer.trigger(()=>this.refilter());break;}b=b.parent;}}rerender(e){if(0===e.length)throw new Pg(this.user,"Invalid tree location");let{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this._onDidSpliceRenderedNodes.fire({start:i,deleteCount:1,elements:[t]});}has(e){return this.hasTreeNode(e);}getListIndex(e){let{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1;}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount;}isCollapsible(e){return this.getTreeNode(e).collapsible;}setCollapsible(e,t){let i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);let n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n));}isCollapsed(e){return this.getTreeNode(e).collapsed;}setCollapsed(e,t,i){let n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);let s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,s));}_setCollapseState(e,t){let{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&o&&!Pb(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++)if(i.children[e].visible)if(n>-1){n=-1;break;}else n=e;n>-1&&this._setCollapseState([...e,n],t);}return o;}_setListNodeCollapseState(e,t,i,n){let s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;let o=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e);return this._onDidSpliceRenderedNodes.fire({start:t+1,deleteCount:o-(-1!==t),elements:r.slice(1)}),s;}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(Pb(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!Pb(t)&&t.recursive)for(let i of e.children)n=this._setNodeCollapseState(i,t,!0)||n;return n;}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1});});}refilter(){let e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this._onDidSpliceRenderedNodes.fire({start:0,deleteCount:e,elements:t}),this.refilterDelayer.cancel();}createTreeNode(e,t,i,n,s,o){let r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&s.push(r);let l=e.children||rw.f.empty(),h=n&&0!==a&&!r.collapsed,d=0,c=1;for(let e of l){let t=this.createTreeNode(e,r,a,h,s,o);r.children.push(t),c+=t.renderNodeCount,t.visible&&(t.visibleChildIndex=d++);}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=d,r.visible=2===a?d>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=c):(r.renderNodeCount=0,n&&s.pop()),o!==null&&o!==void 0&&o(r),r;}updateNodeAfterCollapseChange(e){let t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i;}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(let i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount;}updateNodeAfterFilterChange(e){let t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,+!!e.visible,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i;}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(0===(s=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e);}let o=i.length;e.renderNodeCount=+(e!==this.root);let r=!1;if(e.collapsed&&0===s)e.visibleChildrenCount=0;else{let t=0;for(let o of e.children)r=this._updateNodeAfterFilterChange(o,s,i,n&&!e.collapsed)||r,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t;}return e!==this.root&&(e.visible=2===s?r:1===s,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-o):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible;}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent;}_filterNode(e,t){let i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,+!!i):P_(i)?(e.filterData=i.data,Pv(i.visibility)):(e.filterData=void 0,Pv(i));}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;let[i,...n]=e;return!(i<0)&&!(i>t.children.length)&&this.hasTreeNode(n,t.children[i]);}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;let[i,...n]=e;if(i<0||i>t.children.length)throw new Pg(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i]);}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:t,listIndex:i,revealed:n,visible:s}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new Pg(this.user,"Invalid tree location");let r=t.children[o];return{node:r,listIndex:i,revealed:n,visible:s&&r.visible};}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,s=!0){let[o,...r]=e;if(o<0||o>t.children.length)throw new Pg(this.user,"Invalid tree location");for(let e=0;e<o;e++)i+=t.children[e].renderNodeCount;return(n=n&&!t.collapsed,s=s&&t.visible,0===r.length)?{parentNode:t,listIndex:i,revealed:n,visible:s}:this.getParentNodeWithListIndex(r,t.children[o],i+1,n,s);}getNode(e=[]){return this.getTreeNode(e);}getNodeLocation(e){let t=[],i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse();}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,ip.N)(e)[0];}getFirstElementChild(e){let t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element;}}class Pw extends RE{constructor(e){super(e.elements.map(e=>e.element)),this.data=e;}}function Py(e){return e instanceof RE?new Pw(e):e;}class PS{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=O0.N.None,this.disposables=new O0.q();}getDragURI(e){return this.dnd.getDragURI(e.element);}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t);}onDragStart(e,t){var _this$dnd$onDragStart3,_this$dnd7;(_this$dnd$onDragStart3=(_this$dnd7=this.dnd).onDragStart)===null||_this$dnd$onDragStart3===void 0||_this$dnd$onDragStart3.call(_this$dnd7,Py(e),t);}onDragOver(e,t,i,n,s,o=!0){let r=this.dnd.onDragOver(Py(e),t&&t.element,i,n,s),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return r;if(a&&"boolean"!=typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,nI.w)(()=>{let e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0;},500,this.disposables)),"boolean"==typeof r||!r.accept||void 0===r.bubble||r.feedback)return o?r:{accept:"boolean"==typeof r?r:r.accept,effect:"boolean"==typeof r?void 0:r.effect,feedback:[i]};if(1===r.bubble){let i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,s,!1);}let l=this.modelProvider(),h=l.getNodeLocation(t),d=l.getListIndex(h),c=l.getListRenderCount(h);return{...r,feedback:(0,ip.q)(d,d+c)};}drop(e,t,i,n,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(Py(e),t&&t.element,i,n,s);}onDragEnd(e){var _this$dnd$onDragEnd3,_this$dnd8;(_this$dnd$onDragEnd3=(_this$dnd8=this.dnd).onDragEnd)===null||_this$dnd$onDragEnd3===void 0||_this$dnd$onDragEnd3.call(_this$dnd8,e);}dispose(){this.disposables.dispose(),this.dnd.dispose();}}class Px{constructor(e){this.delegate=e;}getHeight(e){return this.delegate.getHeight(e.element);}getTemplateId(e){return this.delegate.getTemplateId(e.element);}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element);}setDynamicHeight(e,t){var _this$delegate$setDyn,_this$delegate3;(_this$delegate$setDyn=(_this$delegate3=this.delegate).setDynamicHeight)===null||_this$delegate$setDyn===void 0||_this$delegate$setDyn.call(_this$delegate3,e.element,t);}}(eI=tj||(tj={})).None="none",eI.OnHover="onHover",eI.Always="always";class PL{get elements(){return this._elements;}constructor(e,t=[]){this._elements=t,this.disposables=new O0.q(),this.onDidChange=iv.C.forEach(e,e=>this._elements=e,this.disposables);}dispose(){this.disposables.dispose();}}class Pk{constructor(e,t,i,n,s,o={}){var _e$onDidChangeTwistie;this.renderer=e,this.model=t,this.activeNodes=n,this.renderedIndentGuides=s,this.renderedElements=new Map(),this.renderedNodes=new Map(),this.indent=Pk.DefaultIndent,this.defaultIndent=Pk.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set(),this.indentGuidesDisposable=O0.N.None,this.disposables=new O0.q(),this.templateId=e.templateId,this.updateOptions(o),iv.C.map(i,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(_e$onDidChangeTwistie=e.onDidChangeTwistieState)===null||_e$onDidChangeTwistie===void 0?void 0:_e$onDidChangeTwistie.call(e,this.onDidChangeTwistieState,this,this.disposables);}updateOptions(e={}){if(void 0!==e.defaultIndent&&(this.defaultIndent=e.defaultIndent),void 0!==e.indent||void 0!==e.defaultIndent){let t=void 0!==e.indent?nA(e.indent,0,40):this.indent;if(t!==this.indent||void 0!==e.defaultIndent)for(let[e,i]of(this.indent=t,this.renderedNodes))i.indentSize=this.defaultIndent+(e.depth-1)*this.indent,this.renderTreeElement(e,i);}if(void 0!==e.renderIndentGuides){let t=e.renderIndentGuides!==tj.None;if(t!==this.shouldRenderIndentGuides){for(let[e,i]of(this.shouldRenderIndentGuides=t,this.renderedNodes))this._renderIndentGuides(e,i);if(this.indentGuidesDisposable.dispose(),t){let e=new O0.q();this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements);}}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements),void 0!==e.twistieAdditionalCssClass&&(this.twistieAdditionalCssClass=e.twistieAdditionalCssClass);}renderTemplate(e){this.renderer.rowClassName&&e.classList.add(this.renderer.rowClassName);let t=oL(e,oN(".monaco-tl-row")),i=oL(t,oN(".monaco-tl-indent")),n=oL(t,oN(".monaco-tl-twistie")),s=oL(t,oN(".monaco-tl-contents")),o=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:n,indentGuidesDisposable:O0.N.None,indentSize:0,templateData:o};}renderElement(e,t,i,n){i.indentSize=this.defaultIndent+(e.depth-1)*this.indent,this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,{...n,indent:i.indentSize});}disposeElement(e,t,i,n){var _this$renderer$dispos,_this$renderer;i.indentGuidesDisposable.dispose(),(_this$renderer$dispos=(_this$renderer=this.renderer).disposeElement)!==null&&_this$renderer$dispos!==void 0&&_this$renderer$dispos.call(_this$renderer,e,t,i.templateData,{...n,indent:i.indentSize}),"number"==typeof(n===null||n===void 0?void 0:n.height)&&this.renderedNodes.get(e)===i&&(this.renderedNodes.delete(e),this.renderedElements.get(e.element)===e&&this.renderedElements.delete(e.element));}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData);}onDidChangeTwistieState(e){let t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t);}onDidChangeNodeTwistieState(e){let t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t));}renderTreeElement(e,t){t.twistie.className=t.twistie.classList.item(0),t.twistie.style.paddingLeft=`${t.indentSize}px`,t.indent.style.width=`${t.indentSize+this.indent-16}px`,e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...eY.asClassNameArray(rC.f.treeItemExpanded));let i=!1;if(this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(i||t.twistie.classList.add(...eY.asClassNameArray(rC.f.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this.twistieAdditionalCssClass){let i=this.twistieAdditionalCssClass(e.element);i&&t.twistie.classList.add(i);}this._renderIndentGuides(e,t);}_renderIndentGuides(e,t){if(sz(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let i=new O0.q();for(;;){let n=this.model.getNodeLocation(e),s=this.model.getParentNodeLocation(n);if(!s)break;let o=this.model.getNode(s),r=oN(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(o)&&r.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(r):t.indent.insertBefore(r,t.indent.firstElementChild),this.renderedIndentGuides.add(o,r),i.add((0,O0.Q)(()=>this.renderedIndentGuides.delete(o,r))),e=o;}t.indentGuidesDisposable=i;}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;let t=new Set();e.forEach(e=>{let i=this.model.getNodeLocation(e);try{let n=this.model.getParentNodeLocation(i);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(this.model.getNode(n));}catch{}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.remove("active"));}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.add("active"));}),this.activeIndentNodes=t;}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,O0.d)(this.disposables);}}_Pk=Pk;_Pk.DefaultIndent=8;class PD{get totalCount(){return this._totalCount;}get matchCount(){return this._matchCount;}set findMatchType(e){this._findMatchType=e;}get findMatchType(){return this._findMatchType;}set findMode(e){this._findMode=e;}get findMode(){return this._findMode;}constructor(e,t,i){this._keyboardNavigationLabelProvider=e,this._filter=t,this._defaultFindVisibility=i,this._totalCount=0,this._matchCount=0,this._findMatchType=tQ.Fuzzy,this._findMode=tG.Highlight,this._pattern="",this._lowercasePattern="",this.disposables=new O0.q();}filter(e,t){let i=1;if(this._filter){let n=this._filter.filter(e,t);if(0===(i="boolean"==typeof n?+!!n:P_(n)?Pv(n.visibility):n))return!1;}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:tS.Default,visibility:i};let n=this._keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(let e of s){let t,n=e&&e.toString();if(void 0===n)return{data:tS.Default,visibility:i};if(t=this._findMatchType===tQ.Contiguous?function(e,t){let i,n=t.toLowerCase().indexOf(e);if(n>-1){i=[Number.MAX_SAFE_INTEGER,0];for(let t=e.length;t>0;t--)i.push(n+t-1);}return i;}(this._lowercasePattern,n.toLowerCase()):DL(this._pattern,this._lowercasePattern,0,n,n.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0}))return this._matchCount++,1===s.length?{data:t,visibility:i}:{data:{label:n,score:t},visibility:i};}return this._findMode!==tG.Filter?{data:tS.Default,visibility:i}:"number"==typeof this._defaultFindVisibility?this._defaultFindVisibility:this._defaultFindVisibility?this._defaultFindVisibility(e):2;}reset(){this._totalCount=0,this._matchCount=0;}dispose(){(0,O0.d)(this.disposables);}}class PM{constructor(e){this.stateMap=new Map(e.map(e=>[e.id,{...e}]));}get(e){let t=this.stateMap.get(e);if(void 0===t)throw Error(`No state found for toggle id ${e}`);return t.isChecked;}set(e,t){let i=this.stateMap.get(e);if(void 0===i)throw Error(`No state found for toggle id ${e}`);return i.isChecked!==t&&(i.isChecked=t,!0);}}(eN=tG||(tG={}))[eN.Highlight=0]="Highlight",eN[eN.Filter=1]="Filter",(eE=tQ||(tQ={}))[eE.Fuzzy=0]="Fuzzy",eE[eE.Contiguous=1]="Contiguous",(eT=tZ||(tZ={})).Mode="mode",eT.MatchType="matchType";class PI{get pattern(){return this._pattern;}get placeholder(){return this._placeholder;}set placeholder(e){var _this$widget;this._placeholder=e,(_this$widget=this.widget)===null||_this$widget===void 0?void 0:_this$widget.setPlaceHolder(e);}constructor(e,t,i,n={}){var _n$toggles,_n$placeholder;this.tree=e,this.filter=t,this.contextViewProvider=i,this.options=n,this._pattern="",this._onDidChangePattern=new iv.S(),this._onDidChangeOpenState=new iv.S(),this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new O0.q(),this.disposables=new O0.q(),this.toggles=new PM((_n$toggles=n.toggles)!==null&&_n$toggles!==void 0?_n$toggles:[]),this._placeholder=(_n$placeholder=n.placeholder)!==null&&_n$placeholder!==void 0?_n$placeholder:(0,iM.M)(22,"Type to search");}isOpened(){return!!this.widget;}updateToggleState(e,t){var _this$widget2;this.toggles.set(e,t),(_this$widget2=this.widget)===null||_this$widget2===void 0?void 0:_this$widget2.setToggleState(e,t);}renderMessage(e,t){var _this$tree$options$sh,_this$widget3,_this$widget4,_this$widget5;e?((_this$tree$options$sh=this.tree.options.showNotFoundMessage)!==null&&_this$tree$options$sh!==void 0?_this$tree$options$sh:!0)?(_this$widget3=this.widget)===null||_this$widget3===void 0?void 0:_this$widget3.showMessage({type:2,content:t!==null&&t!==void 0?t:(0,iM.M)(23,"No results found.")}):(_this$widget4=this.widget)===null||_this$widget4===void 0?void 0:_this$widget4.showMessage({type:2}):(_this$widget5=this.widget)===null||_this$widget5===void 0?void 0:_this$widget5.clearMessage();}alertResults(e){e?dI((0,iM.M)(25,"{0} results",e)):dI((0,iM.M)(24,"No results"));}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose();}}class PN extends PI{get mode(){return this.toggles.get(tZ.Mode)?tG.Filter:tG.Highlight;}set mode(e){if(e===this.mode)return;let t=e===tG.Filter;this.updateToggleState(tZ.Mode,t),this.placeholder=t?(0,iM.M)(26,"Type to filter"):(0,iM.M)(27,"Type to search"),this.filter.findMode=e,this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e);}get matchType(){return this.toggles.get(tZ.MatchType)?tQ.Fuzzy:tQ.Contiguous;}set matchType(e){e!==this.matchType&&(this.updateToggleState(tZ.MatchType,e===tQ.Fuzzy),this.filter.findMatchType=e,this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e));}constructor(e,t,i,n={}){var _n$defaultFindMode,_n$defaultFindMatchTy;let s=(_n$defaultFindMode=n.defaultFindMode)!==null&&_n$defaultFindMode!==void 0?_n$defaultFindMode:tG.Highlight,o=(_n$defaultFindMatchTy=n.defaultFindMatchType)!==null&&_n$defaultFindMatchTy!==void 0?_n$defaultFindMatchTy:tQ.Fuzzy,r=[{id:tZ.Mode,icon:rC.f.listFilter,title:(0,iM.M)(28,"Filter"),isChecked:s===tG.Filter},{id:tZ.MatchType,icon:rC.f.searchFuzzy,title:(0,iM.M)(29,"Fuzzy Match"),isChecked:o===tQ.Fuzzy}];t.findMatchType=o,t.findMode=s,super(e,t,i,{...n,toggles:r}),this.filter=t,this._onDidChangeMode=new iv.S(),this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new iv.S(),this.onDidChangeMatchType=this._onDidChangeMatchType.event,this.disposables.add(this.tree.onDidChangeModel(()=>{this.isOpened()&&(0!==this.pattern.length&&this.tree.refilter(),this.render());})),this.disposables.add(this.tree.onWillRefilter(()=>this.filter.reset()));}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType);}shouldAllowFocus(e){return!this.isOpened()||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1||!tS.isDefault(e.filterData);}render(){let e=0===this.filter.matchCount&&this.filter.totalCount>0&&this.pattern.length>0;this.renderMessage(e),this.pattern.length&&this.alertResults(this.filter.matchCount);}}function PE(e,t){return e.position===t.position&&PT(e,t);}function PT(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex&&e.sourceNodeEnd===t.sourceNodeEnd&&e.sourceNodePartiallyVisible===t.sourceNodePartiallyVisible&&e.hasExplicitHeight===t.hasExplicitHeight;}class PR{constructor(e=[]){this.stickyNodes=e;}get count(){return this.stickyNodes.length;}equal(e){return(0,ip.m)(this.stickyNodes,e.stickyNodes,PE);}contains(e){return this.stickyNodes.some(t=>t.node.element===e.element);}lastNodePartiallyVisible(){if(0===this.count)return!1;let e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;let t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position;}animationStateChanged(e){if(!(0,ip.m)(this.stickyNodes,e.stickyNodes,PT)||0===this.count)return!1;let t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position;}}class PA{constrainStickyScrollNodes(e,t,i){for(let n=0;n<e.length;n++){let s=e[n];if(s.position+s.height>i||n>=t)return e.slice(0,n);}return e;}}class PO extends O0.N{get domNode(){return this._widget.domNode;}constructor(e,t,i,n,s,o={}){var _o$stickyScrollDelega,_o$paddingTop;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=s,this.maxWidgetViewRatio=.4;let r=this.validateStickySettings(o);this.stickyScrollMaxItemCount=r.stickyScrollMaxItemCount,this.stickyScrollDelegate=(_o$stickyScrollDelega=o.stickyScrollDelegate)!==null&&_o$stickyScrollDelega!==void 0?_o$stickyScrollDelega:new PA(),this.paddingTop=(_o$paddingTop=o.paddingTop)!==null&&_o$paddingTop!==void 0?_o$paddingTop:0,this._widget=this._register(new PP(i.getScrollableElement(),i,e,n,s,o.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll(()=>this.update())),this._register(i.onDidChangeContentHeight(()=>this.update())),this._register(e.onDidChangeCollapseState(()=>this.update())),this._register(this._widget.onDidChangeHeight(e=>{for(let{index:t,height:i}of e)this.view.updateElementHeight(t,i);})),this._register(t.onDidSpliceRenderedNodes(e=>{let t=this._widget.state;!t||(e.deleteCount>0&&t.stickyNodes.some(e=>!this.model.has(this.model.getNodeLocation(e.node)))?this.update():t.stickyNodes.some(i=>{let n=this.model.getListIndex(this.model.getNodeLocation(i.node));return n>=e.start&&n<e.start+e.deleteCount&&t.contains(i.node);})&&this._widget.rerender());})),this.update();}get height(){return this._widget.height;}getNodeAtHeight(e){let t;if(!((t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop))<0)&&!(t>=this.view.length))return this.view.element(t);}update(){let e=this.getNodeAtHeight(this.paddingTop);if(!e||this.tree.scrollTop<=this.paddingTop||0===this.view.renderHeight)return void this._widget.setState(void 0);let t=this.findStickyState(e);this._widget.setState(t);}findStickyState(e){let t=[],i=e,n=0,s=this.getNextStickyNode(i,void 0,n);for(;s&&(t.push(s),n+=s.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(s)));)s=this.getNextStickyNode(i,s.node,n);let o=this.constrainStickyNodes(t);return o.length?new PR(o):void 0;}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height);}getNextStickyNode(e,t,i){let n=this.getAncestorUnderPrevious(e,t);if(!n||n===e&&!this.nodeIsUncollapsedParent(e))return;let s=this.getStickyScrollNodeSourceRange(n);if(!s||!Number.isFinite(s.start)||!Number.isFinite(s.end)||s.end<=s.start)return;let o=this.view.getElementTop(this.getNodeIndex(n)),r=this.view.scrollTop+i;if(r<=o+s.start)return;let a=this.getStickyScrollNodeHeight(s,i),l=r+a<o+s.end;return this.createStickyScrollNode(n,i,a,s.end,l,void 0!==s.stickyNodeHeight);}getStickyScrollNodeSourceRange(e){let t={start:0,end:this.getNodeHeight(e)},i=this.tree.options.stickyScrollNodeSourceRangeProvider;return i?i(e.element,t):t;}getStickyScrollNodeHeight(e,t){var _e$stickyNodeHeight;let i=this.clampNodeHeight((_e$stickyNodeHeight=e.stickyNodeHeight)!==null&&_e$stickyNodeHeight!==void 0?_e$stickyNodeHeight:e.end-e.start);return e.estimated?Math.min(i,Math.max(1,this.view.renderHeight*this.maxWidgetViewRatio-t)):i;}getNodeHeight(e){let t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);return i>=0?this.view.getElementHeight(i):this.treeDelegate.getHeight(e);}clampNodeHeight(e){let t=this.tree.options.stickyScrollMaxNodeHeight;return void 0!==t?Math.min(e,t):e;}createStickyScrollNode(e,t,i,n,s,o){let{startIndex:r,endIndex:a}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(a,t,i),height:i,startIndex:r,endIndex:a,sourceNodeEnd:n,sourceNodePartiallyVisible:s,hasExplicitHeight:o};}getAncestorUnderPrevious(e,t){let i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i);}if(void 0===t)return i;}calculateStickyNodePosition(e,t,i){let n=this.view.getElementHeight(e),s=this.view.getElementTop(e)+n-this.view.scrollTop;return t+i>s&&t<=s?s-i:t;}constrainStickyNodes(e){if(0===e.length)return[];let t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;let n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];let s=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||s.position+s.height>t)throw Error("stickyScrollDelegate violates constraints");return n;}getParentNode(e){let t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0;}nodeIsUncollapsedParent(e){let t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1;}getNodeIndex(e){let t=this.model.getNodeLocation(e);return this.model.getListIndex(t);}getNodeRange(e){let t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1};}nodePositionTopBelowWidget(e){let t=[],i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let e=0;e<t.length&&e<this.stickyScrollMaxItemCount;e++){let i=this.getStickyScrollNodeSourceRange(t[e]);i&&(n+=this.getStickyScrollNodeHeight(i,n));}return n;}domFocus(){this._widget.domFocus();}focusedLast(){return this._widget.focusedLast();}updateOptions(e={}){if(void 0!==e.paddingTop&&(this.paddingTop=e.paddingTop),void 0!==e.stickyScrollMaxItemCount){let t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update());}}validateStickySettings(e){let t=7;return"number"==typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t};}}class PP{get state(){return this._previousState;}constructor(e,t,i,n,s,o){this.view=t,this.tree=i,this.treeRenderers=n,this.treeDelegate=s,this.accessibilityProvider=o,this._previousElements=[],this._previousElementHeights=[],this._previousStateDisposables=new O0.q(),this._onDidChangeHeight=new iv.S(),this.onDidChangeHeight=this._onDidChangeHeight.event,this._rootDomNode=oN(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);let r=oN(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(r),this.stickyScrollFocus=new PF(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu;}get height(){return this._previousState?this.getRootHeight(this._previousState):0;}get domNode(){return this._rootDomNode;}setState(e){let t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return void this.updateSourceNodeVisibility(e);if(t!==i&&this.setVisible(i),!i){this.updateSourceNodeVisibility(void 0),this._previousState=void 0,this._previousElements=[],this._previousElementHeights=[],this._previousStateDisposables.clear();return;}let n=e.stickyNodes[e.count-1];this._previousState&&e.animationStateChanged(this._previousState)?this._previousElements[this._previousState.count-1].style.top=`${n.position}px`:this.renderState(e),this._previousState=e,this.updateSourceNodeVisibility(e),this.updateRootHeight(e);}updateSourceNodeVisibility(e){let t=!1;for(let i=0;e&&i<e.count;i++){let n=e.stickyNodes[i],s=this._previousElements[i],o=n.sourceNodePartiallyVisible;if(s){let e=this.view.getElementTop(n.startIndex)+n.sourceNodeEnd,t=this.getRenderedNodeHeight(n,i);o=this.view.scrollTop+n.position+t<e;}s!==null&&s!==void 0&&s.classList.toggle("source-node-partially-visible",o),t||(t=o);}this._rootDomNode.classList.toggle("source-node-partially-visible",t);}renderState(e){this._previousStateDisposables.clear();let t=Array(e.count);for(let i=e.count-1;i>=0;i--){let n=e.stickyNodes[i],{element:s,disposable:o}=this.createElement(n,i,e.count);t[i]=s,this._rootDomNode.appendChild(s),this._previousStateDisposables.add(o);}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t,this._previousElementHeights=this.probeDynamicHeights(e,t);}rerender(){this._previousState&&(this.renderState(this._previousState),this.updateSourceNodeVisibility(this._previousState),this.updateRootHeight(this._previousState));}updateRootHeight(e){this._rootDomNode.style.height=`${this.getRootHeight(e)}px`;}getRootHeight(e){let t=e.stickyNodes[e.count-1],i=this.getRenderedNodeHeight(t,e.count-1);return Math.max(0,t.position+i);}getRenderedNodeHeight(e,t){var _this$_previousElemen;return Math.min((_this$_previousElemen=this._previousElementHeights[t])!==null&&_this$_previousElemen!==void 0?_this$_previousElemen:e.height,e.height);}probeDynamicHeights(e,t){let i=[],n=e.stickyNodes.map(e=>e.height);for(let s=0;s<e.count;s++){let o=e.stickyNodes[s];if(!this.treeDelegate.hasDynamicHeight||!this.treeDelegate.hasDynamicHeight(o.node)){let e=t[s].offsetHeight;e>0&&(n[s]=e);continue;}let r=t[s],a=r.style.height;r.style.height="";let l=r.offsetHeight;if(l<=0){r.style.height=a;continue;}let h=this.tree.options.stickyScrollMaxNodeHeight,d=void 0!==h?Math.min(l,h):l,c=o.hasExplicitHeight?o.height:d;n[s]=c,!1!==this.tree.options.setRowHeight&&(r.style.height=`${c}px`),!1!==this.tree.options.setRowLineHeight&&(r.style.lineHeight=`${c}px`),!o.hasExplicitHeight&&d>this.view.getElementHeight(o.startIndex)&&i.push({index:o.startIndex,height:d});}return i.length>0&&this._onDidChangeHeight.fire(i),n;}createElement(e,t,i){let n=e.startIndex,s=document.createElement("div");s.style.top=`${e.position}px`;let o=this.tree.options.stickyScrollMaxNodeHeight,r=void 0!==o?Math.min(e.height,o):e.height;!1!==this.tree.options.setRowHeight&&(s.style.height=`${r}px`),!1!==this.tree.options.setRowLineHeight&&(s.style.lineHeight=`${r}px`),s.style.overflow="hidden",s.classList.add("monaco-tree-sticky-row"),s.classList.add("monaco-list-row"),s.classList.toggle("source-node-partially-visible",e.sourceNodePartiallyVisible),s.setAttribute("data-index",`${n}`),s.setAttribute("data-parity",n%2==0?"even":"odd"),s.setAttribute("id",this.view.getElementID(n));let a=this.setAccessibilityAttributes(s,e.node.element,t,i),l=this.treeDelegate.getTemplateId(e.node),h=this.treeRenderers.find(e=>e.templateId===l);if(!h)throw Error(`No renderer found for template id ${l}`);let d=e.node;d===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(d=new Proxy(e.node,{}));let c=h.renderTemplate(s);h.renderElement(d,e.startIndex,c,{height:e.height});let u=(0,O0.Q)(()=>{a.dispose(),h.disposeElement(d,e.startIndex,c,{height:e.height}),h.disposeTemplate(c),s.remove();});return{element:s,disposable:u};}setAccessibilityAttributes(e,t,i,n){var _this$accessibilityPr4;if(!this.accessibilityProvider)return O0.N.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",(_this$accessibilityPr4=this.accessibilityProvider.getRole(t))!==null&&_this$accessibilityPr4!==void 0?_this$accessibilityPr4:"treeitem");let s=this.accessibilityProvider.getAriaLabel(t),o=s&&"string"!=typeof s?s:RP(s),r=se(t=>{let i=t.readObservable(o);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label");});"string"==typeof s||s&&e.setAttribute("aria-label",s.get());let a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"==typeof a&&e.setAttribute("aria-level",`${a}`),r;}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0);}domFocus(){this.stickyScrollFocus.domFocus();}focusedLast(){return this.stickyScrollFocus.focusedLast();}dispose(){this._onDidChangeHeight.dispose(),this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove();}}class PF extends O0.N{get domHasFocus(){return this._domHasFocus;}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e);}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=this._register(new iv.S()),this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=this._register(new iv.S()),this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register(s$(this.container,"focus",()=>this.onFocus())),this._register(s$(this.container,"blur",()=>this.onBlur())),this._register(this.view.onDidFocus(()=>this.toggleStickyScrollFocused(!1))),this._register(this.view.onKeyDown(e=>this.onKeyDown(e))),this._register(this.view.onMouseDown(e=>this.onMouseDown(e))),this._register(this.view.onContextMenu(e=>this.handleContextMenu(e)));}handleContextMenu(e){let t=e.browserEvent.target;if(!RG(t)&&!Rj(t)){this.focusedLast()&&this.view.domFocus();return;}if(!om(e.browserEvent)){if(!this.state)throw Error("Context menu should not be triggered when state is undefined");let t=this.state.stickyNodes.findIndex(t=>{var _e$element2;return t.node.element===((_e$element2=e.element)===null||_e$element2===void 0?void 0:_e$element2.element);});if(-1===t)throw Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(t);return;}if(!this.state||this.focusedIndex<0)throw Error("Context menu key should not be triggered when focus is not in sticky scroll widget");let i=this.state.stickyNodes[this.focusedIndex].node.element,n=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:n,browserEvent:e.browserEvent,isStickyScroll:!0});}onKeyDown(e){if(this.domHasFocus&&this.state){if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){let e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state);}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation();}}}onMouseDown(e){let t=e.browserEvent.target;(RG(t)||Rj(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation());}updateElements(e,t){if(t&&0===t.count)throw Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw Error("Sticky scroll focus received illigel state");let i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){let e=nA(i,0,t.count-1);this.setFocus(e);}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1;}setFocusedElement(e){let t=this.state;if(!t)throw Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){let i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t);}}scrollNodeUnderWidget(e,t){let i=t.stickyNodes[t.count-1],n=t.count>1?t.stickyNodes[t.count-2]:void 0,s=this.view.getElementTop(e),o=n?n.position+n.height+i.height:i.height;this.view.scrollTop=s-o;}domFocus(){if(!this.state)throw Error("Cannot focus when state is undefined");this.container.focus();}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused");}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1);}setFocus(e){if(0>e)throw Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw Error("Cannot set focus index to an index that does not exist");let t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e;}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t);}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e);}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t);}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t);}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e);}onFocus(){if(!this.state||0===this.elements.length)throw Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0);}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1);}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose();}}function PB(e){let t=tq.Unknown;return oi(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=tq.Twistie:oi(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=tq.Element:oi(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=tq.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t};}function PW(e){let t=RG(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t};}function PV(e,t){t(e),e.children.forEach(e=>PV(e,t));}class PH{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet;}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new iv.S(),this.onDidChange=this._onDidChange.event;}set(e,t){!(t!==null&&t!==void 0&&t.__forceEvent)&&(0,ip.m)(this.nodes,e)||this._set(e,!1,t);}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){let e=this;this._onDidChange.fire({get elements(){return e.get();},browserEvent:i});}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements];}getNodes(){return this.nodes;}has(e){return this.nodeSet.has(e);}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){let e=this.createNodeSet(),i=t=>e.delete(t);t.forEach(e=>PV(e,i)),this.set([...e.values()]);return;}let i=new Set(),n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>PV(e,n));let s=new Map(),o=e=>s.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>PV(e,o));let r=[];for(let e of this.nodes){let t=this.identityProvider.getId(e.element).toString();if(i.has(t)){let e=s.get(t);e&&e.visible&&r.push(e);}else r.push(e);}if(this.nodes.length>0&&0===r.length){let e=this.getFirstViewElementWithTrait();e&&r.push(e);}this._set(r,!0);}createNodeSet(){let e=new Set();for(let t of this.nodes)e.add(t);return e;}}class Pz extends R3{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i;}onViewPointer(e){if(RQ(e.browserEvent.target)||o$(e.browserEvent.target)||R$(e.browserEvent.target)||e.browserEvent.isHandledByList)return;let t=e.element;if(!t||this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);let i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,s=Rj(e.browserEvent.target),o=!1;if(o=!!s||("function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),s)this.handleStickyScrollMouseEvent(e,t);else if(o&&!n&&2!==e.browserEvent.detail||!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible&&(!s||n)){let i=this.tree.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,s),n){e.browserEvent.isHandledByList=!0;return;}}s||super.onViewPointer(e);}handleStickyScrollMouseEvent(e,t){if(RK(e.browserEvent.target)||Rq(e.browserEvent.target))return;let i=this.stickyScrollProvider();if(!i)throw Error("Sticky scroll controller not found");let n=this.list.indexOf(t),s=this.list.getElementTop(n),o=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=s-o,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n]);}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||e.browserEvent.isHandledByList||super.onDoubleClick(e);}onMouseDown(e){let t=e.browserEvent.target;if(!RG(t)&&!Rj(t))return void super.onMouseDown(e);}onContextMenu(e){let t=e.browserEvent.target;if(!RG(t)&&!Rj(t))return void super.onContextMenu(e);}}class PU extends Ai{constructor(e,t,i,n,s,o,r,a){super(e,t,i,n,a),this.focusTrait=s,this.selectionTrait=o,this.anchorTrait=r;}createMouseController(e){return new Pz(this,e.tree,e.stickyScrollProvider);}splice(e,t,i=[]){let n;if(super.splice(e,t,i),0===i.length)return;let s=[],o=[];i.forEach((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&o.push(e+i),this.anchorTrait.has(t)&&(n=e+i);}),s.length>0&&super.setFocus((0,ip.l)([...super.getFocus(),...s])),o.length>0&&super.setSelection((0,ip.l)([...super.getSelection(),...o])),"number"==typeof n&&super.setAnchor(n);}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(e=>this.element(e)),t);}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(e=>this.element(e)),t);}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]));}}class P${get onDidScroll(){return this.view.onDidScroll;}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange);}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange);}get onMouseDblClick(){return iv.C.filter(iv.C.map(this.view.onMouseDblClick,PB),e=>e.target!==tq.Filter);}get onMouseOver(){return iv.C.map(this.view.onMouseOver,PB);}get onMouseOut(){return iv.C.map(this.view.onMouseOut,PB);}get onContextMenu(){var _this$stickyScrollCon,_this$stickyScrollCon2;return iv.C.any(iv.C.filter(iv.C.map(this.view.onContextMenu,PW),e=>!e.isStickyScroll),(_this$stickyScrollCon=(_this$stickyScrollCon2=this.stickyScrollController)===null||_this$stickyScrollCon2===void 0?void 0:_this$stickyScrollCon2.onContextMenu)!==null&&_this$stickyScrollCon!==void 0?_this$stickyScrollCon:iv.C.None);}get onPointer(){return iv.C.map(this.view.onPointer,PB);}get onDidFocus(){return this.view.onDidFocus;}get onDidChangeModel(){return iv.C.any(this.onDidChangeModelRelay.event,this.onDidSwapModel.event);}get onDidChangeCollapseState(){return this.onDidChangeCollapseStateRelay.event;}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick;}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick;}get onDidDispose(){return this.view.onDidDispose;}constructor(e,t,i,n,s={}){var _s$findWidgetEnabled,_s$findWidgetEnabled2;var o,r,a;this._user=e,this._options=s,this.eventBufferer=new iv.s(),this.onDidChangeFindOpenState=iv.C.None,this.onDidChangeStickyScrollFocused=iv.C.None,this.disposables=new O0.q(),this._onDidChangeStickyScrollDomNode=this.disposables.add(new iv.S()),this.onDidSwapModel=this.disposables.add(new iv.S()),this.onDidChangeModelRelay=this.disposables.add(new iv.Q()),this.onDidSpliceModelRelay=this.disposables.add(new iv.Q()),this.onDidChangeCollapseStateRelay=this.disposables.add(new iv.Q()),this.onDidChangeRenderNodeCountRelay=this.disposables.add(new iv.Q()),this.onDidChangeActiveNodesRelay=this.disposables.add(new iv.Q()),this._onWillRefilter=new iv.S(),this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new iv.S(),this.modelDisposables=new O0.q(),s.keyboardNavigationLabelProvider&&((_s$findWidgetEnabled=s.findWidgetEnabled)!==null&&_s$findWidgetEnabled!==void 0?_s$findWidgetEnabled:!0)&&(this.findFilter=new PD(s.keyboardNavigationLabelProvider,s.filter,s.defaultFindVisibility),s={...s,filter:this.findFilter},this.disposables.add(this.findFilter)),this.model=this.createModel(e,s),this.treeDelegate=new Px(i);let l=this.disposables.add(new PL(this.onDidChangeActiveNodesRelay.event)),h=new av.Q();for(let e of(this.renderers=n.map(e=>new Pk(e,this.model,this.onDidChangeCollapseStateRelay.event,l,h,s)),this.renderers))this.disposables.add(e);if(this.focus=new PH(()=>this.view.getFocusedElements()[0],s.identityProvider),this.selection=new PH(()=>this.view.getSelectedElements()[0],s.identityProvider),this.anchor=new PH(()=>this.view.getAnchorElement(),s.identityProvider),this.view=new PU(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(o=()=>this.model,r=this.disposables,(a=s)&&{...a,identityProvider:a.identityProvider&&{getId:e=>a.identityProvider.getId(e.element),getGroupId:a.identityProvider.getGroupId?e=>a.identityProvider.getGroupId(e.element):void 0},dnd:a.dnd&&r.add(new PS(o,a.dnd)),multipleSelectionController:a.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>a.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>a.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:a.accessibilityProvider&&{...a.accessibilityProvider,getSetSize(e){let t=o(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount;},getPosInSet:e=>e.visibleChildIndex+1,isChecked:a.accessibilityProvider&&a.accessibilityProvider.isChecked?e=>a.accessibilityProvider.isChecked(e.element):void 0,getRole:a.accessibilityProvider&&a.accessibilityProvider.getRole?e=>a.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>a.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>a.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:a.accessibilityProvider&&a.accessibilityProvider.getWidgetRole?()=>a.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:a.accessibilityProvider&&a.accessibilityProvider.getAriaLevel?e=>a.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:a.accessibilityProvider.getActiveDescendantId&&(e=>a.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:a.keyboardNavigationLabelProvider&&{...a.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.setupModel(this.model),!1!==s.keyboardSupport){let e=iv.C.chain(this.view.onKeyDown,e=>e.filter(e=>!o$(e.target)).map(e=>new nx(e)));iv.C.chain(e,e=>e.filter(e=>15===e.keyCode))(this.onLeftArrow,this,this.disposables),iv.C.chain(e,e=>e.filter(e=>17===e.keyCode))(this.onRightArrow,this,this.disposables),iv.C.chain(e,e=>e.filter(e=>10===e.keyCode))(this.onSpace,this,this.disposables);}if(((_s$findWidgetEnabled2=s.findWidgetEnabled)!==null&&_s$findWidgetEnabled2!==void 0?_s$findWidgetEnabled2:!0)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider){let e={styles:s.findWidgetStyles,defaultFindMode:s.defaultFindMode,defaultFindMatchType:s.defaultFindMatchType,showNotFoundMessage:s.showNotFoundMessage,findWidgetContainer:s.findWidgetContainer};this.findController=this.disposables.add(new PN(this,this.findFilter,s.contextViewProvider,e)),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType;}else this.onDidChangeFindMode=iv.C.None,this.onDidChangeFindMatchType=iv.C.None;s.enableStickyScroll&&(this.stickyScrollController=new PO(this,this.model,this.view,this.renderers,this.treeDelegate,s),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=d6(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===tj.Always);}updateOptions(e={}){var _this$findController;for(let t of(this._options={...this._options,...e},this.renderers))t.updateOptions(e);this.view.updateOptions(e),(_this$findController=this.findController)!==null&&_this$findController!==void 0&&_this$findController.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===tj.Always);}get options(){return this._options;}updateStickyScroll(e){var _this$stickyScrollCon3;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new PO(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus,this._onDidChangeStickyScrollDomNode.fire(this.stickyScrollController.domNode)):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=iv.C.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0,this._onDidChangeStickyScrollDomNode.fire(void 0)),(_this$stickyScrollCon3=this.stickyScrollController)===null||_this$stickyScrollCon3===void 0?void 0:_this$stickyScrollCon3.updateOptions(e);}getHTMLElement(){return this.view.getHTMLElement();}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight;}get scrollTop(){return this.view.scrollTop;}set scrollTop(e){this.view.scrollTop=e;}get scrollHeight(){return this.view.scrollHeight;}get renderHeight(){return this.view.renderHeight;}get ariaLabel(){return this.view.ariaLabel;}set ariaLabel(e){this.view.ariaLabel=e;}domFocus(){var _this$stickyScrollCon4;(_this$stickyScrollCon4=this.stickyScrollController)!==null&&_this$stickyScrollCon4!==void 0&&_this$stickyScrollCon4.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus();}isDOMFocused(){return oa(this.getHTMLElement());}layout(e,t){this.view.layout(e,t);}style(e){var _e$treeStickyScrollBa,_e$listFocusOutline2;let t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { opacity: 1; border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { opacity: 1; border-color: ${e.treeIndentGuidesStroke}; }`));let n=(_e$treeStickyScrollBa=e.treeStickyScrollBackground)!==null&&_e$treeStickyScrollBa!==void 0?_e$treeStickyScrollBa:e.listBackground;n&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${n}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${n}; }`)),e.treeStickyScrollBorder&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));let s=Rs(e.listFocusAndSelectionOutline,Rs(e.listSelectionOutline,(_e$listFocusOutline2=e.listFocusOutline)!==null&&_e$listFocusOutline2!==void 0?_e$listFocusOutline2:""));s&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${s}; outline-offset: -1px;}`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),i.push(`.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.context-menu-visible .monaco-list${t}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e);}getParentElement(e){let t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element;}getFirstElementChild(e){return this.model.getFirstElementChild(e);}getNode(e){return this.model.getNode(e);}getNodeLocation(e){return this.model.getNodeLocation(e);}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t);}expand(e,t=!1){return this.model.setCollapsed(e,!1,t);}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t);}isCollapsible(e){return this.model.isCollapsible(e);}setCollapsible(e,t){return this.model.setCollapsible(e,t);}isCollapsed(e){return this.model.isCollapsed(e);}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter();}setSelection(e,t){this.eventBufferer.bufferEvents(()=>{let i=e.map(e=>this.model.getNode(e));this.selection.set(i,t);let n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(n,t,!0);});}getSelection(){return this.selection.get();}setFocus(e,t){this.eventBufferer.bufferEvents(()=>{let i=e.map(e=>this.model.getNode(e));this.focus.set(i,t);let n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(n,t,!0);});}focusNext(e=1,t=!1,i,n=om(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(e,t,i,n);}focusPrevious(e=1,t=!1,i,n=om(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(e,t,i,n);}focusNextPage(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(e,t);}focusPreviousPage(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(e,t,()=>{var _this$stickyScrollCon5,_this$stickyScrollCon6;return(_this$stickyScrollCon5=(_this$stickyScrollCon6=this.stickyScrollController)===null||_this$stickyScrollCon6===void 0?void 0:_this$stickyScrollCon6.height)!==null&&_this$stickyScrollCon5!==void 0?_this$stickyScrollCon5:0;});}focusLast(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){this.view.focusLast(e,t);}focusFirst(e,t=om(e)&&e.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(e,t);}getFocus(){return this.focus.get();}reveal(e,t){this.model.expandTo(e);let i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){let n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n);}else this.view.reveal(i,t);}onLeftArrow(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){let e=this.model.getParentNodeLocation(n);if(!e)return;let t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t]);}}onRightArrow(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(e=>e.visible))return;let[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t]);}}onSpace(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s);}setupModel(e){this.modelDisposables.clear(),this.modelDisposables.add(e.onDidSpliceRenderedNodes(({start:e,deleteCount:t,elements:i})=>this.view.splice(e,t,i)));let t=iv.C.forEach(e.onDidSpliceModel,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e);});},this.modelDisposables);t(()=>null,null,this.modelDisposables);let i=this.modelDisposables.add(new iv.S()),n=this.modelDisposables.add(new nI.h(0));this.modelDisposables.add(iv.C.any(t,this.focus.onDidChange,this.selection.onDidChange)(()=>{n.trigger(()=>{let e=new Set();for(let t of this.focus.getNodes())e.add(t);for(let t of this.selection.getNodes())e.add(t);i.fire([...e.values()]);});})),this.onDidChangeActiveNodesRelay.input=i.event,this.onDidChangeModelRelay.input=iv.C.signal(e.onDidSpliceModel),this.onDidChangeCollapseStateRelay.input=e.onDidChangeCollapseState,this.onDidChangeRenderNodeCountRelay.input=e.onDidChangeRenderNodeCount,this.onDidSpliceModelRelay.input=e.onDidSpliceModel,i_.e&&this.modelDisposables.add(e.onDidChangeCollapseState(e=>{let{node:t,deep:i}=e;t.collapsible&&!i&&this.isDOMFocused()&&dI(t.collapsed?(0,iM.M)(30,"collapsed"):(0,iM.M)(31,"expanded"));}));}dispose(){var _this$stickyScrollCon7;(0,O0.d)(this.disposables),(_this$stickyScrollCon7=this.stickyScrollController)!==null&&_this$stickyScrollCon7!==void 0&&_this$stickyScrollCon7.dispose(),this.view.dispose(),this.modelDisposables.dispose();}}class PK{constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map(),this.nodesByIdentity=new Map(),this.model=new PC(e,null,t),this.onDidSpliceModel=this.model.onDidSpliceModel,this.onDidSpliceRenderedNodes=this.model.onDidSpliceRenderedNodes,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare:(e,i)=>t.sorter.compare(e.element,i.element)}),this.identityProvider=t.identityProvider;}setChildren(e,t=rw.f.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i);}_setChildren(e,t=rw.f.empty(),i){let n=new Set(),s=new Set(),o=e=>{if(null!==e.element){var _i$onDidCreateNode;if(n.add(e.element),this.nodes.set(e.element,e),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();s.add(t),this.nodesByIdentity.set(t,e);}(_i$onDidCreateNode=i.onDidCreateNode)===null||_i$onDidCreateNode===void 0||_i$onDidCreateNode.call(i,e);}},r=e=>{if(null!==e.element){var _i$onDidDeleteNode;if(n.has(e.element)||this.nodes.delete(e.element),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();s.has(t)||this.nodesByIdentity.delete(t);}(_i$onDidDeleteNode=i.onDidDeleteNode)===null||_i$onDidDeleteNode===void 0||_i$onDidDeleteNode.call(i,e);}};this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:o,onDidDeleteNode:r});}preserveCollapseState(e=rw.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),rw.f.map(e,e=>{let t,i=this.nodes.get(e.element);if(!i&&this.identityProvider){let t=this.identityProvider.getId(e.element).toString();i=this.nodesByIdentity.get(t);}if(!i){let t;return t=void 0===e.collapsed?void 0:e.collapsed===tK.Collapsed||e.collapsed===tK.PreserveOrCollapsed||e.collapsed!==tK.Expanded&&e.collapsed!==tK.PreserveOrExpanded&&!!e.collapsed,{...e,children:this.preserveCollapseState(e.children),collapsed:t};}let n="boolean"==typeof e.collapsible?e.collapsible:i.collapsible;return t=void 0===e.collapsed||e.collapsed===tK.PreserveOrCollapsed||e.collapsed===tK.PreserveOrExpanded?i.collapsed:e.collapsed===tK.Collapsed||e.collapsed!==tK.Expanded&&!!e.collapsed,{...e,collapsible:n,collapsed:t,children:this.preserveCollapseState(e.children)};});}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t);}resort(e=null,t=!0){if(!this.sorter)return;let i=this.getElementLocation(e),n=this.model.getNode(i);this._setChildren(i,this.resortChildren(n,t),{});}resortChildren(e,t,i=!0){let n=[...e.children];return(t||i)&&(n=n.sort(this.sorter.compare.bind(this.sorter))),rw.f.map(n,e=>({element:e.element,collapsible:e.collapsible,collapsed:e.collapsed,children:this.resortChildren(e,t,!1)}));}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t);}has(e){return this.nodes.has(e);}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t);}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t);}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t);}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t);}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t);}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i);}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t);}refilter(){this.model.refilter();}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);return t;}getNodeLocation(e){return e.element;}getParentNodeLocation(e){if(null===e)throw new Pg(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element;}getElementLocation(e){if(null===e)return[];let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t);}}function Pq(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:rw.f.map(rw.f.from(e.children),Pq),collapsible:e.collapsible,collapsed:e.collapsed};}function Pj(e){let t,i,n=[e.element],s=e.incompressible||!1;for(;[i,t]=rw.f.consume(rw.f.from(e.children),2),1===i.length&&!i[0].incompressible;)e=i[0],n.push(e.element);return{element:{elements:n,incompressible:s},children:rw.f.map(rw.f.concat(i,t),Pj),collapsible:e.collapsible,collapsed:e.collapsed};}function PG(e){return function e(t,i=0){let n;return(n=i<t.element.elements.length-1?[e(t,i+1)]:rw.f.map(rw.f.from(t.children),t=>e(t,0)),0===i&&t.element.incompressible)?{element:t.element.elements[i],children:n,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[i],children:n,collapsible:t.collapsible,collapsed:t.collapsed};}(e,0);}class PQ{get onDidSpliceRenderedNodes(){return this.model.onDidSpliceRenderedNodes;}get onDidSpliceModel(){return this.model.onDidSpliceModel;}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState;}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount;}constructor(e,t={}){this.user=e,this.rootRef=null,this.nodes=new Map(),this.model=new PK(e,t),this.enabled=void 0===t.compressionEnabled||t.compressionEnabled,this.identityProvider=t.identityProvider;}setChildren(e,t=rw.f.empty(),i){let n,s=i.diffIdentityProvider&&{getId:e=>e.elements.map(e=>n.getId(e).toString()).join("\0"),getGroupId:(n=i.diffIdentityProvider).getGroupId?e=>n.getGroupId(e.elements[e.elements.length-1]):void 0};if(null===e){let e=rw.f.map(t,this.enabled?Pj:Pq);this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0});return;}let o=this.nodes.get(e);if(!o)throw new Pg(this.user,"Unknown compressed tree node");let r=this.model.getNode(o),a=this.model.getParentNodeLocation(o),l=this.model.getNode(a),h=function e(t,i,n){return t.element===i?{...t,children:n}:{...t,children:rw.f.map(rw.f.from(t.children),t=>e(t,i,n))};}(PG(r),e,t),d=(this.enabled?Pj:Pq)(h),c=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,ip.m)(d.element.elements,r.element.elements,c))return void this._setChildren(o,d.children||rw.f.empty(),{diffIdentityProvider:s,diffDepth:1});let u=l.children.map(e=>e===r?d:e);this._setChildren(l.element,u,{diffIdentityProvider:s,diffDepth:r.depth-l.depth});}isCompressionEnabled(){return this.enabled;}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let t=this.model.getNode().children,i=rw.f.map(t,PG),n=rw.f.map(i,e?Pj:Pq);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0});}_setChildren(e,t,i){let n=new Set(),s=e=>{for(let t of e.element.elements)n.add(t),this.nodes.set(t,e.element);},o=e=>{for(let t of e.element.elements)n.has(t)||this.nodes.delete(t);};this.model.setChildren(e,t,{...i,onDidCreateNode:s,onDidDeleteNode:o});}has(e){return this.nodes.has(e);}getListIndex(e){let t=this.getCompressedNode(e);return this.model.getListIndex(t);}getListRenderCount(e){let t=this.getCompressedNode(e);return this.model.getListRenderCount(t);}getNode(e){if(void 0===e)return this.model.getNode();let t=this.getCompressedNode(e);return this.model.getNode(t);}getNodeLocation(e){let t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1];}getParentNodeLocation(e){let t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1];}getFirstElementChild(e){let t=this.getCompressedNode(e);return this.model.getFirstElementChild(t);}isCollapsible(e){let t=this.getCompressedNode(e);return this.model.isCollapsible(t);}setCollapsible(e,t){let i=this.getCompressedNode(e);return this.model.setCollapsible(i,t);}isCollapsed(e){let t=this.getCompressedNode(e);return this.model.isCollapsed(t);}setCollapsed(e,t,i){let n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i);}expandTo(e){let t=this.getCompressedNode(e);this.model.expandTo(t);}rerender(e){let t=this.getCompressedNode(e);this.model.rerender(t);}refilter(){this.model.refilter();}resort(e=null,t=!0){let i=this.getCompressedNode(e);this.model.resort(i,t);}getCompressedNode(e){if(null===e)return null;let t=this.nodes.get(e);if(!t)throw new Pg(this.user,`Tree element not found: ${e}`);return t;}}let PZ=e=>e[e.length-1];class PY{get element(){return null===this.node.element?null:this.unwrapper(this.node.element);}get children(){return this.node.children.map(e=>new PY(this.unwrapper,e));}get depth(){return this.node.depth;}get visibleChildrenCount(){return this.node.visibleChildrenCount;}get visibleChildIndex(){return this.node.visibleChildIndex;}get collapsible(){return this.node.collapsible;}get collapsed(){return this.node.collapsed;}get visible(){return this.node.visible;}get filterData(){return this.node.filterData;}constructor(e,t){this.unwrapper=e,this.node=t;}}class PX{get onDidSpliceModel(){return iv.C.map(this.model.onDidSpliceModel,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}));}get onDidSpliceRenderedNodes(){return iv.C.map(this.model.onDidSpliceRenderedNodes,({start:e,deleteCount:t,elements:i})=>({start:e,deleteCount:t,elements:i.map(e=>this.nodeMapper.map(e))}));}get onDidChangeCollapseState(){return iv.C.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}));}get onDidChangeRenderNodeCount(){return iv.C.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e));}constructor(e,t={}){this.rootRef=null,this.elementMapper=t.elementMapper||PZ;let i=e=>this.elementMapper(e.elements);this.nodeMapper=new Pp(e=>new PY(i,e)),this.model=new PQ(e,{...t,identityProvider:t.identityProvider&&{getId:e=>t.identityProvider.getId(i(e)),getGroupId:t.identityProvider.getGroupId?e=>t.identityProvider.getGroupId(i(e)):void 0},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter(e,i){let n=e.elements;for(let e=0;e<n.length-1;e++){let s=t.filter.filter(n[e],i);i=Pv(P_(s)?s.visibility:s);}return t.filter.filter(n[n.length-1],i);}}});}setChildren(e,t=rw.f.empty(),i={}){this.model.setChildren(e,t,i);}isCompressionEnabled(){return this.model.isCompressionEnabled();}setCompressionEnabled(e){this.model.setCompressionEnabled(e);}has(e){return this.model.has(e);}getListIndex(e){return this.model.getListIndex(e);}getListRenderCount(e){return this.model.getListRenderCount(e);}getNode(e){return this.nodeMapper.map(this.model.getNode(e));}getNodeLocation(e){return e.element;}getParentNodeLocation(e){return this.model.getParentNodeLocation(e);}getFirstElementChild(e){let t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements);}isCollapsible(e){return this.model.isCollapsible(e);}setCollapsible(e,t){return this.model.setCollapsible(e,t);}isCollapsed(e){return this.model.isCollapsed(e);}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i);}expandTo(e){return this.model.expandTo(e);}rerender(e){return this.model.rerender(e);}refilter(){return this.model.refilter();}resort(e=null,t=!0){return this.model.resort(e,t);}getCompressedTreeNode(e=null){return this.model.getNode(e);}}class PJ extends P${get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState;}constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e;}setChildren(e,t=rw.f.empty(),i){this.model.setChildren(e,t,i);}rerender(e){void 0===e?this.view.rerender():this.model.rerender(e);}resort(e,t=!0){this.model.resort(e,t);}hasElement(e){return this.model.has(e);}createModel(e,t){return new PK(e,t);}}class P0{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider();}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState);}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)};}renderElement(e,t,i,n){let s=this.stickyScrollDelegate.getCompressedNode(e);s||(s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===s.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n));}disposeElement(e,t,i,n){var _this$renderer$dispos2,_this$renderer2,_this$renderer$dispos3,_this$renderer3;i.compressedTreeNode?(_this$renderer$dispos2=(_this$renderer2=this.renderer).disposeCompressedElements)===null||_this$renderer$dispos2===void 0?void 0:_this$renderer$dispos2.call(_this$renderer2,i.compressedTreeNode,t,i.data,n):(_this$renderer$dispos3=(_this$renderer3=this.renderer).disposeElement)===null||_this$renderer$dispos3===void 0?void 0:_this$renderer$dispos3.call(_this$renderer3,e,t,i.data,n);}disposeTemplate(e){this.renderer.disposeTemplate(e.data);}renderTwistie(e,t){var _this$renderer$render,_this$renderer$render2,_this$renderer4;return(_this$renderer$render=(_this$renderer$render2=(_this$renderer4=this.renderer).renderTwistie)===null||_this$renderer$render2===void 0?void 0:_this$renderer$render2.call(_this$renderer4,e,t))!==null&&_this$renderer$render!==void 0?_this$renderer$render:!1;}}!function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);o>3&&r&&Object.defineProperty(t,i,r);}([pH],P0.prototype,"compressedTreeNodeProvider",null);class P1{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map();}getCompressedNode(e){return this.compressedStickyNodes.get(e);}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;n<e.length;n++){let s=e[n],o=s.position+s.height;if(n+1<e.length&&o+e[n+1].height>i||n>=t-1&&t<e.length){let t=e.slice(0,n),i=e.slice(n);return[...t,this.compressStickyNodes(i)];}}return e;}compressStickyNodes(e){if(0===e.length)throw Error("Can't compress empty sticky nodes");let t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];let i=[];for(let n=0;n<e.length;n++){let s=e[n],o=t.getCompressedTreeNode(s.node.element);if(o.element){if(0!==n&&o.element.incompressible)break;i.push(...o.element.elements);}}if(i.length<2)return e[0];let n=e[e.length-1],s={...n.node,children:[],element:{elements:i,incompressible:!1}},o=new Proxy(e[0].node,{}),r={node:o,startIndex:e[0].startIndex,endIndex:n.endIndex,position:e[0].position,height:e[0].height,sourceNodeEnd:e[0].sourceNodeEnd,sourceNodePartiallyVisible:e.some(e=>e.sourceNodePartiallyVisible),hasExplicitHeight:e[0].hasExplicitHeight};return this.compressedStickyNodes.set(o,s),r;}}class P2 extends PJ{constructor(e,t,i,n,s={}){let o=()=>this,r=new P1(()=>this.model);super(e,t,i,n.map(e=>new P0(o,r,e)),{...(s&&{...s,keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(e){let t;try{t=o().getCompressedTreeNode(e);}catch{return s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e);}return 1===t.element.elements.length?s.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e):s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.element.elements);}}}),stickyScrollDelegate:r});}setChildren(e,t=rw.f.empty(),i){this.model.setChildren(e,t,i);}createModel(e,t){return new PX(e,t);}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled);}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e);}}function P3(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1};}function P5(e,t){return!!t.parent&&(t.parent===e||P5(e,t.parent));}class P6{get element(){return this.node.element.element;}get children(){return this.node.children.map(e=>new P6(e));}get depth(){return this.node.depth;}get visibleChildrenCount(){return this.node.visibleChildrenCount;}get visibleChildIndex(){return this.node.visibleChildIndex;}get collapsible(){return this.node.collapsible;}get collapsed(){return this.node.collapsed;}get visible(){return this.node.visible;}get filterData(){return this.node.filterData;}constructor(e){this.node=e;}}class P4{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map(),this.templateId=e.templateId;}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)};}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n);}renderTwistie(e,t){return e.slow?(t.classList.add(...eY.asClassNameArray(rC.f.treeItemLoading)),!0):(t.classList.remove(...eY.asClassNameArray(rC.f.treeItemLoading)),!1);}disposeElement(e,t,i,n){var _this$renderer$dispos4,_this$renderer5;(_this$renderer$dispos4=(_this$renderer5=this.renderer).disposeElement)===null||_this$renderer$dispos4===void 0||_this$renderer$dispos4.call(_this$renderer5,this.nodeMapper.map(e),t,i.templateData,n);}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData);}dispose(){this.renderedNodes.clear();}}function P9(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)};}function P8(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target};}class P7 extends RE{constructor(e){super(e.elements.map(e=>e.element)),this.data=e;}}function Fe(e){return e instanceof RE?new P7(e):e;}class Ft{constructor(e){this.dnd=e;}getDragURI(e){return this.dnd.getDragURI(e.element);}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t);}onDragStart(e,t){var _this$dnd$onDragStart4,_this$dnd9;(_this$dnd$onDragStart4=(_this$dnd9=this.dnd).onDragStart)===null||_this$dnd$onDragStart4===void 0||_this$dnd$onDragStart4.call(_this$dnd9,Fe(e),t);}onDragOver(e,t,i,n,s,o=!0){return this.dnd.onDragOver(Fe(e),t&&t.element,i,n,s);}drop(e,t,i,n,s){this.dnd.drop(Fe(e),t&&t.element,i,n,s);}onDragEnd(e){var _this$dnd$onDragEnd4,_this$dnd0;(_this$dnd$onDragEnd4=(_this$dnd0=this.dnd).onDragEnd)===null||_this$dnd$onDragEnd4===void 0||_this$dnd$onDragEnd4.call(_this$dnd0,e);}dispose(){this.dnd.dispose();}}class Fi extends PD{constructor(e,t,i){super(t,i),this.findProvider=e,this.isFindSessionActive=!1;}filter(e,t){let i=super.filter(e,t);return this.isFindSessionActive&&this.findMode!==tG.Highlight&&this.findProvider.isVisible?0===Pv(P_(i)?i.visibility:i)?0:this.findProvider.isVisible(e)?i:0:i;}}class Fn extends PN{constructor(e,t,i,n,s){super(e,i,n,s),this.findProvider=t,this.filter=i,this.activeSession=!1,this.asyncWorkInProgress=!1,this.disposables.add((0,i8.Q)(async()=>{var _this$findProvider$en,_this$findProvider;this.activeSession&&(await((_this$findProvider$en=(_this$findProvider=this.findProvider).endSession)===null||_this$findProvider$en===void 0?void 0:_this$findProvider$en.call(_this$findProvider)));}));}render(){if(this.asyncWorkInProgress||!this.activeFindMetadata)return;let e=0===this.activeFindMetadata.matchCount&&this.pattern.length>0;this.renderMessage(e),this.pattern.length&&this.alertResults(this.activeFindMetadata.matchCount);}shouldAllowFocus(e){return this.shouldFocusWhenNavigating(e);}shouldFocusWhenNavigating(e){var _e$element3;if(!this.activeSession||!this.activeFindMetadata)return!0;let t=(_e$element3=e.element)===null||_e$element3===void 0?void 0:_e$element3.element;return!!(t&&this.activeFindMetadata.isMatch(t))||!tS.isDefault(e.filterData);}}function Fs(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element),getGroupId:e.identityProvider.getGroupId?t=>e.identityProvider.getGroupId(t.element):void 0},dnd:e.dnd&&new Ft(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var _e$accessibilityProvi;return!!((_e$accessibilityProvi=e.accessibilityProvider)!==null&&_e$accessibilityProvi!==void 0&&_e$accessibilityProvi.isChecked(t.element));}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},stickyScrollNodeSourceRangeProvider:e.stickyScrollNodeSourceRangeProvider&&((t,i)=>e.stickyScrollNodeSourceRangeProvider(t.element,i)),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),twistieAdditionalCssClass:void 0===e.twistieAdditionalCssClass?void 0:t=>e.twistieAdditionalCssClass(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"==typeof e.defaultFindVisibility?e.defaultFindVisibility:void 0===e.defaultFindVisibility?2:e.defaultFindVisibility(t.element),stickyScrollDelegate:e.stickyScrollDelegate};}function Fo(e,t){t(e),e.children.forEach(e=>Fo(e,t));}class Fr{get onDidScroll(){return this.tree.onDidScroll;}get onDidChangeFocus(){return iv.C.map(this.tree.onDidChangeFocus,P9);}get onDidChangeSelection(){return iv.C.map(this.tree.onDidChangeSelection,P9);}get onMouseDblClick(){return iv.C.map(this.tree.onMouseDblClick,P8);}get onPointer(){return iv.C.map(this.tree.onPointer,P8);}get onDidFocus(){return this.tree.onDidFocus;}get onDidChangeModel(){return this.tree.onDidChangeModel;}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState;}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused;}get onDidDispose(){return this.tree.onDidDispose;}constructor(e,t,i,n,s,o={}){var _o$findWidgetEnabled;let r;this.user=e,this.dataSource=s,this.nodes=new Map(),this.subTreeRefreshPromises=new Map(),this.refreshPromises=new Map(),this._onDidRender=new iv.S(),this._onDidChangeNodeSlowState=new iv.S(),this.nodeMapper=new Pp(e=>new P6(e)),this.disposables=new i8.q(),this.identityProvider=o.identityProvider,this.autoExpandSingleChildren=void 0!==o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.getDefaultCollapseState=e=>o.collapseByDefault?o.collapseByDefault(e)?tK.PreserveOrCollapsed:tK.PreserveOrExpanded:void 0;let a=!1;if(o.findProvider&&((_o$findWidgetEnabled=o.findWidgetEnabled)!==null&&_o$findWidgetEnabled!==void 0?_o$findWidgetEnabled:!0)&&o.keyboardNavigationLabelProvider&&o.contextViewProvider&&(a=!0,r=new Fi(o.findProvider,o.keyboardNavigationLabelProvider,o.filter)),this.tree=this.createTree(e,t,i,n,{...o,findWidgetEnabled:!a,filter:r!==null&&r!==void 0?r:o.filter}),this.root=P3({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables),a){let e={styles:o.findWidgetStyles,showNotFoundMessage:o.showNotFoundMessage,defaultFindMatchType:o.defaultFindMatchType,defaultFindMode:o.defaultFindMode};this.findController=this.disposables.add(new Fn(this.tree,o.findProvider,r,this.tree.options.contextViewProvider,e)),this.focusNavigationFilter=e=>this.findController.shouldFocusWhenNavigating(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType;}else this.onDidChangeFindOpenState=this.tree.onDidChangeFindOpenState,this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType;}createTree(e,t,i,n,s){return new PJ(e,t,new Px(i),n.map(e=>new P4(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),Fs(s)||{});}updateOptions(e={}){this.findController&&(void 0!==e.defaultFindMode&&(this.findController.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.findController.matchType=e.defaultFindMatchType)),this.tree.updateOptions(e);}getHTMLElement(){return this.tree.getHTMLElement();}get scrollTop(){return this.tree.scrollTop;}set scrollTop(e){this.tree.scrollTop=e;}get scrollHeight(){return this.tree.scrollHeight;}get renderHeight(){return this.tree.renderHeight;}domFocus(){this.tree.domFocus();}layout(e,t){this.tree.layout(e,t);}style(e){this.tree.style(e);}getInput(){return this.root.element;}async setInput(e,t){this.cancelAllRefreshPromises(),this.root.element=e;let i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop);}cancelAllRefreshPromises(e=!1){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),e&&(this.subTreeRefreshPromises.forEach(e=>e.cancel()),this.subTreeRefreshPromises.clear());}async _updateChildren(e=this.root.element,t=!0,i=!1,n,s){if(void 0===this.root.element)throw new Pg(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await iv.C.toPromise(this._onDidRender.event));let o=this.getDataNode(e);if(await this.refreshAndRenderNode(o,t,n,s),i)try{this.tree.rerender(o);}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();let t=this.getDataNode(e);this.tree.rerender(t);}getNode(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i);}collapse(e,t=!1){let i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t);}async expand(e,t=!1){if(void 0===this.root.element)throw new Pg(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await iv.C.toPromise(this._onDidRender.event));let i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i)||(i.refreshPromise&&(await i.refreshPromise,await iv.C.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i)))return!1;let n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await i.refreshPromise,await iv.C.toPromise(this._onDidRender.event)),n;}setSelection(e,t){let i=e.map(e=>this.getDataNode(e));this.tree.setSelection(i,t);}getSelection(){return this.tree.getSelection().map(e=>e.element);}setFocus(e,t){let i=e.map(e=>this.getDataNode(e));this.tree.setFocus(i,t);}getFocus(){return this.tree.getFocus().map(e=>e.element);}reveal(e,t){this.tree.reveal(this.getDataNode(e),t);}getParentElement(e){let t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element;}getFirstElementChild(e=this.root.element){let t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element;}getDataNode(e){let t=this.nodes.get(e===this.root.element?null:e);if(!t){var _this$identityProvide;let t=(_this$identityProvide=this.identityProvider)===null||_this$identityProvide===void 0?void 0:_this$identityProvide.getId(e).toString();throw new Pg(this.user,`Data tree node not found${t?`: ${t}`:""}`);}return t;}async refreshAndRenderNode(e,t,i,n){this.disposables.isDisposed||(await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n));}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach((s,o)=>{!n&&(o===e||P5(o,e)||P5(e,o))&&(n=s.then(()=>this.refreshNode(e,t,i)));}),n)return n;if(e!==this.root&&this.tree.getNode(e).collapsed){e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,this.setChildren(e,[],t,i);return;}return this.doRefreshSubTree(e,t,i);}async doRefreshSubTree(e,t,i){let n=(0,nI.B)(async()=>{let n=await this.doRefreshNode(e,t,i);e.stale=!1,await nI.K.settled(n.map(e=>this.doRefreshSubTree(e,t,i)));});return e.refreshPromise=n,this.subTreeRefreshPromises.set(e,n),n.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e);}),n;}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){let t=this.doGetChildren(e);if((0,sI.O)(t))n=Promise.resolve(t);else{let i=(0,nI.W)(800);i.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e);},e=>null),n=t.finally(()=>i.cancel());}}else n=Promise.resolve(rw.f.empty());try{let s=await n;return this.setChildren(e,s,t,i);}catch(t){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,nf.F)(t))return[];throw t;}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e));}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;let i=this.dataSource.getChildren(e.element);return(0,sI.O)(i)?this.processChildren(i):(t=(0,nI.B)(async()=>this.processChildren(await i)),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e);}));}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(nf.C));}setChildren(e,t,i,n){let s=[...t];if(0===e.children.length&&0===s.length)return[];let o=new Map(),r=new Map();for(let t of e.children)o.set(t.element,t),this.identityProvider&&r.set(t.id,{node:t,collapsed:this.tree.hasElement(t)&&this.tree.isCollapsed(t)});let a=[],l=s.map(t=>{let s=!!this.dataSource.hasChildren(t);if(!this.identityProvider){let i=P3({element:t,parent:e,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&i.defaultCollapseState===tK.PreserveOrExpanded&&a.push(i),i;}let l=this.identityProvider.getId(t).toString(),h=r.get(l);if(h){let e=h.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=s,i?h.collapsed?(e.children.forEach(e=>Fo(e,e=>this.nodes.delete(e.element))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):s&&!h.collapsed&&a.push(e),e;}let d=P3({element:t,parent:e,id:l,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1?a.push(d):s&&d.defaultCollapseState===tK.PreserveOrExpanded&&a.push(d),d;});for(let e of o.values())Fo(e,e=>this.nodes.delete(e.element));for(let e of l)this.nodes.set(e.element,e);return(0,ip.r)(e.children,0,e.children.length,l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a;}render(e,t,i){let n=e.children.map(e=>this.asTreeElement(e,t)),s=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element),getGroupId:i.diffIdentityProvider.getGroupId?e=>i.diffIdentityProvider.getGroupId(e.element):void 0}};this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire();}asTreeElement(e,t){let i;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?rw.f.map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:i});}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e;}dispose(){this._onDidRender.dispose(),this._onDidChangeNodeSlowState.dispose(),this.disposables.dispose(),this.tree.dispose();}}class Fa{get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible};}get children(){return this.node.children.map(e=>new Fa(e));}get depth(){return this.node.depth;}get visibleChildrenCount(){return this.node.visibleChildrenCount;}get visibleChildIndex(){return this.node.visibleChildIndex;}get collapsible(){return this.node.collapsible;}get collapsed(){return this.node.collapsed;}get visible(){return this.node.visible;}get filterData(){return this.node.filterData;}constructor(e){this.node=e;}}class Fl{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map(),this.disposables=[],this.templateId=e.templateId;}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)};}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n);}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n);}renderTwistie(e,t){return e.slow?(t.classList.add(...eY.asClassNameArray(rC.f.treeItemLoading)),!0):(t.classList.remove(...eY.asClassNameArray(rC.f.treeItemLoading)),!1);}disposeElement(e,t,i,n){var _this$renderer$dispos5,_this$renderer6;(_this$renderer$dispos5=(_this$renderer6=this.renderer).disposeElement)===null||_this$renderer$dispos5===void 0||_this$renderer$dispos5.call(_this$renderer6,this.nodeMapper.map(e),t,i.templateData,n);}disposeCompressedElements(e,t,i,n){var _this$renderer$dispos6,_this$renderer7;(_this$renderer$dispos6=(_this$renderer7=this.renderer).disposeCompressedElements)===null||_this$renderer$dispos6===void 0||_this$renderer$dispos6.call(_this$renderer7,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n);}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData);}dispose(){this.renderedNodes.clear(),this.disposables=(0,i8.d)(this.disposables);}}class Fh extends Fr{constructor(e,t,i,n,s,o,r={}){super(e,t,i,s,o,r),this.compressionDelegate=n,this.compressibleNodeMapper=new Pp(e=>new Fa(e)),this.filter=r.filter;}createTree(e,t,i,n,s){let o;return new P2(e,t,new Px(i),n.map(e=>new Fl(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),(o=s&&Fs(s))&&{...o,keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&{...o.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:e=>s.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(e.map(e=>e.element))},stickyScrollDelegate:o.stickyScrollDelegate}||{});}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)};}render(e,t,i){if(!this.identityProvider)return super.render(e,t);let n=e=>this.identityProvider.getId(e).toString(),s=e=>{let t=new Set();for(let i of e){let e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(let i of e.element.elements)t.add(n(i.element));}return t;},o=s(this.tree.getSelection()),r=s(this.tree.getFocus());super.render(e,t,i);let a=this.getSelection(),l=!1,h=this.getFocus(),d=!1,c=e=>{let t=e.element;if(t)for(let e=0;e<t.elements.length;e++){let i=n(t.elements[e].element),s=t.elements[t.elements.length-1].element;o.has(i)&&-1===a.indexOf(s)&&(a.push(s),l=!0),r.has(i)&&-1===h.indexOf(s)&&(h.push(s),d=!0);}e.children.forEach(c);};c(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),d&&this.setFocus(h);}processChildren(e){return this.filter&&(e=rw.f.filter(e,e=>{var t;let i="boolean"==typeof(t=this.filter.filter(e,1))?+!!t:P_(t)?Pv(t.visibility):Pv(t);if(2===i)throw Error("Recursive tree visibility not supported in async data compressed trees");return 1===i;})),super.processChildren(e);}}class Fd extends P${constructor(e,t,i,n,s,o={}){super(e,t,i,n,o),this.user=e,this.dataSource=s,this.identityProvider=o.identityProvider;}createModel(e,t){return new PK(e,t);}}var Fc=i8,Fu=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},Fg=function(e,t){return function(i,n){t(i,n,e);};};let Fp=ra("listService");class Ff{get lastFocusedList(){return this._lastFocusedWidget;}constructor(){this.disposables=new Fc.q(),this.lists=[],this._lastFocusedWidget=void 0;}setLastFocusedList(e){var _this$_lastFocusedWid,_this$_lastFocusedWid2;e!==this._lastFocusedWidget&&((_this$_lastFocusedWid=this._lastFocusedWidget)!==null&&_this$_lastFocusedWid!==void 0&&_this$_lastFocusedWid.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,(_this$_lastFocusedWid2=this._lastFocusedWidget)===null||_this$_lastFocusedWid2===void 0?void 0:_this$_lastFocusedWid2.getHTMLElement().classList.add("last-focused"));}register(e,t){if(this.lists.some(t=>t.widget===e))throw Error("Cannot register the same widget multiple times");let i={widget:e,extraContextKeys:t};return this.lists.push(i),oa(e.getHTMLElement())&&this.setLastFocusedList(e),(0,Fc.W)(e.onDidFocus(()=>this.setLastFocusedList(e)),(0,Fc.Q)(()=>this.lists.splice(this.lists.indexOf(i),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(e=>e!==i),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0);}));}dispose(){this.disposables.dispose();}}let Fm=new r4("listScrollAtBoundary","none");rV.or(Fm.isEqualTo("top"),Fm.isEqualTo("both")),rV.or(Fm.isEqualTo("bottom"),Fm.isEqualTo("both"));let F_=new r4("listFocus",!0),Fv=new r4("treestickyScrollFocused",!1),Fb=new r4("listSupportsMultiselect",!0),FC=rV.and(F_,rV.not(T0),Fv.negate()),Fw=new r4("listHasSelectionOrFocus",!1),Fy=new r4("listDoubleSelection",!1),FS=new r4("listMultiSelection",!1),Fx=new r4("listSelectionNavigation",!1),FL=new r4("listSupportsFind",!0),Fk=new r4("treeElementCanCollapse",!1),FD=new r4("treeElementHasParent",!1),FM=new r4("treeElementCanExpand",!1),FI=new r4("treeElementHasChild",!1),FN=new r4("treeFindOpen",!1),FE="listTypeNavigationMode",FT="listAutomaticKeyboardNavigation";function FR(e,t){let i=e.createScoped(t.getHTMLElement());return F_.bindTo(i),i;}function FA(e,t){let i=Fm.bindTo(e),n=()=>{let e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none");};return n(),t.onDidScroll(n);}let FO="workbench.list.multiSelectModifier",FP="workbench.list.openMode",FF="workbench.list.horizontalScrolling",FB="workbench.list.defaultFindMode",FW="workbench.list.typeNavigationMode",FV="workbench.list.keyboardNavigation",FH="workbench.list.scrollByPage",Fz="workbench.list.defaultFindMatchType",FU="workbench.tree.indent",F$="workbench.tree.renderIndentGuides",FK="workbench.list.smoothScrolling",Fq="workbench.list.mouseWheelScrollSensitivity",Fj="workbench.list.fastScrollSensitivity",FG="workbench.tree.expandMode",FQ="workbench.tree.enableStickyScroll",FZ="workbench.tree.stickyScrollMaxItemCount";function FY(e){return"alt"===e.getValue(FO);}class FX extends Fc.N{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=FY(e),this.registerListeners();}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this.useAltAsMultipleSelectionModifier=FY(this.configurationService));}));}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:R0(e);}isSelectionRangeChangeEvent(e){return R1(e);}}function FJ(e,t){var _t$multipleSelectionC;var i;let n,s=e.get(lN),o=e.get(Ch),r=new Fc.q();return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>o.mightProducePrintableCharacter(e)},smoothScrolling:!!s.getValue(FK),mouseWheelScrollSensitivity:s.getValue(Fq),fastScrollSensitivity:s.getValue(Fj),multipleSelectionController:(_t$multipleSelectionC=t.multipleSelectionController)!==null&&_t$multipleSelectionC!==void 0?_t$multipleSelectionC:r.add(new FX(s)),keyboardNavigationEventFilter:(i=o,n=!1,e=>{if(e.toKeyCodeChord().isModifierKey())return!1;if(n)return n=!1,!1;let t=i.softDispatch(e,e.target);return 1===t.kind?(n=!0,!1):(n=!1,0===t.kind);}),scrollByPage:!!s.getValue(FH)},r];}let F0=class extends Ai{constructor(e,t,i,n,s,o,r,a,l){let h=void 0!==s.horizontalScrolling?s.horizontalScrolling:!!a.getValue(FF),[d,c]=l.invokeFunction(FJ,s);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(c),this.contextKeyService=FR(o,this),this.disposables.add(FA(this.contextKeyService,this)),this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this.listHasSelectionOrFocus=Fw.bindTo(this.contextKeyService),this.listDoubleSelection=Fy.bindTo(this.contextKeyService),this.listMultiSelection=FS.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=FY(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length);});})),this.disposables.add(this.onDidChangeFocus(()=>{let e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0);})),this.disposables.add(a.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(a));let t={};if(e.affectsConfiguration(FF)&&void 0===this.horizontalScrolling){let e=!!a.getValue(FF);t={...t,horizontalScrolling:e};}if(e.affectsConfiguration(FH)){let e=!!a.getValue(FH);t={...t,scrollByPage:e};}if(e.affectsConfiguration(FK)){let e=!!a.getValue(FK);t={...t,smoothScrolling:e};}if(e.affectsConfiguration(Fq)){let e=a.getValue(Fq);t={...t,mouseWheelScrollSensitivity:e};}if(e.affectsConfiguration(Fj)){let e=a.getValue(Fj);t={...t,fastScrollSensitivity:e};}Object.keys(t).length>0&&this.updateOptions(t);})),this.navigator=new F5(this,{configurationService:a,...s}),this.disposables.add(this.navigator);}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyles(e){this.style(e?AT(e):AE);}};F0=Fu([Fg(5,r9),Fg(6,Fp),Fg(7,lN),Fg(8,rr)],F0);let F1=class extends OA{constructor(e,t,i,n,s,o,r,a,l){let h=void 0!==s.horizontalScrolling?s.horizontalScrolling:!!a.getValue(FF),[d,c]=l.invokeFunction(FJ,s);super(e,t,i,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new Fc.q(),this.disposables.add(c),this.contextKeyService=FR(o,this),this.disposables.add(FA(this.contextKeyService,this.widget)),this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!s.selectionNavigation),this._useAltAsMultipleSelectionModifier=FY(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(a.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(a));let t={};if(e.affectsConfiguration(FF)&&void 0===this.horizontalScrolling){let e=!!a.getValue(FF);t={...t,horizontalScrolling:e};}if(e.affectsConfiguration(FH)){let e=!!a.getValue(FH);t={...t,scrollByPage:e};}if(e.affectsConfiguration(FK)){let e=!!a.getValue(FK);t={...t,smoothScrolling:e};}if(e.affectsConfiguration(Fq)){let e=a.getValue(Fq);t={...t,mouseWheelScrollSensitivity:e};}if(e.affectsConfiguration(Fj)){let e=a.getValue(Fj);t={...t,fastScrollSensitivity:e};}Object.keys(t).length>0&&this.updateOptions(t);})),this.navigator=new F5(this,{configurationService:a,...s}),this.disposables.add(this.navigator);}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyles(e){this.style(e?AT(e):AE);}dispose(){this.disposables.dispose(),super.dispose();}};F1=Fu([Fg(5,r9),Fg(6,Fp),Fg(7,lN),Fg(8,rr)],F1);let F2=class extends OJ{constructor(e,t,i,n,s,o,r,a,l,h){let d=void 0!==o.horizontalScrolling?o.horizontalScrolling:!!l.getValue(FF),[c,u]=h.invokeFunction(FJ,o);super(e,t,i,n,s,{keyboardSupport:!1,...c,horizontalScrolling:d}),this.disposables.add(u),this.contextKeyService=FR(r,this),this.disposables.add(FA(this.contextKeyService,this)),this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listHasSelectionOrFocus=Fw.bindTo(this.contextKeyService),this.listDoubleSelection=Fy.bindTo(this.contextKeyService),this.listMultiSelection=FS.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=FY(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length);});})),this.disposables.add(this.onDidChangeFocus(()=>{let e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0);})),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(l));let t={};if(e.affectsConfiguration(FF)&&void 0===this.horizontalScrolling){let e=!!l.getValue(FF);t={...t,horizontalScrolling:e};}if(e.affectsConfiguration(FH)){let e=!!l.getValue(FH);t={...t,scrollByPage:e};}if(e.affectsConfiguration(FK)){let e=!!l.getValue(FK);t={...t,smoothScrolling:e};}if(e.affectsConfiguration(Fq)){let e=l.getValue(Fq);t={...t,mouseWheelScrollSensitivity:e};}if(e.affectsConfiguration(Fj)){let e=l.getValue(Fj);t={...t,fastScrollSensitivity:e};}Object.keys(t).length>0&&this.updateOptions(t);})),this.navigator=new F6(this,{configurationService:l,...o}),this.disposables.add(this.navigator);}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyles(e){this.style(e?AT(e):AE);}dispose(){this.disposables.dispose(),super.dispose();}};F2=Fu([Fg(6,r9),Fg(7,Fp),Fg(8,lN),Fg(9,rr)],F2);class F3 extends Fc.N{constructor(e,t){var _t$openOnSingleClick;super(),this.widget=e,this._onDidOpen=this._register(new iv.S()),this.onDidOpen=this._onDidOpen.event,this._register(iv.C.filter(this.widget.onDidChangeSelection,e=>om(e.browserEvent))(e=>this.onSelectionFromKeyboard(e))),this._register(this.widget.onPointer(e=>this.onPointer(e.element,e.browserEvent))),this._register(this.widget.onMouseDblClick(e=>this.onMouseDblClick(e.element,e.browserEvent))),"boolean"!=typeof(t===null||t===void 0?void 0:t.openOnSingleClick)&&t!==null&&t!==void 0&&t.configurationService?(this.openOnSingleClick=(t===null||t===void 0?void 0:t.configurationService.getValue(FP))!=="doubleClick",this._register(t===null||t===void 0?void 0:t.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(FP)&&(this.openOnSingleClick=(t===null||t===void 0?void 0:t.configurationService.getValue(FP))!=="doubleClick");}))):this.openOnSingleClick=(_t$openOnSingleClick=t===null||t===void 0?void 0:t.openOnSingleClick)!==null&&_t$openOnSingleClick!==void 0?_t$openOnSingleClick:!0;}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;let t=e.browserEvent,i="boolean"!=typeof t.preserveFocus||t.preserveFocus,n="boolean"==typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent);}onPointer(e,t){if(!this.openOnSingleClick||2===t.detail)return;let i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t);}onMouseDblClick(e,t){if(!t)return;let i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;let n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t);}_open(e,t,i,n,s){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s});}}class F5 extends F3{constructor(e,t){super(e,t),this.widget=e;}getSelectedElement(){return this.widget.getSelectedElements()[0];}}class F6 extends F3{constructor(e,t){super(e,t);}getSelectedElement(){return this.widget.getSelectedElements()[0];}}class F4 extends F3{constructor(e,t){super(e,t);}getSelectedElement(){var _this$widget$getSelec;return(_this$widget$getSelec=this.widget.getSelection()[0])!==null&&_this$widget$getSelec!==void 0?_this$widget$getSelec:void 0;}}let F9=class extends PJ{get onDidOpen(){return this.internals.onDidOpen;}constructor(e,t,i,n,s,o,r,a,l){let{options:h,getTypeNavigationMode:d,disposable:c}=o.invokeFunction(Bs,s);super(e,t,i,n,h),this.disposables.add(c),this.internals=new Bo(this,s,d,s.overrideStyles,r,a,l),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};F9=Fu([Fg(5,rr),Fg(6,r9),Fg(7,Fp),Fg(8,lN)],F9);let F8=class extends P2{constructor(e,t,i,n,s,o,r,a,l){let{options:h,getTypeNavigationMode:d,disposable:c}=o.invokeFunction(Bs,s);super(e,t,i,n,h),this.disposables.add(c),this.internals=new Bo(this,s,d,s.overrideStyles,r,a,l),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};F8=Fu([Fg(5,rr),Fg(6,r9),Fg(7,Fp),Fg(8,lN)],F8);let F7=class extends Fd{constructor(e,t,i,n,s,o,r,a,l,h){let{options:d,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Bs,o);super(e,t,i,n,s,d),this.disposables.add(u),this.internals=new Bo(this,o,c,o.overrideStyles,a,l,h),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};F7=Fu([Fg(6,rr),Fg(7,r9),Fg(8,Fp),Fg(9,lN)],F7);let Be=class extends Fr{get onDidOpen(){return this.internals.onDidOpen;}constructor(e,t,i,n,s,o,r,a,l,h){let{options:d,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Bs,o);super(e,t,i,n,s,d),this.disposables.add(u),this.internals=new Bo(this,o,c,o.overrideStyles,a,l,h),this.disposables.add(this.internals);}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e);}};Be=Fu([Fg(6,rr),Fg(7,r9),Fg(8,Fp),Fg(9,lN)],Be);let Bt=class extends Fh{constructor(e,t,i,n,s,o,r,a,l,h,d){let{options:c,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Bs,r);super(e,t,i,n,s,o,c),this.disposables.add(g),this.internals=new Bo(this,r,u,r.overrideStyles,l,h,d),this.disposables.add(this.internals);}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e);}};function Bi(e){let t=e.getValue(FB);if("highlight"===t)return tG.Highlight;if("filter"===t)return tG.Filter;let i=e.getValue(FV);return"simple"===i||"highlight"===i?tG.Highlight:"filter"===i?tG.Filter:void 0;}function Bn(e){let t=e.getValue(Fz);return"fuzzy"===t?tQ.Fuzzy:"contiguous"===t?tQ.Contiguous:void 0;}function Bs(e,t){var _t$defaultFindMode,_t$defaultFindMatchTy,_t$expandOnlyOnTwisti,_t$enableStickyScroll,_t$stickyScrollMaxIte;let i=e.get(lN),n=e.get(kP),s=e.get(r9),o=e.get(rr),r=void 0!==t.horizontalScrolling?t.horizontalScrolling:!!i.getValue(FF),[a,l]=o.invokeFunction(FJ,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue(F$);return{getTypeNavigationMode:()=>{let e=s.getContextKeyValue(FE);if("automatic"===e)return tF.Automatic;if("trigger"===e||!1===s.getContextKeyValue(FT))return tF.Trigger;let t=i.getValue(FW);return"automatic"===t?tF.Automatic:"trigger"===t?tF.Trigger:void 0;},disposable:l,options:{keyboardSupport:!1,...a,indent:"number"==typeof i.getValue(FU)?i.getValue(FU):void 0,renderIndentGuides:d,smoothScrolling:!!i.getValue(FK),defaultFindMode:(_t$defaultFindMode=t.defaultFindMode)!==null&&_t$defaultFindMode!==void 0?_t$defaultFindMode:Bi(i),defaultFindMatchType:(_t$defaultFindMatchTy=t.defaultFindMatchType)!==null&&_t$defaultFindMatchTy!==void 0?_t$defaultFindMatchTy:Bn(i),horizontalScrolling:r,scrollByPage:!!i.getValue(FH),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(_t$expandOnlyOnTwisti=t.expandOnlyOnTwistieClick)!==null&&_t$expandOnlyOnTwisti!==void 0?_t$expandOnlyOnTwisti:"doubleClick"===i.getValue(FG),contextViewProvider:n,findWidgetStyles:AI,enableStickyScroll:(_t$enableStickyScroll=t.enableStickyScroll)!==null&&_t$enableStickyScroll!==void 0?_t$enableStickyScroll:!!i.getValue(FQ),stickyScrollMaxItemCount:(_t$stickyScrollMaxIte=t.stickyScrollMaxItemCount)!==null&&_t$stickyScrollMaxIte!==void 0?_t$stickyScrollMaxIte:Number(i.getValue(FZ))}};}Bt=Fu([Fg(7,rr),Fg(8,r9),Fg(9,Fp),Fg(10,lN)],Bt);let Bo=class{get onDidOpen(){return this.navigator.onDidOpen;}constructor(e,t,i,n,s,o,r){var _t$findWidgetEnabled;this.tree=e,this.disposables=[],this.contextKeyService=FR(s,e),this.disposables.push(FA(this.contextKeyService,e)),this.listSupportsMultiSelect=Fb.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),Fx.bindTo(this.contextKeyService).set(!!t.selectionNavigation),this.listSupportFindWidget=FL.bindTo(this.contextKeyService),this.listSupportFindWidget.set((_t$findWidgetEnabled=t.findWidgetEnabled)!==null&&_t$findWidgetEnabled!==void 0?_t$findWidgetEnabled:!0),this.hasSelectionOrFocus=Fw.bindTo(this.contextKeyService),this.hasDoubleSelection=Fy.bindTo(this.contextKeyService),this.hasMultiSelection=FS.bindTo(this.contextKeyService),this.treeElementCanCollapse=Fk.bindTo(this.contextKeyService),this.treeElementHasParent=FD.bindTo(this.contextKeyService),this.treeElementCanExpand=FM.bindTo(this.contextKeyService),this.treeElementHasChild=FI.bindTo(this.contextKeyService),this.treeFindOpen=FN.bindTo(this.contextKeyService),this.treeStickyScrollFocused=Fv.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=FY(r),this.updateStyleOverrides(n);let a=()=>{let t=e.getFocus()[0];if(!t)return;let i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t));},l=new Set();l.add(FE),l.add(FT),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection(()=>{let t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length);});}),e.onDidChangeFocus(()=>{let t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),a();}),e.onDidChangeCollapseState(a),e.onDidChangeModel(a),e.onDidChangeFindOpenState(e=>this.treeFindOpen.set(e)),e.onDidChangeStickyScrollFocused(e=>this.treeStickyScrollFocused.set(e)),r.onDidChangeConfiguration(n=>{let s={};if(n.affectsConfiguration(FO)&&(this._useAltAsMultipleSelectionModifier=FY(r)),n.affectsConfiguration(FU)){let e=r.getValue(FU);s={...s,indent:e};}if(n.affectsConfiguration(F$)&&void 0===t.renderIndentGuides){let e=r.getValue(F$);s={...s,renderIndentGuides:e};}if(n.affectsConfiguration(FK)){let e=!!r.getValue(FK);s={...s,smoothScrolling:e};}if(n.affectsConfiguration(FB)||n.affectsConfiguration(FV)){let e=Bi(r);s={...s,defaultFindMode:e};}if(n.affectsConfiguration(FW)||n.affectsConfiguration(FV)){let e=i();s={...s,typeNavigationMode:e};}if(n.affectsConfiguration(Fz)){let e=Bn(r);s={...s,defaultFindMatchType:e};}if(n.affectsConfiguration(FF)&&void 0===t.horizontalScrolling){let e=!!r.getValue(FF);s={...s,horizontalScrolling:e};}if(n.affectsConfiguration(FH)){let e=!!r.getValue(FH);s={...s,scrollByPage:e};}if(n.affectsConfiguration(FG)&&void 0===t.expandOnlyOnTwistieClick&&(s={...s,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(FG)}),n.affectsConfiguration(FQ)&&void 0===t.enableStickyScroll){let e=r.getValue(FQ);s={...s,enableStickyScroll:e};}if(n.affectsConfiguration(FZ)&&void 0===t.stickyScrollMaxItemCount){let e=Math.max(1,r.getValue(FZ));s={...s,stickyScrollMaxItemCount:e};}if(n.affectsConfiguration(Fq)){let e=r.getValue(Fq);s={...s,mouseWheelScrollSensitivity:e};}if(n.affectsConfiguration(Fj)){let e=r.getValue(Fj);s={...s,fastScrollSensitivity:e};}Object.keys(s).length>0&&e.updateOptions(s);}),this.contextKeyService.onDidChangeContext(t=>{t.affectsSome(l)&&e.updateOptions({typeNavigationMode:i()});})),this.navigator=new F4(e,{configurationService:r,...t}),this.disposables.push(this.navigator);}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport);}updateStyleOverrides(e){this.tree.style(e?AT(e):AE);}dispose(){this.disposables=(0,Fc.d)(this.disposables);}};Bo=Fu([Fg(4,r9),Fg(5,Fp),Fg(6,lN)],Bo),ai.as(lZ.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,iM.M)(1801,"Workbench"),type:"object",properties:{[FO]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,iM.M)(1802,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,iM.M)(1803,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,iM.M)(1804,"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[FP]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,iM.M)(1805,"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[FF]:{type:"boolean",default:!1,description:(0,iM.M)(1806,"Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[FH]:{type:"boolean",default:!1,description:(0,iM.M)(1807,"Controls whether clicks in the scrollbar scroll page by page.")},[FU]:{type:"number",default:8,minimum:4,maximum:40,description:(0,iM.M)(1808,"Controls tree indentation in pixels.")},[F$]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,iM.M)(1809,"Controls whether the tree should render indent guides.")},[FK]:{type:"boolean",default:!1,description:(0,iM.M)(1810,"Controls whether lists and trees have smooth scrolling.")},[Fq]:{type:"number",default:1,markdownDescription:(0,iM.M)(1811,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Fj]:{type:"number",default:5,markdownDescription:(0,iM.M)(1812,"Scrolling speed multiplier when pressing `Alt`.")},[FB]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,iM.M)(1813,"Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,iM.M)(1814,"Filter elements when searching.")],default:"highlight",description:(0,iM.M)(1815,"Controls the default find mode for lists and trees in the workbench.")},[FV]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,iM.M)(1816,"Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,iM.M)(1817,"Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,iM.M)(1818,"Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,iM.M)(1819,"Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,iM.M)(1820,"Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[Fz]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,iM.M)(1821,"Use fuzzy matching when searching."),(0,iM.M)(1822,"Use contiguous matching when searching.")],default:"fuzzy",description:(0,iM.M)(1823,"Controls the type of matching used when searching lists and trees in the workbench.")},[FG]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,iM.M)(1824,"Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[FQ]:{type:"boolean",default:!0,description:(0,iM.M)(1825,"Controls whether sticky scrolling is enabled in trees.")},[FZ]:{type:"number",minimum:1,default:7,markdownDescription:(0,iM.M)(1826,"Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[FW]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,iM.M)(1827,"Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}}),e.s(["k",0,Fp,"r",0,Ff,"Y",0,Be,"p",0,FC,"e",0,F9,"O",0,Fk,"l",0,FM],2554);var Br=i8;class Ba extends Br.N{constructor(e,t=[]){super(),this.logger=new aq([e,...t]),this._register(e.onDidChangeLogLevel(e=>this.setLevel(e)));}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel;}setLevel(e){this.logger.setLevel(e);}getLevel(){return this.logger.getLevel();}trace(e,...t){this.logger.trace(e,...t);}debug(e,...t){this.logger.debug(e,...t);}info(e,...t){this.logger.info(e,...t);}warn(e,...t){this.logger.warn(e,...t);}error(e,...t){this.logger.error(e,...t);}}(eR=tY||(tY={}))[eR.Hint=1]="Hint",eR[eR.Info=2]="Info",eR[eR.Warning=4]="Warning",eR[eR.Error=8]="Error",(eA=tY||(tY={})).compare=function(e,t){return t-e;},(A=Object.create(null))[eA.Error]=(0,iM.M)(1828,"Error"),A[eA.Warning]=(0,iM.M)(1829,"Warning"),A[eA.Info]=(0,iM.M)(1830,"Info"),eA.toString=function(e){return A[e]||"";},(O=Object.create(null))[eA.Error]=(0,iM.M)(1831,"Errors"),O[eA.Warning]=(0,iM.M)(1832,"Warnings"),O[eA.Info]=(0,iM.M)(1833,"Infos"),eA.toStringPlural=function(e){return O[e]||"";},eA.fromSeverity=function(e){switch(e){case bz.Error:return eA.Error;case bz.Warning:return eA.Warning;case bz.Info:return eA.Info;case bz.Ignore:return eA.Hint;}},eA.toSeverity=function(e){switch(e){case eA.Error:return bz.Error;case eA.Warning:return bz.Warning;case eA.Info:return bz.Info;case eA.Hint:return bz.Ignore;}};var Bl=tX||(tX={});function Bh(e,t){let i=[""];return e.source?i.push(e.source.replace("¦","\\¦")):i.push(""),e.code?"string"==typeof e.code?i.push(e.code.replace("¦","\\¦")):i.push(e.code.value.replace("¦","\\¦")):i.push(""),void 0!==e.severity&&null!==e.severity?i.push(tY.toString(e.severity)):i.push(""),e.message&&t?i.push(e.message.replace("¦","\\¦")):i.push(""),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(""),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(""),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(""),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(""),i.push(""),i.join("¦");}Bl.makeKey=function(e){return Bh(e,!0);},Bl.makeKeyOptionalMessage=Bh;let Bd=ra("markerService");e.s(["O",0,tX,"W",0,Bd,"H",0,tY],3544);let Bc=new Set([nT.I.inMemory,nT.I.vscodeSourceControl,nT.I.walkThrough,nT.I.walkThroughSnippet,nT.I.vscodeChatCodeBlock,nT.I.vscodeTerminal]);class Bu{constructor(){this._byResource=new av._(),this._byOwner=new Map();}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map(),this._byResource.set(e,n)),n.set(t,i);let s=this._byOwner.get(t);s||(s=new av._(),this._byOwner.set(t,s)),s.set(e,i);}get(e,t){let i=this._byResource.get(e);return i===null||i===void 0?void 0:i.get(t);}delete(e,t){let i=!1,n=!1,s=this._byResource.get(e);s&&(i=s.delete(t));let o=this._byOwner.get(t);if(o&&(n=o.delete(e)),i!==n)throw Error("illegal state");return i&&n;}values(e){var _this$_byOwner$get$va,_this$_byOwner$get,_this$_byResource$get,_this$_byResource$get2;return"string"==typeof e?(_this$_byOwner$get$va=(_this$_byOwner$get=this._byOwner.get(e))===null||_this$_byOwner$get===void 0?void 0:_this$_byOwner$get.values())!==null&&_this$_byOwner$get$va!==void 0?_this$_byOwner$get$va:rw.f.empty():ne.m.isUri(e)?(_this$_byResource$get=(_this$_byResource$get2=this._byResource.get(e))===null||_this$_byResource$get2===void 0?void 0:_this$_byResource$get2.values())!==null&&_this$_byResource$get!==void 0?_this$_byResource$get:rw.f.empty():rw.f.map(rw.f.concat(...this._byOwner.values()),e=>e[1]);}}class Bg{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new av._(),this._service=e,this._subscription=e.onMarkerChanged(this._update,this);}dispose(){this._subscription.dispose();}_update(e){for(let t of e){let e=this._data.get(t);e&&this._substract(e);let i=this._resourceStats(t);this._add(i),this._data.set(t,i);}}_resourceStats(e){let t={errors:0,warnings:0,infos:0,unknowns:0};if(Bc.has(e.scheme))return t;for(let{severity:i}of this._service.read({resource:e}))i===tY.Error?t.errors+=1:i===tY.Warning?t.warnings+=1:i===tY.Info?t.infos+=1:t.unknowns+=1;return t;}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns;}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns;}}class Bp{constructor(){this._onMarkerChanged=new iv.M({merge:Bp._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Bu(),this._stats=new Bg(this),this._filteredResources=new av._();}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose();}remove(e,t){for(let i of t||[])this.changeOne(e,i,[]);}changeOne(e,t,i){if((0,ip.w)(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{let n=[];for(let s of i){let i=Bp._toMarker(e,t,s);i&&n.push(i);}this._data.set(t,e,n),this._onMarkerChanged.fire([t]);}}static _toMarker(e,t,i){let{code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:h,endColumn:d,relatedInformation:c,modelVersionId:u,tags:g,origin:p}=i;if(o)return l=l>0?l:1,h=h>=(a=a>0?a:1)?h:a,d=d>0?d:l,{resource:t,owner:e,code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:h,endColumn:d,relatedInformation:c,modelVersionId:u,tags:g,origin:p};}changeAll(e,t){let i=[],n=this._data.values(e);if(n)for(let t of n){let n=rw.f.first(t);n&&(i.push(n.resource),this._data.delete(n.resource,e));}if((0,ip.e)(t)){let n=new av._();for(let{resource:s,marker:o}of t){let t=Bp._toMarker(e,s,o);if(!t)continue;let r=n.get(s);r?r.push(t):(n.set(s,[t]),i.push(s));}for(let[t,i]of n)this._data.set(t,e,i);}i.length>0&&this._onMarkerChanged.fire(i);}_createFilteredMarker(e,t){let i=1===t.length?(0,iM.M)(1834,'Problems are paused because: "{0}"',t[0]):(0,iM.M)(1835,'Problems are paused because: "{0}" and {1} more',t[0],t.length-1);return{owner:"markersFilter",resource:e,severity:tY.Info,message:i,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1};}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:s}=e;if((!s||s<0)&&(s=-1),t&&i){let o=e.ignoreResourceFilters?void 0:this._filteredResources.get(i);if(o!==null&&o!==void 0&&o.length)return[this._createFilteredMarker(i,o)];let r=this._data.get(i,t);if(!r)return[];let a=[];for(let t of r){if(s>0&&a.length===s)break;let o=e.ignoreResourceFilters?void 0:this._filteredResources.get(i);o!==null&&o!==void 0&&o.length?a.push(this._createFilteredMarker(i,o)):Bp._accept(t,n)&&a.push(t);}return a;}{let o=t||i?this._data.values(i!==null&&i!==void 0?i:t):this._data.values(),r=[],a=new av.f();for(let t of o)for(let i of t){if(a.has(i.resource))continue;if(s>0&&r.length===s)break;let t=e.ignoreResourceFilters?void 0:this._filteredResources.get(i.resource);t!==null&&t!==void 0&&t.length?(r.push(this._createFilteredMarker(i.resource,t)),a.add(i.resource)):Bp._accept(i,n)&&r.push(i);}return r;}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity;}static _merge(e){let t=new av._();for(let i of e)for(let e of i)t.set(e,!0);return Array.from(t.keys());}}let Bf=ra("progressService");class Bm{constructor(e){this.callback=e;}report(e){this._value=e,this.callback(this._value);}}_Bm=Bm;_Bm.None=Object.freeze({report(){}});let B_=ra("editorProgressService");e.s(["H",0,B_,"h",0,Bf,"e",0,Bm],38995);class Bv{constructor(){this._modifierObservables=new WeakMap();}readModifierKeyStatus(e,t){let i=e instanceof Window?e:sT(e),n=this._modifierObservables.get(i);if(!n){let e=oP.getInstance();n=sf(this,e.event,()=>({ctrlKey:e.keyStatus.ctrlKey,shiftKey:e.keyStatus.shiftKey,altKey:e.keyStatus.altKey,metaKey:e.keyStatus.metaKey})),this._modifierObservables.set(i,n);}return n.read(t);}createFocusTracker(e,t){let i=t.add(oS(e)),n=sc("isFocused",(e=>{if(e instanceof Window)return e.document.hasFocus();let t=e.getRootNode()instanceof ShadowRoot?e.getRootNode():null,i=t?t.activeElement:e.ownerDocument.activeElement;return e.contains(i);})(e));return t.add(i.onDidFocus(()=>n.set(!0,void 0))),t.add(i.onDidBlur(()=>n.set(!1,void 0))),n;}createHoverTracker(e,t){let i=sc("isHovered",!1),n=()=>i.set(!0,void 0),s=()=>i.set(!1,void 0);return e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",s),t.add({dispose:()=>{e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",s);}}),i;}createDomFocusTracker(e){return oS(e);}}lW(CV,Bv,1);let Bb=ra("contextService");function BC(e){return"string"==typeof(e===null||e===void 0?void 0:e.id)&&ne.m.isUri(e.uri);}let Bw={id:"empty-window"};class By{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name;}toJSON(){return{uri:this.uri,name:this.name,index:this.index};}}(0,iM.M)(2152,"Code Workspace");let BS="4064f6ec-cb38-4ad0-af64-ee6467e63c82";e.s(["a",0,Bb,"b",0,BS,"L",0,"code-workspace","c",0,By,"T",0,function(e){var _t24;var t;return"string"==typeof(e===null||e===void 0?void 0:e.id)&&!BC(e)&&(t=e,!("string"==typeof((_t24=t)===null||_t24===void 0?void 0:_t24.id)&&ne.m.isUri(t.configPath)));},"o",0,BC,"U",0,function(e,t){return"string"==typeof e||void 0===e?"string"==typeof e?{id:(0,ab.F)(e)}:Bw:e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:{id:e.id};}],82747);let Bx=ra("workspaceTrustManagementService"),BL=ra("IWorkspaceEditService");class Bk{constructor(e){this.metadata=e;}static convert(e){return e.edits.map(e=>{if(BD.is(e))return BD.lift(e);if(BM.is(e))return BM.lift(e);throw Error("Unsupported edit");});}}class BD extends Bk{static is(e){return e instanceof BD||(0,sI.C)(e)&&ne.m.isUri(e.resource)&&(0,sI.C)(e.textEdit);}static lift(e){return e instanceof BD?e:new BD(e.resource,e.textEdit,e.versionId,e.metadata);}constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i;}}class BM extends Bk{static is(e){return e instanceof BM||(0,sI.C)(e)&&(!!e.newResource||!!e.oldResource);}static lift(e){return e instanceof BM?e:new BM(e.oldResource,e.newResource,e.options,e.metadata);}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i;}}e.s(["h",0,BL,"V",0,Bk,"y",0,BD],16931),(eO=tJ||(tJ={}))[eO.API=0]="API",eO[eO.USER=1]="USER";var BI=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},BN=function(e,t){return function(i,n){t(i,n,e);};};let BE=class{constructor(e){this._commandService=e;}async open(e,t){if(!(0,nT.y)(e,nT.I.command))return!1;if(!(t!==null&&t!==void 0&&t.allowCommands)||("string"==typeof e&&(e=ne.m.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path)))return!0;let i=[];try{i=Mq(decodeURIComponent(e.query));}catch{try{i=Mq(e.query);}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0;}};BE=BI([BN(0,ry)],BE);let BT=class{constructor(e){this._editorService=e;}async open(e,t){"string"==typeof e&&(e=ne.m.parse(e));let{selection:i,uri:n}=Ny(e);return(e=n).scheme===nT.I.file&&(e=aO(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t!==null&&t!==void 0&&t.fromUserGesture?tJ.USER:tJ.API,...(t===null||t===void 0?void 0:t.editorOptions)}},this._editorService.getFocusedCodeEditor(),t===null||t===void 0?void 0:t.openToSide),!0;}};function BR(e,t){return!!(t!==null&&t!==void 0&&t.openExternal)||(0,nT.t)(e,nT.I.mailto,nT.I.http,nT.I.https,nT.I.vsls);}BT=BI([BN(0,rl)],BT);let BA=class{constructor(e,t){this._openers=new rb.f(),this._validators=new rb.f(),this._resolvers=new rb.f(),this._resolvedUriTargets=new av._(e=>e.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new rb.f(),this._defaultExternalOpener={openExternal:async e=>((0,nT.t)(e,nT.I.http,nT.I.https)?oA(e):i9.location.href=e,!0)},this._externalResourceOpener={open:async(e,t)=>!!BR(e,t)&&(await this._doOpenExternal(e,t),!0)},this._openers.push(this._externalResourceOpener),this._openers.push(new BE(t)),this._openers.push(new BT(e));}registerOpener(e){return{dispose:this._openers.unshift(e)};}async open(e,t){let i,n="string"==typeof e?ne.m.parse(e):e;if(n.scheme===nT.I.internal)return!1;if(t!==null&&t!==void 0&&t.allowContributedOpeners&&t.allowContributedOpeners!==Nw&&BR(e,t)&&(i=await this._resolveExternalUriOpenTarget(e,t),await this._openWithContributedExternalOpeners(i,t)))return!0;if(!(t!==null&&t!==void 0&&t.skipValidation)){var _ref14,_i$validationTarget,_i4;let s=(_ref14=(_i$validationTarget=(_i4=i)===null||_i4===void 0?void 0:_i4.validationTarget)!==null&&_i$validationTarget!==void 0?_i$validationTarget:this._resolvedUriTargets.get(n))!==null&&_ref14!==void 0?_ref14:e;if(!(await this._validate(s,t)))return!1;}for(let n of this._openers){if(i&&n===this._externalResourceOpener)return this._openDefaultExternal(i);if(await n.open(e,t))return!0;}return!1;}async resolveExternalUri(e,t){for(let i of this._resolvers)try{let n=await i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n;}catch{}throw Error("Could not resolve external URI: "+e.toString());}async _resolveExternalUriOpenTarget(e,t){let i,n="string"==typeof e?ne.m.parse(e):e;try{i=(await this.resolveExternalUri(n,t)).resolved;}catch{i=n;}let s="string"==typeof e&&n.toString()===i.toString();return{sourceUri:n,href:s?e:encodeURI(i.toString(!0)),validationTarget:s?e:i};}async _openWithContributedExternalOpeners(e,t){let i="string"==typeof(t===null||t===void 0?void 0:t.allowContributedOpeners)?t.allowContributedOpeners:void 0;for(let t of this._externalOpeners)if(await t.openExternal(e.href,{sourceUri:e.sourceUri,preferredOpenerId:i},n8.c.None))return!0;return!1;}_openDefaultExternal(e){return this._defaultExternalOpener.openExternal(e.href,{sourceUri:e.sourceUri},n8.c.None);}async _doOpenExternal(e,t){let i=await this._resolveExternalUriOpenTarget(e,t);return this._openDefaultExternal(i);}async _validate(e,t){for(let i of this._validators)if(!(await i.shouldOpen(e,t)))return!1;return!0;}dispose(){this._validators.clear();}};BA=BI([BN(0,rl),BN(1,ry)],BA);let BO=ra("renameSymbolTrackerService");class BP{constructor(){this._trackedWord=sc(this,void 0),this.trackedWord=this._trackedWord,this._trackedWord.set(void 0,void 0);}}e.s(["s",0,BO,"r",0,BP],61173);let BF={enableSplitViewResizing:!0,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1,hideOriginalLineNumbers:!1},BB={...Object.freeze({id:"editor",order:5,type:"object",title:(0,iM.M)(168,"Editor"),scope:6}),properties:{"editor.tabSize":{type:"number",default:4,minimum:1,maximum:100,markdownDescription:(0,iM.M)(169,"The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:(0,iM.M)(170,'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(171,"Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:!0,markdownDescription:(0,iM.M)(172,"Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:!0,description:(0,iM.M)(173,"Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:!0,description:(0,iM.M)(174,"Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","offWithInlineSuggestions","currentDocument","matchingDocuments","allDocuments"],default:"offWithInlineSuggestions",enumDescriptions:[(0,iM.M)(175,"Turn off Word Based Suggestions."),(0,iM.M)(176,"Turn off Word Based Suggestions when Inline Suggestions are present."),(0,iM.M)(177,"Only suggest words from the active document."),(0,iM.M)(178,"Suggest words from all open documents of the same language."),(0,iM.M)(179,"Suggest words from all open documents.")],description:(0,iM.M)(180,"Controls whether completions should be computed based on words in the document and from which documents they are computed."),experiment:{mode:"auto"}},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[(0,iM.M)(181,"Semantic highlighting enabled for all color themes."),(0,iM.M)(182,"Semantic highlighting disabled for all color themes."),(0,iM.M)(183,"Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:(0,iM.M)(184,"Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(185,"Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:(0,iM.M)(186,"Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:(0,iM.M)(187,"Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:(0,iM.M)(188,"Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:(0,iM.M)(189,"Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(190,"Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `#editor.experimental.preferTreeSitter#` for specific languages will take precedence."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.css":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(191,"Controls whether tree sitter parsing should be turned on for css. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for css."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.typescript":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(192,"Controls whether tree sitter parsing should be turned on for typescript. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for typescript."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.ini":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(193,"Controls whether tree sitter parsing should be turned on for ini. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for ini."),tags:["experimental"],experiment:{mode:"auto"}},"editor.experimental.preferTreeSitter.regex":{type:"boolean",default:!1,markdownDescription:(0,iM.M)(194,"Controls whether tree sitter parsing should be turned on for regex. This will take precedence over `#editor.experimental.treeSitterTelemetry#` for regex."),tags:["experimental"],experiment:{mode:"auto"}},"editor.language.brackets":{type:["array","null"],default:null,description:(0,iM.M)(195,"Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:(0,iM.M)(196,"The opening bracket character or string sequence.")},{type:"string",description:(0,iM.M)(197,"The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:(0,iM.M)(198,"Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:(0,iM.M)(199,"The opening bracket character or string sequence.")},{type:"string",description:(0,iM.M)(200,"The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:BF.maxComputationTime,description:(0,iM.M)(201,"Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:BF.maxFileSize,description:(0,iM.M)(202,"Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:BF.renderSideBySide,description:(0,iM.M)(203,"Controls whether the diff editor shows the diff side by side or inline."),agentsWindow:{default:!0}},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:BF.renderSideBySideInlineBreakpoint,description:(0,iM.M)(204,"If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:BF.useInlineViewWhenSpaceIsLimited,description:(0,iM.M)(205,"If enabled and the editor width is too small, the inline view is used."),agentsWindow:{default:!0}},"diffEditor.hideOriginalLineNumbers":{type:["boolean","null"],default:null,description:(0,iM.M)(206,"Controls whether original line numbers are hidden in inline diffs. When set to null, uses the editor's default: hidden in compact multi diff editors and visible in other diff editors.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:BF.renderMarginRevertIcon,description:(0,iM.M)(207,"When enabled, the diff editor shows arrows in its glyph margin to revert changes."),agentsWindow:{default:!1}},"diffEditor.renderGutterMenu":{type:"boolean",default:BF.renderGutterMenu,description:(0,iM.M)(208,"When enabled, the diff editor shows a special gutter for revert and stage actions."),agentsWindow:{default:!1}},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:BF.ignoreTrimWhitespace,description:(0,iM.M)(209,"When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:BF.renderIndicators,description:(0,iM.M)(210,"Controls whether the diff editor shows +/- indicators for added/removed changes."),agentsWindow:{default:!1}},"diffEditor.codeLens":{type:"boolean",default:BF.diffCodeLens,description:(0,iM.M)(211,"Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:BF.diffWordWrap,markdownEnumDescriptions:[(0,iM.M)(212,"Lines will never wrap."),(0,iM.M)(213,"Lines will wrap at the viewport width."),(0,iM.M)(214,"Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced","advanced-external","advanced-wasm"],default:BF.diffAlgorithm,markdownEnumDescriptions:[(0,iM.M)(215,"Uses the legacy diffing algorithm."),(0,iM.M)(216,"Uses the advanced diffing algorithm."),(0,iM.M)(217,"Uses the advanced diffing algorithm from the external `@vscode/diff` package (pure JavaScript)."),(0,iM.M)(218,"Uses the advanced diffing algorithm from the external `@vscode/diff` package (WebAssembly).")]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:BF.hideUnchangedRegions.enabled,markdownDescription:(0,iM.M)(219,"Controls whether the diff editor shows unchanged regions."),agentsWindow:{default:!0}},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:BF.hideUnchangedRegions.revealLineCount,markdownDescription:(0,iM.M)(220,"Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:BF.hideUnchangedRegions.minimumLineCount,markdownDescription:(0,iM.M)(221,"Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:BF.hideUnchangedRegions.contextLineCount,markdownDescription:(0,iM.M)(222,"Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:BF.experimental.showMoves,markdownDescription:(0,iM.M)(223,"Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:BF.experimental.showEmptyDecorations,description:(0,iM.M)(224,"Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:BF.experimental.useTrueInlineView,description:(0,iM.M)(225,"If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(let e of i2){let t=e.schema;if(void 0!==t)if(void 0!==t.type||void 0!==t.anyOf)BB.properties[`editor.${e.name}`]=t;else for(let e in t)Object.hasOwnProperty.call(t,e)&&(BB.properties[e]=t[e]);}let BW=null;function BV(){return null===BW&&(BW=Object.create(null),Object.keys(BB.properties).forEach(e=>{BW[e]=!0;})),BW;}ai.as(lZ.Configuration).registerConfiguration(BB);class BH{static insert(e,t){return{range:new ln.f(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0};}static delete(e){return{range:e,text:null};}static replace(e,t){return{range:e,text:t};}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0};}}e.s(["f",0,BH],25191);let Bz=[];function BU(){return Bz.slice(0);}e.s(["F",0,BU,"f",0,function(e){Bz.push(e);}],98474);var B$=i8,BK=i8;let Bq=[],Bj=[],BG=[];function BQ(e,t=!1){var i,n,s,o,r;let a;i=e,n=!1,s=t,a=(o=i,r=n,{id:o.id,mime:o.mime,filename:o.filename,extension:o.extension,filepattern:o.filepattern,firstline:o.firstline,userConfigured:r,filepatternParsed:o.filepattern?EY(o.filepattern,{ignoreCase:!0}):void 0,filepatternOnPath:!!o.filepattern&&o.filepattern.indexOf(ab.b.sep)>=0}),Bq.push(a),a.userConfigured?BG.push(a):Bj.push(a),s&&!a.userConfigured&&Bq.forEach(e=>{e.mime!==a.mime&&!e.userConfigured&&(a.extension&&e.extension===a.extension&&console.warn(`Overwriting extension <<${a.extension}>> to now point to mime <<${a.mime}>>`),a.filename&&e.filename===a.filename&&console.warn(`Overwriting filename <<${a.filename}>> to now point to mime <<${a.mime}>>`),a.filepattern&&e.filepattern===a.filepattern&&console.warn(`Overwriting filepattern <<${a.filepattern}>> to now point to mime <<${a.mime}>>`),a.firstline&&e.firstline===a.firstline&&console.warn(`Overwriting firstline <<${a.firstline}>> to now point to mime <<${a.mime}>>`));});}function BZ(e,t,i){let n,s,o;for(let r=i.length-1;r>=0;r--){let a=i[r];if((0,i7.p)(t,a.filename)){n=a;break;}if(a.filepattern&&(!s||a.filepattern.length>s.filepattern.length)){var _a$filepatternParsed;let i=a.filepatternOnPath?e:t;((_a$filepatternParsed=a.filepatternParsed)===null||_a$filepatternParsed===void 0?void 0:_a$filepatternParsed.call(a,i))&&(s=a);}a.extension&&(!o||a.extension.length>o.extension.length)&&(0,i7.Y)(t,a.extension)&&(o=a);}return n||s||o||void 0;}let BY=Object.prototype.hasOwnProperty,BX="vs.editor.nullLanguage";class BJ{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map(),this._register(BX,0),this._register(l8,1),this._nextLanguageId=2;}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t);}register(e){if(this._languageToLanguageId.has(e))return;let t=this._nextLanguageId++;this._register(e,t);}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0;}decodeLanguageId(e){return this._languageIdToLanguage[e]||BX;}}class B0 extends BK.N{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,B0.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new BJ(),this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(l9.onDidChangeLanguages(e=>{this._initializeFromRegistry();})));}dispose(){B0.instanceCount--,super.dispose();}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Bq=Bq.filter(e=>e.userConfigured),Bj=[];let e=[].concat(l9.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e);}_registerLanguages(e){for(let t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach(e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier;}),t.mimetypes.forEach(e=>{this._mimeTypesMap[e]=t.identifier;});}),ai.as(lZ.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire();}_registerLanguage(e){let t,i=e.id;BY.call(this._languages,i)?t=this._languages[i]:(this.languageIdCodec.register(i),t={identifier:i,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[i]=t),this._mergeLanguage(t,e);}_mergeLanguage(e,t){let i=t.id,n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions))for(let s of(t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions),t.extensions))BQ({id:i,mime:n,extension:s},this._warnOnOverwrite);if(Array.isArray(t.filenames))for(let s of t.filenames)BQ({id:i,mime:n,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(let e of t.filenamePatterns)BQ({id:i,mime:n,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{let t=new RegExp(e);(0,i7.A)(t)||BQ({id:i,mime:n,firstline:t},this._warnOnOverwrite);}catch(i){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,i);}}e.aliases.push(i);let s=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(let t of s)t&&0!==t.length&&e.aliases.push(t);let o=null!==s&&s.length>0;if(o&&null===s[0]);else{let t=(o?s[0]:null)||i;(o||!e.name)&&(e.name=t);}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon);}isRegisteredLanguageId(e){return!!e&&BY.call(this._languages,e);}getRegisteredLanguageIds(){return Object.keys(this._languages);}getLanguageIdByLanguageName(e){let t=e.toLowerCase();return BY.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null;}getLanguageIdByMimeType(e){return e&&BY.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null;}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?function(e,t){let i;if(e)switch(e.scheme){case nT.I.file:i=e.fsPath;break;case nT.I.data:i=eJ.parseMetaData(e).get(eJ.META_DATA_LABEL);break;case nT.I.vscodeNotebookCell:i=void 0;break;default:i=e.path;}if(!i)return[{id:"unknown",mime:lz.unknown}];i=i.toLowerCase();let n=(0,ab.F)(i),s=BZ(i,n,BG);if(s)return[s,{id:l8,mime:lz.text}];let o=BZ(i,n,Bj);if(o)return[o,{id:l8,mime:lz.text}];if(t){let e=function(e){if((0,i7.k)(e)&&(e=e.substring(1)),e.length>0)for(let t=Bq.length-1;t>=0;t--){let i=Bq[t];if(!i.firstline)continue;let n=e.match(i.firstline);if(n&&n.length>0)return i;}}(t);if(e)return[e,{id:l8,mime:lz.text}];}return[{id:"unknown",mime:lz.unknown}];}(e,t).map(e=>e.id):[];}}_B2=B0;_B2.instanceCount=0;class B1 extends B$.N{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new iv.S()),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new iv.S()),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new iv.S({leakWarningThreshold:200,leakWarningName:"LanguageService._onDidChange"})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set(),this._requestedRichLanguages=new Set(),B1.instanceCount++,this._registry=this._register(new B0(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()));}dispose(){B1.instanceCount--,super.dispose();}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e);}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e);}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e);}guessLanguageIdByFilepathOrFirstLine(e,t){var _this$_registry$guess;return(_this$_registry$guess=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t).at(0))!==null&&_this$_registry$guess!==void 0?_this$_registry$guess:null;}createById(e){return new B2(this.onDidChange,()=>this._createAndGetLanguageIdentifier(e));}createByFilepathOrFirstLine(e,t){return new B2(this.onDidChange,()=>{let i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i);});}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l8),e;}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e));}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),hV.l.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e));}}_B3=B1;_B3.instanceCount=0;class B2{constructor(e,t){this._value=sf(this,e,()=>t()),this.onDidChange=iv.C.fromObservable(this._value);}get languageId(){return this._value.get();}}var B3=i8,B5=function(e,t){return function(i,n){t(i,n,e);};};let B6=class extends B3.N{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new iv.S()),this._suppressedRanges=new av._(),this._markerDecorations=new av._(),e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this));}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear();}getMarker(e,t){let i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null;}_handleMarkerChange(e){e.forEach(e=>{let t=this._markerDecorations.get(e);t&&this._updateDecorations(t);});}_onModelAdded(e){let t=new B4(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t);}_onModelRemoved(e){var _this$_markerService;let t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),(e.uri.scheme===nT.I.inMemory||e.uri.scheme===nT.I.internal||e.uri.scheme===nT.I.vscode)&&((_this$_markerService=this._markerService)===null||_this$_markerService===void 0?void 0:_this$_markerService.read({resource:e.uri}).map(e=>e.owner).forEach(t=>this._markerService.remove(t,[e.uri])));}_updateDecorations(e){let t=this._markerService.read({resource:e.model.uri,take:500}),i=this._suppressedRanges.get(e.model.uri);i&&(t=t.filter(e=>!rw.f.some(i,t=>ln.f.areIntersectingOrTouching(t,e)))),e.update(t)&&this._onDidChangeMarker.fire(e.model);}};B6=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([B5(0,rd),B5(1,Bd)],B6);class B4 extends B3.N{constructor(e){super(),this.model=e,this._map=new av.a(),this._register((0,B3.Q)(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear();}));}update(e){let{added:t,removed:i}=wa(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;let n=i.map(e=>this._map.get(e)),s=t.map(e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)})),o=this.model.deltaDecorations(n,s);for(let e of i)this._map.delete(e);for(let e=0;e<o.length;e++)this._map.set(t[e],o[e]);return!0;}getMarker(e){return this._map.getKey(e.id);}_createDecorationRange(e,t){let i=ln.f.lift(t);if(t.severity!==tY.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),(i=e.validateRange(i)).isEmpty()){let t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;let n=e.getWordAtPosition(i.getStartPosition());n&&(i=new ln.f(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn));}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){let n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n<i.endColumn&&(i=new ln.f(i.startLineNumber,n,i.endLineNumber,i.endColumn),t.startColumn=n);}return i;}_createDecorationOption(e){let t,i,n,s,o;switch(e.severity){case tY.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case tY.Info:t="squiggly-info",s=_o(_q),i=10,n={color:_o(uI),position:1};break;case tY.Warning:t="squiggly-warning",s=_o(_K),i=20,n={color:_o(uN),position:1};break;case tY.Error:default:t="squiggly-error",s=_o(_$),i=30,n={color:_o(uE),position:1};}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:s,position:h$.$.Right},minimap:n,zIndex:i,inlineClassName:o};}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0;}}var B9=i8,B8=function(e,t){return function(i,n){t(i,n,e);};};function B7(e){return e.toString();}class We{constructor(e,t,i){this.model=e,this._modelEventListeners=new B9.q(),this.model=e,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>i(e,t)));}dispose(){this._modelEventListeners.dispose();}}let Wt=i_.b||i_.e?1:2;class Wi{constructor(e,t,i,n,s,o,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=o,this.versionId=r,this.alternativeVersionId=a;}}let Wn=(_Class0=class Wn extends B9.N{constructor(e,t,i,n){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=n,this._onModelAdded=this._register(new iv.S()),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new iv.S()),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new iv.S()),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map(),this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(e=>this._updateModelOptions(e))),this._updateModelOptions(void 0);}static _readModelOptions(e,t){var _e$editor;let i=4;e.editor&&void 0!==e.editor.tabSize&&(i=iB(e.editor.tabSize,4,1,100));let n="tabSize";e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize&&(n=iB(e.editor.indentSize,"tabSize",1,100));let s=!0;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&!!e.editor.insertSpaces);let o=Wt,r=e.eol;"\r\n"===r?o=2:"\n"===r&&(o=1);let a=!0;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&!!e.editor.trimAutoWhitespace);let l=!0;e.editor&&void 0!==e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&!!e.editor.detectIndentation);let h=!0;e.editor&&void 0!==e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&!!e.editor.largeFileOptimizations);let d=ik;if((_e$editor=e.editor)!==null&&_e$editor!==void 0&&_e$editor.bracketPairColorization&&"object"==typeof e.editor.bracketPairColorization){let t=e.editor.bracketPairColorization;d={enabled:!!t.enabled,independentColorPoolPerBracketType:!!t.independentColorPoolPerBracketType};}return{isForSimpleWidget:t,tabSize:i,indentSize:n,insertSpaces:s,detectIndentation:l,defaultEOL:o,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d};}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);let i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===i_.B||2===i_.B?"\n":"\r\n";}_shouldRestoreUndoStack(){let e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e;}getCreationOptions(e,t,i){let n="string"==typeof e?e:e.languageId,s=this._modelCreationOptionsByLanguageAndResource[n+t];if(!s){let e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);s=t0._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=s;}return s;}_updateModelOptions(e){let t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let i=Object.keys(this._models);for(let n=0,s=i.length;n<s;n++){let s=i[n],o=this._models[s],r=o.model.getLanguageId(),a=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:r,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:r,resource:a}))continue;let l=t[r+a],h=this.getCreationOptions(r,a,o.model.isForSimpleWidget);t0._setModelOptionsForModel(o.model,h,l);}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(+(1!==t.defaultEOL)),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,im.m)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}));}_insertDisposedModel(e){this._disposedModels.set(B7(e.uri),e),this._disposedModelsHeapSize+=e.heapSize;}_removeDisposedModel(e){let t=this._disposedModels.get(B7(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(B7(e)),t;}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){let t=[];for(this._disposedModels.forEach(e=>{e.sharesUndoRedoStack||t.push(e);}),t.sort((e,t)=>e.time-t.time);t.length>0&&this._disposedModelsHeapSize>e;){let e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot);}}}_createModelData(e,t,i,n){let s=this.getCreationOptions(t,i,n),o=this._instantiationService.createInstance(xN,e,t,s,i);if(i&&this._disposedModels.has(B7(i))){let e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),s=!!n.canComputeSHA1(o)&&n.computeSHA1(o)===e.sha1;if(s||e.sharesUndoRedoStack){for(let e of t.past)yA(e)&&e.matchesResource(i)&&e.setModel(o);for(let e of t.future)yA(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,e=>yA(e)&&e.matchesResource(i)),s&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot));}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot);}let r=B7(o.uri);if(this._models[r])throw Error("ModelService: Cannot add model because it already exists!");let a=new We(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t));return this._models[r]=a,a;}createModel(e,t,i,n=!1){let s;return s=t?this._createModelData(e,t,i,n):this._createModelData(e,l8,i,n),this._onModelAdded.fire(s.model),s.model;}getModels(){let e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i<n;i++){let n=t[i];e.push(this._models[n].model);}return e;}getModel(e){let t=B7(e),i=this._models[t];return i?i.model:null;}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===nT.I.file||e.scheme===nT.I.vscodeRemote||e.scheme===nT.I.vscodeUserData||e.scheme===nT.I.vscodeNotebookCell||"fake-fs"===e.scheme;}_onWillDispose(e){let t=B7(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString(),s=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){let t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(let i of t.past)yA(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(let i of t.future)yA(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));}}let r=t0.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(s){if(n||!(o>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,t=>yA(t)&&t.matchesResource(e.uri)),this._insertDisposedModel(new Wi(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{let e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e);}}else if(!n){let e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e);}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e);}_onDidChangeLanguage(e,t){let i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);t0._setModelOptionsForModel(e,o,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i});}_getSHA1Computer(){return new Ws();}},t0=_Class0,_Class0.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=0x1400000,_Class0);Wn=t0=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([B8(0,lN),B8(1,hC),B8(2,wc),B8(3,rr)],Wn);class Ws{canComputeSHA1(e){return e.getValueLength()<=Ws.MAX_MODEL_SIZE;}computeSHA1(e){let t,i=new nR.U(),n=e.createSnapshot();for(;t=n.read();)i.update(t);return i.digest();}}_Ws=Ws;_Ws.MAX_MODEL_SIZE=0xa00000;(t1||(t1={})).inspectTokensAction=(0,iM.M)(836,"Developer: Inspect Tokens"),(eP=t2||(t2={})).gotoLineActionLabel=(0,iM.M)(837,"Go to Line/Column..."),eP.gotoOffsetActionLabel=(0,iM.M)(838,"Go to Offset..."),(t3||(t3={})).helpQuickAccessActionLabel=(0,iM.M)(839,"Show all Quick Access Providers"),(eF=t5||(t5={})).quickCommandActionLabel=(0,iM.M)(840,"Command Palette"),eF.quickCommandHelp=(0,iM.M)(841,"Show And Run Commands"),(eB=t6||(t6={})).quickOutlineActionLabel=(0,iM.M)(842,"Go to Symbol..."),eB.quickOutlineByCategoryActionLabel=(0,iM.M)(843,"Go to Symbol by Category..."),(t4||(t4={})).editorViewAccessibleLabel=(0,iM.M)(844,"Editor content"),(t9||(t9={})).toggleHighContrast=(0,iM.M)(845,"Toggle High Contrast Theme"),(t8||(t8={})).bulkEditServiceSummary=(0,iM.M)(846,"Made {0} edits in {1} files"),e.s(["J",0,t5,"i",0,t3,"C",0,t4,"l",0,t8],31135);let Wo=ra("themeService");var Wr=i8;let Wa=class{constructor(e){this._models=new Wl(e);}createModelReference(e){return this._acquire(e);}createSyntheticDocument(e,t){let i=ne.m.from({scheme:nT.I.inMemory,path:`/synthetic/${f_()}`});return this._acquire(i,e,t);}async _acquire(e,t,i=null){let n=this._models.acquire(e.toString(),t,i);try{return await Promise.resolve(),{object:n.object.value,dispose:()=>n.dispose()};}catch(e){throw n.dispose(),e;}}};Wa=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){rd(e,t,0);}],Wa);class Wl extends Wr.S{constructor(e){super(),this._modelService=e;}createReferencedObject(e,t,i=null){return new pM.f(()=>{let n=ne.m.parse(e),s=void 0===t?this._modelService.getModel(n):this._modelService.createModel(t,i,n);if(!s)throw Error("Model not found");return new Wh(s,void 0!==t);});}destroyReferencedObject(e,t){var _t$rawValue;(_t$rawValue=t.rawValue)===null||_t$rawValue===void 0||_t$rawValue.dispose();}}class Wh extends Wr.N{constructor(e,t){super(),this.textEditorModel=e,this._ownsModel=t,this._onWillDispose=this._register(new iv.S());}dispose(){!this.isDisposed()&&(this._onWillDispose.fire(),super.dispose(),this._ownsModel&&this.textEditorModel.dispose());}isDisposed(){return this._store.isDisposed;}}var Wd=i8;(eW=t7||(t7={}))[eW.PRESERVE=0]="PRESERVE",eW[eW.LAST=1]="LAST";let Wc={Quickaccess:"workbench.contributions.quickaccess"};ai.add(Wc.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0;}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),(0,i8.Q)(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0);});}getQuickAccessProviders(e){return(0,ip.d)([this.defaultProvider,...this.providers]).filter(t=>!t.when||e.contextMatchesRules(t.when));}getQuickAccessProvider(e,t){return(e?this.providers.find(i=>e.startsWith(i.prefix)&&(!i.when||t.contextMatchesRules(i.when))):void 0)||this.defaultProvider;}}()),e.s(["S",0,t7,"F",0,Wc],85699);var Wu=function(e,t){return function(i,n){t(i,n,e);};};let Wg=class extends Wd.N{constructor(e,t,i){super(),this.quickInputService=e,this.instantiationService=t,this.contextKeyService=i,this.registry=ai.as(Wc.Quickaccess),this.mapProviderToDescriptor=new Map(),this.lastAcceptedPickerValues=new Map(),this.visibleQuickAccess=void 0,this._register((0,Wd.Q)(()=>{var _this$visibleQuickAcc;for(let e of this.mapProviderToDescriptor.values())(0,Wd.J)(e)&&e.dispose();(_this$visibleQuickAcc=this.visibleQuickAccess)===null||_this$visibleQuickAcc===void 0||_this$visibleQuickAcc.picker.dispose();}));}show(e="",t){this.doShowOrPick(e,!1,t);}doShowOrPick(e,t,i){var _r$picker,_r$picker2,_i$placeholder,_i$itemActivation,_n0;let n,[s,o]=this.getOrInstantiateProvider(e,i===null||i===void 0?void 0:i.enabledProviderPrefixes),r=this.visibleQuickAccess,a=r===null||r===void 0?void 0:r.descriptor;if(r&&o&&a===o){e===o.prefix||i!==null&&i!==void 0&&i.preserveValue||(r.picker.value=e),this.adjustValueSelection(r.picker,o,i);return;}if(o&&!(i!==null&&i!==void 0&&i.preserveValue)){let t;if(r&&a&&a!==o){let e=r.value.substr(a.prefix.length);e&&(t=`${o.prefix}${e}`);}if(!t){let e=s===null||s===void 0?void 0:s.defaultFilterValue;e===t7.LAST?t=this.lastAcceptedPickerValues.get(o):"string"==typeof e&&(t=`${o.prefix}${e}`);}"string"==typeof t&&(e=t);}let l=r===null||r===void 0||(_r$picker=r.picker)===null||_r$picker===void 0?void 0:_r$picker.valueSelection,h=r===null||r===void 0||(_r$picker2=r.picker)===null||_r$picker2===void 0?void 0:_r$picker2.value,d=new Wd.q(),c=d.add(this.quickInputService.createQuickPick({useSeparators:!0}));c.value=e,this.adjustValueSelection(c,o,i),c.placeholder=(_i$placeholder=i===null||i===void 0?void 0:i.placeholder)!==null&&_i$placeholder!==void 0?_i$placeholder:o===null||o===void 0?void 0:o.placeholder,c.quickNavigate=i===null||i===void 0?void 0:i.quickNavigateConfiguration,c.hideInput=!!c.quickNavigate&&!r,("number"==typeof(i===null||i===void 0?void 0:i.itemActivation)||i!==null&&i!==void 0&&i.quickNavigateConfiguration)&&(c.itemActivation=(_i$itemActivation=i===null||i===void 0?void 0:i.itemActivation)!==null&&_i$itemActivation!==void 0?_i$itemActivation:tD.SECOND),c.contextKey=o===null||o===void 0?void 0:o.contextKey,c.filterValue=e=>e.substring(o?o.prefix.length:0),t&&(n=new nI.O(),d.add(iv.C.once(c.onWillAccept)(e=>{e.veto(),c.hide();}))),d.add(this.registerPickerListeners(c,s,o,e,i));let u=d.add(new n8.R());if(s&&d.add(s.provide(c,u.token,i===null||i===void 0?void 0:i.providerOptions)),iv.C.once(c.onDidHide)(()=>{var _n9;0===c.selectedItems.length&&u.cancel(),d.dispose(),(_n9=n)===null||_n9===void 0?void 0:_n9.complete(c.selectedItems.slice(0));}),c.show(),l&&h===e&&(c.valueSelection=l),t)return(_n0=n)===null||_n0===void 0?void 0:_n0.p;}adjustValueSelection(e,t,i){var _t$prefix$length;let n;n=i!==null&&i!==void 0&&i.preserveValue?[e.value.length,e.value.length]:[(_t$prefix$length=t===null||t===void 0?void 0:t.prefix.length)!==null&&_t$prefix$length!==void 0?_t$prefix$length:0,e.value.length],e.valueSelection=n;}registerPickerListeners(e,t,i,n,s){let o=new Wd.q(),r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add((0,Wd.Q)(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0);})),o.add(e.onDidChangeValue(e=>{let[i]=this.getOrInstantiateProvider(e,s===null||s===void 0?void 0:s.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:s===null||s===void 0?void 0:s.enabledProviderPrefixes,preserveValue:!0,providerOptions:s===null||s===void 0?void 0:s.providerOptions}):r.value=e;})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value);})),o;}getOrInstantiateProvider(e,t){let i=this.registry.getQuickAccessProvider(e,this.contextKeyService);if(!i||t&&!(t!==null&&t!==void 0&&t.includes(i.prefix)))return[void 0,void 0];let n=this.mapProviderToDescriptor.get(i);return n||(n=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,n)),[n,i];}};Wg=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([Wu(0,Ec),Wu(1,rr),Wu(2,r9)],Wg);var Wp=i8;class Wf{constructor(e){this.nodes=e;}toString(){return this.nodes.map(e=>"string"==typeof e?e:e.label).join("");}}!function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);o>3&&r&&Object.defineProperty(t,i,r);}([pH],Wf.prototype,"toString",null);let Wm=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi,W_={},Wv=new DK("quick-input-button-icon-");class Wb{constructor(e,t,i,n,s,o,r){this.id=e,this.label=t,this.tooltip=i,this.enabled=s,this._checked=o,this._run=r,this.class=n;}get checked(){return this._checked;}set checked(e){this._checked=e,this._run();}run(){return this._checked=!this._checked,this._run();}}function WC(e,t,i){let n=e.iconClass||function(e){let t;if(!e)return;let i=e.dark.toString();return W_[i]?t=W_[i]:(t=Wv.nextId(),d8(`.${t}, .hc-light .${t}`,`background-image: ${Ra(e.light||e.dark)}`),d8(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${Ra(e.dark)}`),W_[i]=t),t;}(e.iconPath);e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");let s=()=>(e.toggle&&(e.toggle.checked=!e.toggle.checked),i());return e.toggle?new Wb(t,e.tooltip||"","",n,!0,e.toggle.checked,s):{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:s};}function Ww(e,t,i){let n=[],s=[];return e.forEach((e,o)=>{let r=WC(e,`${t}-${o}`,async()=>i(e));e.label&&(r.label=e.label),e.secondary?s.push(r):n.push(r);}),{primary:n,secondary:s};}var Wy=function(e,t){return function(i,n){t(i,n,e);};};let WS="inQuickInput",Wx=new r4(WS,!1,(0,iM.M)(1845,"Whether keyboard focus is inside the quick input control")),WL=rV.has(WS),Wk=new r4("quickInputAlignment","top",(0,iM.M)(1846,"The alignment of the quick input")),WD="quickInputType",WM=new r4(WD,void 0,(0,iM.M)(1847,"The type of the currently visible quick input")),WI="cursorAtEndOfQuickInputBox",WN=new r4(WI,!1,(0,iM.M)(1848,"Whether the cursor in the quick input is at the end of the input box")),WE=rV.has(WI),WT={iconClass:eY.asClassName(rC.f.quickInputBack),tooltip:(0,iM.M)(1849,"Back")};class WR extends Wp.N{constructor(e){super(),this.ui=e,this._visible=sc("visible",!1),this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this._inputButtons=[],this.buttonsUpdated=!1,this.noValidationMessage=WR.noPromptMessage,this._severity=bz.Ignore,this.onDidTriggerButtonEmitter=this._register(new iv.S()),this.onDidHideEmitter=this._register(new iv.S()),this.onWillHideEmitter=this._register(new iv.S()),this.onDisposeEmitter=this._register(new iv.S()),this.visibleDisposables=this._register(new Wp.q()),this.onDidTriggerButton=this.onDidTriggerButtonEmitter.event,this.onDidHide=this.onDidHideEmitter.event;}get visible(){return this._visible.get();}get title(){return this._title;}set title(e){this._title=e,this.update();}get description(){return this._description;}set description(e){this._description=e,this.update();}get step(){return this._steps;}set step(e){this._steps=e,this.update();}get totalSteps(){return this._totalSteps;}set totalSteps(e){this._totalSteps=e,this.update();}get enabled(){return this._enabled;}set enabled(e){this._enabled=e,this.update();}get contextKey(){return this._contextKey;}set contextKey(e){this._contextKey=e,this.update();}get busy(){return this._busy;}set busy(e){this._busy=e,this.update();}get ignoreFocusOut(){return this._ignoreFocusOut;}set ignoreFocusOut(e){let t=this._ignoreFocusOut!==e&&!i_.I;this._ignoreFocusOut=e&&!i_.I,t&&this.update();}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons;}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons,...this._inputButtons];}set buttons(e){let t=[],i=[],n=[],s=[];for(let o of e)if(o===WT)t.push(o);else switch(o.location){case tI.Inline:n.push(o);break;case tI.Input:s.push(o);break;default:i.push(o);}this._leftButtons=t,this._rightButtons=i,this._inlineButtons=n,this._inputButtons=s,this.buttonsUpdated=!0,this.update();}get validationMessage(){return this._validationMessage;}set validationMessage(e){this._validationMessage=e,this.update();}get severity(){return this._severity;}set severity(e){this._severity=e,this.update();}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e);})),this.ui.show(this),this._visible.set(!0,void 0),this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update());}hide(){this.visible&&this.ui.hide();}didHide(e=tk.Other){this._visible.set(!1,void 0),this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e});}willHide(e=tk.Other){this.onWillHideEmitter.fire({reason:e});}update(){if(!this.visible)return;let e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");let t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new nI.j(),this.busyDelay.setIfNotSet(()=>{this.visible&&(this.ui.progressBar.infinite(),this.ui.progressBar.getContainer().removeAttribute("aria-hidden"));},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.ui.progressBar.getContainer().setAttribute("aria-hidden","true"),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1;let e=Ww(this._leftButtons,"left-button",e=>this.onDidTriggerButtonEmitter.fire(e));this.ui.leftActionBar.setActions(e.primary,e.secondary);let t=Ww(this._rightButtons,"right-button",e=>this.onDidTriggerButtonEmitter.fire(e));this.ui.rightActionBar.setActions(t.primary,t.secondary);let i=Ww(this._inlineButtons,"inline-button",e=>this.onDidTriggerButtonEmitter.fire(e));this.ui.inlineActionBar.setActions(i.primary,i.secondary);let n=22*this._inputButtons.length;this.ui.countContainer.style.right=n>0?`${4+n}px`:"4px",this.ui.inputBox.actions=this._inputButtons.map((e,t)=>WC(e,`id-${t}`,async()=>this.onDidTriggerButtonEmitter.fire(e)));}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,oD(this.ui.message),i&&function(e,t,i){oD(t);let n=function(e){let t,i=[],n=0;for(;t=Wm.exec(e);){t.index-n>0&&i.push(e.substring(n,t.index));let[,s,o,,r]=t;r?i.push({label:s,href:o,title:r}):i.push({label:s,href:o}),n=t.index+t[0].length;}return n<e.length&&i.push(e.substring(n)),new Wf(i);}(e),s=0;for(let e of n.nodes)if("string"==typeof e)t.append(...Ni(e));else{let n=e.title;!n&&e.href.startsWith("command:")?n=(0,iM.M)(1868,"Click to execute command '{0}'",e.href.substring(8)):n||(n=e.href);let o=oN("a",{href:e.href,title:n,tabIndex:s++},e.label);o.style.textDecoration="underline";let r=t=>{ov(t)&&ob.stop(t,!0),i.callback(e.href);},a=i.disposables.add(new ff(o,o_.CLICK)).event,l=i.disposables.add(new ff(o,o_.KEY_DOWN)).event,h=iv.C.chain(l,e=>e.filter(e=>{let t=new nx(e);return t.equals(10)||t.equals(3);}));i.disposables.add(pU.addTarget(o));let d=i.disposables.add(new ff(o,e7.Tap)).event;iv.C.any(a,d,h)(r,null,i.disposables),t.appendChild(o);}}(i,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e);},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity));}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():"";}getDescription(){return this.description||"";}getSteps(){return this.step&&this.totalSteps?(0,iM.M)(1851,"{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):"";}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==bz.Ignore){let t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px";}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom="";}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose();}}_WR=WR;_WR.noPromptMessage=(0,iM.M)(1850,"Press 'Enter' to confirm your input or 'Escape' to cancel");class WA extends WR{constructor(e){super(e),this._value="",this.onDidChangeValueEmitter=this._register(new iv.S()),this.onWillAcceptEmitter=this._register(new iv.S()),this.onDidAcceptEmitter=this._register(new iv.S()),this.onDidCustomEmitter=this._register(new iv.S()),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=tD.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new iv.S()),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new iv.S()),this.onDidTriggerItemButtonEmitter=this._register(new iv.S()),this.onDidTriggerSeparatorButtonEmitter=this._register(new iv.S()),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._customButtonSecondary=!1,this._focusEventBufferer=new iv.s(),this.type="quickPick",this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event,this.noValidationMessage=void 0;}get quickNavigate(){return this._quickNavigate;}set quickNavigate(e){this._quickNavigate=e,this.update();}get value(){return this._value;}set value(e){this.doSetValue(e);}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value));}set ariaLabel(e){this._ariaLabel=e,this.update();}get ariaLabel(){return this._ariaLabel;}get placeholder(){return this._placeholder;}set placeholder(e){this._placeholder=e,this.update();}get prompt(){return this.noValidationMessage;}set prompt(e){this.noValidationMessage=e,this.update();}get items(){return this._items;}get scrollTop(){return this.ui.list.scrollTop;}set scrollTop(e){this.ui.list.scrollTop=e;}set items(e){this._items=e,this.itemsUpdated=!0,this.update();}get canSelectMany(){return this._canSelectMany;}set canSelectMany(e){this._canSelectMany=e,this.update();}get canAcceptInBackground(){return this._canAcceptInBackground;}set canAcceptInBackground(e){this._canAcceptInBackground=e;}get matchOnDescription(){return this._matchOnDescription;}set matchOnDescription(e){this._matchOnDescription=e,this.update();}get matchOnDetail(){return this._matchOnDetail;}set matchOnDetail(e){this._matchOnDetail=e,this.update();}get matchOnLabel(){return this._matchOnLabel;}set matchOnLabel(e){this._matchOnLabel=e,this.update();}get matchOnLabelMode(){return this._matchOnLabelMode;}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update();}get sortByLabel(){return this._sortByLabel;}set sortByLabel(e){this._sortByLabel=e,this.update();}get keepScrollPosition(){return this._keepScrollPosition;}set keepScrollPosition(e){this._keepScrollPosition=e;}get itemActivation(){return this._itemActivation;}set itemActivation(e){this._itemActivation=e;}get activeItems(){return this._activeItems;}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update();}get selectedItems(){return this._selectedItems;}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update();}get keyMods(){return this._quickNavigate?Ed:this.ui.keyMods;}get valueSelection(){let e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end];}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update();}get customButton(){return this._customButton;}set customButton(e){this._customButton=e,this.update();}get customLabel(){return this._customButtonLabel;}set customLabel(e){this._customButtonLabel=e,this.update();}get customHover(){return this._customButtonHover;}set customHover(e){this._customButtonHover=e,this.update();}get customButtonSecondary(){return this._customButtonSecondary;}set customButtonSecondary(e){this._customButtonSecondary=e!==null&&e!==void 0?e:!1,this.update();}get ok(){return this._ok;}set ok(e){this._ok=e,this.update();}get okLabel(){var _this$_okLabel;return(_this$_okLabel=this._okLabel)!==null&&_this$_okLabel!==void 0?_this$_okLabel:(0,iM.M)(1853,"OK");}set okLabel(e){this._okLabel=e,this.update();}get hideInput(){return!!this._hideInput;}set hideInput(e){this._hideInput=e,this.update();}trySelectFirst(){this.canSelectMany||this.ui.list.focus(tM.First);}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0);})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1);})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire();})),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,(e,t)=>t)(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,ip.m)(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e));})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany&&!e.some(e=>!1===e.pickable)){e.length&&this.ui.list.setSelectedElements([]);return;}!(this.selectedItemsToConfirm!==this._selectedItems&&(0,ip.m)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(of(t)&&1===t.button));})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||!this.visible||this.selectedItemsToConfirm!==this._selectedItems&&(0,ip.m)(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e));})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered(e=>this.onDidTriggerSeparatorButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show();}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e});}registerQuickNavigation(){return s$(this.ui.container,o_.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;let t=new nx(e),i=t.keyCode;this._quickNavigate.keybindings.some(e=>{let n=e.getChords();return!(n.length>1)&&(n[0].shiftKey&&4===i?!t.ctrlKey&&!t.altKey&&!t.metaKey:!!n[0].altKey&&6===i||!!n[0].ctrlKey&&5===i||!!n[0].metaKey&&57===i);})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0);});}update(){if(!this.visible)return;let e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.titleButtons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage||!!this.prompt,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;!n&&i.inputBox&&(n=this.placeholder,this.title&&(n=n?`${n} - ${this.title}`:this.title),n||(n=WA.DEFAULT_ARIA_LABEL)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=n!==null&&n!==void 0?n:null),this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n!==null&&n!==void 0?n:"input"),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents(()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case tD.NONE:this._itemActivation=tD.FIRST;break;case tD.SECOND:this.ui.list.focus(tM.Second),this._itemActivation=tD.FIRST;break;case tD.LAST:this.ui.list.focus(tM.Last),this._itemActivation=tD.FIRST;break;default:this.trySelectFirst();}})),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.ok.label=this.okLabel||"",this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.customButton.secondary=this.customButtonSecondary||!1,!i.inputBox&&(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(tM.First)),this.keepScrollPosition&&(this.scrollTop=e);}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus();}accept(e){(!e||this._canAcceptInBackground)&&(this.activeItems[0]&&!this._canSelectMany&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(e!==null&&e!==void 0?e:!1));}}_WA=WA;_WA.DEFAULT_ARIA_LABEL=(0,iM.M)(1852,"Type to narrow down results.");class WO extends WR{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new iv.S()),this.onDidAcceptEmitter=this._register(new iv.S()),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event;}get value(){return this._value;}set value(e){this._value=e||"",this.update();}get valueSelection(){let e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end];}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update();}get placeholder(){return this._placeholder;}set placeholder(e){this._placeholder=e,this.update();}get ariaLabel(){return this._ariaLabel;}set ariaLabel(e){this._ariaLabel=e,this.update();}get password(){return this._password;}set password(e){this._password=e,this.update();}get prompt(){return this._prompt;}set prompt(e){this._prompt=e,this.noValidationMessage=e?(0,iM.M)(1854,"{0} (Press 'Enter' to confirm or 'Escape' to cancel)",e):WR.noPromptMessage,this.update();}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e));})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show();}accept(){this.onDidAcceptEmitter.fire();}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");let e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password);let t=this.ariaLabel;!t&&e.inputBox&&(t=this.placeholder?this.title?`${this.placeholder} - ${this.title}`:this.placeholder:this.title?this.title:"input"),this.ui.inputBox.ariaLabel!==t&&(this.ui.inputBox.ariaLabel=t||"input");}}let WP=class extends kO{constructor(e,t){super("mouse",void 0,e=>this.getOverrideOptions(e),e,t);}getOverrideOptions(e){var _e$content$textConten;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(ou(e.content)?(_e$content$textConten=e.content.textContent)!==null&&_e$content$textConten!==void 0?_e$content$textConten:"":"string"==typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}};}};WP=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([Wy(0,lN),Wy(1,kA)],WP);var WF=i8;let WB="--vscode-toolbar-action-min-width";class WW extends WF.N{get onDidChangeDropdownVisibility(){return this._onDidChangeDropdownVisibility.event;}constructor(e,t,i={orientation:0}){var _i$hoverDelegate,_this$options$respons;if(super(),this.container=e,this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new iv.Z()),this.originalPrimaryActions=[],this.originalSecondaryActions=[],this.hiddenActions=[],this.disposables=this._register(new WF.q()),i.hoverDelegate=(_i$hoverDelegate=i.hoverDelegate)!==null&&_i$hoverDelegate!==void 0?_i$hoverDelegate:this._register(Rm()),this.options=i,this.toggleMenuAction=this._register(new WV(()=>{var _this$toggleMenuActio;return(_this$toggleMenuActio=this.toggleMenuActionViewItem)===null||_this$toggleMenuActio===void 0?void 0:_this$toggleMenuActio.show();},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new A5(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var _i$moreIcon;if(e.id===WV.ID)return this.toggleMenuActionViewItem=new Am(e,{getActions:()=>this.toggleMenuAction.menuActions},t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:eY.asClassNameArray((_i$moreIcon=i.moreIcon)!==null&&_i$moreIcon!==void 0?_i$moreIcon:rC.f.toolBarMore),menuClassName:this.options.dropdownMenuClassName,closeAnimation:this.options.dropdownMenuCloseAnimation,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){let t=i.actionViewItemProvider(e,n);if(t)return t;}if(e instanceof rm){let i=new Am(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,menuClassName:this.options.dropdownMenuClassName,closeAnimation:this.options.dropdownMenuCloseAnimation,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i;}}})),(_this$options$respons=this.options.responsiveBehavior)!==null&&_this$options$respons!==void 0&&_this$options$respons.enabled){var _this$options$respons2,_this$options$respons3;this.element.classList.toggle("responsive",!0),this.element.classList.toggle("responsive-all","all"===this.options.responsiveBehavior.kind),this.element.classList.toggle("responsive-last","last"===this.options.responsiveBehavior.kind),this.element.style.setProperty(WB,`${this.getConfiguredActionMinWidth()}px`);let e=new ResizeObserver(()=>{this.updateActions(this.getAvailableWidth());});e.observe((_this$options$respons2=(_this$options$respons3=this.options.responsiveBehavior)===null||_this$options$respons3===void 0?void 0:_this$options$respons3.observedElement)!==null&&_this$options$respons2!==void 0?_this$options$respons2:this.element),this._store.add((0,WF.Q)(()=>e.disconnect()));}}set actionRunner(e){this.actionBar.actionRunner=e;}get actionRunner(){return this.actionBar.actionRunner;}set context(e){for(let t of(this.actionBar.context=e,(_this$toggleMenuActio2=this.toggleMenuActionViewItem)!==null&&_this$toggleMenuActio2!==void 0&&_this$toggleMenuActio2.setActionContext(e),this.submenuActionViewItems)){var _this$toggleMenuActio2;t.setActionContext(e);}}getElement(){return this.element;}getItemAction(e){return this.actionBar.getAction(e);}getItemElement(e){var _this$actionBar$getCo;let t=(_this$actionBar$getCo=this.actionBar.getContainer().firstElementChild)===null||_this$actionBar$getCo===void 0?void 0:_this$actionBar$getCo.children.item(e);return ou(t)?t:void 0;}getItemViewItem(e){return this.actionBar.viewItems[e];}getUnshrunkItemWidth(e){var _this$actionBar$getCo2;let t=(_this$actionBar$getCo2=this.actionBar.getContainer().firstElementChild)===null||_this$actionBar$getCo2===void 0?void 0:_this$actionBar$getCo2.children.item(e);if(!ou(t))return this.actionBar.getWidth(e);let i=t.style.flexShrink,n=t.style.minWidth;try{return t.style.flexShrink="0",n||(t.style.minWidth="0"),this.actionBar.getWidth(e);}finally{t.style.flexShrink=i,t.style.minWidth=n;}}getItemsLength(){return this.actionBar.length();}setActions(e,t){var _this$options$respons4;this.clear(),this.originalPrimaryActions=e?e.slice(0):[],this.originalSecondaryActions=t?t.slice(0):[];let i=e?e.slice(0):[];if(this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.length>0&&this.options.trailingSeparator&&i.push(new rf()),i.forEach(e=>{var _this$options$icon,_this$options$label;this.actionBar.push(e,{icon:(_this$options$icon=this.options.icon)!==null&&_this$options$icon!==void 0?_this$options$icon:!0,label:(_this$options$label=this.options.label)!==null&&_this$options$label!==void 0?_this$options$label:!1,keybinding:this.getKeybindingLabel(e)});}),this.updateOverflowClassName(),this.applyResponsiveActionMinWidths(),(_this$options$respons4=this.options.responsiveBehavior)!==null&&_this$options$respons4!==void 0&&_this$options$respons4.enabled){if(this.hiddenActions.length=0,void 0!==this.options.responsiveBehavior.minItems){let e=this.options.responsiveBehavior.minItems,t=(this.overflowFromStart?this.originalPrimaryActions.slice(Math.max(0,this.originalPrimaryActions.length-e)):this.originalPrimaryActions.slice(0,e)).reduce((e,t)=>e+this.getActionMinWidth(t),0),i=0;(this.originalSecondaryActions.length>0||e<this.originalPrimaryActions.length)&&(i=24);let n=this.options.trailingSeparator&&!this.actionBar.isEmpty()?this.actionBar.getWidth(this.actionBar.length()-1)+4:0;this.container.style.minWidth=`${t+i+n}px`,this.element.style.minWidth=`${t+i+n}px`;}else{let e=this.originalPrimaryActions.length>0?this.getActionMinWidth(this.originalPrimaryActions[0]):24;this.container.style.minWidth=`${e}px`,this.element.style.minWidth=`${e}px`;}this.updateActions(this.getAvailableWidth());}}get overflowFromStart(){var _this$options$respons5;return((_this$options$respons5=this.options.responsiveBehavior)===null||_this$options$respons5===void 0?void 0:_this$options$respons5.kind)==="all"&&"start"===this.options.responsiveBehavior.overflowFrom;}getKeybindingLabel(e){var _this$options$getKeyB,_this$options2,_t$getLabel;let t=(_this$options$getKeyB=(_this$options2=this.options).getKeyBinding)===null||_this$options$getKeyB===void 0?void 0:_this$options$getKeyB.call(_this$options2,e);return(_t$getLabel=t===null||t===void 0?void 0:t.getLabel())!==null&&_t$getLabel!==void 0?_t$getLabel:void 0;}getConfiguredActionMinWidth(e){var _ref15,_this$options$respons6,_this$options$respons7,_this$options$respons8,_this$options$respons9;return(e===null||e===void 0?void 0:e.id)===WV.ID?20:(_ref15=(_this$options$respons6=(_this$options$respons7=this.options.responsiveBehavior)===null||_this$options$respons7===void 0||(_this$options$respons8=_this$options$respons7.getActionMinWidth)===null||_this$options$respons8===void 0?void 0:_this$options$respons8.call(_this$options$respons7,e!==null&&e!==void 0?e:this.toggleMenuAction))!==null&&_this$options$respons6!==void 0?_this$options$respons6:(_this$options$respons9=this.options.responsiveBehavior)===null||_this$options$respons9===void 0?void 0:_this$options$respons9.actionMinWidth)!==null&&_ref15!==void 0?_ref15:20;}getActionMinWidth(e){return this.getConfiguredActionMinWidth(e)+4;}getAvailableWidth(){var _this$options$respons0;return(_this$options$respons0=this.options.responsiveBehavior)!==null&&_this$options$respons0!==void 0&&_this$options$respons0.getAvailableWidth?this.options.responsiveBehavior.getAvailableWidth():this.element.getBoundingClientRect().width;}applyResponsiveActionMinWidths(){var _this$options$respons1;if(!((_this$options$respons1=this.options.responsiveBehavior)!==null&&_this$options$respons1!==void 0&&_this$options$respons1.enabled))return;if("last"===this.options.responsiveBehavior.kind){let e=this.actionBar.hasAction(this.toggleMenuAction)?this.actionBar.length()-2:this.actionBar.length()-1,t=e>=0?this.actionBar.getAction(e):void 0,i=`${this.getConfiguredActionMinWidth(t)}px`;this.element.style.getPropertyValue(WB)!==i&&this.element.style.setProperty(WB,i);return;}let e=this.actionBar.getContainer().firstElementChild;if(ou(e))for(let t=0;t<e.children.length;t++){let i=e.children.item(t);if(!ou(i))continue;let n=this.actionBar.getAction(t),s=n instanceof rf?"0px":`${this.getConfiguredActionMinWidth(n)}px`;n instanceof rf&&(i.style.flexShrink="0"),i.style.minWidth!==s&&(i.style.minWidth=s);}}updateActions(e){if(this.actionBar.isEmpty())return;this.applyResponsiveActionMinWidths();let t=parseInt(this.element.style.minWidth);e=Math.max(e,Number.isNaN(t)?0:t);let i=e=>{let t=this.getItemElement(e);return!t||"none"!==sT(t).getComputedStyle(t).display;},n=()=>{let e=[];for(let t=0;t<this.actionBar.length();t++){let n=this.actionBar.getAction(t);n&&this.originalPrimaryActions.includes(n)&&i(t)&&e.push(t);}return e;},s=()=>n().reduce((e,t)=>e+(this.actionBar.getAction(t)instanceof rf?0:1),0),o=()=>{let e=n(),t=(this.overflowFromStart?e:e.slice().reverse()).find(e=>!(this.actionBar.getAction(e)instanceof rf));if(void 0===t)return[];let s=t,o=t,r=this.overflowFromStart?1:-1;for(let e=t+r;e>=0&&e<this.actionBar.length();e+=r){let t=this.actionBar.getAction(e);if(!(t instanceof rf)||!this.originalPrimaryActions.includes(t)||!i(e))break;s=Math.min(s,e),o=Math.max(o,e);}let a=[];for(let e=s;e<=o;e++){let t=this.actionBar.getAction(e);t&&a.push(t);}return a;},r=()=>{if(0===this.hiddenActions.length)return[];if(this.overflowFromStart){let e=this.hiddenActions.length-1;for(;e>0&&this.hiddenActions[e]instanceof rf;)e--;return this.hiddenActions.slice(e);}let e=0;for(;e<this.hiddenActions.length-1&&this.hiddenActions[e]instanceof rf;)e++;return this.hiddenActions.slice(0,e+1);},a=()=>{var _this$options$respons10;if(((_this$options$respons10=this.options.responsiveBehavior)===null||_this$options$respons10===void 0?void 0:_this$options$respons10.kind)==="last"){let e=this.actionBar.hasAction(this.toggleMenuAction),t=n();if(0===t.length)return 24*!!e;let i=0;for(let e of t.slice(0,-1))i+=this.actionBar.getWidth(e)+4;let s=this.actionBar.getAction(t.at(-1));return i+=this.getActionMinWidth(s),i+=24*!!e;}{let e=0;for(let t=0;t<this.actionBar.length();t++)if(i(t)){let i=this.actionBar.getAction(t);e+=i instanceof rf?this.actionBar.getWidth(t)+4:this.getActionMinWidth(i);}return e;}},l=(e,t)=>{var _this$options$respons11;let s=e.reduce((e,t)=>e+this.getActionMinWidth(t),0);if(((_this$options$respons11=this.options.responsiveBehavior)===null||_this$options$respons11===void 0?void 0:_this$options$respons11.kind)==="last"){let e=n();for(let[t,i]of e.entries())s+=(t===e.length-1?this.getUnshrunkItemWidth(i):this.actionBar.getWidth(i))+4;}else for(let e=0;e<this.actionBar.length();e++){let t=this.actionBar.getAction(e);t&&t!==this.toggleMenuAction&&i(e)&&(s+=t instanceof rf?this.actionBar.getWidth(e)+4:this.getActionMinWidth(t));}return t&&(s+=24),s;},h=a();if(h<=e&&0===this.hiddenActions.length)return;let d=or(),c=ou(d)?this.actionBar.getAction(d):void 0,u=this.hiddenActions.length;if(h>e){var _this$options$respons12,_this$options$respons13;let t=(_this$options$respons12=this.options.responsiveBehavior)===null||_this$options$respons12===void 0?void 0:_this$options$respons12.allowOverflow;if(!1===t||"function"==typeof t&&!t()||((_this$options$respons13=this.options.responsiveBehavior)===null||_this$options$respons13===void 0?void 0:_this$options$respons13.minItems)!==void 0&&s()<=this.options.responsiveBehavior.minItems)return;for(;h>e&&this.actionBar.length()>0&&!(((_this$options$respons14=this.options.responsiveBehavior)===null||_this$options$respons14===void 0?void 0:_this$options$respons14.minItems)!==void 0&&s()<=this.options.responsiveBehavior.minItems);){var _this$options$respons14,_this$options$icon2,_this$options$label2;let e=o();if(0===e.length)break;for(let t of e){this.hiddenActions.push(t);let e=this.actionBar.viewItems.findIndex(e=>e.action===t);-1!==e&&this.actionBar.pull(e);}this.hiddenActions.sort((e,t)=>this.originalPrimaryActions.indexOf(e)-this.originalPrimaryActions.indexOf(t)),0!==this.originalSecondaryActions.length||this.actionBar.hasAction(this.toggleMenuAction)||(this.actionBar.push(this.toggleMenuAction,{icon:(_this$options$icon2=this.options.icon)!==null&&_this$options$icon2!==void 0?_this$options$icon2:!0,label:(_this$options$label2=this.options.label)!==null&&_this$options$label2!==void 0?_this$options$label2:!1,keybinding:this.getKeybindingLabel(this.toggleMenuAction),index:this.options.trailingSeparator?this.actionBar.length()-1:void 0}),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths(),h=a();}}else for(;this.hiddenActions.length>0;){let t=r(),i=this.originalSecondaryActions.length>0||this.hiddenActions.length>t.length;if(l(t,i)>e)break;for(let e of t){var _this$options$icon3,_this$options$label3;this.hiddenActions.splice(this.hiddenActions.indexOf(e),1);let t=new Set(this.actionBar.viewItems.map(e=>e.action));this.actionBar.push(e,{icon:(_this$options$icon3=this.options.icon)!==null&&_this$options$icon3!==void 0?_this$options$icon3:!0,label:(_this$options$label3=this.options.label)!==null&&_this$options$label3!==void 0?_this$options$label3:!1,keybinding:this.getKeybindingLabel(e),index:this.originalPrimaryActions.slice(0,this.originalPrimaryActions.indexOf(e)).reduce((e,i)=>e+ +!!t.has(i),0)});}0===this.originalSecondaryActions.length&&0===this.hiddenActions.length&&(this.toggleMenuAction.menuActions=[],this.actionBar.pull(this.actionBar.viewItems.findIndex(e=>e.action===this.toggleMenuAction)),this.updateOverflowClassName()),this.applyResponsiveActionMinWidths();}let g=this.hiddenActions.map(e=>{var _this$options$respons15,_this$options$respons16,_this$options$respons17;return(_this$options$respons15=(_this$options$respons16=this.options.responsiveBehavior)===null||_this$options$respons16===void 0||(_this$options$respons17=_this$options$respons16.getOverflowAction)===null||_this$options$respons17===void 0?void 0:_this$options$respons17.call(_this$options$respons16,e,()=>{var _this$toggleMenuActio3;return(_this$toggleMenuActio3=this.toggleMenuActionViewItem)===null||_this$toggleMenuActio3===void 0?void 0:_this$toggleMenuActio3.element;}))!==null&&_this$options$respons15!==void 0?_this$options$respons15:e;});if(this.originalSecondaryActions.length>0||g.length>0){let e=this.originalSecondaryActions.slice(0);this.toggleMenuAction.menuActions=rf.clean(rf.join(g,e));}if(this.updateOverflowClassName(),this.applyResponsiveActionMinWidths(),this.hiddenActions.length!==u){for(let e=0;e<this.actionBar.length();e++){let t=this.getItemViewItem(e);t instanceof Ac&&t.setFocusable(!1);}if(c){var _this$getItemElement;let e=Array.from({length:this.actionBar.length()},(e,t)=>t).find(e=>this.actionBar.getAction(e)===c),t=Array.from({length:this.actionBar.length()},(e,t)=>t).find(e=>this.actionBar.getAction(e)===this.toggleMenuAction);if(this.actionBar.focus(e!==null&&e!==void 0?e:t),void 0!==e&&ou(d)&&ot(d,(_this$getItemElement=this.getItemElement(e))!==null&&_this$getItemElement!==void 0?_this$getItemElement:null)&&or()!==d){let t=this.getItemViewItem(e);t instanceof Ac&&t.setFocusable(!1),d.tabIndex=0,d.focus({preventScroll:!0});}}else this.actionBar.setFocusable(!0);}}updateOverflowClassName(){this.actionBar.domNode.classList.toggle("has-overflow",this.actionBar.hasAction(this.toggleMenuAction));}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear();}dispose(){this.clear(),this.disposables.dispose(),this.element.remove(),super.dispose();}}class WV extends rg{constructor(e,t){t=t||(0,iM.M)(19,"More Actions..."),super(WV.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e;}async run(){this.toggleDropdownMenu();}get menuActions(){return this._menuActions;}set menuActions(e){this._menuActions=e;}}_WV=WV;_WV.ID="toolbar.toggle.more";var WH=i8;ct.G.white.toString(),ct.G.white.toString();let Wz=Object.freeze({allowedTags:{override:["b","i","u","code","span"]},allowedAttributes:{override:["class"]}}),WU=Object.freeze({sanitizerConfig:{allowedAttributes:{override:["class"]}}});class W$ extends WH.N{get onDidClick(){return this._onDidClick.event;}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new iv.S()),this._onDidEscape=this._register(new iv.S()),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary),this._element.classList.toggle("small",!!t.small);let i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground,s=t.secondary?t.buttonSecondaryBorder:t.buttonBorder;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",s&&(this._element.style.border=`1px solid ${s}`),t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"==typeof t.title&&this.setTitle(t.title),"string"==typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this.enabled=!t.disabled,this._register(pU.addTarget(this._element)),[o_.CLICK,e7.Tap].forEach(e=>{this._register(s$(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):ob.stop(e);}));}),this._register(s$(this._element,o_.KEY_DOWN,e=>{let t=new nx(e),i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&ob.stop(t,!0);})),this._register(s$(this._element,o_.MOUSE_OVER,e=>{this._element.classList.contains("disabled")||this.updateStyles(!0);})),this._register(s$(this._element,o_.MOUSE_OUT,e=>{this.updateStyles(!1);})),this.focusTracker=this._register(oS(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateStyles(!0);})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateStyles(!1);}));}dispose(){super.dispose(),this._element.remove();}getContentElements(e){let t=[];for(let i of Ni(e))if("string"==typeof i){if(""===(i=i.trim()))continue;let e=document.createElement("span");e.textContent=i,t.push(e);}else t.push(i);return t;}updateStyles(e){let t,i,n;this.options.secondary?(t=e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground,i=this.options.buttonSecondaryForeground,n=this.options.buttonSecondaryBorder):(t=e?this.options.buttonHoverBackground:this.options.buttonBackground,i=this.options.buttonForeground,n=this.options.buttonBorder),this._element.style.backgroundColor=t||"",this._element.style.color=i||"",this._element.style.border=n?`1px solid ${n}`:"";}get element(){return this._element;}set label(e){if(this._label===e||DB(this._label)&&DB(e)&&DW(this._label,e))return;this._element.classList.add("monaco-text-button");let t=this.options.supportShortLabel?this._labelElement:this._element;if(DB(e)){var _i$element$querySelec;let i=Nr(e,WU,document.createElement("span"));i.dispose();let n=(_i$element$querySelec=i.element.querySelector("p"))===null||_i$element$querySelec===void 0?void 0:_i$element$querySelec.innerHTML;n?Ne(t,n,Wz):oD(t);}else this.options.supportIcons?oD(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"==typeof this.options.title?i=this.options.title:this.options.title&&(i=Nf(e)),this.setTitle(i),this._setAriaLabel(),this._label=e;}get label(){return this._label;}_setAriaLabel(){"string"==typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):"string"==typeof this.options.title&&this._element.setAttribute("aria-label",this.options.title);}set icon(e){this._setAriaLabel();let t=Array.from(this._element.classList).filter(e=>e.startsWith("codicon-"));this._element.classList.remove(...t),this._element.classList.add(...eY.asClassNameArray(e));}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)));}get enabled(){return!this._element.classList.contains("disabled");}set secondary(e){this._element.classList.toggle("secondary",e),this.options.secondary=e,this.updateStyles(!1);}setTitle(e){var _this$options$hoverDe3;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register(RC().setupManagedHover((_this$options$hoverDe3=this.options.hoverDelegate)!==null&&_this$options$hoverDe3!==void 0?_this$options$hoverDe3:Rf("element"),this._element,e));}focus(){this._element.focus();}}var WK=i8;class Wq extends WK.N{constructor(e,t,i){super(),this.options=t,this.styles=i,this.count=0,this.hover=this._register(new WK.k()),this.element=oL(e,oN(".monaco-count-badge")),this._register((0,WK.Q)(()=>e.removeChild(this.element))),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0),this.updateHover();}setCount(e){this.count=e,this.render();}setTitleFormat(e){this.titleFormat=e,this.updateHover(),this.render();}updateHover(){""===this.titleFormat||this.hover.value?""===this.titleFormat&&this.hover.value&&(this.hover.value=void 0):this.hover.value=RC().setupDelayedHoverAtMouse(this.element,()=>({content:(0,i7.R)(this.titleFormat,this.count),appearance:{compact:!0}}));}render(){var _this$styles$badgeBac,_this$styles$badgeFor;this.element.textContent=(0,i7.R)(this.countFormat,this.count),this.element.style.backgroundColor=(_this$styles$badgeBac=this.styles.badgeBackground)!==null&&_this$styles$badgeBac!==void 0?_this$styles$badgeBac:"",this.element.style.color=(_this$styles$badgeFor=this.styles.badgeForeground)!==null&&_this$styles$badgeFor!==void 0?_this$styles$badgeFor:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`);}}e.s(["f",0,Wq],82856);var Wj=i8;let WG="done",WQ="active",WZ="infinite",WY="infinite-long-running",WX="discrete",WJ=(0,iM.M)(16,"Progress");class W0 extends Wj.N{constructor(e,t){super(),this.progressSignal=this._register(new Wj.k()),this.workedVal=0,this.showDelayedScheduler=this._register(new nI.t(()=>oE(this.element),0)),this.longRunningScheduler=this._register(new nI.t(()=>this.infiniteLongRunning(),W0.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t);}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),this.element.setAttribute("aria-label",t!==null&&t!==void 0&&t.ariaLabel&&t.ariaLabel.trim()?t.ariaLabel:WJ),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(t===null||t===void 0?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit);}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(WQ,WZ,WY,WX),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear();}stop(){return this.doDone(!1);}doDone(e){return this.element.classList.add(WG),this.element.classList.contains(WZ)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this;}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(WX,WG,WY),this.element.classList.add(WQ,WZ),this.longRunningScheduler.schedule(),this;}infiniteLongRunning(){this.element.classList.add(WY);}getContainer(){return this.element;}}_W2=W0;_W2.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var W1=i8,W2=i8;class W3 extends W2.N{constructor(e,t,i){super(),this.parent=e,this._listFocusMode=!1,this.onDidChange=e=>this.findInput.onDidChange(e),this.container=oL(this.parent,oN(".quick-input-box")),this.findInput=this._register(new Pu(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i,actionViewItemProvider:O9(i),hideHoverOnValueChange:!0}));}get onKeyDown(){return this.findInput.onKeyDown;}get value(){return this.findInput.getValue();}set value(e){this.findInput.setValue(e);}select(e=null){this.findInput.inputBox.select(e);}getSelection(){return this.findInput.inputBox.getSelection();}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd();}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||"";}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e);}get password(){return"password"===this.findInput.inputBox.inputElement.type;}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text";}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e);}set toggles(e){this.findInput.setAdditionalToggles(e);}set actions(e){this.setActions(e);}setActions(e,t){this.findInput.setActions(e,t);}get ariaLabel(){return this.findInput.inputBox.inputElement.getAttribute("aria-label")||"";}set ariaLabel(e){this.findInput.inputBox.inputElement.setAttribute("aria-label",e);}hasFocus(){return this.findInput.inputBox.hasFocus();}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t);}removeAttribute(e){this.findInput.inputBox.inputElement.removeAttribute(e);}setListFocusMode(e){if(this._listFocusMode===e)return;this._listFocusMode=e;let t=this.findInput.inputBox.inputElement;e?(t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-autocomplete","list")):(t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-autocomplete"));}showDecoration(e){e===bz.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===bz.Info?1:e===bz.Warning?2:3,content:""});}stylesForType(e){return this.findInput.inputBox.stylesForType(e===bz.Info?1:e===bz.Warning?2:3);}setFocus(){this.findInput.focus();}layout(){this.findInput.inputBox.layout();}setHeight(e){this.findInput.inputBox.element.style.height=void 0===e?"":`${e}px`;}}var W5=i8;class W6 extends W5.N{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=oL(e,oN("span.monaco-highlighted-label"));}get element(){return this.domNode;}set(e,t=[],i="",n,s){e||(e=""),n&&(e=W6.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&(0,im.m)(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render(s));}render(e){let t=[],i=0;for(let n of this.highlights){if(n.end===n.start)continue;if(i<n.start){let s=this.text.substring(i,n.start);e?t.push(...Ni(s,!0)):t.push(s),i=n.start;}let s=this.text.substring(i,n.end),o=oN("span.highlight",void 0,...(e?Ni(s,!0):[s]));n.extraClasses&&o.classList.add(...n.extraClasses),t.push(o),i=n.end;}if(i<this.text.length){let n=this.text.substring(i);e?t.push(...Ni(n,!0)):t.push(n);}if(oD(this.domNode,...t),this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{var _this$options$hoverDe4,_this$options3;let e=(_this$options$hoverDe4=(_this$options3=this.options)===null||_this$options3===void 0?void 0:_this$options3.hoverDelegate)!==null&&_this$options$hoverDe4!==void 0?_this$options$hoverDe4:Rf("mouse");this.customHover=this._register(RC().setupManagedHover(e,this.domNode,this.title));}this.didEverRender=!0;}static escapeNewLines(e,t){let i=0,n=0;return e.replace(/\r\n|\r|\n/g,(e,s)=>{for(let o of(n="\r\n"===e?-1:0,s+=i,t))!(o.end<=s)&&(o.start>=s&&(o.start+=n),o.end>=s&&(o.end+=n));return i+=n,"⏎";});}}e.s(["f",0,W6],58232);var W4=i8;class W9{constructor(e){this._element=e;}get element(){return this._element;}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e);}set classNames(e){this.disposed||(0,im.m)(e,this._classNames)||(this._classNames=e,this._element.classList.value="",this._element.classList.add(...e));}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"");}dispose(){this.disposed=!0;}}class W8 extends W4.N{constructor(e,t){var _t$hoverDelegate2;super(),this.customHovers=new Map(),this.creationOptions=t,this.domNode=this._register(new W9(oL(e,oN(".monaco-icon-label")))),this.labelContainer=oL(this.domNode.element,oN(".monaco-icon-label-container")),this.nameContainer=oL(this.labelContainer,oN("span.monaco-icon-name-container")),t!==null&&t!==void 0&&t.supportHighlights||t!==null&&t!==void 0&&t.supportIcons?this.nameNode=this._register(new Ve(this.nameContainer,!!t.supportIcons)):this.nameNode=new W7(this.nameContainer),this.hoverDelegate=(_t$hoverDelegate2=t===null||t===void 0?void 0:t.hoverDelegate)!==null&&_t$hoverDelegate2!==void 0?_t$hoverDelegate2:Rf("mouse");}get element(){return this.domNode.element;}setLabel(e,t,i){var _i$suffix;let n=["monaco-icon-label"],s=["monaco-icon-label-container"],o="";i&&(i.extraClasses&&n.push(...i.extraClasses),i.bold&&n.push("bold"),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough"),i.disabledCommand&&s.push("disabled"),i.title&&("string"==typeof i.title?o+=i.title:o+=e));let r=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i!==null&&i!==void 0&&i.iconPath){let e;if(r&&ou(r)?e=r:(e=oN(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),eY.isThemeIcon(i.iconPath)){let t=eY.asClassName(i.iconPath);e.className=`monaco-icon-label-iconpath ${t}`,e.style.backgroundImage="";}else e.style.backgroundImage=Ra(i===null||i===void 0?void 0:i.iconPath);e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="contain";}else r&&r.remove();if(this.domNode.classNames=n,this.domNode.element.setAttribute("aria-label",o),this.labelContainer.classList.value="",this.labelContainer.classList.add(...s),this.setupHover(i!==null&&i!==void 0&&i.descriptionTitle?this.labelContainer:this.element,i===null||i===void 0?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){let e=this.getOrCreateDescriptionNode();if(e instanceof W6){var _i$supportIcons,_this$creationOptions;let n=(_i$supportIcons=i===null||i===void 0?void 0:i.supportIcons)!==null&&_i$supportIcons!==void 0?_i$supportIcons:(_this$creationOptions=this.creationOptions)===null||_this$creationOptions===void 0?void 0:_this$creationOptions.supportIcons;e.set(t||"",i?i.descriptionMatches:void 0,void 0,i===null||i===void 0?void 0:i.labelEscapeNewLines,n),this.setupHover(e.element,i===null||i===void 0?void 0:i.descriptionTitle);}else e.textContent=t&&i!==null&&i!==void 0&&i.labelEscapeNewLines?W6.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(i===null||i===void 0?void 0:i.descriptionTitle)||""),e.empty=!t;}((i===null||i===void 0?void 0:i.suffix)||this.suffixNode)&&(this.getOrCreateSuffixNode().textContent=(_i$suffix=i===null||i===void 0?void 0:i.suffix)!==null&&_i$suffix!==void 0?_i$suffix:"");}setupHover(e,t){var _this$creationOptions2;let i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t)return void e.removeAttribute("title");let n=e;if((_this$creationOptions2=this.creationOptions)!==null&&_this$creationOptions2!==void 0&&_this$creationOptions2.hoverTargetOverride){if(!ot(e,this.creationOptions.hoverTargetOverride))throw Error("hoverTargetOverrride must be an ancestor of the htmlElement");n=this.creationOptions.hoverTargetOverride;}let s=RC().setupManagedHover(this.hoverDelegate,n,t);s&&this.customHovers.set(e,s);}dispose(){for(let e of(super.dispose(),this.customHovers.values()))e.dispose();this.customHovers.clear();}getOrCreateSuffixNode(){if(!this.suffixNode){let e=this._register(new W9(ox(this.nameContainer,oN("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new W9(oL(e.element,oN("span.label-suffix"))));}return this.suffixNode;}getOrCreateDescriptionNode(){if(!this.descriptionNode){var _this$creationOptions3;let e=this._register(new W9(oL(this.labelContainer,oN("span.monaco-icon-description-container"))));(_this$creationOptions3=this.creationOptions)!==null&&_this$creationOptions3!==void 0&&_this$creationOptions3.supportDescriptionHighlights?this.descriptionNode=this._register(new W6(oL(e.element,oN("span.label-description")))):this.descriptionNode=this._register(new W9(oL(e.element,oN("span.label-description"))));}return this.descriptionNode;}}class W7{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0;}setLabel(e,t){if(!(this.label===e&&(0,im.m)(this.options,t)))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.textContent="",this.container.classList.remove("multiple"),this.singleLabel=oL(this.container,oN("a.label-name",{id:t===null||t===void 0?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.textContent="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){let n=e[i],s=(t===null||t===void 0?void 0:t.domId)&&`${t===null||t===void 0?void 0:t.domId}_${i}`;oL(this.container,oN("a.label-name",{id:s,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&oL(this.container,oN("span.label-separator",void 0,(t===null||t===void 0?void 0:t.separator)||"/"));}}}}class Ve extends W4.N{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0,this._labelDisposables=this._register(new W4.q());}setLabel(e,t){var _t$supportIcons;if(this.label===e&&(0,im.m)(this.options,t))return;this.label=e,this.options=t;let i=(_t$supportIcons=t===null||t===void 0?void 0:t.supportIcons)!==null&&_t$supportIcons!==void 0?_t$supportIcons:this.supportIcons;if("string"==typeof e)this.singleLabel||(this._labelDisposables.clear(),this.container.textContent="",this.container.classList.remove("multiple"),this.singleLabel=this._labelDisposables.add(new W6(oL(this.container,oN("a.label-name",{id:t===null||t===void 0?void 0:t.domId}))))),this.singleLabel.set(e,t===null||t===void 0?void 0:t.matches,void 0,t===null||t===void 0?void 0:t.labelEscapeNewLines,i);else{this._labelDisposables.clear(),this.container.textContent="",this.container.classList.add("multiple"),this.singleLabel=void 0;let n=(t===null||t===void 0?void 0:t.separator)||"/",s=function(e,t,i){if(!i)return;let n=0;return e.map(e=>{let s={start:n,end:n+e.length},o=i.map(e=>tx.intersect(s,e)).filter(e=>!tx.isEmpty(e)).map(({start:e,end:t})=>({start:e-n,end:t-n}));return n=s.end+t.length,o;});}(e,n,t===null||t===void 0?void 0:t.matches);for(let o=0;o<e.length;o++){let r=e[o],a=s?s[o]:void 0,l=oN("a.label-name",{id:(t===null||t===void 0?void 0:t.domId)&&`${t===null||t===void 0?void 0:t.domId}_${o}`,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._labelDisposables.add(new W6(oL(this.container,l))).set(r,a,void 0,t===null||t===void 0?void 0:t.labelEscapeNewLines,i),o<e.length-1&&oL(l,oN("span.label-separator",void 0,n));}}}}e.s(["f",0,W8],20998);var Vt=i8;class Vi extends Vt.N{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set(),this.options=i||Object.create(null);let n=this.options.keybindingLabelForeground;this.domNode=oL(e,oN(".monaco-keybinding")),n&&(this.domNode.style.color=n),this.hover=this._register(RC().setupManagedHover(Rf("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode);}set(e,t){this.didEverRender&&this.keybinding===e&&Vi.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render());}render(){if(this.clear(),this.keybinding){let e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let t=1;t<e.length;t++)oL(this.domNode,oN("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[t],this.matches?this.matches.chordPart:null);let t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"");}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0;}clear(){sz(this.domNode),this.keyElements.clear();}renderChord(e,t,i){let n=Av.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!(i!==null&&i!==void 0&&i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!(i!==null&&i!==void 0&&i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,!!(i!==null&&i!==void 0&&i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!(i!==null&&i!==void 0&&i.metaKey),n.separator);let s=t.keyLabel;s&&this.renderKey(e,s,!!(i!==null&&i!==void 0&&i.keyCode),"");}renderKey(e,t,i,n){oL(e,this.createKeyElement(t,i?".highlight":"")),n&&oL(e,oN("span.monaco-keybinding-key-separator",void 0,n));}renderUnbound(e){oL(e,this.createKeyElement((0,iM.M)(15,"Unbound")));}createKeyElement(e,t=""){let i=oN("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i;}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,im.m)(e.firstPart,t.firstPart)&&(0,im.m)(e.chordPart,t.chordPart);}}e.s(["A",0,Vi,"P",0,{keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0}],57826);let Vn=new pM.f(()=>{let e=b8.f.Collator(void 0,{numeric:!0,sensitivity:"base"}).value;return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric};});new pM.f(()=>({collator:b8.f.Collator(void 0,{numeric:!0}).value})),new pM.f(()=>({collator:b8.f.Collator(void 0,{numeric:!0,sensitivity:"accent"}).value}));var Vs=i8,Vo=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},Vr=function(e,t){return function(i,n){t(i,n,e);};};class Va{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new pM.f(()=>{var _i$label;let e=(_i$label=i.label)!==null&&_i$label!==void 0?_i$label:"",t=DO(e).text.trim(),n=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map(e=>DR(e)).filter(e=>!!e).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:n};}),this._saneDescription=i.description,this._saneTooltip=i.tooltip;}get saneLabel(){return this._init.value.saneLabel;}get saneSortLabel(){return this._init.value.saneSortLabel;}get saneAriaLabel(){return this._init.value.saneAriaLabel;}get element(){return this._element;}set element(e){this._element=e;}get hidden(){return this._hidden;}set hidden(e){this._hidden=e;}get saneDescription(){return this._saneDescription;}set saneDescription(e){this._saneDescription=e;}get saneDetail(){return this._saneDetail;}set saneDetail(e){this._saneDetail=e;}get saneTooltip(){return this._saneTooltip;}set saneTooltip(e){this._saneTooltip=e;}get labelHighlights(){return this._labelHighlights;}set labelHighlights(e){this._labelHighlights=e;}get descriptionHighlights(){return this._descriptionHighlights;}set descriptionHighlights(e){this._descriptionHighlights=e;}get detailHighlights(){return this._detailHighlights;}set detailHighlights(e){this._detailHighlights=e;}}class Vl extends Va{constructor(e,t,i,n,s,o,r){var _o$highlights,_o$highlights2,_o$highlights3;super(e,i,o),this.childIndex=t,this.fireButtonTriggered=n,this._onChecked=s,this.item=o,this._separator=r,this._checked=!1,this.onChecked=i?iv.C.map(iv.C.filter(this._onChecked.event,e=>e.element===this),e=>e.checked):iv.C.None,this._saneDetail=o.detail,this._labelHighlights=(_o$highlights=o.highlights)===null||_o$highlights===void 0?void 0:_o$highlights.label,this._descriptionHighlights=(_o$highlights2=o.highlights)===null||_o$highlights2===void 0?void 0:_o$highlights2.description,this._detailHighlights=(_o$highlights3=o.highlights)===null||_o$highlights3===void 0?void 0:_o$highlights3.detail;}get separator(){return this._separator;}set separator(e){this._separator=e;}get checked(){return this._checked;}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}));}get checkboxDisabled(){return!!this.item.disabled;}}(eV=ii||(ii={}))[eV.NONE=0]="NONE",eV[eV.MOUSE_HOVER=1]="MOUSE_HOVER",eV[eV.ACTIVE_ITEM=2]="ACTIVE_ITEM";class Vh extends Va{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=[],this.focusInsideSeparator=ii.NONE;}}class Vd{getHeight(e){return e instanceof Vh?30:e.saneDetail?44:22;}getTemplateId(e){return e instanceof Vl?Vg.ID:Vp.ID;}}class Vc{getWidgetAriaLabel(){return(0,iM.M)(1867,"Quick Input");}getAriaLabel(e){var _e$separator;return(_e$separator=e.separator)!==null&&_e$separator!==void 0&&_e$separator.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel;}getWidgetRole(){return"listbox";}getRole(e){return e.hasCheckbox?"checkbox":"option";}isChecked(e){if(e.hasCheckbox&&e instanceof Vl)return{get value(){return e.checked;},onDidChange:t=>e.onChecked(()=>t())};}}class Vu extends Vs.N{constructor(e,t,i){super(),this.hoverDelegate=e,this.toggleStyles=t,this.contextMenuService=i,this._onDidDisposeFocusedElement=this._register(new iv.S()),this.onDidDisposeFocusedElement=this._onDidDisposeFocusedElement.event;}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=new Vs.q(),t.toDisposeTemplate=new Vs.q(),t.entry=oL(e,oN(".quick-input-list-entry"));let i=oL(t.entry,oN("label.quick-input-list-label"));t.outerLabel=i,t.checkbox=t.toDisposeTemplate.add(new Vs.k()),t.toDisposeTemplate.add(sq(i,o_.CLICK,e=>{if(t.checkbox.value&&!e.defaultPrevented&&t.checkbox.value.enabled){let e=!t.checkbox.value.checked;t.checkbox.value.checked=e,t.element.checked=e;}}));let n=oL(i,oN(".quick-input-list-rows")),s=oL(n,oN(".quick-input-list-row")),o=oL(n,oN(".quick-input-list-row"));return t.label=new W8(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=ok(t.label.element,oN(".quick-input-list-icon")),t.keybinding=new Vi(oL(s,oN(".quick-input-list-entry-keybinding")),i_.B),t.toDisposeTemplate.add(t.keybinding),t.detail=new W8(oL(o,oN(".quick-input-list-label-meta")),{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=oL(t.entry,oN(".quick-input-list-separator")),t.toolBar=new WW(t.entry,this.contextMenuService,{...(this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),actionViewItemProvider:O9(this.toggleStyles),icon:!0,label:!1}),t.toolBar.getElement().classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.toolBar),t;}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose();}disposeElement(e,t,i){ol(i.entry)&&this._onDidDisposeFocusedElement.fire(),i.toDisposeElement.clear(),i.toolBar.setActions([]);}}let Vg=(_Class1=class Vg extends Vu{constructor(e,t,i,n){super(e,t,i),this.themeService=n,this._itemsWithSeparatorsFrequency=new Map();}get templateId(){return ie.ID;}ensureCheckbox(e,t){if(!e.hasCheckbox){var _t$checkbox$value;(_t$checkbox$value=t.checkbox.value)!==null&&_t$checkbox$value!==void 0&&_t$checkbox$value.domNode.remove(),t.checkbox.clear();return;}let i=t.checkbox.value;i?i.setTitle(e.saneLabel):(i=new O6(e.saneLabel,e.checked,{...AD,size:15}),t.checkbox.value=i,t.outerLabel.prepend(i.domNode),i.domNode.tabIndex=-1),e.checkboxDisabled?i.disable():i.enable(),i.checked=e.checked,t.toDisposeElement.add(e.onChecked(e=>i.checked=e)),t.toDisposeElement.add(i.onChange(()=>e.checked=i.checked));}renderElement(e,t,i){var _i$entry,_s$separator;let n,s=e.element;i.element=s,s.element=(_i$entry=i.entry)!==null&&_i$entry!==void 0?_i$entry:void 0;let o=s.item;s.element.classList.toggle("not-pickable",!1===s.item.pickable),"string"==typeof o.id?i.entry.setAttribute("data-quick-input-id",o.id):i.entry.removeAttribute("data-quick-input-id"),this.ensureCheckbox(s,i);let{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=s;if(o.iconPath){var _o$iconPath$light;let e=p_(this.themeService.getColorTheme().type)?o.iconPath.dark:(_o$iconPath$light=o.iconPath.light)!==null&&_o$iconPath$light!==void 0?_o$iconPath$light:o.iconPath.dark,t=ne.m.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=Ra(t);}else i.icon.style.backgroundImage="",i.icon.className=o.iconClass?`quick-input-list-icon ${o.iconClass}`:"";i.icon.style.color=o.iconColor?cs(o.iconColor.id):"",!s.saneTooltip&&s.saneDescription&&(n={markdown:{value:(0,i7.q)(s.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});let h={matches:r||[],descriptionTitle:n,descriptionMatches:a||[],labelEscapeNewLines:!0};if(h.extraClasses=o.iconClasses,h.italic=o.italic,h.strikethrough=o.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,h),i.keybinding.set(o.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:(0,i7.q)(s.saneDetail),supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0});}else i.detail.element.style.display="none";(_s$separator=s.separator)!==null&&_s$separator!==void 0&&_s$separator.label?(i.separator.textContent=s.separator.label,i.separator.style.display="",this.addItemWithSeparator(s)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!s.separator&&0!==s.childIndex);let d=o.buttons;if(d&&d.length){let{primary:e,secondary:t}=Ww(d,"quick-input-item",e=>s.fireButtonTriggered({button:e,item:s.item}));i.toolBar.setActions(e,t),i.entry.classList.add("has-actions");}else i.toolBar.setActions([]),i.entry.classList.remove("has-actions");}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i);}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e);}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1);}removeItemWithSeparator(e){let t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e);}},ie=_Class1,_Class1.ID="quickpickitem",_Class1);Vg=ie=Vo([Vr(2,kF),Vr(3,_s)],Vg);let Vp=(_Class10=class Vp extends Vu{constructor(e,t,i){super(e,t,i),this._visibleSeparatorsFrequency=new Map();}get templateId(){return it.ID;}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()];}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e);}renderElement(e,t,i){var _i$entry2;let n,s=e.element;i.element=s,s.element=(_i$entry2=i.entry)!==null&&_i$entry2!==void 0?_i$entry2:void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);let o=s.separator,{labelHighlights:r,descriptionHighlights:a}=s;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(n={markdown:{value:(0,i7.q)(s.saneDescription),supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});let l={matches:r||[],descriptionTitle:n,descriptionMatches:a||[],labelEscapeNewLines:!0};i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,l),i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");let h=o.buttons;if(h&&h.length){let{primary:e,secondary:t}=Ww(h,"quick-input-separator",e=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}));i.toolBar.setActions(e,t),i.entry.classList.add("has-actions");}else i.toolBar.setActions([]),i.entry.classList.remove("has-actions");this.addSeparator(s);}disposeElement(e,t,i){var _e$element$element;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||(_e$element$element=e.element.element)!==null&&_e$element$element!==void 0&&_e$element$element.classList.remove("focus-inside"),super.disposeElement(e,t,i);}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1);}removeSeparator(e){let t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e);}},it=_Class10,_Class10.ID="quickpickseparator",_Class10);Vp=it=Vo([Vr(2,kF)],Vp);let Vf=class extends Vs.N{constructor(e,t,i,n,s,o,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.styles=s,this.accessibilityService=r,this._onLeave=this._register(new iv.S()),this.onLeave=this._onLeave.event,this._visibleCountObservable=sc("VisibleCount",0),this.onChangedVisibleCount=iv.C.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=sc("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=iv.C.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=sc("CheckedCount",0),this.onChangedCheckedCount=iv.C.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=Sk({equalsFn:ip.m},[]),this.onChangedCheckedElements=iv.C.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=this._register(new iv.S()),this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=this._register(new iv.S()),this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=this._register(new iv.S()),this._elementCheckedEventBufferer=new iv.s(),this._hasCheckboxes=!1,this._inputElements=[],this._elementTree=[],this._itemElements=[],this._elementDisposable=this._register(new Vs.q()),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=oL(this.parent,oN(".quick-input-list")),this._separatorRenderer=this._register(o.createInstance(Vp,t,this.styles.toggle)),this._itemRenderer=this._register(o.createInstance(Vg,t,this.styles.toggle)),this._tree=this._register(o.createInstance(F9,"QuickInput",this._container,new Vd(),[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Vh?2:1},sorter:{compare:(e,t)=>{var i,n,s;let o,r;return this.sortByLabel&&this._lastQueryString?(i=e,n=t,s=this._lastQueryString.toLowerCase(),o=i.labelHighlights||[],r=n.labelHighlights||[],o.length&&!r.length?-1:!o.length&&r.length?1:0===o.length&&0===r.length?0:function(e,t,i){let n,s,o,r=e.toLowerCase(),a=t.toLowerCase(),l=function(e,t,i){let n=e.toLowerCase(),s=t.toLowerCase(),o=n.startsWith(i),r=s.startsWith(i);if(o!==r)return o?-1:1;if(o&&r){if(n.length<s.length)return-1;if(n.length>s.length)return 1;}return 0;}(e,t,i);if(l)return l;let h=r.endsWith(i);if(h!==a.endsWith(i))return h?-1:1;let d=(n=r||"",s=a||"",o=Vn.value.collator.compare(n,s),Vn.value.collatorIsNumeric&&0===o&&n!==s?n<s?-1:1:o);return 0!==d?d:r.localeCompare(a);}(i.saneSortLabel,n.saneSortLabel,s)):0;}},accessibilityProvider:new Vc(),setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:tj.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._register(this._itemRenderer.onDidDisposeFocusedElement(()=>this._tree.domFocus())),this._register(this._separatorRenderer.onDidDisposeFocusedElement(()=>this._tree.domFocus())),this._registerListeners();}get onDidChangeFocus(){return iv.C.map(this._tree.onDidChangeFocus,e=>e.elements.filter(e=>e instanceof Vl).map(e=>e.item),this._store);}get onDidChangeSelection(){return iv.C.map(this._tree.onDidChangeSelection,e=>({items:e.elements.filter(e=>e instanceof Vl).map(e=>e.item),event:e.browserEvent}),this._store);}get displayed(){return"none"!==this._container.style.display;}set displayed(e){this._container.style.display=e?"":"none";}get scrollTop(){return this._tree.scrollTop;}set scrollTop(e){this._tree.scrollTop=e;}get ariaLabel(){return this._tree.ariaLabel;}set ariaLabel(e){this._tree.ariaLabel=e!==null&&e!==void 0?e:"";}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none";}get matchOnDescription(){return this._matchOnDescription;}set matchOnDescription(e){this._matchOnDescription=e;}get matchOnDetail(){return this._matchOnDetail;}set matchOnDetail(e){this._matchOnDetail=e;}get matchOnLabel(){return this._matchOnLabel;}set matchOnLabel(e){this._matchOnLabel=e;}get matchOnLabelMode(){return this._matchOnLabelMode;}set matchOnLabelMode(e){this._matchOnLabelMode=e;}get sortByLabel(){return this._sortByLabel;}set sortByLabel(e){this._sortByLabel=e;}get shouldLoop(){return this._shouldLoop;}set shouldLoop(e){this._shouldLoop=e;}_registerListeners(){this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners();}_registerOnContainerClick(){this._register(s$(this._container,o_.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire();}));}_registerOnMouseMiddleClick(){this._register(s$(this._container,o_.AUXCLICK,e=>{1===e.button&&this._onLeave.fire();}));}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel(()=>{let e=this._itemElements.filter(e=>!e.hidden).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables();}));}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,(e,t)=>t)(e=>this._updateCheckedObservables()));}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]));}));}_registerHoverListeners(){let e=this._register(new nI.X("function"==typeof this.hoverDelegate.delay?this.hoverDelegate.delay():this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async t=>{var _t$element;if(og(t.browserEvent.target))return void e.cancel();if(!(!og(t.browserEvent.relatedTarget)&&ot(t.browserEvent.relatedTarget,(_t$element=t.element)===null||_t$element===void 0?void 0:_t$element.element)))try{await e.trigger(async()=>{t.element instanceof Vl&&this.showHover(t.element);});}catch(e){if(!(0,nf.F)(e))throw e;}})),this._register(this._tree.onMouseOut(t=>{var _t$element2;ot(t.browserEvent.relatedTarget,(_t$element2=t.element)===null||_t$element2===void 0?void 0:_t$element2.element)||e.cancel();}));}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{let t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(let e of this._separatorRenderer.visibleSeparators){let i=e===t;!!(e.focusInsideSeparator&ii.ACTIVE_ITEM)!==i&&(i?e.focusInsideSeparator|=ii.ACTIVE_ITEM:e.focusInsideSeparator&=~ii.ACTIVE_ITEM,this._tree.rerender(e));}})),this._register(this._tree.onMouseOver(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let e of this._separatorRenderer.visibleSeparators)e===t&&(e.focusInsideSeparator&ii.MOUSE_HOVER||(e.focusInsideSeparator|=ii.MOUSE_HOVER,this._tree.rerender(e)));})),this._register(this._tree.onMouseOut(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let e of this._separatorRenderer.visibleSeparators)e===t&&e.focusInsideSeparator&ii.MOUSE_HOVER&&(e.focusInsideSeparator&=~ii.MOUSE_HOVER,this._tree.rerender(e));}));}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{let t=e.elements.filter(e=>e instanceof Vl);t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Vh&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t));}));}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents(()=>{this._itemElements.forEach(t=>{t.hidden||t.checkboxDisabled||!1===t.item.pickable||(t.checked=e);});});}setElements(e){let t;this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes"),this._itemElements=[],this._elementTree=e.reduce((i,n,s)=>{let o;if("separator"===n.type){if(!n.buttons)return i;o=t=new Vh(s,e=>this._onSeparatorButtonTriggered.fire(e),n);}else{var _t25;let r,a=s>0?e[s-1]:void 0;a&&"separator"===a.type&&!a.buttons&&(r=a);let l=new Vl(s,(_t25=t)!==null&&_t25!==void 0&&_t25.children?t.children.length:s,this._hasCheckboxes&&!1!==n.pickable,e=>this._onButtonTriggered.fire(e),this._elementChecked,n,r);if(this._itemElements.push(l),t)return t.children.push(l),i;o=l;}return i.push(o),i;},[]),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&(0,nI.w)(()=>{let e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e===null||e===void 0?void 0:e.parentNode;if(e&&t){let i=e.nextSibling;e.remove(),t.insertBefore(e,i);}},0,this._elementDisposable);}setFocusedElements(e){let t=e.map(e=>this._itemElements.find(t=>t.item===e)).filter(e=>!!e).filter(e=>!e.hidden);if(this._tree.setFocus(t),e.length>0){let e=this._tree.getFocus()[0];e&&this._tree.reveal(e);}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant");}setSelectedElements(e){let t=e.map(e=>this._itemElements.find(t=>t.item===e)).filter(e=>!!e);this._tree.setSelection(t);}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item);}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents(()=>{let t=new Set();for(let i of e)t.add(i);for(let e of this._itemElements)e.checked=t.has(e.item);});}focus(e){if(this._itemElements.length)switch(e===tM.Second&&this._itemElements.length<2&&(e=tM.First),e){case tM.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,e=>e.element instanceof Vl);break;case tM.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,t=>t.element instanceof Vl&&(!!e||(e=!e,!1)));break;}case tM.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,e=>e.element instanceof Vl);break;case tM.Next:{let e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,e=>e.element instanceof Vl&&(this._tree.reveal(e.element),!0));let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.Previous:{let e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,e=>{if(!(e.element instanceof Vl))return!1;let t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0;});let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.NextPage:this._tree.focusNextPage(void 0,e=>e.element instanceof Vl&&(this._tree.reveal(e.element),!0));break;case tM.PreviousPage:this._tree.focusPreviousPage(void 0,e=>{if(!(e.element instanceof Vl))return!1;let t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0;});break;case tM.NextSeparator:{let e=!1,t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,t=>{if(e)return!0;if(t.element instanceof Vh)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof Vl){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;}return!1;}),t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,e=>e.element instanceof Vl));break;}case tM.PreviousSeparator:{var _this$_tree$getFocus$;let e,t=!!((_this$_tree$getFocus$=this._tree.getFocus()[0])!==null&&_this$_tree$getFocus$!==void 0&&_this$_tree$getFocus$.separator);this._tree.focusPrevious(void 0,!0,void 0,i=>{if(i.element instanceof Vh)t?e||(this._separatorRenderer.isSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element.children[0]):t=!0;else if(i.element instanceof Vl&&!e){if(i.element.separator)this._itemRenderer.isItemWithSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element;else if(i.element===this._elementTree[0])return this._tree.reveal(i.element,0),!0;}return!1;}),e&&this._tree.setFocus([e]);}}}clearFocus(){this._tree.setFocus([]);}domFocus(){this._tree.domFocus();}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${44*Math.floor(e/44)+6}px`:"",this._tree.layout();}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach(n=>{var _DP,_ref16,_DP2,_DP3;let s;s="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(_DP=DP(e,DO(n.saneLabel)))!==null&&_DP!==void 0?_DP:void 0:void 0:this.matchOnLabel?(_ref16=function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return Vm(e,i);let s=(0,i7.x)(i," "),o=i.length-s.length,r=Vm(e,s);if(r)for(let e of r){let t=n[e.start+o]+o;e.start+=t,e.end+=t;}return r;}(t,DO(n.saneLabel)))!==null&&_ref16!==void 0?_ref16:void 0:void 0;let o=this.matchOnDescription?(_DP2=DP(e,DO(n.saneDescription||"")))!==null&&_DP2!==void 0?_DP2:void 0:void 0,r=this.matchOnDetail?(_DP3=DP(e,DO(n.saneDetail||"")))!==null&&_DP3!==void 0?_DP3:void 0:void 0;if(s||o||r?(n.labelHighlights=s,n.descriptionHighlights=o,n.detailHighlights=r,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){let e=n.index&&this._inputElements[n.index-1]||void 0;(e===null||e===void 0?void 0:e.type)!=="separator"||e.buttons||(i=e),i&&!n.hidden&&(n.separator=i,i=void 0);}});}else this._itemElements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0);});return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0;}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents(()=>{let e=this._tree.getFocus().filter(e=>e instanceof Vl),t=this._allVisibleChecked(e);for(let i of e)i.checkboxDisabled||(i.checked=!t);});}style(e){this._tree.style(e);}toggleHover(){let e=this._tree.getFocus()[0];if(!(e!==null&&e!==void 0&&e.saneTooltip)||!(e instanceof Vl))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);let t=new Vs.q();t.add(this._tree.onDidChangeFocus(e=>{e.elements[0]instanceof Vl&&this.showHover(e.elements[0]);})),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t);}_setElementsToTree(e){let t=[];for(let i of e)i instanceof Vh?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map(e=>({element:e,collapsible:!1,collapsed:!1}))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t);}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden&&!1!==n.item.pickable)if(!n.checked)return!1;else t=!0;}return t;}_updateCheckedObservables(){sr(e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);let t=this._itemElements.filter(e=>e.checked).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e);});}showHover(e){var _this$hoverDelegate$o,_this$hoverDelegate,_this$_lastHover;this._lastHover&&!this._lastHover.isDisposed&&((_this$hoverDelegate$o=(_this$hoverDelegate=this.hoverDelegate).onDidHideHover)!==null&&_this$hoverDelegate$o!==void 0&&_this$hoverDelegate$o.call(_this$hoverDelegate),(_this$_lastHover=this._lastHover)!==null&&_this$_lastHover!==void 0&&_this$_lastHover.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e);},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1));}};function Vm(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null;}function V_(e,t={}){var _e$secondary;as.registerCommandAndKeybindingRule({weight:200,when:rV.and(rV.or(rV.equals(WD,"quickPick"),rV.equals(WD,"quickTree")),WL),metadata:{description:(0,iM.M)(1856,"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...e,secondary:Vb(e.primary,(_e$secondary=e.secondary)!==null&&_e$secondary!==void 0?_e$secondary:[],t)});}Vo([pH],Vf.prototype,"onDidChangeFocus",null),Vo([pH],Vf.prototype,"onDidChangeSelection",null),Vf=Vo([Vr(5,rr),Vr(6,dj)],Vf);let Vv=i_.e?256:2048;function Vb(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(Vv+e),i.withAltMod&&t.push(512+Vv+e)),i.withShiftMod&&(t.push(1024+e),i.withAltMod&&t.push(1536+e),i.withCtrlMod&&(t.push(Vv+1024+e),i.withAltMod&&t.push(512+Vv+1024+e))),i.withCmdMod&&i_.e&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t;}function VC(e,t){return i=>{let n=i.get(Ec).currentQuickInput;if(n)return t&&n.quickNavigate?n.focus(t):n.focus(e);};}V_({id:"quickInput.pageNext",primary:12,handler:VC(tM.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),V_({id:"quickInput.pagePrevious",primary:11,handler:VC(tM.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),V_({id:"quickInput.first",primary:Vv+14,handler:VC(tM.First)},{withAltMod:!0,withCmdMod:!0}),V_({id:"quickInput.last",primary:Vv+13,handler:VC(tM.Last)},{withAltMod:!0,withCmdMod:!0}),V_({id:"quickInput.next",primary:18,handler:VC(tM.Next)},{withCtrlMod:!0}),V_({id:"quickInput.previous",primary:16,handler:VC(tM.Previous)},{withCtrlMod:!0});let Vw=(0,iM.M)(1857,"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),Vy=(0,iM.M)(1858,"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");i_.e?(V_({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:VC(tM.NextSeparator,tM.Next),metadata:{description:Vw}}),V_({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:VC(tM.NextSeparator)},{withCtrlMod:!0}),V_({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:VC(tM.PreviousSeparator,tM.Previous),metadata:{description:Vy}}),V_({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:VC(tM.PreviousSeparator)},{withCtrlMod:!0})):(V_({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:VC(tM.NextSeparator,tM.Next),metadata:{description:Vw}}),V_({id:"quickInput.nextSeparator",primary:2578,handler:VC(tM.NextSeparator)}),V_({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:VC(tM.PreviousSeparator,tM.Previous),metadata:{description:Vy}}),V_({id:"quickInput.previousSeparator",primary:2576,handler:VC(tM.PreviousSeparator)})),as.registerCommandAndKeybindingRule({id:"quickInput.accept",primary:3,weight:200,when:rV.and(rV.notEquals(WD,"quickWidget"),WL),metadata:{description:(0,iM.M)(1859,"Used while in the context of some quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},handler:e=>{let t=e.get(Ec).currentQuickInput;t===null||t===void 0||t.accept();},secondary:Vb(3,[],{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0,withShiftMod:!0})}),V_({id:"quickInput.acceptInBackground",when:rV.and(WL,rV.equals(WD,"quickPick"),rV.or(T1.negate(),WE)),primary:17,weight:250,handler:e=>{let t=e.get(Ec).currentQuickInput;t===null||t===void 0||t.accept(!0);}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),function(e,t={},_e$secondary2){as.registerCommandAndKeybindingRule({weight:200,when:WL,metadata:{description:(0,iM.M)(1855,"Used while in the context of any kind of quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")},...e,secondary:Vb(e.primary,(_e$secondary2=e.secondary)!==null&&_e$secondary2!==void 0?_e$secondary2:[],t)});}({id:"quickInput.hide",primary:9,handler:e=>{let t=e.get(Ec).currentQuickInput;t===null||t===void 0||t.hide();}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),V_({id:"quickInput.toggleCheckbox",when:rV.and(WL,rV.or(rV.equals(WD,"quickPick"),rV.equals(WD,"quickTree")),T1.negate()),primary:10,handler:e=>{e.get(Ec).toggle();}}),V_({id:"quickInput.toggleHover",primary:10|Vv,handler:e=>{e.get(Ec).toggleHover();}});var VS=i8,Vx=i8,VL=function(e,t){return function(i,n){t(i,n,e);};};class Vk extends Vx.N{constructor(){super(...arguments),this._onDidChangeCheckboxState=this._register(new iv.S()),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event;}setCheckboxState(e,t){this._onDidChangeCheckboxState.fire({item:e,checked:t});}}let VD=(_Class11=class VD extends Vx.N{constructor(e,t,i,n,s,o,r){super(),this._hoverDelegate=e,this._buttonTriggeredEmitter=t,this.onCheckedEvent=i,this._checkboxStateHandler=n,this._toggleStyles=s,this._contextMenuService=o,this._themeService=r,this.templateId=is.ID,this._onDidDisposeFocusedElement=this._register(new iv.S()),this.onDidDisposeFocusedElement=this._onDidDisposeFocusedElement.event;}renderTemplate(e){let t=new Vx.q(),i=oL(e,oN(".quick-input-tree-entry")),n=t.add(new O4("",!1,{...AD,size:15}));i.appendChild(n.domNode);let s=oL(i,oN("label.quick-input-tree-label")),o=oL(s,oN(".quick-input-tree-rows")),r=oL(o,oN(".quick-input-tree-row")),a=ok(r,oN(".quick-input-tree-icon")),l=t.add(new W8(r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this._hoverDelegate})),h=t.add(new WW(i,this._contextMenuService,{actionViewItemProvider:O9(this._toggleStyles),hoverDelegate:this._hoverDelegate,icon:!0,label:!1}));return h.getElement().classList.add("quick-input-tree-entry-action-bar"),{toDisposeTemplate:t,entry:i,checkbox:n,icon:a,label:l,actionBar:h,toDisposeElement:new Vx.q()};}renderElement(e,t,i,n){let s,o=i.toDisposeElement,r=e.element;if(!1===r.pickable)i.checkbox.domNode.style.display="none";else{var _r$checked;let e=i.checkbox;e.domNode.style.display="",e.checked=(_r$checked=r.checked)!==null&&_r$checked!==void 0?_r$checked:!1,o.add(iv.C.filter(this.onCheckedEvent,e=>e.item===r)(t=>e.checked=t.checked)),r.disabled&&e.disable(),o.add(e.onChange(t=>this._checkboxStateHandler.setCheckboxState(r,e.checked)));}if(r.iconPath){var _r$iconPath$light;let e=p_(this._themeService.getColorTheme().type)?r.iconPath.dark:(_r$iconPath$light=r.iconPath.light)!==null&&_r$iconPath$light!==void 0?_r$iconPath$light:r.iconPath.dark,t=ne.m.revive(e);i.icon.className="quick-input-tree-icon",i.icon.style.backgroundImage=Ra(t);}else i.icon.style.backgroundImage="",i.icon.className=r.iconClass?`quick-input-tree-icon ${r.iconClass}`:"";i.icon.style.color=r.iconColor?cs(r.iconColor.id):"";let{labelHighlights:a,descriptionHighlights:l}=e.filterData||{};r.description&&(s={markdown:{value:(0,i7.q)(r.description),supportThemeIcons:!0},markdownNotSupportedFallback:r.description}),i.label.setLabel(r.label,r.description,{matches:a,descriptionMatches:l,extraClasses:r.iconClasses,italic:r.italic,strikethrough:r.strikethrough,labelEscapeNewLines:!0,descriptionTitle:s});let h=r.buttons;if(h&&h.length){let{primary:e,secondary:t}=Ww(h,"quick-input-tree",e=>this._buttonTriggeredEmitter.fire({item:r,button:e}));i.actionBar.setActions(e,t),i.entry.classList.add("has-actions");}else i.actionBar.setActions([]),i.entry.classList.remove("has-actions");}disposeElement(e,t,i,n){ol(i.entry)&&this._onDidDisposeFocusedElement.fire(),i.toDisposeElement.clear(),i.actionBar.setActions([]);}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose();}},is=_Class11,_Class11.ID="quickInputTreeElement",_Class11);VD=is=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([VL(5,kF),VL(6,_s)],VD);class VM{getHeight(e){return 22;}getTemplateId(e){return VD.ID;}}function VI(e){let t=!1,i=!1,n=!1;for(let s of e){var _s$element;switch((_s$element=s.element)===null||_s$element===void 0?void 0:_s$element.checked){case"mixed":n=!0;break;case!0:t=!0;break;default:i=!0;}if(t&&i&&n)break;}return i?n?"mixed":!!t&&"mixed":n?"mixed":t;}class VN{constructor(e){this.onCheckedEvent=e;}getWidgetAriaLabel(){return(0,iM.M)(1869,"Quick Tree");}getAriaLabel(e){return e.ariaLabel||[e.label,e.description].map(e=>DR(e)).filter(e=>!!e).join(", ");}getWidgetRole(){return"tree";}getRole(e){return"checkbox";}isChecked(e){return{get value(){return"mixed"===e.checked?"mixed":!!e.checked;},onDidChange:t=>iv.C.filter(this.onCheckedEvent,t=>t.item===e)(e=>t())};}}class VE{constructor(){this.filterValue="",this.matchOnLabel=!0,this.matchOnDescription=!1;}filter(e,t){var _DP4,_DP5;if(!this.filterValue||!(this.matchOnLabel||this.matchOnDescription))return e.children?{visibility:2,data:{}}:{visibility:1,data:{}};let i=this.matchOnLabel?(_DP4=DP(this.filterValue,DO(e.label)))!==null&&_DP4!==void 0?_DP4:void 0:void 0,n=this.matchOnDescription?(_DP5=DP(this.filterValue,DO(e.description||"")))!==null&&_DP5!==void 0?_DP5:void 0:void 0;return{visibility:1===t||i||n?1:2*!!e.children,data:{labelHighlights:i,descriptionHighlights:n}};}}var VT=i8;class VR extends VT.N{constructor(){super(...arguments),this._sortByLabel=!0;}get sortByLabel(){return this._sortByLabel;}set sortByLabel(e){this._sortByLabel=e;}compare(e,t){if(!this._sortByLabel)return 0;if(e.label<t.label)return-1;if(e.label>t.label)return 1;if(e.description&&t.description){if(e.description<t.description)return-1;else if(e.description>t.description)return 1;}else if(e.description)return-1;else if(t.description)return 1;return 0;}}class VA{constructor(){this._elementIds=new WeakMap(),this._counter=0;}getId(e){let t=e.id;return void 0!==t||void 0!==(t=this._elementIds.get(e))||(t=`__generated_${this._counter++}`,this._elementIds.set(e,t)),t;}}let VO=class extends VS.N{constructor(e,t,i,n){super(),this.instantiationService=n,this._onDidTriggerButton=this._register(new iv.S()),this._onDidChangeCheckboxState=this._register(new iv.S()),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event,this._onDidCheckedLeafItemsChange=this._register(new iv.S()),this.onDidChangeCheckedLeafItems=this._onDidCheckedLeafItemsChange.event,this._onLeave=this._register(new iv.S()),this.onLeave=this._onLeave.event,this._onDidAccept=this._register(new iv.S()),this.onDidAccept=this._onDidAccept.event,this._container=oL(e,oN(".quick-input-tree")),this._checkboxStateHandler=this._register(new Vk()),this._renderer=this._register(this.instantiationService.createInstance(VD,t,this._onDidTriggerButton,this.onDidChangeCheckboxState,this._checkboxStateHandler,i.toggle)),this._filter=this.instantiationService.createInstance(VE),this._sorter=this._register(new VR()),this._tree=this._register(this.instantiationService.createInstance(F9,"QuickInputTree",this._container,new VM(),[this._renderer],{accessibilityProvider:new VN(this.onDidChangeCheckboxState),horizontalScrolling:!1,multipleSelectionSupport:!1,findWidgetEnabled:!1,alwaysConsumeMouseWheel:!0,hideTwistiesOfChildlessElements:!0,renderIndentGuides:tj.None,expandOnDoubleClick:!0,expandOnlyOnTwistieClick:!0,disableExpandOnSpacebar:!0,sorter:this._sorter,filter:this._filter,identityProvider:new VA()})),this._register(this._renderer.onDidDisposeFocusedElement(()=>{this._tree.domFocus();})),this.registerCheckboxStateListeners(),this.registerOnDidChangeFocus();}get tree(){return this._tree;}get displayed(){return"none"!==this._container.style.display;}set displayed(e){this._container.style.display=e?"":"none";}get sortByLabel(){return this._sorter.sortByLabel;}set sortByLabel(e){this._sorter.sortByLabel=e,this._tree.resort(null,!0);}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant");}filter(e){this._filter.filterValue=e,this._tree.refilter();}updateFilterOptions(e){void 0!==e.matchOnLabel&&(this._filter.matchOnLabel=e.matchOnLabel),void 0!==e.matchOnDescription&&(this._filter.matchOnDescription=e.matchOnDescription),this._tree.refilter();}setTreeData(e){let t=!1,i=e=>{let n;return e.children&&e.children.length>0&&(t=!0,n=e.children.map(e=>i(e)),e.checked=VI(n)),{element:e,children:n,collapsible:!!n,collapsed:e.collapsed?tK.PreserveOrCollapsed:tK.PreserveOrExpanded};},n=e.map(e=>i(e));this._tree.setChildren(null,n),this._container.classList.toggle("quick-input-tree-flat",!t);}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${44*Math.floor(e/44)+6}px`:"",this._tree.layout();}focus(e){switch(e){case tM.First:this._tree.scrollTop=0,this._tree.focusFirst();break;case tM.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,t=>!!e||(e=!e,!1));break;}case tM.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast();break;case tM.Next:{let e=this._tree.getFocus();this._tree.focusNext(void 0,!1,void 0,e=>(this._tree.reveal(e.element),!0));let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.Previous:{let e=this._tree.getFocus();this._tree.focusPrevious(void 0,!1,void 0,e=>(this._tree.reveal(e.element),!0));let t=this._tree.getFocus();e.length&&e[0]===t[0]&&this._onLeave.fire();break;}case tM.NextPage:this._tree.focusNextPage(void 0,e=>(this._tree.reveal(e.element),!0));break;case tM.PreviousPage:this._tree.focusPreviousPage(void 0,e=>(this._tree.reveal(e.element),!0));break;case tM.NextSeparator:case tM.PreviousSeparator:return;}}registerCheckboxStateListeners(){this._register(this._tree.onDidOpen(e=>{var _e$browserEvent2;let t=e.element;if(!t||t.disabled)return;if(!1===t.pickable){this._tree.setFocus([t]),this._onDidAccept.fire();return;}let i=(_e$browserEvent2=e.browserEvent)===null||_e$browserEvent2===void 0?void 0:_e$browserEvent2.target;i&&i.classList.contains(O6.CLASS_NAME)||this.updateCheckboxState(t,!0===t.checked);})),this._register(this._checkboxStateHandler.onDidChangeCheckboxState(e=>{this.updateCheckboxState(e.item,!0===e.checked,!0),this._tree.setFocus([e.item]),this._tree.setSelection([e.item]);}));}updateCheckboxState(e,t,i=!1){var _e$checked,_e$checked2;if(((_e$checked=e.checked)!==null&&_e$checked!==void 0?_e$checked:!1)===t)return;e.checked=t,i||this._tree.rerender(e);let n=new Set(),s=[...this._tree.getNode(e).children];for(;s.length;){var _t$element$checked;let t=s.shift();(t===null||t===void 0?void 0:t.element)&&!n.has(t.element)&&(n.add(t.element),((_t$element$checked=t.element.checked)!==null&&_t$element$checked!==void 0?_t$element$checked:!1)!==e.checked&&(t.element.checked=e.checked,this._tree.rerender(t.element)),s.push(...t.children));}let o=this._tree.getParentElement(e);for(;o;){var _o$checked;let e=VI([...this._tree.getNode(o).children]);((_o$checked=o.checked)!==null&&_o$checked!==void 0?_o$checked:!1)!==e&&(o.checked=e,this._tree.rerender(o)),o=this._tree.getParentElement(o);}this._onDidChangeCheckboxState.fire({item:e,checked:(_e$checked2=e.checked)!==null&&_e$checked2!==void 0?_e$checked2:!1}),this._onDidCheckedLeafItemsChange.fire(this.getCheckedLeafItems());}registerOnDidChangeFocus(){this._register(this._tree.onDidChangeFocus(e=>{let t=this._tree.getFocus().findLast(e=>null!==e);this._tree.setSelection(t?[t]:[],e.browserEvent);}));}getCheckedLeafItems(){let e=new Set(),t=[...this._tree.getNode().children],i=[];for(;t.length;){let n=t.shift();!(!(n!==null&&n!==void 0&&n.element)||e.has(n.element))&&n.element.checked&&(e.add(n.element),t.push(...n.children),n.element.children||i.push(n.element));}return i;}getActiveItems(){return this._tree.getFocus().filter(e=>null!==e);}toggleCheckbox(){for(let e of this.getActiveItems())!1===e.pickable||e.disabled||this.updateCheckboxState(e,!0!==e.checked);}checkAll(e){let t=new Set(),i=[...this._tree.getNode().children],n=!1;for(;i.length;){let s=i.shift();!(s!==null&&s!==void 0&&s.element)||t.has(s.element)||s.element.checked!==e&&(n=!0,s.element.checked=e,i.push(...s.children),t.add(s.element),this._tree.rerender(s.element),this._onDidChangeCheckboxState.fire({item:s.element,checked:s.element.checked}));}n&&this._onDidCheckedLeafItemsChange.fire(this.getCheckedLeafItems());}};VO=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){rr(e,t,3);}],VO);class VP extends WR{constructor(e){super(e),this.type="quickTree",this._value=sc("value",""),this._ariaLabel=sc("ariaLabel",void 0),this._placeholder=sc("placeholder",void 0),this._matchOnDescription=sc("matchOnDescription",!1),this._matchOnLabel=sc("matchOnLabel",!0),this._sortByLabel=sc("sortByLabel",!0),this._activeItems=sc("activeItems",[]),this._itemTree=sc("itemTree",[]),this._onDidChangeCheckedLeafItems=this._register(new iv.S()),this._onDidChangeCheckboxState=this._register(new iv.S()),this._onDidAcceptEmitter=this._register(new iv.S()),this.onDidAccept=iv.C.any(e.onDidAccept,this._onDidAcceptEmitter.event),this._registerAutoruns(),this._register(e.tree.onDidChangeCheckedLeafItems(e=>this._onDidChangeCheckedLeafItems.fire(e))),this._register(e.tree.onDidChangeCheckboxState(e=>this._onDidChangeCheckboxState.fire(e.item))),this._register(e.tree.tree.onDidChangeFocus(t=>{this._activeItems.set(e.tree.getActiveItems(),void 0);}));}get placeholder(){return this._placeholder.get();}set placeholder(e){this._placeholder.set(e,void 0);}show(){if(!this.visible){let e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description,checkAll:!0,checkBox:!0,inputBox:!0,progressBar:!0,visibleCount:!0,count:!0,ok:!0,list:!1,tree:!0,message:!!this.validationMessage,customButton:!1};this.ui.setVisibilities(e),this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this._value.set(e,void 0);})),this.visibleDisposables.add(this.ui.tree.onDidChangeCheckboxState(e=>{let t=VI([...this.ui.tree.tree.getNode().children]);this.ui.checkAll.checked!==t&&(this.ui.checkAll.checked=t);})),this.visibleDisposables.add(this.ui.checkAll.onChange(e=>{let t=this.ui.checkAll.checked;this.ui.tree.checkAll(t);})),this.visibleDisposables.add(this.ui.tree.onDidChangeCheckedLeafItems(e=>{this.ui.count.setCount(e.length);}));}super.show(),(0,i_.j)(()=>this.ui.count.setCount(this.ui.tree.getCheckedLeafItems().length));let e=VI([...this.ui.tree.tree.getNode().children]);this.ui.checkAll.checked!==e&&(this.ui.checkAll.checked=e);}update(){if(!this.visible)return;let e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description,checkAll:!0,checkBox:!0,inputBox:!0,progressBar:!0,visibleCount:!0,count:!0,ok:!0,tree:!0,message:!!this.validationMessage};this.ui.setVisibilities(e),super.update();}_registerAutoruns(){this.registerVisibleAutorun(e=>{let t=this._value.read(e);this.ui.inputBox.value=t,this.ui.tree.filter(t);}),this.registerVisibleAutorun(e=>{let t=this._ariaLabel.read(e);!t&&(t=this.placeholder||VP.DEFAULT_ARIA_LABEL,this.title&&(t+=` - ${this.title}`)),this.ui.list.ariaLabel!==t&&(this.ui.list.ariaLabel=t!==null&&t!==void 0?t:null),this.ui.inputBox.ariaLabel!==t&&(this.ui.inputBox.ariaLabel=t!==null&&t!==void 0?t:"input");}),this.registerVisibleAutorun(e=>{let t=this._placeholder.read(e);this.ui.inputBox.placeholder!==t&&(this.ui.inputBox.placeholder=t!==null&&t!==void 0?t:"");}),this.registerVisibleAutorun(e=>{let t=this._matchOnLabel.read(e),i=this._matchOnDescription.read(e);this.ui.tree.updateFilterOptions({matchOnLabel:t,matchOnDescription:i});}),this.registerVisibleAutorun(e=>{let t=this._sortByLabel.read(e);this.ui.tree.sortByLabel=t;}),this.registerVisibleAutorun(e=>{let t=this._itemTree.read(e);this.ui.tree.setTreeData(t);});}registerVisibleAutorun(e){this._register(se(t=>{this._visible.read(t)&&e(t);}));}focus(e){this.ui.tree.focus(e),this.ui.tree.tree.domFocus();}accept(e){this._onDidAcceptEmitter.fire();}}_VP=VP;_VP.DEFAULT_ARIA_LABEL=(0,iM.M)(1870,"Type to narrow down results.");var VF=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},VB=function(e,t){return function(i,n){t(i,n,e);};};let VW="workbench.quickInput.viewState",VV="quick-input-widget-closing",VH="quick-input-widget-overlay",Vz=["modern-ui","monaco-enable-motion"],VU=(_Class12=class VU extends W1.N{get currentQuickInput(){var _this$controller;return(_this$controller=this.controller)!==null&&_this$controller!==void 0?_this$controller:void 0;}get container(){return this._container;}constructor(e,t,i,n,s,o){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.storageService=s,this.contextMenuService=o,this.enabled=!0,this.onDidAcceptEmitter=this._register(new iv.S()),this.onDidCustomEmitter=this._register(new iv.S()),this.onDidTriggerButtonEmitter=this._register(new iv.S()),this.keyMods={ctrlCmd:!1,alt:!1,shift:!1},this.controller=null,this.onShowEmitter=this._register(new iv.S()),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new iv.S()),this.onHide=this.onHideEmitter.event,this.closeAnimation=this._register(new W1.k()),this._alignment=sc(this,"top"),this.alignment=this._alignment,this.inQuickInputContext=Wx.bindTo(n),this.quickInputTypeContext=WM.bindTo(n),this.endOfQuickInputBoxContext=WN.bindTo(n),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(iv.C.runAndSubscribe(sB,({window:e,disposables:t})=>this.registerKeyModsListeners(e,t),{window:i9,disposables:this._store})),this._register(sW(e=>{this.ui&&sT(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop));})),this.viewState=this.loadViewState();}registerKeyModsListeners(e,t){let i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey,this.keyMods.shift=e.shiftKey;};for(let n of[o_.KEY_DOWN,o_.KEY_UP,o_.MOUSE_DOWN])t.add(s$(e,n,i,!0));}getUI(e){if(this.ui)return e&&sT(this._container)!==sT(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let t=oL(this._container,oN(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";let i=d6(t),n=oL(t,oN(".quick-input-titlebar")),s=this._register(new WW(n,this.contextMenuService,{hoverDelegate:this.options.hoverDelegate,actionViewItemProvider:O9(this.styles.toggle),icon:!0,label:!1}));s.getElement().classList.add("quick-input-left-action-bar");let o=oL(n,oN(".quick-input-title")),r=this._register(new WW(n,this.contextMenuService,{hoverDelegate:this.options.hoverDelegate,actionViewItemProvider:O9(this.styles.toggle),icon:!0,label:!1}));r.getElement().classList.add("quick-input-right-action-bar");let a=oL(t,oN(".quick-input-header")),l=this._register(new O4((0,iM.M)(1860,"Toggle all checkboxes"),!1,{...AD,size:15}));oL(a,l.domNode),this._register(l.onChange(()=>{let e=l.checked;D.setAllVisibleChecked(!0===e);})),this._register(s$(l.domNode,o_.CLICK,e=>{(e.x||e.y)&&u.setFocus();}));let h=oL(a,oN(".quick-input-description")),d=oL(a,oN(".quick-input-and-message")),c=oL(d,oN(".quick-input-filter")),u=this._register(new W3(c,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);let g=oL(c,oN(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");let p=this._register(new Wq(g,{countFormat:(0,iM.M)(1861,"{0} Results")},this.styles.countBadge)),f=oL(c,oN(".quick-input-count"));f.setAttribute("aria-live","polite");let m=this._register(new Wq(f,{countFormat:(0,iM.M)(1862,"{0} Selected")},this.styles.countBadge)),_=this._register(new WW(a,this.contextMenuService,{hoverDelegate:this.options.hoverDelegate,actionViewItemProvider:O9(this.styles.toggle),icon:!0,label:!1}));_.getElement().classList.add("quick-input-inline-action-bar");let v=oL(a,oN(".quick-input-action")),b=this._register(new W$(v,this.styles.button));b.label=(0,iM.M)(1863,"OK"),this._register(b.onDidClick(e=>{this.onDidAcceptEmitter.fire();}));let C=oL(a,oN(".quick-input-action")),w=this._register(new W$(C,{...this.styles.button,supportIcons:!0}));w.label=(0,iM.M)(1864,"Custom"),this._register(w.onDidClick(e=>{this.onDidCustomEmitter.fire();}));let y=oL(d,oN(`#${this.idPrefix}message.quick-input-message`)),S=this._register(new W0(t,this.styles.progressBar));S.getContainer().classList.add("quick-input-progress");let x=oL(t,oN(".quick-input-html-widget"));x.tabIndex=-1;let L=oL(t,oN(".quick-input-description")),k=this.idPrefix+"list",D=this._register(this.instantiationService.createInstance(Vf,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,k,this.styles));u.setAttribute("aria-controls",k),this._register(D.onDidChangeFocus(()=>{if(u.hasFocus()){let e=D.getActiveDescendant();e?(u.setAttribute("aria-activedescendant",e),u.setListFocusMode(!0)):(u.removeAttribute("aria-activedescendant"),u.setListFocusMode(!1));}})),this._register(D.onChangedAllVisibleChecked(e=>{l.checked=e;})),this._register(D.onChangedVisibleCount(e=>{p.setCount(e);})),this._register(D.onChangedCheckedCount(e=>{(0,i_.j)(()=>m.setCount(e));})),this._register(D.onLeave(()=>{setTimeout(()=>{this.controller&&(u.setFocus(),this.controller instanceof WA&&this.controller.canSelectMany&&D.clearFocus());},0);}));let M=this._register(this.instantiationService.createInstance(VO,t,this.options.hoverDelegate,this.styles));this._register(M.tree.onDidChangeFocus(()=>{if(u.hasFocus()){let e=M.getActiveDescendant();e?(u.setAttribute("aria-activedescendant",e),u.setListFocusMode(!0)):(u.removeAttribute("aria-activedescendant"),u.setListFocusMode(!1));}})),this._register(M.onLeave(()=>{setTimeout(()=>{this.controller&&(u.setFocus(),M.tree.setFocus([]));},0);})),this._register(M.onDidAccept(()=>{this.onDidAcceptEmitter.fire();})),this._register(M.tree.onDidChangeContentHeight(()=>this.updateLayout()));let I=oS(t);return this._register(I),this._register(s$(t,o_.FOCUS,e=>{let t=this.getUI();if(ot(e.relatedTarget,t.inputContainer)){let e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e);}ot(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=ou(e.relatedTarget)?e.relatedTarget:void 0);},!0)),this._register(I.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(tk.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0;})),this._register(u.onKeyDown(e=>{let t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t),(0,np.N)(e.keyCode)||(u.removeAttribute("aria-activedescendant"),u.setListFocusMode(!1));})),this._register(s$(t,o_.FOCUS,e=>{u.setFocus();})),this.dndController=this._register(this.instantiationService.createInstance(V$,this._container,t,[{node:n,includeChildren:!0,excludeNodes:[s.getElement(),r.getElement()]},{node:a,includeChildren:!1}],this.viewState)),this._register(se(e=>{var _this$dndController;let t=(_this$dndController=this.dndController)===null||_this$dndController===void 0?void 0:_this$dndController.dndViewState.read(e);t&&(void 0!==t.top&&void 0!==t.left?this.viewState={...this.viewState,top:t.top,left:t.left}:this.viewState=void 0,this.updateLayout(),t.done&&this.saveViewState(this.viewState));})),this._register(se(e=>{this._alignment.set(this.dndController.alignment.read(e),void 0);})),this.ui={container:t,styleSheet:i,leftActionBar:s,titleBar:n,title:o,description1:L,description2:h,widget:x,rightActionBar:r,inlineActionBar:_,checkAll:l,inputContainer:d,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:f,count:m,okContainer:v,ok:b,message:y,customButtonContainer:C,customButton:w,list:D,tree:M,progressBar:S,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui;}reparentUI(e){var _this$dndController2;this.ui&&(this._container=e,oL(this._container,this.ui.container),(_this$dndController2=this.dndController)===null||_this$dndController2===void 0?void 0:_this$dndController2.reparentUI(this._container));}pick(e,t={},i=n8.c.None){return new Promise((n,s)=>{let o,r=e=>{var _t$onKeyMods;r=n,(_t$onKeyMods=t.onKeyMods)!==null&&_t$onKeyMods!==void 0&&_t$onKeyMods.call(t,a.keyMods),n(e);};if(i.isCancellationRequested)return void r(void 0);let a=this.createQuickPick({useSeparators:!0}),l=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{let e=a.activeItems[0];e&&(r(e),a.hide());}}),a.onDidChangeActive(e=>{let i=e[0];i&&t.onDidFocus&&t.onDidFocus(i);}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){let t=e[0];t&&(r(t),a.hide());}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{let t=a.items.indexOf(e.item);if(-1!==t){let e=a.items.slice(),i=e.splice(t,1),n=a.activeItems.filter(e=>e!==i[0]),s=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,n&&(a.activeItems=n),a.keepScrollPosition=s;}}})),a.onDidTriggerSeparatorButton(e=>{var _t$onDidTriggerSepara;return(_t$onDidTriggerSepara=t.onDidTriggerSeparatorButton)===null||_t$onDidTriggerSepara===void 0?void 0:_t$onDidTriggerSepara.call(t,e);}),a.onDidChangeValue(e=>{o&&!e&&(1!==a.activeItems.length||a.activeItems[0]!==o)&&(a.activeItems=[o]);}),i.onCancellationRequested(()=>{a.hide();}),a.onDidHide(()=>{(0,W1.d)(l),r(void 0);})];a.title=t.title,t.value&&(a.value=t.value),a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.prompt=t.prompt,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,void 0!==t.sortByLabel&&(a.sortByLabel=t.sortByLabel),a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.anchor=t.anchor,a.anchorPosition=t.anchorPosition,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{o=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),o&&(a.activeItems=[o]);}),a.show(),Promise.resolve(e).then(void 0,e=>{s(e),a.hide();});});}setValidationOnInput(e,t){t&&(0,sI.Z)(t)?(e.severity=bz.Error,e.validationMessage=t):t&&!(0,sI.Z)(t)?(e.severity=t.severity,e.validationMessage=t.content):(e.severity=bz.Ignore,e.validationMessage=void 0);}input(e={},t=n8.c.None){return new Promise(i=>{if(t.isCancellationRequested)return void i(void 0);let n=this.createInputBox(),s=e.validateInput||(()=>Promise.resolve(void 0)),o=iv.C.debounce(n.onDidChangeValue,(e,t)=>t,100),r=e.value||"",a=Promise.resolve(s(r)),l=[n,o(e=>{e!==r&&(a=Promise.resolve(s(e)),r=e),a.then(t=>{e===r&&this.setValidationOnInput(n,t);});}),n.onDidAccept(()=>{let e=n.value;e!==r&&(a=Promise.resolve(s(e)),r=e),a.then(t=>{t&&((0,sI.Z)(t)||t.severity===bz.Error)?e===r&&this.setValidationOnInput(n,t):(i(e),n.hide());});}),t.onCancellationRequested(()=>{n.hide();}),n.onDidHide(()=>{(0,W1.d)(l),i(void 0);})];n.title=e.title,n.value=e.value||"",n.valueSelection=e.valueSelection,n.prompt=e.prompt,n.placeholder=e.placeHolder,n.password=!!e.password,n.ignoreFocusOut=!!e.ignoreFocusLost,n.show();});}createQuickPick(e={useSeparators:!1}){return new WA(this.getUI(!0));}createInputBox(){return new WO(this.getUI(!0));}show(e){var _this$dndController3,_this$dndController4,_this$dndController$a,_this$dndController5;this.completeCloseAnimation();let t=this.getUI(!0),i=this.controller;if(this.controller=e,i!==null&&i!==void 0&&i.didHide(),ou(e.anchor)){let t=sT(e.anchor);sT(this._container)!==t&&this.reparentUI(this.layoutService.getContainer(t));}this.setEnabled(!0),t.leftActionBar.setActions([]),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",oD(t.widget),t.rightActionBar.setActions([]),t.inlineActionBar.setActions([]),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(bz.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),t.countContainer.style.right="4px",oD(t.message),t.progressBar.stop(),t.progressBar.getContainer().setAttribute("aria-hidden","true"),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.tree.updateFilterOptions({matchOnDescription:!1,matchOnLabel:!0}),t.tree.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0,t.inputBox.actions=void 0,t.inputBox.setHeight(void 0);let n=this.options.backKeybindingLabel();WT.tooltip=n?(0,iM.M)(1865,"Back ({0})",n):(0,iM.M)(1866,"Back"),this.overlayLayoutCorrection=void 0,t.container.classList.toggle(VH,"overlay"===e.anchorPosition),t.container.style.display="",this.updateLayout(),(_this$dndController3=this.dndController)!==null&&_this$dndController3!==void 0&&_this$dndController3.setEnabled(!e.anchor),(_this$dndController4=this.dndController)!==null&&_this$dndController4!==void 0&&_this$dndController4.layoutContainer(),e.anchor?this._alignment.set("custom",void 0):this._alignment.set((_this$dndController$a=(_this$dndController5=this.dndController)===null||_this$dndController5===void 0?void 0:_this$dndController5.alignment.get())!==null&&_this$dndController$a!==void 0?_this$dndController$a:"top",void 0),this.onShowEmitter.fire(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type);}isVisible(){return!!this.controller;}setVisibilities(e){let t=this.getUI();t.titleBar.style.display=e.title?"":"none",t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.domNode.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.tree.displayed=!!e.tree,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.overlayLayoutCorrection=void 0,this.updateLayout();}setEnabled(e){if(e!==this.enabled){this.enabled=e;let t=this.getUI();for(let i=0;i<t.leftActionBar.getItemsLength();i++){let n=t.leftActionBar.getItemAction(i);n&&(n.enabled=e);}for(let i=0;i<t.rightActionBar.getItemsLength();i++){let n=t.rightActionBar.getItemAction(i);n&&(n.enabled=e);}e?t.checkAll.enable():t.checkAll.disable(),t.inputBox.enabled=e,t.ok.enabled=e,t.list.enabled=e;}}hide(e){var _this$ui;let t=this.controller;if(!t)return;t.willHide(e);let i=(_this$ui=this.ui)===null||_this$ui===void 0?void 0:_this$ui.container,n=i&&!ol(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(!i.classList.contains(VH)&&oi(i,Vz)?(i.inert=!0,i.classList.add(VV),this.closeAnimation.value=(0,nI.w)(()=>this.completeCloseAnimation(),150)):i.style.display="none"),!n){var _e9;let e=this.previousFocusElement;for(;e&&!e.offsetParent;){var _e$parentElement4;e=(_e$parentElement4=e.parentElement)!==null&&_e$parentElement4!==void 0?_e$parentElement4:void 0;}(_e9=e)!==null&&_e9!==void 0&&_e9.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus();}t.didHide(e);}completeCloseAnimation(){var _this$ui2;if(!this.closeAnimation.value)return;this.closeAnimation.clear();let e=(_this$ui2=this.ui)===null||_this$ui2===void 0?void 0:_this$ui2.container;e&&(e.inert=!1,e.classList.remove(VV),e.style.display="none");}dispose(){this.completeCloseAnimation(),super.dispose();}toggle(){this.isVisible()&&(this.controller instanceof WA&&this.controller.canSelectMany?this.getUI().list.toggleCheckbox():this.controller instanceof VP&&this.getUI().tree.toggleCheckbox());}toggleHover(){this.isVisible()&&this.controller instanceof WA&&this.getUI().list.toggleHover();}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.overlayLayoutCorrection=void 0,this.updateLayout();}updateLayout(){if(this.ui&&this.isVisible()){var _this$controller2,_this$viewState,_this$viewState$left,_this$viewState2;let e,t=this.ui.container.style,i=Math.min(.62*this.dimension.width,io.MAX_WIDTH);t.width=i+"px";let n=this.dimension&&.4*this.dimension.height;if((_this$controller2=this.controller)!==null&&_this$controller2!==void 0&&_this$controller2.anchor){let s=this.controller.anchor,o=ou(s)?sT(s):od(),r=this.layoutService.getContainer(o).getBoundingClientRect(),a=NK(s),l=1,h=.2,d=200;"overlay"===this.controller.anchorPosition?(e=a,this.ui.inputBox.setHeight(a.height),i=a.width,h=.4,a={...a,height:0},d=Math.min(400,r.bottom-a.top-48),l=0):i=380;let{top:c,left:u,right:g,bottom:p,anchorAlignment:f,anchorPosition:m}=NO(r,{width:i,height:Math.floor(n=this.dimension?Math.min(this.dimension.height*h,d):d)+48},a,{anchorPosition:l});1===f?(t.right=`${g}px`,t.left="initial"):(t.left=`${u}px`,t.right="initial"),1===m?(t.bottom=`${p}px`,t.top="initial"):(t.top=`${c}px`,t.bottom="initial"),t.width=`${i}px`,t.height="";}else t.top=`${((_this$viewState=this.viewState)===null||_this$viewState===void 0?void 0:_this$viewState.top)!==void 0?Math.round(this.dimension.height*this.viewState.top):this.titleBarOffset}px`,t.left=`${Math.round(this.dimension.width*((_this$viewState$left=(_this$viewState2=this.viewState)===null||_this$viewState2===void 0?void 0:_this$viewState2.left)!==null&&_this$viewState$left!==void 0?_this$viewState$left:.5)-i/2)}px`,t.right="",t.bottom="",t.height="";e&&this.alignOverlayInput(e),this.ui.inputBox.layout(),this.ui.list.layout(n),this.ui.tree.layout(n);}}alignOverlayInput(e){let t=this.ui.container.style,i=this.overlayLayoutCorrection;if(!i||i.anchor.left!==e.left||i.anchor.top!==e.top||i.anchor.width!==e.width||i.anchor.height!==e.height){this.ui.inputBox.layout();let t=this.ui.filterContainer.getBoundingClientRect();i=this.overlayLayoutCorrection={anchor:e,left:e.left-t.left,right:t.right-(e.left+e.width),top:e.top-t.top,bottom:t.bottom-(e.top+e.height),width:e.width-t.width};}t.width=`${parseFloat(t.width)+i.width}px`,"initial"!==t.left?t.left=`${parseFloat(t.left)+i.left}px`:t.right=`${parseFloat(t.right)+i.right}px`,"initial"!==t.top?t.top=`${parseFloat(t.top)+i.top}px`:t.bottom=`${parseFloat(t.bottom)+i.bottom}px`;}applyStyles(e){this.styles=e,this.updateStyles();}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e!==null&&e!==void 0?e:"",this.ui.container.style.backgroundColor=t!==null&&t!==void 0?t:"",this.ui.container.style.color=i!==null&&i!==void 0?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.list.style(this.styles.list),this.ui.tree.tree.style(this.styles.list);let s=[];this.styles.pickerGroup.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));let o=s.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o);}}loadViewState(){try{let e=JSON.parse(this.storageService.get(VW,-1,"{}"));if(void 0!==e.top||void 0!==e.left)return e;}catch{}}saveViewState(e){this.layoutService.activeContainer===this.layoutService.mainContainer&&(void 0!==e?this.storageService.store(VW,JSON.stringify(e),-1,1):this.storageService.remove(VW,-1));}},io=_Class12,_Class12.MAX_WIDTH=600,_Class12);VU=io=VF([VB(1,NQ),VB(2,rr),VB(3,r9),VB(4,E_),VB(5,kF)],VU);let V$=class extends W1.N{constructor(e,t,i,n,s,o,r){super(),this._container=e,this._quickInputContainer=t,this._quickInputDragAreas=i,this._layoutService=s,this.configurationService=r,this.dndViewState=sc(this,void 0),this._enabled=!0,this._snapThreshold=20,this._snapLineHorizontalRatio=.25,this._alignment=sc(this,"top"),this.alignment=this._alignment,this._quickInputAlignmentContext=Wk.bindTo(o);let a="custom"===function(e){if(i_.n||i_.e||"native"===A$(e))return"native";let t=e.getValue("window"),i=t===null||t===void 0?void 0:t.controlsStyle;return"custom"===i||"hidden"===i?i:"native";}(this.configurationService);this._controlsOnLeft=a&&1===i_.p,this._controlsOnRight=a&&(3===i_.p||2===i_.p),this._registerLayoutListener(),this.registerMouseListeners(),this.dndViewState.set({...n,done:!0},void 0),(n===null||n===void 0?void 0:n.top)!==void 0&&(n===null||n===void 0?void 0:n.left)!==void 0&&this._setAlignmentState(void 0);}reparentUI(e){this._container=e;}layoutContainer(e=this._layoutService.activeContainerDimension){if(!this._enabled)return;let t=this.dndViewState.get(),i=this._quickInputContainer.getBoundingClientRect();if((t===null||t===void 0?void 0:t.top)!==void 0&&(t===null||t===void 0?void 0:t.left)!==void 0){let n=Math.round(100*t.left)/100,s=e.width,o=i.width;this._layout(t.top*e.height,n*s-o/2);}}setEnabled(e){this._enabled=e,this._quickInputContainer.classList.toggle("no-drag",!e);}_setAlignmentState(e){this._quickInputAlignmentContext.set(e),this._alignment.set(e!==null&&e!==void 0?e:"custom",void 0);}_registerLayoutListener(){this._register(iv.C.filter(this._layoutService.onDidLayoutContainer,e=>e.container===this._container)(e=>this.layoutContainer(e.dimension)));}registerMouseListeners(){let e=this._quickInputContainer;this._register(sQ(e,t=>{var _n$excludeNodes;if(!this._enabled)return;let i=new nD(sT(e),t);if(2!==i.detail)return;let n=this._quickInputDragAreas.find(({node:e,includeChildren:t})=>t?ot(i.target,e):i.target===e);!n||((_n$excludeNodes=n.excludeNodes)===null||_n$excludeNodes===void 0?void 0:_n$excludeNodes.some(e=>ot(i.target,e)))||(this.dndViewState.set({top:void 0,left:void 0,done:!0},void 0),this._setAlignmentState("top"));})),this._register(sj(e,e=>{var _n$excludeNodes2;if(!this._enabled)return;let t=sT(this._layoutService.activeContainer),i=new nD(t,e),n=this._quickInputDragAreas.find(({node:e,includeChildren:t})=>t?ot(i.target,e):i.target===e);if(!n||(_n$excludeNodes2=n.excludeNodes)!==null&&_n$excludeNodes2!==void 0&&_n$excludeNodes2.some(e=>ot(i.target,e)))return;let s=this._quickInputContainer.getBoundingClientRect(),o=i.browserEvent.clientX-s.left,r=i.browserEvent.clientY-s.top,a=!1,l=sG(t,e=>{new nD(t,e).preventDefault(),a||(a=!0),this._layout(e.clientY-r,e.clientX-o);}),h=sQ(t,e=>{if(a){let e=this.dndViewState.get();this.dndViewState.set({top:e===null||e===void 0?void 0:e.top,left:e===null||e===void 0?void 0:e.left,done:!0},void 0);}l.dispose(),h.dispose();});}));}_layout(e,t){let i=this._getTopSnapValue(),n=this._getCenterYSnapValue(),s=this._getCenterXSnapValue();(e=Math.max(0,Math.min(e,this._container.clientHeight-this._quickInputContainer.clientHeight)))<this._layoutService.activeContainerOffset.top&&(this._controlsOnLeft?t=Math.max(t,80/nn(od())):this._controlsOnRight&&(t=Math.min(t,this._container.clientWidth-this._quickInputContainer.clientWidth-140/nn(od()))));let o=Math.abs(e-i)<this._snapThreshold,r=Math.abs((e=o?i:e)-n)<this._snapThreshold,a=(e=r?n:e)/this._container.clientHeight,l=Math.abs((t=Math.max(0,Math.min(t,this._container.clientWidth-this._quickInputContainer.clientWidth)))-s)<this._snapThreshold;t=l?s:t;let h=this._container.clientWidth,d=this._quickInputContainer.clientWidth,c=t;if(this.dndViewState.set({top:a,left:(c+d/2)/h,done:!1},void 0),l){if(o)return void this._setAlignmentState("top");else if(r)return void this._setAlignmentState("center");}this._setAlignmentState(void 0);}_getTopSnapValue(){return this._layoutService.activeContainerOffset.quickPickTop;}_getCenterYSnapValue(){return Math.round(this._container.clientHeight*this._snapLineHorizontalRatio);}_getCenterXSnapValue(){return Math.round(this._container.clientWidth/2)-Math.round(this._quickInputContainer.clientWidth/2);}};V$=VF([VB(4,NQ),VB(5,r9),VB(6,lN)],V$);var VK=function(e,t){return function(i,n){t(i,n,e);};};let Vq=class extends _c{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller;}get hasController(){return!!this._controller;}get currentQuickInput(){return this.controller.currentQuickInput;}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Wg))),this._quickAccess;}constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=s,this._alignment=sc(this,"top"),this._onShow=this._register(new iv.S()),this._onHide=this._register(new iv.S()),this.contexts=new Map();}createController(e=this.layoutService,t){let i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>void 0,setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction(t=>{t.get(NC).open(e,{allowCommands:!0,fromUserGesture:!0});});},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(WP))},n=this._register(this.instantiationService.createInstance(VU,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer(t=>{sT(e.activeContainer)===sT(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop);})),this._register(e.onDidChangeActiveContainer(()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop);})),this._register(n.onShow(()=>{this.resetContextKeys(),this._onShow.fire();})),this._register(n.onHide(()=>{this.resetContextKeys(),this._onHide.fire();})),this._register(se(e=>{this._alignment.set(n.alignment.read(e),void 0);})),n;}setContextKey(e){var _t26;let t;e&&((t=this.contexts.get(e))||(t=new r4(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),(_t26=t)===null||_t26===void 0?void 0:_t26.set(!0));}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset();});}pick(e,t,i=n8.c.None){return this.controller.pick(e,t,i);}input(e={},t=n8.c.None){return this.controller.input(e,t);}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e);}createInputBox(){return this.controller.createInputBox();}toggle(){this.controller.toggle();}toggleHover(){this.hasController&&this.controller.toggleHover();}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles());}computeStyles(){return{widget:{quickInputBackground:cs(gj),quickInputForeground:cs(gG),quickInputTitleBackground:cs(gQ),widgetBorder:cs(ud),widgetShadow:cs(uh)},inputBox:AM,toggle:Ak,countBadge:AN,button:Ax,progressBar:AL,keybindingLabel:AS,list:AT({listBackground:gj,listFocusBackground:g1,listFocusForeground:gJ,listInactiveFocusForeground:gJ,listInactiveSelectionIconForeground:g0,listInactiveFocusBackground:g1,listInactiveSelectionBackground:g1,listInactiveSelectionForeground:gJ,listFocusOutline:cx,listInactiveFocusOutline:cx,treeStickyScrollBackground:gj}),pickerGroup:{pickerGroupBorder:cs(gY),pickerGroupForeground:cs(gZ)}};}};Vq=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([VK(0,rr),VK(1,r9),VK(2,_s),VK(3,NQ),VK(4,lN)],Vq);var Vj=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},VG=function(e,t){return function(i,n){t(i,n,e);};};let VQ=class extends Vq{constructor(e,t,i,n,s,o){super(t,i,n,new Tc(e.getContainerDomNode(),s),o),this.host=void 0;let r=VY.get(e);if(r){let t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode();},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()];},get activeContainer(){return t.getDomNode();},get mainContainerDimension(){return e.getLayoutInfo();},get activeContainerDimension(){return e.getLayoutInfo();},get onDidLayoutMainContainer(){return e.onDidLayoutChange;},get onDidLayoutActiveContainer(){return e.onDidLayoutChange;},get onDidLayoutContainer(){return iv.C.map(e.onDidLayoutChange,e=>({container:t.getDomNode(),dimension:e}));},get onDidChangeActiveContainer(){return iv.C.None;},get onDidAddContainer(){return iv.C.None;},get mainContainerOffset(){return{top:0,quickPickTop:0};},get activeContainerOffset(){return{top:0,quickPickTop:0};},focus:()=>e.focus()};}else this.host=void 0;}createController(){return super.createController(this.host);}};VQ=Vj([VG(1,rr),VG(2,r9),VG(3,_s),VG(4,rl),VG(5,lN)],VQ);let VZ=class{get activeService(){let e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){let i=t=this.instantiationService.createInstance(VQ,e);this.mapEditorToService.set(e,t),(0,vU.f)(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e);});}return t;}get currentQuickInput(){return this.activeService.currentQuickInput;}get quickAccess(){return this.activeService.quickAccess;}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map();}pick(e,t,i=n8.c.None){return this.activeService.pick(e,t,i);}input(e,t){return this.activeService.input(e,t);}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e);}createInputBox(){return this.activeService.createInputBox();}toggle(){return this.activeService.toggle();}toggleHover(){return this.activeService.toggleHover();}};VZ=Vj([VG(0,rr),VG(1,rl)],VZ);class VY{static get(e){return e.getContribution(VY.ID);}constructor(e){this.editor=e,this.widget=new VX(this.editor);}dispose(){this.widget.dispose();}}_VY=VY;_VY.ID="editor.controller.quickInput";class VX{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this);}getId(){return VX.ID;}getDomNode(){return this.domNode;}getPosition(){return{preference:{top:0,left:0}};}dispose(){this.codeEditor.removeOverlayWidget(this);}}_VX=VX;_VX.ID="editor.contrib.quickInputWidget";a3(VY.ID,VY,4);var VJ=i8;class V0{createWorkerClient(e){var t;let i,n=++V0._workerIdPool;return i=e instanceof Worker||(t=e)&&"function"==typeof t.then?Promise.resolve(e):this._createWorker(e),new le.w(new V2(i,n));}_createWorker(e){let t=this.getWorkerUrl(e),i=function(e,t,i){if(/^((http:)|(https:)|(file:))/.test(t)&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{let i=t.lastIndexOf("?"),n=t.lastIndexOf("#",i),s=i>0?new URLSearchParams(t.substring(i+1,~n?n:void 0)):new URLSearchParams();nT.$.addSearchParam(s,!0,!0),t=s.toString()?`${t}?${s.toString()}#${e}`:`${t}#${e}`;}let n=new Blob([(0,ip.d)([`/*${e}*/`,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,iM.B)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,iM.F)())};`,`globalThis._VSCODE_FILE_ROOT = ${JSON.stringify(globalThis._VSCODE_FILE_ROOT)};`,`globalThis._VSCODE_PRODUCT_JSON = ${JSON.stringify(globalThis._VSCODE_PRODUCT_JSON)};`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",i?"try {":"",`await import(ttPolicy?.createScriptURL(${JSON.stringify(t)}) ?? ${JSON.stringify(t)});`,i?`} catch (err) { console.error(${JSON.stringify(i)}, err); throw err; }`:"","globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n);}(e.label,t,this._getWorkerLoadingFailedErrorMessage(e));try{var n;return(n=function(e,t){if(!e.startsWith("blob:"))throw URIError("Not a blob-url: "+e);return new Worker(V1?V1.createScriptURL(e):e,{...t,type:"module"});}(i,{name:e.label,type:"module"}),new Promise((e,t)=>{n.onmessage=function(t){"vscode-worker-ready"===t.data.type&&(n.onmessage=null,e(n));},n.onerror=t;})).finally(()=>URL.revokeObjectURL(i));}catch(e){throw URL.revokeObjectURL(i),e;}}_getWorkerLoadingFailedErrorMessage(e){}getWorkerUrl(e){if(!e.esmModuleLocation)throw Error("Missing esmModuleLocation in WebWorkerDescriptor");return("function"==typeof e.esmModuleLocation?e.esmModuleLocation():e.esmModuleLocation).toString(!0);}}_V2=V0;_V2._workerIdPool=0;let V1=(P=globalThis,"object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==P.workerttPolicy?P.workerttPolicy:hq("defaultWorkerFactory",{createScriptURL:e=>e}));class V2 extends VJ.N{constructor(e,t){super(),this._onMessage=this._register(new iv.S()),this.onMessage=this._onMessage.event,this._onError=this._register(new iv.S()),this.onError=this._onError.event,this.id=t,this.worker=e,this.postMessage("-please-ignore-",[]);let i=e=>{this._onError.fire(e);};this.worker.then(e=>{e.onmessage=e=>{this._onMessage.fire(e.data);},e.onmessageerror=e=>{this._onError.fire(e);},"function"==typeof e.addEventListener&&e.addEventListener("error",i);}),this._register((0,VJ.Q)(()=>{var _this$worker;(_this$worker=this.worker)!==null&&_this$worker!==void 0&&_this$worker.then(e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",i),e.terminate();}),this.worker=null;}));}getId(){return this.id;}postMessage(e,t){var _this$worker2;(_this$worker2=this.worker)===null||_this$worker2===void 0||_this$worker2.then(i=>{try{i.postMessage(e,t);}catch(e){(0,nf.C)(e),(0,nf.C)(Error("FAILED to post message to worker",{cause:e}));}});}}let V3={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[cR]:"#FFFFFE",[cA]:"#000000",[cQ]:"#E5EBF1",[_L]:"#D3D3D3",[_E]:"#939393",[cZ]:"#ADD6FF4D"}},V5={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[cR]:"#1E1E1E",[cA]:"#D4D4D4",[cQ]:"#3A3D41",[_L]:"#404040",[_E]:"#707070",[cZ]:"#ADD6FF26"}},V6={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[cR]:"#000000",[cA]:"#FFFFFF",[_L]:"#FFFFFF",[_E]:"#FFFFFF"}},V4={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[cR]:"#FFFFFF",[cA]:"#292929",[_L]:"#292929",[_E]:"#292929"}};var V9=i8,V8=i8;(ir||(ir={})).getDefinition=function(e,t){let i=e.defaults;for(;eY.isThemeIcon(i);){let e=Hi.getIcon(i.id);if(!e)return;i=e.defaults;}return i;},(eH=ia||(ia={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))};},eH.fromJSONObject=function(e){let t=e=>(0,sI.Z)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,sI.Z)(e.format)&&(0,sI.Z)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:ne.m.parse(e.location)}))};};let V7=/^([\w_-]+)$/,He=(0,iM.M)(2126,"The font ID must only contain letters, numbers, underscores and dashes.");class Ht extends V8.N{constructor(){super(),this._onDidChange=this._register(new iv.S()),this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,iM.M)(2127,"The id of the font to use. If not set, the font that is defined first is used."),pattern:V7.source,patternErrorMessage:He},fontCharacter:{type:"string",description:(0,iM.M)(2128,"The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${eY.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={};}registerIcon(e,t,i,n){let s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire();}return s;}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let o={$ref:"#/definitions/icons"};return n&&(o.deprecationMessage=n),i&&(o.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e};}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e]);}getIcon(e){return this.iconsById[e];}getIconSchema(){return this.iconSchema;}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;eY.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`;},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let s of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${eY.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);for(let s of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!eY.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n");}}let Hi=new Ht();function Hn(e,t,i,n){return Hi.registerIcon(e,t,i,n);}function Hs(){return Hi;}ai.add("base.contributions.icons",Hi);let Ho=(0,A6.q)();for(let e in Ho){let t="\\"+Ho[e].toString(16);Hi.registerIcon(e,{fontCharacter:t});}let Hr="vscode://schemas/icons",Ha=ai.as(l$);Ha.registerSchema(Hr,Hi.getIconSchema());let Hl=new nI.t(()=>Ha.notifySchemaChanged(Hr),200);Hi.onDidChange(()=>{Hl.isScheduled()||Hl.schedule();});let Hh=Hn("widget-close",rC.f.close,(0,iM.M)(2129,"Icon for the close action in widgets."));Hn("goto-previous-location",rC.f.arrowUp,(0,iM.M)(2130,"Icon for goto previous editor location.")),Hn("goto-next-location",rC.f.arrowDown,(0,iM.M)(2131,"Icon for goto next editor location.")),eY.modify(rC.f.sync,"spin"),eY.modify(rC.f.loading,"spin"),e.s(["Q",0,Hs,"T",0,Hn,"_",0,Hh],98837);class Hd{getIcon(e){let t=Hs(),i=e.defaults;for(;eY.isThemeIcon(i);){let e=t.getIcon(i.id);if(!e)return;i=e.defaults;}return i;}}let Hc="vs-dark",Hu="hc-black",Hg="hc-light",Hp=ai.as(cr.ColorContribution),Hf=ai.as(_a.ThemingContribution);class Hm{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(H_(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null;}get base(){return this.themeData.base;}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null);}getColors(){if(!this.colors){let e=new Map();for(let t in this.themeData.colors)e.set(t,ct.G.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=Hv(this.themeData.base);for(let i in t.colors)e.has(i)||e.set(i,ct.G.fromHex(t.colors[i]));}this.colors=e;}return this.colors;}getColor(e,t){let i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0);}getDefault(e){let t=this.defaultColors[e];return t||(t=Hp.resolveDefaultColor(e,this),this.defaultColors[e]=t),t;}defines(e){return this.getColors().has(e);}get type(){switch(this.base){case"vs":return e4.LIGHT;case Hu:return e4.HIGH_CONTRAST_DARK;case Hg:return e4.HIGH_CONTRAST_LIGHT;default:return e4.DARK;}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let i=Hv(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors);}let i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){let t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t);}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=SB.createFromRawTokenTheme(e,t);}return this._tokenTheme;}getTokenStyleMetadata(e,t,i){let n=this.tokenTheme._match([e].concat(t).join(".")).metadata,s=hj.getForeground(n),o=hj.getFontStyle(n);return{foreground:s,italic:!!(1&o),bold:!!(2&o),underline:!!(4&o),strikethrough:!!(8&o)};}get tokenColorMap(){return[];}}function H_(e){return"vs"===e||e===Hc||e===Hu||e===Hg;}function Hv(e){switch(e){case"vs":return V3;case Hc:return V5;case Hu:return V6;case Hg:return V4;}}function Hb(e){let t=Hv(e);return new Hm(e,t);}class HC extends V9.N{constructor(){var e;let t,i,n;super(),this._onColorThemeChange=this._register(new iv.S()),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new iv.S()),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new Hd(),this._autoDetectHighContrast=!0,this._knownThemes=new Map(),this._knownThemes.set("vs",Hb("vs")),this._knownThemes.set(Hc,Hb(Hc)),this._knownThemes.set(Hu,Hb(Hu)),this._knownThemes.set(Hg,Hb(Hg));let s=this._register((e=this,i=(t=new i8.q()).add(new iv.S()),n=Hs(),t.add(n.onDidChange(()=>i.fire())),e&&t.add(e.onDidProductIconThemeChange(()=>i.fire())),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){let t=e?e.getProductIconTheme():new Hd(),i={},s=new Rd(),o=new Rd();for(let e of n.getIcons()){let n=t.getIcon(e);if(!n)continue;let r=n.font,a=Rh`--vscode-icon-${Rl(e.id)}-font-family`,l=Rh`--vscode-icon-${Rl(e.id)}-content`;r?(i[r.id]=r.definition,o.push(Rh`${a}: ${Rr(r.id)};`,Rh`${l}: ${Rr(n.fontCharacter)};`),s.push(Rh`.codicon-${Rl(e.id)}:before { content: ${Rr(n.fontCharacter)}; font-family: ${Rr(r.id)}; }`)):(o.push(Rh`${l}: ${Rr(n.fontCharacter)}; ${a}: 'codicon';`),s.push(Rh`.codicon-${Rl(e.id)}:before { content: ${Rr(n.fontCharacter)}; }`));}for(let e in i){let t=i[e],n=t.weight?Rh`font-weight: ${Ro(t.weight)};`:Rh``,o=t.style?Rh`font-style: ${Ro(t.style)};`:Rh``,r=new Rd();for(let e of t.src)r.push(Rh`${Ra(e.location)} format(${Rr(e.format)})`);s.push(Rh`@font-face { src: ${r.join(", ")}; font-family: ${Rr(e)};${n}${o} font-display: block; }`);}return s.push(Rh`:root { ${o.join(" ")} }`),s.join("\n");}}));this._codiconCSS=s.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|
|
730
730
|
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme("vs"),this._onOSSchemeChanged(),this._register(s.onDidChange(()=>{this._codiconCSS=s.getCSS(),this._updateCSS();})),ni(i9,"(forced-colors: active)",()=>{this._onOSSchemeChanged();});}registerEditorContainer(e){return os(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer();}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=d6(void 0,e=>{e.className="monaco-colors",e.textContent=this._allCSS;}),this._styleElements.push(this._globalStyleElement)),V9.N.None;}_registerShadowDomContainer(e){let t=d6(e,e=>{e.className="monaco-colors",e.textContent=this._allCSS;});return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1);}};}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw Error("Illegal theme name!");if(!H_(t.base)&&!H_(e))throw Error("Illegal theme base!");this._knownThemes.set(e,new Hm(e,t)),H_(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated();}),this._theme.themeName===e&&this.setTheme(e);}getColorTheme(){return this._theme;}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap();}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get("vs"),this._updateActualTheme(t);}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap());}_onOSSchemeChanged(){if(this._autoDetectHighContrast){let e=i9.matchMedia("(forced-colors: active)").matches;if(e!==pm(this._theme.type)){let t;t=p_(this._theme.type)?e?Hu:Hc:e?Hg:"vs",this._updateActualTheme(this._knownThemes.get(t));}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged();}_updateThemeOrColorMap(){let e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0);}};Hf.getThemingParticipants().forEach(e=>e(this._theme,i,this._environment));let n=[];for(let e of Hp.getColors()){let t=this._theme.getColor(e.id,!0);t&&n.push(`${cn(e.id)}: ${t.toString()};`);}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join("\n")} }`);let s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){let t=[];for(let i=1,n=e.length;i<n;i++){let n=e[i];t[i]=`.mtk${i} { color: ${n}; }`;}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n");}(s)),i.addRule(".monaco-editor, .monaco-diff-editor, .monaco-component { forced-color-adjust: none; }"),this._themeCSS=e.join("\n"),this._updateCSS(),hV.l.setColorMap(s),this._onColorThemeChange.fire(this._theme);}_updateCSS(){this._allCSS=`${this._codiconCSS}
|
|
731
731
|
${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS);}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1};}getProductIconTheme(){return this._builtInProductIconTheme;}}var Hw=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},Hy=function(e,t){return function(i,n){t(i,n,e);};};class HS{show(){return HS.NULL_PROGRESS_RUNNER;}async showWhile(e,t){await e;}}_HS=HS;_HS.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Hx{info(e){return this.notify({severity:bz.Info,message:e});}warn(e){return this.notify({severity:bz.Warning,message:e});}error(e){return this.notify({severity:bz.Error,message:e});}notify(e){switch(e.severity){case bz.Error:console.error(e.message);break;case bz.Warning:console.warn(e.message);break;default:console.log(e.message);}return Hx.NO_OP;}prompt(e,t,i,n){return Hx.NO_OP;}status(e,t){return{close:()=>{}};}}_Hx=Hx;_Hx.NO_OP=new b$();let HL=class{constructor(e){this._onWillExecuteCommand=new iv.S(),this._onDidExecuteCommand=new iv.S(),this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e;}executeCommand(e,...t){let i=rS.getCommand(e);if(!i)return Promise.reject(Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n);}catch(e){return Promise.reject(e);}}};HL=Hw([Hy(0,rr)],HL);let Hk=class extends OL{constructor(e,t,i,n,s,o){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];let r=e=>{let t=new Tu.q();t.add(s$(e,o_.KEY_DOWN,e=>{let t=new nx(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation());})),t.add(s$(e,o_.KEY_UP,e=>{let t=new nx(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault();})),this._domNodeListeners.push(new HD(e,t));},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){let i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose());}},l=e=>{e.getOption(70)||r(e.getContainerDomNode());};this._register(o.onCodeEditorAdd(l)),this._register(o.onCodeEditorRemove(e=>{e.getOption(70)||a(e.getContainerDomNode());})),o.listCodeEditors().forEach(l);let h=e=>{r(e.getContainerDomNode());};this._register(o.onDiffEditorAdd(h)),this._register(o.onDiffEditorRemove(e=>{a(e.getContainerDomNode());})),o.listDiffEditors().forEach(h);}addDynamicKeybinding(e,t,i,n){return(0,Tu.W)(rS.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]));}addDynamicKeybindings(e){let t=e.map(e=>{var _e$command;return{keybinding:nm(e.keybinding,i_.B),command:(_e$command=e.command)!==null&&_e$command!==void 0?_e$command:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1};});return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,Tu.Q)(()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0]){this._dynamicKeybindings.splice(e,t.length),this.updateResolver();return;}});}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire();}_getResolver(){if(!this._cachedResolver){let e=this._toNormalizedKeybindingItems(as.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new OC(e,t,e=>this._log(e));}return this._cachedResolver;}_documentHasFocus(){return i9.document.hasFocus();}_toNormalizedKeybindingItems(e,t){let i=[],n=0;for(let s of e){let e=s.when||void 0,o=s.keybinding;if(o)for(let r of ON.resolveKeybinding(o,i_.B))i[n++]=new OD(r,s.command,s.commandArgs,e,t,null,!1);else i[n++]=new OD(void 0,s.command,s.commandArgs,e,t,null,!1);}return i;}resolveKeyboardEvent(e){return new ON([new nv(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode)],i_.B);}};Hk=Hw([Hy(0,r9),Hy(1,ry),Hy(2,am),Hy(3,bU),Hy(4,aW),Hy(5,rl)],Hk);class HD extends Tu.N{constructor(e,t){super(),this.domNode=e,this._register(t);}}function HM(e){return!!e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof ne.m);}let HI=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new iv.S(),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;let t=new T$(e);this._configuration=new TH(t.reload(),TB.createEmptyModel(e),TB.createEmptyModel(e),TB.createEmptyModel(e),TB.createEmptyModel(e),TB.createEmptyModel(e),new av._(),TB.createEmptyModel(e),new av._(),e),t.dispose();}getValue(e,t){let i="string"==typeof e?e:void 0,n=HM(e)?e:HM(t)?t:{};return this._configuration.getValue(i,n,void 0);}updateValues(e){let t={data:this._configuration.toData()},i=[];for(let t of e){let[e,n]=t;this.getValue(e)!==n&&(this._configuration.updateValue(e,n),i.push(e));}if(i.length>0){let e=new Tz({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e);}return Promise.resolve();}updateValue(e,t,i,n){return this.updateValues([[e,t]]);}inspect(e,t={}){return this._configuration.inspect(e,t,void 0);}};HI=Hw([Hy(0,aW)],HI);let HN=class extends Tu.N{constructor(e,t,i){super(),this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=this._register(new iv.S()),this._register(this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)});}));}getValue(e,t,i){let n=rh.f.isIPosition(t)?t:null,s=n?"string"==typeof i?i:void 0:"string"==typeof t?t:void 0,o=e?this.getLanguage(e,n):void 0;return void 0===s?this.configurationService.getValue({resource:e,overrideIdentifier:o}):this.configurationService.getValue(s,{resource:e,overrideIdentifier:o});}getLanguage(e,t){let i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e);}};HN=Hw([Hy(0,lN),Hy(1,rd),Hy(2,lP)],HN);let HE=class{constructor(e){this.configurationService=e;}getEOL(e,t){let i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"==typeof i&&"auto"!==i?i:i_.b||i_.e?"\n":"\r\n";}};HE=Hw([Hy(0,lN)],HE);class HT{constructor(){let e=ne.m.from({scheme:HT.SCHEME,authority:"model",path:"/"});this.workspace={id:BS,folders:[new By({uri:e,name:"",index:0})]};}getWorkspace(){return this.workspace;}getWorkspaceFolder(e){return e&&e.scheme===HT.SCHEME?this.workspace.folders[0]:null;}}_HT=HT;_HT.SCHEME="inmemory";function HR(e,t,i){if(!t||!(e instanceof HI))return;let n=[];Object.keys(t).forEach(e=>{(BV()[`editor.${e}`]||0)&&n.push([`editor.${e}`,t[e]]),i&&(BV()[`diffEditor.${e}`]||0)&&n.push([`diffEditor.${e}`,t[e]]);}),n.length>0&&e.updateValues(n);}let HA=class{constructor(e){this._modelService=e;}hasPreviewHandler(){return!1;}async apply(e,t){let i=Array.isArray(e)?e:Bk.convert(e),n=new Map();for(let e of i){if(!(e instanceof BD))throw Error("bad edit - only text edits are supported");let t=this._modelService.getModel(e.resource);if(!t)throw Error("bad edit - model not found");if("number"==typeof e.versionId&&t.getVersionId()!==e.versionId)throw Error("bad state - model changed in the meantime");let i=n.get(t);i||(i=[],n.set(t,i)),i.push(BH.replaceMove(ln.f.lift(e.textEdit.range),e.textEdit.text));}let s=0,o=0;for(let[e,t]of n)e.pushStackElement(),e.pushEditOperations([],t,()=>[]),e.pushStackElement(),o+=1,s+=t.length;return{ariaSummary:(0,i7.R)(t8.bulkEditServiceSummary,s,o),isApplied:s>0};}};HA=Hw([Hy(0,rd)],HA);let HO=class extends Ol{constructor(e,t){super(e),this._codeEditorService=t;}showContextView(e,t,i,n){if(!t){let e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode());}return super.showContextView(e,t,i,n);}};HO=Hw([Hy(0,NQ),Hy(1,rl)],HO);let HP=class extends Oo{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o),this.configure({blockMouse:!1});}};function HF(e,t){return e;}function HB(e,t,i,n=eq.ofCaller()){let s=e.bindTo(t),o=new i8.q();return n4({debugName:()=>`Set Context Key "${e.key}"`},e=>{let t=i(e);return s.set(t),t;},n).recomputeInitiallyAndOnChange(o),o;}HP=Hw([Hy(0,am),Hy(1,bU),Hy(2,kP),Hy(3,Ch),Hy(4,ad),Hy(5,r9)],HP),lW(li,class extends V0{_createWorker(e){let t=nu();if(t&&"function"==typeof t.getWorker){let i=t.getWorker("workerMain.js",e.label);if(void 0!==i)return Promise.resolve(i);}return super._createWorker(e);}_getWorkerLoadingFailedErrorMessage(e){return`Failed to load worker script for label: ${e.label}.
|
|
732
732
|
Ensure your bundler properly bundles modules referenced by "new URL('...?esm', import.meta.url)".`;}getWorkerUrl(e){let t=nu();if(t&&"function"==typeof t.getWorkerUrl){let i=t.getWorkerUrl("workerMain.js",e.label);if(void 0!==i)return new URL(i,document.baseURI).toString();}if(!e.esmModuleLocationBundler)throw Error(`You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker for the worker label: ${e.label}`);return("function"==typeof e.esmModuleLocationBundler?e.esmModuleLocationBundler():e.esmModuleLocationBundler).toString();}},0),lW(aW,class extends Ba{constructor(){super(new aK());}},0),lW(lN,HI,0),lW(hb,HN,0),lW(hC,HE,0),lW(Bb,HT,0),lW(OE,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path;}getUriBasenameLabel(e){return aE(e);}},0),lW(am,class{publicLog2(){}},0),lW(N4,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1};}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+("object"==typeof t?Nf(t):t)),i9.confirm(i);}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){var _e$buttons,_i$3;let i=[...((_e$buttons=e.buttons)!==null&&_e$buttons!==void 0?_e$buttons:[])];e.cancelButton&&"string"!=typeof e.cancelButton&&"boolean"!=typeof e.cancelButton&&i.push(e.cancelButton),t=await((_i$3=i[0])===null||_i$3===void 0?void 0:_i$3.run({checkboxChecked:!1}));}return{result:t};}async error(e,t){await this.prompt({type:bz.Error,message:e,detail:t});}},0),lW(ED,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1;}},0),lW(bU,Hx,0),lW(Bd,Bp,0),lW(lP,class extends B1{constructor(){super();}},0),lW(Wo,HC,0),lW(rd,Wn,0),lW(dR,B6,0),lW(r9,Rt,0),lW(Bf,class{withProgress(e,t,i){return t({report:()=>{}});}},0),lW(B_,HS,0),lW(E_,Eb,0),lW(BL,HA,0),lW(Bx,class{constructor(){this._neverEmitter=new iv.S(),this.onDidChangeTrust=this._neverEmitter.event;}isWorkspaceTrusted(){return!0;}},0),lW(rc,Wa,0),lW(dj,Tf,0),lW(Fp,Ff,0),lW(ry,HL,0),lW(Ch,Hk,0),lW(Ec,VZ,0),lW(kP,HO,0),lW(NC,BA,0),lW(TP,TO,0),lW(kF,HP,0),lW(ad,TS,0),lW(Tm,class{async playSignal(e,t){}},0),lW(xc,class{getParserClass(){throw Error("not implemented in StandaloneTreeSitterLibraryService");}supportsLanguage(e,t){return!1;}getLanguage(e,t,i){}getInjectionQueries(e,t){return null;}getHighlightingQueries(e,t){return null;}},0),lW(aV,aQ,0),lW(Oh,Od,0),lW(Oc,class{constructor(){this.onDidChangeDefaultAccount=iv.C.None;}async getDefaultAccount(){return null;}},0),lW(BO,BP,0),lW(CV,Bv,0),function(e){let t=new km();for(let[e,i]of lV())t.set(e,i);let i=new Of(t,!0);t.set(rr,i),e.get=function(e){n||o({});let s=t.get(e);if(!s)throw Error("Missing service "+e);return s instanceof lF?i.invokeFunction(t=>t.get(e)):s;};let n=!1,s=new iv.S();function o(e){if(n)return i;for(let[e,i]of(n=!0,lV()))t.get(e)||t.set(e,i);for(let i in e)if(e.hasOwnProperty(i)){let n=ra(i);t.get(n)instanceof lF&&t.set(n,e[i]);}for(let e of BU())try{i.createInstance(e);}catch(e){(0,nf.C)(e);}return s.fire(),i;}e.initialize=o,e.withServices=function(e){if(n)return e();let t=new Tu.q(),i=t.add(s.event(()=>{i.dispose(),t.add(e());}));return t;};}(il||(il={})),e.s(["J",0,function(e){return RP(e);},"K",0,HF],82802),e.s(["i",0,HB,"E",0,function(e,t,i,n=eq.ofCaller()){return sm({debugName:()=>`Configuration Key "${e}"`},t=>i.onDidChangeConfiguration(i=>{i.affectsConfiguration(e)&&t(i);}),()=>{var _i$getValue;return(_i$getValue=i.getValue(e))!==null&&_i$getValue!==void 0?_i$getValue:t;},n);}],86154);class HW{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new HW(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0,n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();let s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s;}return new HW(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition());}constructor(e,t,i,n,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=s;}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){let t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta);}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;let t=e.getPosition();if(!this._cursorPosition||!t)return;let i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1);}}e.s(["f",0,HW],48321);var HV=i8,HH=i8;function Hz(e,t){let i=new HH.q(),n=e.createDecorationsCollection();return i.add(st({debugName:()=>`Apply decorations from ${t.debugName}`},e=>{let i=t.read(e);n.set(i);})),i.add({dispose:()=>{n.clear();}}),i;}function HU(e,t){return e.appendChild(t),(0,HH.Q)(()=>{t.remove();});}class H$ extends HH.N{get width(){return this._width;}get height(){return this._height;}get automaticLayout(){return this._automaticLayout;}constructor(e,t){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new dW(e,t)),this._width=sc(this,this.elementSizeObserver.getWidth()),this._height=sc(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(e=>sr(e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e);})));}observe(e){this.elementSizeObserver.observe(e);}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving();}}function HK(e,t,i){let n,s=t.get(),o=s,r=s,a=sc("animatedValue",s),l=-1;return i.add(si({changeTracker:{createChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)}},(i,h)=>{void 0!==n&&(e.cancelAnimationFrame(n),n=void 0),o=r,s=t.read(i),l=o===s?Date.now()-300:Date.now()-300*!h.animate,function t(){var i,h,d;let c=Date.now()-l;r=Math.floor((i=c,h=o,d=s-o,300===i?h+d:d*(-Math.pow(2,-10*i/300)+1)+h)),c<300?n=e.requestAnimationFrame(t):r=s,a.set(r,void 0);}();})),a;}class Hq extends HH.N{constructor(e,t,i){super(),this._register(new HG(e,i)),this._register(HQ(i,{height:t.actualHeight,top:t.actualTop}));}}class Hj{get afterLineNumber(){return this._afterLineNumber.get();}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=sc(this,void 0),this._actualHeight=sc(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0);},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0);};}}class HG{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId=`managedOverlayWidget-${HG._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget);}dispose(){this._editor.removeOverlayWidget(this._overlayWidget);}}_HG=HG;_HG._counter=0;function HQ(e,t){return se(i=>{for(let[n,s]of Object.entries(t))s&&"object"==typeof s&&"read"in s&&(s=s.read(i)),"number"==typeof s&&(s=`${s}px`),n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),e.style[n]=s;});}function HZ(e,t,i,n){let s=new HH.q(),o=[];return s.add(ss((s,r)=>{let a=t.read(s),l=new Map(),h=new Map();i&&i(!0),e.changeViewZones(e=>{for(let t of o)e.removeZone(t),n===null||n===void 0?void 0:n.delete(t);for(let t of(o.length=0,a)){let i=e.addZone(t);t.setZoneId&&t.setZoneId(i),o.push(i),n!==null&&n!==void 0&&n.add(i),l.set(t,i);}}),i&&i(!1),r.add(si({changeTracker:{createChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){let i=h.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0;}}},(t,n)=>{for(let e of a)e.onChange&&(h.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones(e=>{for(let t of n.zoneIds)e.layoutZone(t);}),i&&i(!1);}));})),s.add({dispose(){i&&i(!0),e.changeViewZones(e=>{for(let t of o)e.removeZone(t);}),n!==null&&n!==void 0&&n.clear(),i&&i(!1);}}),s;}function HY(e,t){let i=(0,vf.x)(t,t=>t.original.startLineNumber<=e.lineNumber);if(!i)return ln.f.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){let t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return ln.f.fromPositions(new rh.f(t,e.column));}if(!i.innerChanges)return ln.f.fromPositions(new rh.f(i.modified.startLineNumber,1));let n=(0,vf.x)(i.innerChanges,t=>t.originalRange.getStartPosition().isBeforeOrEqual(e));if(!n){let t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return ln.f.fromPositions(new rh.f(t,e.column));}if(n.originalRange.containsPosition(e))return n.modifiedRange;{var s,o;let t=(s=n.originalRange.getEndPosition(),o=e,s.lineNumber===o.lineNumber?new wm.f(0,o.column-s.column):new wm.f(o.lineNumber-s.lineNumber,o.column-1));return ln.f.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()));}}n8.R;class HX{static create(e,t){return new HJ(e,e,t);}static createWithDisposable(e,t,i){let n=new HH.q();return n.add(t),n.add(e),new HJ(e,n,i);}}class HJ extends HX{constructor(e,t,i){super(),this.object=e,this._disposable=t,this._debugOwner=i,this._refCount=1,this._isDisposed=!1,this._owners=[],i&&this._addOwner(i);}_addOwner(e){e&&this._owners.push(e);}createNewRef(e){return this._refCount++,e&&this._addOwner(e),new H0(this,e);}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner));}_decreaseRefCount(e){if(this._refCount--,0===this._refCount&&this._disposable.dispose(),e){let t=this._owners.indexOf(e);-1!==t&&this._owners.splice(t,1);}}}class H0 extends HX{constructor(e,t){super(),this._base=e,this._debugOwner=t,this._isDisposed=!1;}get object(){return this._base.object;}createNewRef(e){return this._base.createNewRef(e);}dispose(){this._isDisposed||(this._isDisposed=!0,this._base._decreaseRefCount(this._debugOwner));}}var H1=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},H2=function(e,t){return function(i,n){t(i,n,e);};};let H3=Hn("diff-review-insert",rC.f.add,(0,iM.M)(113,"Icon for 'Insert' in accessible diff viewer.")),H5=Hn("diff-review-remove",rC.f.remove,(0,iM.M)(114,"Icon for 'Remove' in accessible diff viewer.")),H6=Hn("diff-review-close",rC.f.close,(0,iM.M)(115,"Icon for 'Close' in accessible diff viewer.")),H4=(_Class13=class H4 extends HV.N{constructor(e,t,i,n,s,o,r,a,l){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=s,this._height=o,this._diffs=r,this._models=a,this._instantiationService=l,this._state=n5(this,e=>{let t=this._visible.read(e);if(this._parentNode.style.visibility=t?"visible":"hidden",!t)return null;let i=e.store.add(this._instantiationService.createInstance(H9,this._diffs,this._models,this._setVisible,this._canClose)),n=e.store.add(this._instantiationService.createInstance(zn,this._parentNode,i,this._width,this._height,this._models));return{model:i,view:n};}).recomputeInitiallyAndOnChange(this._store);}next(){sr(e=>{let t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e);});}prev(){sr(e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e);});}close(){sr(e=>{this._setVisible(!1,e);});}},_Class13._ttPolicy=hq("diffReview",{createHTML:e=>e}),_Class13);H4=H1([H2(8,rr)],H4);let H9=class extends HV.N{constructor(e,t,i,n,s){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=s,this._groups=sc(this,[]),this._currentGroupIdx=sc(this,0),this._currentElementIdx=sc(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((e,t)=>this._groups.read(t)[e]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((e,t)=>{var _this$currentGroup$re;return(_this$currentGroup$re=this.currentGroup.read(t))===null||_this$currentGroup$re===void 0?void 0:_this$currentGroup$re.lines[e];}),this._register(se(e=>{let t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);let i=function(e,t,i){let n=[];for(let s of(0,ip._)(e,(e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<6)){let e=[];e.push(new H7());let o=new hL.m(Math.max(1,s[0].original.startLineNumber-3),Math.min(s[s.length-1].original.endLineNumberExclusive+3,t+1)),r=new hL.m(Math.max(1,s[0].modified.startLineNumber-3),Math.min(s[s.length-1].modified.endLineNumberExclusive+3,i+1));(0,ip.W)(s,(t,i)=>{let n=new hL.m(t?t.original.endLineNumberExclusive:o.startLineNumber,i?i.original.startLineNumber:o.endLineNumberExclusive),s=new hL.m(t?t.modified.endLineNumberExclusive:r.startLineNumber,i?i.modified.startLineNumber:r.endLineNumberExclusive);n.forEach(t=>{e.push(new zi(t,s.startLineNumber+(t-n.startLineNumber)));}),i&&(i.original.forEach(t=>{e.push(new ze(i,t));}),i.modified.forEach(t=>{e.push(new zt(i,t));}));});let a=s[0].modified.join(s[s.length-1].modified),l=s[0].original.join(s[s.length-1].original);n.push(new H8(new hx.O(a,l),e));}return n;}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());sr(e=>{let t=this._models.getModifiedPosition();if(t){let n=i.findIndex(e=>(t===null||t===void 0?void 0:t.lineNumber)<e.range.modified.endLineNumberExclusive);-1!==n&&this._currentGroupIdx.set(n,e);}this._groups.set(i,e);});})),this._register(se(e=>{let t=this.currentElement.read(e);(t===null||t===void 0?void 0:t.type)===ih.Deleted?this._accessibilitySignalService.playSignal(Tb.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(t===null||t===void 0?void 0:t.type)===ih.Added&&this._accessibilitySignalService.playSignal(Tb.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"});})),this._register(se(e=>{let t=this.currentElement.read(e);if(t&&t.type!==ih.Header){var _t$modifiedLineNumber;let e=(_t$modifiedLineNumber=t.modifiedLineNumber)!==null&&_t$modifiedLineNumber!==void 0?_t$modifiedLineNumber:t.diff.modified.startLineNumber;this._models.modifiedSetSelection(ln.f.fromPositions(new rh.f(e,1)));}}));}_goToGroupDelta(e,t){let i=this.groups.get();i&&!(i.length<=1)&&sh(t,t=>{this._currentGroupIdx.set(hG.G.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t);});}nextGroup(e){this._goToGroupDelta(1,e);}previousGroup(e){this._goToGroupDelta(-1,e);}_goToLineDelta(e){let t=this.currentGroup.get();t&&!(t.lines.length<=1)&&sr(i=>{this._currentElementIdx.set(hG.G.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i);});}goToNextLine(){this._goToLineDelta(1);}goToPreviousLine(){this._goToLineDelta(-1);}goToLine(e){let t=this.currentGroup.get();if(!t)return;let i=t.lines.indexOf(e);-1!==i&&sr(e=>{this._currentElementIdx.set(i,e);});}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);let e=this.currentElement.get();e&&(e.type===ih.Deleted?this._models.originalReveal(ln.f.fromPositions(new rh.f(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==ih.Header?ln.f.fromPositions(new rh.f(e.modifiedLineNumber,1)):void 0));}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus());}};H9=H1([H2(4,Tm)],H9),(ez=ih||(ih={}))[ez.Header=0]="Header",ez[ez.Unchanged=1]="Unchanged",ez[ez.Deleted=2]="Deleted",ez[ez.Added=3]="Added";class H8{constructor(e,t){this.range=e,this.lines=t;}}class H7{constructor(){this.type=ih.Header;}}class ze{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=ih.Deleted,this.modifiedLineNumber=void 0;}}class zt{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=ih.Added,this.originalLineNumber=void 0;}}class zi{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=ih.Unchanged;}}let zn=class extends HV.N{constructor(e,t,i,n,s,o){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=s,this._languageService=o,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";let r=document.createElement("div");r.className="diff-review-actions",this._actionBar=this._register(new A5(r)),this._register(se(e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(rv({id:"diffreview.close",label:(0,iM.M)(116,"Close"),class:"close-diff-review "+eY.asClassName(H6),enabled:!0,run:async()=>t.close()}),{label:!1,icon:!0});})),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new fs(this._content,{})),oD(this.domNode,this._scrollbar.getDomNode(),r),this._register(se(e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode();})),this._register((0,HV.Q)(()=>{oD(this.domNode);})),this._register(HQ(this.domNode,{width:this._width,height:this._height})),this._register(HQ(this._content,{width:this._width,height:this._height})),this._register(ss((e,t)=>{this._model.currentGroup.read(e),this._render(t);})),this._register(sq(this.domNode,"keydown",e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor());}));}_render(e){let t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",(0,iM.M)(117,"Accessible Diff Viewer. Use arrow up and down to navigate.")),re(n,i.get(59)),oD(this._content,n);let s=this._models.getOriginalModel(),o=this._models.getModifiedModel();if(!s||!o)return;let r=s.getOptions(),a=o.getOptions(),l=i.get(75),h=this._model.currentGroup.get();for(let d of(h===null||h===void 0?void 0:h.lines)||[]){let c;if(!h)break;if(d.type===ih.Header){let e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");let t=h.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,s=e=>0===e?(0,iM.M)(118,"no lines changed"):1===e?(0,iM.M)(119,"1 line changed"):(0,iM.M)(120,"{0} lines changed",e),o=s(t.original.length),r=s(t.modified.length);e.setAttribute("aria-label",(0,iM.M)(121,"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,o,t.modified.startLineNumber,r));let a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),c=e;}else c=this._createRow(d,l,this._width.get(),t,s,r,i,o,a);n.appendChild(c);let u=n5(e=>this._model.currentElement.read(e)===d);e.add(se(e=>{let t=u.read(e);c.tabIndex=t?0:-1,t&&c.focus();})),e.add(s$(c,"focus",()=>{this._model.goToLine(d);}));}this._scrollbar.scanDomNode();}_createRow(e,t,i,n,s,o,r,a,l){let h,d=n.get(166),c=d.glyphMarginWidth+d.lineNumbersWidth,u=r.get(166),g=10+u.glyphMarginWidth+u.lineNumbersWidth,p="diff-review-row",f="",m=null;switch(e.type){case ih.Added:p="diff-review-row line-insert",f=" char-insert",m=H3;break;case ih.Deleted:p="diff-review-row line-delete",f=" char-delete",m=H5;}let _=document.createElement("div");_.style.minWidth=i+"px",_.className=p,_.setAttribute("role","listitem"),_.ariaLevel="";let v=document.createElement("div");v.className="diff-review-cell",v.style.height=`${t}px`,_.appendChild(v);let b=document.createElement("span");b.style.width=c+"px",b.style.minWidth=c+"px",b.className="diff-review-line-number"+f,void 0!==e.originalLineNumber?b.appendChild(document.createTextNode(String(e.originalLineNumber))):b.innerText=" ",v.appendChild(b);let C=document.createElement("span");C.style.width=g+"px",C.style.minWidth=g+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+f,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText=" ",v.appendChild(C);let w=document.createElement("span");if(w.className="diff-review-spacer",m){let e=document.createElement("span");e.className=eY.asClassName(m),e.innerText=" ",w.appendChild(e);}else w.innerText=" ";if(v.appendChild(w),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,r,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);H4._ttPolicy&&(t=H4._ttPolicy.createHTML(t)),v.insertAdjacentHTML("beforeend",t),h=a.getLineContent(e.modifiedLineNumber);}else{let t=this._getLineHtml(s,n,o.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);H4._ttPolicy&&(t=H4._ttPolicy.createHTML(t)),v.insertAdjacentHTML("beforeend",t),h=s.getLineContent(e.originalLineNumber);}0===h.length&&(h=(0,iM.M)(122,"blank"));let y="";switch(e.type){case ih.Unchanged:y=e.originalLineNumber===e.modifiedLineNumber?(0,iM.M)(123,"{0} unchanged line {1}",h,e.originalLineNumber):(0,iM.M)(124,"{0} original line {1} modified line {2}",h,e.originalLineNumber,e.modifiedLineNumber);break;case ih.Added:y=(0,iM.M)(125,"+ {0} modified line {1}",h,e.modifiedLineNumber);break;case ih.Deleted:y=(0,iM.M)(126,"- {0} original line {1}",h,e.originalLineNumber);}return _.setAttribute("aria-label",y),_;}_getLineHtml(e,t,i,n,s){let o=e.getLineContent(n),r=t.get(59),a=t.get(117).verticalScrollbarSize,l=hQ.createEmpty(o,s),h=dl.isBasicASCII(o,e.mightContainNonBasicASCII()),d=dl.containsRTL(o,h,e.mightContainRTL());return dt(new h6(r.isMonospace&&!t.get(40),r.canUseHalfwidthRightwardsArrow,o,!1,h,d,0,l,[],i,0,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,t.get(133),t.get(113),t.get(108),t.get(60)!==ij.OFF,null,null,a)).html;}};zn=H1([H2(5,lP)],zn);class zs{constructor(e){this.editors=e;}getOriginalModel(){return this.editors.original.getModel();}getOriginalOptions(){return this.editors.original.getOptions();}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus();}getModifiedModel(){return this.editors.modified.getModel();}getModifiedOptions(){return this.editors.modified.getOptions();}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus();}modifiedSetSelection(e){this.editors.modified.setSelection(e);}modifiedFocus(){this.editors.modified.focus();}getModifiedPosition(){var _this$editors$modifie;return(_this$editors$modifie=this.editors.modified.getPosition())!==null&&_this$editors$modifie!==void 0?_this$editors$modifie:void 0;}}var zo=i8,zr=i8;ch("diffEditor.move.border","#8b8b8b9c",(0,iM.M)(156,"The border color for text that got moved in the diff editor.")),ch("diffEditor.moveActive.border","#FFA500",(0,iM.M)(157,"The active border color for text that got moved in the diff editor.")),ch("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,iM.M)(158,"The color of the shadow around unchanged region widgets."));let za=Hn("diff-insert",rC.f.add,(0,iM.M)(159,"Line decoration for inserts in the diff editor.")),zl=Hn("diff-remove",rC.f.remove,(0,iM.M)(160,"Line decoration for removals in the diff editor.")),zh=xz.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+eY.asClassName(za),marginClassName:"gutter-insert"}),zd=xz.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+eY.asClassName(zl),marginClassName:"gutter-delete"}),zc=xz.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),zu=xz.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),zg=xz.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),zp=xz.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),zf=xz.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),zm=xz.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),z_=xz.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),zv=xz.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"});var zb=i8,zC=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},zw=function(e,t){return function(i,n){t(i,n,e);};};let zy=ra("diffProviderFactoryService"),zS=class{constructor(e){this.instantiationService=e;}createDiffProvider(e){return this.instantiationService.createInstance(zx,e);}};lW(zy,zS=zC([zw(0,rr)],zS),1);let zx=(_Class14=class zx{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new iv.S(),this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e);}dispose(){var _this$diffAlgorithmOn;(_this$diffAlgorithmOn=this.diffAlgorithmOnDidChangeSubscription)!==null&&_this$diffAlgorithmOn!==void 0&&_this$diffAlgorithmOn.dispose(),this.onDidChangeEventEmitter.dispose();}async computeDiff(e,t,i,n){var _l$quitEarly,_l$moves$length;if("string"!=typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new hx.Z(new hL.m(1,2),new hL.m(1,t.getLineCount()+1),[new hx.l(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};let s=JSON.stringify([e.uri.toString(),t.uri.toString()]),o=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),r=id.diffCache.get(s);if(r&&r.context===o)return r.result;let a=hw.f.create(),l=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),h=a.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:h,timedOut:(_l$quitEarly=l===null||l===void 0?void 0:l.quitEarly)!==null&&_l$quitEarly!==void 0?_l$quitEarly:!0,detectedMoves:i.computeMoves?(_l$moves$length=l===null||l===void 0?void 0:l.moves.length)!==null&&_l$moves$length!==void 0?_l$moves$length:0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!l)throw Error("no diff result available");return id.diffCache.size>10&&id.diffCache.delete(id.diffCache.keys().next().value),id.diffCache.set(s,{result:l,context:o}),l;}setOptions(e){var _this$diffAlgorithmOn2;let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&((_this$diffAlgorithmOn2=this.diffAlgorithmOnDidChangeSubscription)!==null&&_this$diffAlgorithmOn2!==void 0&&_this$diffAlgorithmOn2.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!=typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),t=!0),t&&this.onDidChangeEventEmitter.fire();}},id=_Class14,_Class14.diffCache=new Map(),_Class14);function zL(e,t,i,n){return t||(t=e=>null!=e),new Promise((s,o)=>{let r=!0,a=!1,l=e.map(e=>({isFinished:t(e),error:!!i&&i(e),state:e})),h=se(e=>{let{isFinished:t,error:i,state:n}=l.read(e);(t||i)&&(r?a=!0:h.dispose(),i?o(!0===i?n:i):s(n));});if(n){let e=n.onCancellationRequested(()=>{h.dispose(),e.dispose(),o(new nf.I());});if(n.isCancellationRequested){h.dispose(),e.dispose(),o(new nf.I());return;}}r=!1,a&&h.dispose();});}function zk(e,t,i=eq.ofCaller()){return new zD("string"==typeof e?e:new nq(e,void 0,void 0),t,i);}zx=id=zC([zw(1,dT),zw(2,am)],zx),e.i(36389),e.i(97421),e.s(["f",0,zL],12214);class zD extends n0{constructor(e,t,i){var _e$getDebugName2;super(i),this.event=t,this.handleEvent=()=>{sr(e=>{for(let t of this._observers)e.updateObserver(t,this),t.handleChange(this,void 0);},()=>this.debugName);},this.debugName="string"==typeof e?e:(_e$getDebugName2=e.getDebugName(this))!==null&&_e$getDebugName2!==void 0?_e$getDebugName2:"Observable Signal From Event";}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent);}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0;}get(){}}e.s(["f",0,zk],67427);let zM=class extends zb.N{setActiveMovedText(e){this._activeMovedText.set(e,void 0);}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=sc(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=sc(this,void 0),this.diff=this._diff,this._unchangedRegions=sc(this,void 0),this.unchangedRegions=n5(this,e=>{var _this$_unchangedRegio,_this$_unchangedRegio2;return this._options.hideUnchangedRegions.read(e)?(_this$_unchangedRegio=(_this$_unchangedRegio2=this._unchangedRegions.read(e))===null||_this$_unchangedRegio2===void 0?void 0:_this$_unchangedRegio2.regions)!==null&&_this$_unchangedRegio!==void 0?_this$_unchangedRegio:[]:(sr(e=>{for(let t of((_this$_unchangedRegio3=this._unchangedRegions.read(void 0))===null||_this$_unchangedRegio3===void 0?void 0:_this$_unchangedRegio3.regions)||[]){var _this$_unchangedRegio3;t.collapseAll(e);}}),[]);}),this.movedTextToCompare=sc(this,void 0),this._activeMovedText=sc(this,void 0),this._hoveredMovedText=sc(this,void 0),this.activeMovedText=n5(this,e=>{var _ref17,_this$movedTextToComp;return(_ref17=(_this$movedTextToComp=this.movedTextToCompare.read(e))!==null&&_this$movedTextToComp!==void 0?_this$movedTextToComp:this._hoveredMovedText.read(e))!==null&&_ref17!==void 0?_ref17:this._activeMovedText.read(e);}),this._cancellationTokenSource=new n8.R(),this._diffProvider=n5(this,e=>{let t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)}),i=zk("onDidChange",t.onDidChange);return{diffProvider:t,onChangeSignal:i};}),this._register((0,zb.Q)(()=>this._cancellationTokenSource.cancel()));let n=sv("contentChangedSignal"),s=this._register(new nI.t(()=>n.trigger(void 0),200));this._register(se(t=>{let i=this._unchangedRegions.read(t);if(!i||i.regions.some(e=>e.isDragged.read(t)))return;let n=i.originalDecorationIds.map(t=>e.original.getDecorationRange(t)).map(e=>e?hL.m.fromRangeInclusive(e):void 0),s=i.modifiedDecorationIds.map(t=>e.modified.getDecorationRange(t)).map(e=>e?hL.m.fromRangeInclusive(e):void 0),o=i.regions.map((e,i)=>n[i]&&s[i]?new zE(n[i].startLineNumber,s[i].startLineNumber,n[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0).filter(sI.v),r=[],a=!1;for(let e of(0,ip._)(o,(e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber))if(e.length>1){a=!0;let t=e.reduce((e,t)=>e+t.lineCount,0),i=new zE(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.read(void 0),e[e.length-1].visibleLineCountBottom.read(void 0));r.push(i);}else r.push(e[0]);if(a){let t=e.original.deltaDecorations(i.originalDecorationIds,r.map(e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),n=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map(e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));sr(e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:n},e);});}}));let o=(t,i,n)=>{let s,o=zE.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(n),this._options.hideUnchangedRegionsContextLineCount.read(n)),r=this._unchangedRegions.get();if(r){var a,l;let t,i=r.originalDecorationIds.map(t=>e.original.getDecorationRange(t)).map(e=>e?hL.m.fromRangeInclusive(e):void 0),o=r.modifiedDecorationIds.map(t=>e.modified.getDecorationRange(t)).map(e=>e?hL.m.fromRangeInclusive(e):void 0),h=(a=r.regions.map((e,t)=>{if(!i[t]||!o[t])return;let n=i[t].length;return new zE(i[t].startLineNumber,o[t].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()));}).filter(sI.v),l=(e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount,a.filter(e=>{let i=l(e,t);return t=e,i;})).map(e=>new hx.O(e.getHiddenOriginalRange(n),e.getHiddenModifiedRange(n)));h=hx.O.clip(h,hL.m.ofLength(1,e.original.getLineCount()),hL.m.ofLength(1,e.modified.getLineCount())),s=hx.O.inverse(h,e.original.getLineCount(),e.modified.getLineCount());}let h=[];if(s)for(let e of o){let t=s.filter(t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange));h.push(...e.setVisibleRanges(t,i));}else h.push(...o);let d=e.original.deltaDecorations((r===null||r===void 0?void 0:r.originalDecorationIds)||[],h.map(e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),c=e.modified.deltaDecorations((r===null||r===void 0?void 0:r.modifiedDecorationIds)||[],h.map(e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:h,originalDecorationIds:d,modifiedDecorationIds:c},i);};this._register(e.modified.onDidChangeContent(t=>{if(this._diff.get()){let i=wK.fromModelContentChanges(t.changes);zR(this._lastDiff,i,e.original,e.modified);}this._isDiffUpToDate.set(!1,void 0),s.schedule();})),this._register(e.original.onDidChangeContent(t=>{if(this._diff.get()){let i=wK.fromModelContentChanges(t.changes);zT(this._lastDiff,i,e.original,e.modified);}this._isDiffUpToDate.set(!1,void 0),s.schedule();})),this._register(se(async t=>{var _zR,_zT;var i,r,a;let l=t.store;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),s.cancel(),n.read(t);let h=this._diffProvider.read(t);h.onChangeSignal.read(t),this._isDiffUpToDate.set(!1,void 0);let d=[];l.add(e.original.onDidChangeContent(e=>{let t=wK.fromModelContentChanges(e.changes);d=yp(d,t);}));let c=[];l.add(e.modified.onDidChangeContent(e=>{let t=wK.fromModelContentChanges(e.changes);c=yp(c,t);}));let u=await h.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token).catch(nI.C);!u||this._cancellationTokenSource.token.isCancellationRequested||e.original.isDisposed()||e.modified.isDisposed()||(u=(_zR=zR(u=(_zT=zT((i=u,r=e.original,a=e.modified,u={changes:i.changes.map(e=>new hx.Z(e.original,e.modified,e.innerChanges?e.innerChanges.map(e=>{var t,i,n;let s,o;return t=e,i=r,n=a,s=t.originalRange,o=t.modifiedRange,1===s.startColumn&&1===o.startColumn&&(1!==s.endColumn||1!==o.endColumn)&&s.endColumn===i.getLineMaxColumn(s.endLineNumber)&&o.endColumn===n.getLineMaxColumn(o.endLineNumber)&&s.endLineNumber<i.getLineCount()&&o.endLineNumber<n.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),o=o.setEndPosition(o.endLineNumber+1,1)),new hx.l(s,o);}):void 0)),moves:i.moves,identical:i.identical,quitEarly:i.quitEarly}),d,e.original,e.modified))!==null&&_zT!==void 0?_zT:u,c,e.original,e.modified))!==null&&_zR!==void 0?_zR:u,sr(e=>{o(u,e),this._lastDiff=u;let t=zI.fromDiffResult(u);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);let i=this.movedTextToCompare.read(void 0);this.movedTextToCompare.set(i?this._lastDiff.moves.find(e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified)):void 0,e);}));}));}ensureModifiedLineIsVisible(e,t,i){var _this$diff$get;if(((_this$diff$get=this.diff.get())===null||_this$diff$get===void 0?void 0:_this$diff$get.mappings.length)!==0){for(let n of((_this$_unchangedRegio4=this._unchangedRegions.get())===null||_this$_unchangedRegio4===void 0?void 0:_this$_unchangedRegio4.regions)||[]){var _this$_unchangedRegio4;if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i);}}}ensureOriginalLineIsVisible(e,t,i){var _this$diff$get2;if(((_this$diff$get2=this.diff.get())===null||_this$diff$get2===void 0?void 0:_this$diff$get2.mappings.length)!==0){for(let n of((_this$_unchangedRegio5=this._unchangedRegions.get())===null||_this$_unchangedRegio5===void 0?void 0:_this$_unchangedRegio5.regions)||[]){var _this$_unchangedRegio5;if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i);}}}async waitForDiff(){await zL(this.isDiffUpToDate,e=>e,void 0,this._cancellationTokenSource.token).catch(nI.C);}serializeState(){let e=this._unchangedRegions.get();return{collapsedRegions:e===null||e===void 0?void 0:e.regions.map(e=>({range:e.getHiddenModifiedRange(void 0).serialize()}))};}restoreSerializedState(e){var _e$collapsedRegions;let t=(_e$collapsedRegions=e.collapsedRegions)===null||_e$collapsedRegions===void 0?void 0:_e$collapsedRegions.map(e=>hL.m.deserialize(e.range)),i=this._unchangedRegions.get();i&&t&&sr(e=>{for(let n of i.regions)for(let i of t)if(n.modifiedUnchangedRange.intersect(i)){n.setHiddenModifiedRange(i,e);break;}});}};zM=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){zy(e,t,2);}],zM);class zI{static fromDiffResult(e){return new zI(e.changes.map(e=>new zN(e)),e.moves||[],e.identical,e.quitEarly);}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n;}}class zN{constructor(e){this.lineRangeMapping=e;}}class zE{static fromDiffs(e,t,i,n,s){let o=hx.Z.inverse(e,t,i),r=[];for(let e of o){let o=e.original.startLineNumber,a=e.modified.startLineNumber,l=e.original.length,h=1===o&&1===a,d=o+l===t+1&&a+l===i+1;(h||d)&&l>=s+n?(h&&!d&&(l-=s),d&&!h&&(o+=s,a+=s,l-=s),r.push(new zE(o,a,l,0,0))):l>=2*s+n&&(o+=s,a+=s,l-=2*s,r.push(new zE(o,a,l,0,0)));}return r;}get originalUnchangedRange(){return hL.m.ofLength(this.originalLineNumber,this.lineCount);}get modifiedUnchangedRange(){return hL.m.ofLength(this.modifiedLineNumber,this.lineCount);}constructor(e,t,i,n,s){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=sc(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=sc(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=n5(this,e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e)),this.isDragged=sc(this,void 0);let o=Math.max(Math.min(n,this.lineCount),0),r=Math.max(Math.min(s,this.lineCount-n),0);(0,n1.g)(n===o),(0,n1.g)(s===r),this._visibleLineCountTop.set(o,void 0),this._visibleLineCountBottom.set(r,void 0);}setVisibleRanges(e,t){let i=[],n=new hL.F(e.map(e=>e.modified)).subtractFrom(this.modifiedUnchangedRange),s=this.originalLineNumber,o=this.modifiedLineNumber,r=this.modifiedLineNumber+this.lineCount;if(0===n.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(let a of n.ranges){let l=e===n.ranges.length-1;e++;let h=(l?r:a.endLineNumberExclusive)-o,d=new zE(s,o,h,0,0);d.setHiddenModifiedRange(a,t),i.push(d),s=d.originalUnchangedRange.endLineNumberExclusive,o=d.modifiedUnchangedRange.endLineNumberExclusive;}}return i;}shouldHideControls(e){return this._shouldHideControls.read(e);}getHiddenOriginalRange(e){return hL.m.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e));}getHiddenModifiedRange(e){return hL.m.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e));}setHiddenModifiedRange(e,t){let i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t);}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get();}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get();}showMoreAbove(e=10,t){let i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t);}showMoreBelow(e=10,t){let i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t);}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e);}showModifiedLine(e,t,i){let n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),s=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+n,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+s,i);}showOriginalLine(e,t,i){let n=e-this.originalLineNumber,s=this.originalLineNumber+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+s-n,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+n-s,this.getMaxVisibleLineCountBottom()),i);}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e);}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i);}}function zT(e,t,i,n){}function zR(e,t,i,n){}var zA=i8;class zO extends zA.N{get visibility(){return this._visibility;}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden");}constructor(e,t,i,n,s,o,r,a,l,h){super(),this._getViewZoneId=e,this._marginDomNode=t,this._deletedCodeDomNode=i,this._modifiedEditor=n,this._diff=s,this._editor=o,this._renderLinesResult=r,this._originalTextModel=a,this._contextMenuService=l,this._clipboardService=h,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=eY.asClassName(rC.f.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";let d=this._modifiedEditor.getOption(75);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${d}px`,this._diffActions.style.lineHeight=`${d}px`,this._marginDomNode.appendChild(this._diffActions);let c=0,u=n.getOption(144)&&!i_.I,g=(e,t,i)=>{var _n$getDomNode;this._contextMenuService.showContextMenu({domForShadowRoot:u?(_n$getDomNode=n.getDomNode())!==null&&_n$getDomNode!==void 0?_n$getDomNode:void 0:void 0,getAnchor:()=>e,onHide:i,getActions:()=>{let e=[],t=s.modified.isEmpty;return e.push(new rg("diff.clipboard.copyDeletedContent",t?s.original.length>1?(0,iM.M)(128,"Copy deleted lines"):(0,iM.M)(129,"Copy deleted line"):s.original.length>1?(0,iM.M)(130,"Copy changed lines"):(0,iM.M)(131,"Copy changed line"),void 0,!0,async()=>{let e=this._originalTextModel.getValueInRange(s.original.toExclusiveRange());await this._clipboardService.writeText(e);})),s.original.length>1&&e.push(new rg("diff.clipboard.copyDeletedLineContent",t?(0,iM.M)(132,"Copy deleted line ({0})",s.original.startLineNumber+c):(0,iM.M)(133,"Copy changed line ({0})",s.original.startLineNumber+c),void 0,!0,async()=>{let e=this._originalTextModel.getLineContent(s.original.startLineNumber+c);""===e&&(e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"),await this._clipboardService.writeText(e);})),n.getOption(104)||e.push(new rg("diff.inline.revertChange",(0,iM.M)(134,"Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff);})),e;},autoSelectFirstItem:!0});};this._register(sq(this._diffActions,"mousedown",e=>{if(!e.leftButton)return;let{top:t,height:i}=s6(this._diffActions),n=Math.floor(d/3);e.preventDefault(),g({x:e.posx,y:t+i+n});})),this._register(n.onMouseMove(e=>{(8===e.target.type||5===e.target.type)&&e.target.detail.viewZoneId===this._getViewZoneId()?(c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,d),this.visibility=!0):this.visibility=!1;})),this._register(function(e){let{domNode:t,renderLinesResult:i,diffEntry:n,originalModel:s,clipboardService:o}=e,r=new i8.q();return r.add(s$(t,"copy",e=>{e.preventDefault();let r=t.ownerDocument.getSelection();if(!r||0===r.rangeCount)return;let a=r.getRangeAt(0);if(!a||a.collapsed)return;let l=a.startContainer.nodeType===Node.TEXT_NODE?a.startContainer.parentElement:a.startContainer,h=a.endContainer.nodeType===Node.TEXT_NODE?a.endContainer.parentElement:a.endContainer;if(!l||!h)return;let d=i.getModelPositionAt(l,a.startOffset),c=i.getModelPositionAt(h,a.endOffset);if(!d||!c)return;let u=d.delta(n.original.startLineNumber-1),g=c.delta(n.original.startLineNumber-1),p=g.isBefore(u)?ln.f.fromPositions(g,u):ln.f.fromPositions(u,g),f=s.getValueInRange(p);o.writeText(f);})),r;}({domNode:this._deletedCodeDomNode,diffEntry:s,originalModel:this._originalTextModel,renderLinesResult:this._renderLinesResult,clipboardService:h}));}_updateLightBulbPosition(e,t,i){let{top:n}=s6(e),s=Math.floor((t-n)/i);if(this._diffActions.style.top=`${s*i}px`,this._renderLinesResult.viewLineCounts){let e=0;for(let t=0;t<this._renderLinesResult.viewLineCounts.length;t++)if(s<(e+=this._renderLinesResult.viewLineCounts[t]))return t;}return s;}}let zP=hq("diffEditorWidget",{createHTML:e=>e});function zF(e,t,i,n,s=!1){re(n,t.fontInfo);let o=i.length>0,r=new lm(1e4),a=0,l=0,h=[],d=[];for(let n=0;n<e.lineTokens.length;n++){let c=n+1,u=e.lineTokens[n],g=e.lineBreakData[n],p=h0.filter(i,c,1,Number.MAX_SAFE_INTEGER);if(g){let i=0;for(let n of g.breakOffsets){let h=zz(l,u.sliceAndInflate(i,n,0),h0.extractWrapped(p,i,n),o,e.mightContainNonBasicASCII,e.mightContainRTL,t,r,s);a=Math.max(a,h.maxCharWidth),d.push(new zH(h.output.characterMapping,h.output.containsForeignElements,i)),l++,i=n;}h.push(g.breakOffsets.length);}else{h.push(1);let i=zz(l,u,p,o,e.mightContainNonBasicASCII,e.mightContainRTL,t,r,s);a=Math.max(a,i.maxCharWidth),d.push(new zH(i.output.characterMapping,i.output.containsForeignElements,0)),l++;}}a+=t.scrollBeyondLastColumn;let c=r.build();return n.innerHTML=zP?zP.createHTML(c):c,new zV(l,a*t.typicalHalfwidthCharacterWidth,h,d,e);}class zB{constructor(e,t=e.map(e=>null),i=!0,n=!0){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=n;}}class zW{static fromEditor(e){var _e$getModel;let t=e.getOptions(),i=t.get(59),n=t.get(166);return new zW(((_e$getModel=e.getModel())===null||_e$getModel===void 0?void 0:_e$getModel.getOptions().tabSize)||0,i,t.get(40),i.typicalHalfwidthCharacterWidth,t.get(118),t.get(75),n.decorationsWidth,t.get(133),t.get(113),t.get(108),t.get(60),t.get(117).verticalScrollbarSize,"twoCells"===t.get(176));}constructor(e,t,i,n,s,o,r,a,l,h,d,c,u=!1,g=!0){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=n,this.scrollBeyondLastColumn=s,this.lineHeight=o,this.lineDecorationsWidth=r,this.stopRenderingLineAfter=a,this.renderWhitespace=l,this.renderControlCharacters=h,this.fontLigatures=d,this.verticalScrollbarSize=c,this.useTwoCellFullwidthCharacters=u,this.setWidth=g;}withSetWidth(e){return new zW(this.tabSize,this.fontInfo,this.disableMonospaceOptimizations,this.typicalHalfwidthCharacterWidth,this.scrollBeyondLastColumn,this.lineHeight,this.lineDecorationsWidth,this.stopRenderingLineAfter,this.renderWhitespace,this.renderControlCharacters,this.fontLigatures,this.verticalScrollbarSize,this.useTwoCellFullwidthCharacters,e);}withScrollBeyondLastColumn(e){return new zW(this.tabSize,this.fontInfo,this.disableMonospaceOptimizations,this.typicalHalfwidthCharacterWidth,e,this.lineHeight,this.lineDecorationsWidth,this.stopRenderingLineAfter,this.renderWhitespace,this.renderControlCharacters,this.fontLigatures,this.verticalScrollbarSize,this.useTwoCellFullwidthCharacters,this.setWidth);}}class zV{constructor(e,t,i,n,s){this.heightInLines=e,this.minWidthInPx=t,this.viewLineCounts=i,this._renderOutputs=n,this._source=s;}getModelPositionAt(e,t){let i=e;for(;i&&!i.classList.contains("view-line");)i=i.parentElement;if(!i)return;let n=i.parentElement;if(!n)return;let s=n.querySelectorAll(".view-line"),o=-1;for(let e=0;e<s.length;e++)if(s[e]===i){o=e;break;}if(-1===o||o>=this._renderOutputs.length)return;let r=1,a=o;for(let e=0;e<this.viewLineCounts.length;e++){if(a<this.viewLineCounts[e]){r=e+1;break;}a-=this.viewLineCounts[e];}if(r>this._source.lineTokens.length)return;let l=this._renderOutputs[o];if(!l)return;let h=pL(l.characterMapping,e,t)+l.offset;return new rh.f(r,h);}}class zH extends h8{constructor(e,t,i){super(e,t),this.offset=i;}}function zz(e,t,i,n,s,o,r,a,l){a.appendString('<div class="view-line'),l||n||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*r.lineHeight)),r.setWidth?a.appendString('px;width:1000000px;">'):a.appendString('px;">');let h=t.getLineContent(),d=dl.isBasicASCII(h,s),c=dl.containsRTL(h,d,o),u=h7(new h6(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,h,!1,d,c,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==ij.OFF,null,null,r.verticalScrollbarSize,!1,r.useTwoCellFullwidthCharacters),a);a.appendString("</div>");let g=u.characterMapping.getHorizontalOffset(u.characterMapping.length);return{output:u,maxCharWidth:g};}e.s(["K",0,zB,"q",0,zW,"m",0,zF],89703);var zU=function(e,t){return function(i,n){t(i,n,e);};};let z$=class extends zr.N{constructor(e,t,i,n,s,o,r,a,l,h){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=s,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=r,this._modViewZonesToIgnore=a,this._clipboardService=l,this._contextMenuService=h,this._originalTopPadding=sc(this,0),this._originalScrollOffset=sc(this,0),this._originalScrollOffsetAnimated=HK(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=sc(this,0),this._modifiedScrollOffset=sc(this,0),this._modifiedScrollOffsetAnimated=HK(this._targetWindow,this._modifiedScrollOffset,this._store);let d=sc("invalidateAlignmentsState",0),c=this._register(new nI.t(()=>{d.set(d.get()+1,void 0);},0));this._register(this._editors.original.onDidChangeViewZones(e=>{this._canIgnoreViewZoneUpdateEvent()||c.schedule();})),this._register(this._editors.modified.onDidChangeViewZones(e=>{this._canIgnoreViewZoneUpdateEvent()||c.schedule();})),this._register(this._editors.original.onDidChangeConfiguration(e=>{(e.hasChanged(167)||e.hasChanged(75))&&c.schedule();})),this._register(this._editors.modified.onDidChangeConfiguration(e=>{(e.hasChanged(167)||e.hasChanged(75))&&c.schedule();}));let u=this._diffModel.map(e=>e?sf(this,e.model.original.onDidChangeTokens,()=>2===e.model.original.tokenization.backgroundTokenizationState):void 0).map((e,t)=>e===null||e===void 0?void 0:e.read(t)),g=n5(e=>{let t=this._diffModel.read(e),i=t===null||t===void 0?void 0:t.diff.read(e);if(!t||!i)return null;d.read(e);let n=this._options.renderSideBySide.read(e);return zK(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,n);}),p=n5(e=>{var _this$_diffModel$read;let t=(_this$_diffModel$read=this._diffModel.read(e))===null||_this$_diffModel$read===void 0?void 0:_this$_diffModel$read.movedTextToCompare.read(e);if(!t)return null;d.read(e);let i=t.changes.map(e=>new zN(e));return zK(this._editors.original,this._editors.modified,i,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0);});function f(){let e=document.createElement("div");return e.className="diagonal-fill",e;}let m=this._register(new zr.q());this.viewZones=n5(this,e=>{var _this$_editors$modifi,_l$finalize,_this$_diffModel$read2,_this$_editors$origin,_this$_editors$origin2,_this$_editors$origin3,_this$_editors$origin4;m.clear();let t=g.read(e)||[],i=[],n=[],o=this._modifiedTopPadding.read(e);o>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:o,showInHiddenAreas:!0,suppressMouseDown:!0});let r=this._originalTopPadding.read(e);r>0&&i.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:r,showInHiddenAreas:!0,suppressMouseDown:!0});let a=this._options.renderSideBySide.read(e),l=a?void 0:(_this$_editors$modifi=this._editors.modified._getViewModel())===null||_this$_editors$modifi===void 0?void 0:_this$_editors$modifi.createLineBreaksComputer({getLineContent:e=>this._editors.original.getModel().getLineContent(e),getLineInjectedText:e=>null});if(l){let e=this._editors.original.getModel();for(let s of t)if(s.diff)for(let t=s.originalRange.startLineNumber;t<s.originalRange.endLineNumberExclusive;t++){if(t>e.getLineCount())return{orig:i,mod:n};l===null||l===void 0||l.addRequest(t,null);}}let h=(_l$finalize=l===null||l===void 0?void 0:l.finalize())!==null&&_l$finalize!==void 0?_l$finalize:[],d=0,c=this._editors.modified.getOption(75),_=(_this$_diffModel$read2=this._diffModel.read(e))===null||_this$_diffModel$read2===void 0?void 0:_this$_diffModel$read2.movedTextToCompare.read(e),v=(_this$_editors$origin=(_this$_editors$origin2=this._editors.original.getModel())===null||_this$_editors$origin2===void 0?void 0:_this$_editors$origin2.mightContainNonBasicASCII())!==null&&_this$_editors$origin!==void 0?_this$_editors$origin:!1,b=(_this$_editors$origin3=(_this$_editors$origin4=this._editors.original.getModel())===null||_this$_editors$origin4===void 0?void 0:_this$_editors$origin4.mightContainRTL())!==null&&_this$_editors$origin3!==void 0?_this$_editors$origin3:!1,C=zW.fromEditor(this._editors.modified);for(let o of t)if(!o.diff||a||this._options.useTrueInlineDiffRendering.read(e)&&zj(o.diff)){let t=o.modifiedHeightInPx-o.originalHeightInPx;if(t>0){if(_!==null&&_!==void 0&&_.lineRangeMapping.original.delta(-1).deltaLength(2).contains(o.originalRange.endLineNumberExclusive-1))continue;i.push({afterLineNumber:o.originalRange.endLineNumberExclusive-1,domNode:f(),heightInPx:t,showInHiddenAreas:!0,suppressMouseDown:!0});}else{let i;if(_!==null&&_!==void 0&&_.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(o.modifiedRange.endLineNumberExclusive-1))continue;o.diff&&o.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(i=function(){let t=document.createElement("div");return t.className="arrow-revert-change "+eY.asClassName(rC.f.arrowRight),e.store.add(s$(t,"mousedown",e=>e.stopPropagation())),e.store.add(s$(t,"click",e=>{e.stopPropagation(),s.revert(o.diff);})),oN("div",{},t);}()),n.push({afterLineNumber:o.modifiedRange.endLineNumberExclusive-1,domNode:f(),heightInPx:-t,marginDomNode:i,showInHiddenAreas:!0,suppressMouseDown:!0});}}else{if(!o.originalRange.isEmpty){let t;u.read(e);let s=document.createElement("div");s.classList.add("view-lines","line-delete","line-delete-selectable","monaco-mouse-cursor-text");let r=this._editors.original.getModel();if(o.originalRange.endLineNumberExclusive-1>r.getLineCount())return{orig:i,mod:n};let a=new zB(o.originalRange.mapToLineArray(e=>r.tokenization.getLineTokens(e)),o.originalRange.mapToLineArray(e=>h[d++]),v,b),l=[];for(let e of o.diff.innerChanges||[])l.push(new L1(e.originalRange.delta(-(o.diff.original.startLineNumber-1)),zm.className,0));let g=zF(a,C,l,s),p=document.createElement("div");if(p.className="inline-deleted-margin-view-zone",re(p,C.fontInfo),this._options.renderIndicators.read(e))for(let e=0;e<g.heightInLines;e++){let t=document.createElement("div");t.className=`delete-sign ${eY.asClassName(zl)}`,t.setAttribute("style",`position:absolute;top:${e*c}px;width:${C.lineDecorationsWidth}px;height:${c}px;right:0;`),p.appendChild(t);}m.add(new zO(()=>(0,sI.m)(t),p,s,this._editors.modified,o.diff,this._diffEditorWidget,g,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let e=0;e<g.viewLineCounts.length;e++){let t=g.viewLineCounts[e];t>1&&i.push({afterLineNumber:o.originalRange.startLineNumber+e,domNode:f(),heightInPx:(t-1)*c,showInHiddenAreas:!0,suppressMouseDown:!0});}n.push({afterLineNumber:o.modifiedRange.startLineNumber-1,domNode:s,heightInPx:g.heightInLines*c,minWidthInPx:g.minWidthInPx,marginDomNode:p,setZoneId(e){t=e;},showInHiddenAreas:!0,suppressMouseDown:!1});}let t=document.createElement("div");t.className="gutter-delete",i.push({afterLineNumber:o.originalRange.endLineNumberExclusive-1,domNode:f(),heightInPx:o.modifiedHeightInPx,marginDomNode:t,showInHiddenAreas:!0,suppressMouseDown:!0});}for(let t of(_p$read=p.read(e))!==null&&_p$read!==void 0?_p$read:[]){var _p$read;if(!(_!==null&&_!==void 0&&_.lineRangeMapping.original.intersect(t.originalRange))||!(_!==null&&_!==void 0&&_.lineRangeMapping.modified.intersect(t.modifiedRange)))continue;let e=t.modifiedHeightInPx-t.originalHeightInPx;e>0?i.push({afterLineNumber:t.originalRange.endLineNumberExclusive-1,domNode:f(),heightInPx:e,showInHiddenAreas:!0,suppressMouseDown:!0}):n.push({afterLineNumber:t.modifiedRange.endLineNumberExclusive-1,domNode:f(),heightInPx:-e,showInHiddenAreas:!0,suppressMouseDown:!0});}return{orig:i,mod:n};});let _=!1;this._register(this._editors.original.onDidScrollChange(e=>{e.scrollLeftChanged&&!_&&(_=!0,this._editors.modified.setScrollLeft(e.scrollLeft),_=!1);})),this._register(this._editors.modified.onDidScrollChange(e=>{e.scrollLeftChanged&&!_&&(_=!0,this._editors.original.setScrollLeft(e.scrollLeft),_=!1);})),this._originalScrollTop=sf(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=sf(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(se(e=>{let t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.read(void 0)-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.read(void 0)-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1);})),this._register(se(e=>{let t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.read(void 0)-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.read(void 0)-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1);})),this._register(se(e=>{var _this$_diffModel$read3;let t=(_this$_diffModel$read3=this._diffModel.read(e))===null||_this$_diffModel$read3===void 0?void 0:_this$_diffModel$read3.movedTextToCompare.read(e),i=0;if(t){let e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.read(void 0);i=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.read(void 0)-e;}i>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(i,void 0)):i<0?(this._modifiedTopPadding.set(-i,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0);},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.read(void 0)-i,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.read(void 0)+i,void 0,!0);}));}};function zK(e,t,i,n,s,o){let r=new ip.b(zq(e,n)),a=new ip.b(zq(t,s)),l=e.getOption(75),h=t.getOption(75),d=[],c=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;let s=i?i.lineNumber-c:Number.MAX_VALUE,o=n?n.lineNumber-u:Number.MAX_VALUE;s<o?(r.dequeue(),n={lineNumber:i.lineNumber-c+u,heightInPx:0}):s>o?(a.dequeue(),i={lineNumber:n.lineNumber-u+c,heightInPx:0}):(r.dequeue(),a.dequeue()),d.push({originalRange:hL.m.ofLength(i.lineNumber,1),modifiedRange:hL.m.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:h+n.heightInPx,diff:void 0});}}for(let t of i){let i=t.lineRangeMapping;g(i.original.startLineNumber,i.modified.startLineNumber);let n=!0,s=i.modified.startLineNumber,f=i.original.startLineNumber;function p(e,i,o=!1){var _r$takeWhile$reduce,_r$takeWhile,_a$takeWhile$reduce,_a$takeWhile;if(e<f||i<s)return;if(n)n=!1;else if(!o&&(e===f||i===s))return;let c=new hL.m(f,e),u=new hL.m(s,i);if(c.isEmpty&&u.isEmpty)return;let g=(_r$takeWhile$reduce=(_r$takeWhile=r.takeWhile(t=>t.lineNumber<e))===null||_r$takeWhile===void 0?void 0:_r$takeWhile.reduce((e,t)=>e+t.heightInPx,0))!==null&&_r$takeWhile$reduce!==void 0?_r$takeWhile$reduce:0,m=(_a$takeWhile$reduce=(_a$takeWhile=a.takeWhile(e=>e.lineNumber<i))===null||_a$takeWhile===void 0?void 0:_a$takeWhile.reduce((e,t)=>e+t.heightInPx,0))!==null&&_a$takeWhile$reduce!==void 0?_a$takeWhile$reduce:0;d.push({originalRange:c,modifiedRange:u,originalHeightInPx:c.length*l+g,modifiedHeightInPx:u.length*h+m,diff:t.lineRangeMapping}),f=e,s=i;}if(o)for(let t of i.innerChanges||[]){t.originalRange.startColumn>1&&t.modifiedRange.startColumn>1&&p(t.originalRange.startLineNumber,t.modifiedRange.startLineNumber);let i=e.getModel(),n=t.originalRange.endLineNumber<=i.getLineCount()?i.getLineMaxColumn(t.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;t.originalRange.endColumn<n&&p(t.originalRange.endLineNumber,t.modifiedRange.endLineNumber);}p(i.original.endLineNumberExclusive,i.modified.endLineNumberExclusive,!0),c=i.original.endLineNumberExclusive,u=i.modified.endLineNumberExclusive;}return g(Number.MAX_VALUE,Number.MAX_VALUE),d;}function zq(e,t){let i=[],n=[],s=-1!==e.getOption(167).wrappingColumn,o=e._getViewModel().coordinatesConverter,r=e.getOption(75);if(s)for(let t=1;t<=e.getModel().getLineCount();t++){let e=o.getModelLineViewLineCount(t);e>1&&n.push({lineNumber:t,heightInPx:r*(e-1)});}for(let n of e.getWhitespaces()){if(t.has(n.id))continue;let e=0===n.afterLineNumber?0:o.convertViewPositionToModelPosition(new rh.f(n.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:n.height});}return function(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;let s=[],o=0,r=0;for(;o<e.length&&r<t.length;){let a=e[o],l=t[r],h=i(a),d=i(l);h<d?(s.push(a),o++):(h>d?s.push(l):(s.push(n(a,l)),o++),r++);}for(;o<e.length;)s.push(e[o]),o++;for(;r<t.length;)s.push(t[r]),r++;return s;}(i,n,e=>e.lineNumber,(e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx}));}function zj(e){return!!e.innerChanges&&e.innerChanges.every(e=>zG(e.modifiedRange)&&zG(e.originalRange)||e.originalRange.equalsRange(new ln.f(1,1,1,1)));}function zG(e){return e.startLineNumber===e.endLineNumber;}z$=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([zU(8,TP),zU(9,kF)],z$),e.s(["P",0,z$,"f",0,zj,"I",0,zG],68887);var zQ=i8;class zZ extends zQ.N{constructor(e,t,i,n,s){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=s,this._originalScrollTop=sf(this,this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=sf(this,this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=zk("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=sc(this,0),this._modifiedViewZonesChangedSignal=zk("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=zk("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=n5(this,e=>{var _t$diff$read;this._element.replaceChildren();let t=this._diffModel.read(e),i=t===null||t===void 0||(_t$diff$read=t.diff.read(e))===null||_t$diff$read===void 0?void 0:_t$diff$read.movedTexts;if(!i||0===i.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);let n=this._originalEditorLayoutInfo.read(e),s=this._modifiedEditorLayoutInfo.read(e);if(!n||!s)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);let o=i.map(t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2;}let n=i(t.lineRangeMapping.original,this._editors.original),s=this._originalScrollTop.read(e),o=i(t.lineRangeMapping.modified,this._editors.modified),r=this._modifiedScrollTop.read(e),a=n-s,l=o-r,h=Math.min(n,o),d=Math.max(n,o);return{range:new hG.G(h,d),from:a,to:l,fromWithoutScroll:n,toWithoutScroll:o,move:t};});o.sort((0,ip.$)((0,ip.i)(e=>e.fromWithoutScroll>e.toWithoutScroll,ip.P),(0,ip.i)(e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll,ip.k)));let r=zY.compute(o.map(e=>e.range)),a=n.verticalScrollbarWidth,l=(r.getTrackCount()-1)*10+20,h=a+l+(s.contentLeft-zZ.movedCodeBlockPadding),d=0;for(let i of o){let n=a+10+10*r.getTrack(d),o=s.glyphMarginWidth+s.lineNumbersWidth,l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.classList.add("arrow-rectangle"),l.setAttribute("x",`${h-o}`),l.setAttribute("y",`${i.to-9}`),l.setAttribute("width",`${o}`),l.setAttribute("height","18"),this._element.appendChild(l);let c=document.createElementNS("http://www.w3.org/2000/svg","g"),u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d",`M 0 ${i.from} L ${n} ${i.from} L ${n} ${i.to} L ${h-15} ${i.to}`),u.setAttribute("fill","none"),c.appendChild(u);let g=document.createElementNS("http://www.w3.org/2000/svg","polygon");g.classList.add("arrow"),e.store.add(se(e=>{u.classList.toggle("currentMove",i.move===t.activeMovedText.read(e)),g.classList.toggle("currentMove",i.move===t.activeMovedText.read(e));})),g.setAttribute("points",`${h-15},${i.to-7.5} ${h},${i.to} ${h-15},${i.to+7.5}`),c.appendChild(g),this._element.appendChild(c),d++;}this.width.set(l,void 0);}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,zQ.Q)(()=>this._element.remove())),this._register(se(e=>{let t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=`${t.width-t.verticalScrollbarWidth}px`,this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-zZ.movedCodeBlockPadding+this.width.read(e)}px`);})),this._register(sC(this._state));let o=n5(e=>{let t=this._diffModel.read(e),i=t===null||t===void 0?void 0:t.diff.read(e);return i?i.movedTexts.map(e=>({move:e,original:new Hj(RP(e.lineRangeMapping.original.startLineNumber-1),18),modified:new Hj(RP(e.lineRangeMapping.modified.startLineNumber-1),18)})):[];});this._register(HZ(this._editors.original,o.map(e=>e.map(e=>e.original)))),this._register(HZ(this._editors.modified,o.map(e=>e.map(e=>e.modified)))),this._register(ss((e,t)=>{for(let i of o.read(e))t.add(new zX(this._editors.original,i.original,i.move,"original",this._diffModel.get())),t.add(new zX(this._editors.modified,i.modified,i.move,"modified",this._diffModel.get()));}));let r=zk("original.onDidFocusEditorWidget",e=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>e(void 0),0))),a=zk("modified.onDidFocusEditorWidget",e=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>e(void 0),0))),l="modified";this._register(si({changeTracker:{createChangeSummary:()=>void 0,handleChange:(e,t)=>(e.didChange(r)&&(l="original"),e.didChange(a)&&(l="modified"),!0)}},e=>{let t;r.read(e),a.read(e);let i=this._diffModel.read(e);if(!i)return;let n=i.diff.read(e);if(n&&"original"===l){let i=this._editors.originalCursor.read(e);i&&(t=n.movedTexts.find(e=>e.lineRangeMapping.original.contains(i.lineNumber)));}if(n&&"modified"===l){let i=this._editors.modifiedCursor.read(e);i&&(t=n.movedTexts.find(e=>e.lineRangeMapping.modified.contains(i.lineNumber)));}t!==i.movedTextToCompare.read(void 0)&&i.movedTextToCompare.set(void 0,void 0),i.setActiveMovedText(t);}));}}_zZ=zZ;_zZ.movedCodeBlockPadding=4;class zY{static compute(e){let t=[],i=[];for(let n of e){let e=t.findIndex(e=>!e.intersectsStrict(n));-1===e&&(t.length>=6?e=(0,vf.X)(t,(0,ip.i)(e=>e.intersectWithRangeLength(n),ip.k)):(e=t.length,t.push(new hG.Z()))),t[e].addRange(n),i.push(e);}return new zY(t.length,i);}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t;}getTrack(e){return this.trackPerLineIdx[e];}getTrackCount(){return this._trackCount;}}class zX extends Hq{constructor(e,t,i,n,s){let o,r=oH("div.diff-hidden-lines-widget");super(e,t,r.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=s,this._nodes=oH("div.diff-moved-code-block",{style:{marginRight:"4px"}},[oH("div.text-content@textContent"),oH("div.action-bar@actionBar")]),r.root.appendChild(this._nodes.root);let a=sf(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(HQ(this._nodes.root,{paddingRight:a.map(e=>e.verticalScrollbarWidth)})),o=i.changes.length>0?"original"===this._kind?(0,iM.M)(150,"Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,iM.M)(151,"Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,iM.M)(152,"Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,iM.M)(153,"Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);let l=this._register(new A5(this._nodes.actionBar,{highlightToggledItems:!0})),h=this._register(new rg("",o,"",!1));l.push(h,{icon:!1,label:!0});let d=this._register(new rg("","Compare",eY.asClassName(rC.f.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0);}));this._register(se(e=>{d.checked=this._diffModel.movedTextToCompare.read(e)===i;})),l.push(d,{icon:!1,label:!0});}}class zJ extends zo.N{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=n5(this,e=>{let t=this._diffModel.read(e),i=t===null||t===void 0?void 0:t.diff.read(e);if(!i)return null;let n=this._diffModel.read(e).movedTextToCompare.read(e),s=this._options.renderIndicators.read(e),o=this._options.showEmptyDecorations.read(e),r=[],a=[];if(!n)for(let n of i.mappings)if(n.lineRangeMapping.original.isEmpty||r.push({range:n.lineRangeMapping.original.toInclusiveRange(),options:s?zd:zu}),n.lineRangeMapping.modified.isEmpty||a.push({range:n.lineRangeMapping.modified.toInclusiveRange(),options:s?zh:zc}),n.lineRangeMapping.modified.isEmpty||n.lineRangeMapping.original.isEmpty)n.lineRangeMapping.original.isEmpty||r.push({range:n.lineRangeMapping.original.toInclusiveRange(),options:z_}),n.lineRangeMapping.modified.isEmpty||a.push({range:n.lineRangeMapping.modified.toInclusiveRange(),options:zp});else{let i=this._options.useTrueInlineDiffRendering.read(e)&&zj(n.lineRangeMapping);for(let e of n.lineRangeMapping.innerChanges||[])if(n.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&r.push({range:e.originalRange,options:e.originalRange.isEmpty()&&o?zv:zm}),n.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&o&&!i?zf:zg}),i){let i=t.model.original.getValueInRange(e.originalRange);a.push({range:e.modifiedRange,options:{description:"deleted-text",before:{content:i,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}});}}if(n)for(let e of n.changes){let t=e.original.toInclusiveRange();t&&r.push({range:t,options:s?zd:zu});let i=e.modified.toInclusiveRange();for(let t of(i&&a.push({range:i,options:s?zh:zc}),e.innerChanges||[]))r.push({range:t.originalRange,options:zm}),a.push({range:t.modifiedRange,options:zg});}let l=this._diffModel.read(e).activeMovedText.read(e);for(let e of i.movedTexts)r.push({range:e.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(e===l?" currentMove":""),blockPadding:[zZ.movedCodeBlockPadding,0,zZ.movedCodeBlockPadding,zZ.movedCodeBlockPadding]}}),a.push({range:e.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(e===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:r,modifiedDecorations:a};}),this._register(Hz(this._editors.original,this._decorations.map(e=>(e===null||e===void 0?void 0:e.originalDecorations)||[]))),this._register(Hz(this._editors.modified,this._decorations.map(e=>(e===null||e===void 0?void 0:e.modifiedDecorations)||[])));}}var z0=i8,z1=i8;class z2{static equals(e,t){return e.x===t.x&&e.y===t.y;}constructor(e,t){this.x=e,this.y=t;}add(e){return new z2(this.x+e.x,this.y+e.y);}deltaX(e){return new z2(this.x+e,this.y);}deltaY(e){return new z2(this.x,this.y+e);}toString(){return`(${this.x},${this.y})`;}subtract(e){return new z2(this.x-e.x,this.y-e.y);}scale(e){return new z2(this.x*e,this.y*e);}mapComponents(e){return new z2(e(this.x),e(this.y));}isZero(){return 0===this.x&&0===this.y;}withThreshold(e){return this.mapComponents(t=>t>e?t-e:t<-e?t+e:0);}}function z3(e){return z5.get(e);}e.s(["f",0,z2],9722);class z5 extends z1.N{static get(e){let t=z5._map.get(e);if(!t){t=new z5(e),z5._map.set(e,t);let i=e.onDidDispose(()=>{let t=z5._map.get(e);t&&(z5._map.delete(e),t.dispose(),i.dispose());});}return t;}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new sd(()=>{}));}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){let e=this._currentTransaction;this._currentTransaction=void 0,e.finish();}}constructor(e){var _this$editor$getModel,_this$editor$getModel2,_this$editor$getSelec;super(),this.editor=e,this._sawZeroLineWidth=!1,this._onDidContainerResize=sm({owner:this,getTransaction:()=>this._currentTransaction},e=>{let t=this.editor.getContainerDomNode(),i=new ResizeObserver(()=>{this._sawZeroLineWidth&&(this._sawZeroLineWidth=!1,this.editor.resetLineWidthCaches()),e(void 0);});return i.observe(t),{dispose:()=>i.disconnect()};},()=>({})),this._updateCounter=0,this._currentTransaction=void 0,this._model=sc(this,this.editor.getModel()),this.model=this._model,this.isReadonly=sm({owner:this,getTransaction:()=>this._currentTransaction},this.editor.onDidChangeConfiguration,()=>this.editor.getOption(104)),this._versionId=Sk({owner:this,lazy:!0},(_this$editor$getModel=(_this$editor$getModel2=this.editor.getModel())===null||_this$editor$getModel2===void 0?void 0:_this$editor$getModel2.getVersionId())!==null&&_this$editor$getModel!==void 0?_this$editor$getModel:null),this.versionId=this._versionId,this._selections=Sk({owner:this,equalsFn:nU(nW(pq.f.selectionsEqual)),lazy:!0},(_this$editor$getSelec=this.editor.getSelections())!==null&&_this$editor$getSelec!==void 0?_this$editor$getSelec:null),this.selections=this._selections,this.positions=n4({owner:this,equalsFn:nU(nW(rh.f.equals))},e=>{var _this$selections$read,_this$selections$read2;return(_this$selections$read=(_this$selections$read2=this.selections.read(e))===null||_this$selections$read2===void 0?void 0:_this$selections$read2.map(e=>e.getStartPosition()))!==null&&_this$selections$read!==void 0?_this$selections$read:null;}),this.isFocused=sm({owner:this,getTransaction:()=>this._currentTransaction},e=>{let t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose();}};},()=>this.editor.hasWidgetFocus()),this.isTextFocused=sm({owner:this,getTransaction:()=>this._currentTransaction},e=>{let t=this.editor.onDidFocusEditorText(e),i=this.editor.onDidBlurEditorText(e);return{dispose(){t.dispose(),i.dispose();}};},()=>this.editor.hasTextFocus()),this.inComposition=sm({owner:this,getTransaction:()=>this._currentTransaction},e=>{let t=this.editor.onDidCompositionStart(()=>{e(void 0);}),i=this.editor.onDidCompositionEnd(()=>{e(void 0);});return{dispose(){t.dispose(),i.dispose();}};},()=>this.editor.inComposition),this.value=n6(this,e=>{var _this$model$read$getV,_this$model$read;return this.versionId.read(e),(_this$model$read$getV=(_this$model$read=this.model.read(e))===null||_this$model$read===void 0?void 0:_this$model$read.getValue())!==null&&_this$model$read$getV!==void 0?_this$model$read$getV:"";},(e,t)=>{let i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e);}),this.valueIsEmpty=n5(this,e=>{var _this$editor$getModel3;return this.versionId.read(e),((_this$editor$getModel3=this.editor.getModel())===null||_this$editor$getModel3===void 0?void 0:_this$editor$getModel3.getValueLength())===0;}),this.cursorSelection=n4({owner:this,equalsFn:nU(pq.f.selectionsEqual)},e=>{var _this$selections$read3,_this$selections$read4;return(_this$selections$read3=(_this$selections$read4=this.selections.read(e))===null||_this$selections$read4===void 0?void 0:_this$selections$read4[0])!==null&&_this$selections$read3!==void 0?_this$selections$read3:null;}),this.cursorPosition=n4({owner:this,equalsFn:rh.f.equals},e=>{var _this$selections$read5,_this$selections$read6;return(_this$selections$read5=(_this$selections$read6=this.selections.read(e))===null||_this$selections$read6===void 0||(_this$selections$read6=_this$selections$read6[0])===null||_this$selections$read6===void 0?void 0:_this$selections$read6.getPosition())!==null&&_this$selections$read5!==void 0?_this$selections$read5:null;}),this.cursorLineNumber=n5(this,e=>{var _this$cursorPosition$,_this$cursorPosition$2;return(_this$cursorPosition$=(_this$cursorPosition$2=this.cursorPosition.read(e))===null||_this$cursorPosition$2===void 0?void 0:_this$cursorPosition$2.lineNumber)!==null&&_this$cursorPosition$!==void 0?_this$cursorPosition$:null;}),this.onDidType=sv(this),this.onDidPaste=sv(this),this.scrollTop=sm({owner:this,getTransaction:()=>this._currentTransaction},this.editor.onDidScrollChange,()=>this.editor.getScrollTop()),this.scrollLeft=sm({owner:this,getTransaction:()=>this._currentTransaction},this.editor.onDidScrollChange,()=>this.editor.getScrollLeft()),this.layoutInfo=sm({owner:this,getTransaction:()=>this._currentTransaction},this.editor.onDidLayoutChange,()=>this.editor.getLayoutInfo()),this.layoutInfoContentLeft=this.layoutInfo.map(e=>e.contentLeft),this.layoutInfoDecorationsLeft=this.layoutInfo.map(e=>e.decorationsLeft),this.layoutInfoWidth=this.layoutInfo.map(e=>e.width),this.layoutInfoHeight=this.layoutInfo.map(e=>e.height),this.layoutInfoMinimap=this.layoutInfo.map(e=>e.minimap),this.layoutInfoVerticalScrollbarWidth=this.layoutInfo.map(e=>e.verticalScrollbarWidth),this.contentWidth=sm({owner:this,getTransaction:()=>this._currentTransaction},this.editor.onDidContentSizeChange,()=>this.editor.getContentWidth()),this.contentHeight=sm({owner:this,getTransaction:()=>this._currentTransaction},this.editor.onDidContentSizeChange,()=>this.editor.getContentHeight()),this._onDidChangeViewZones=zk(this,this.editor.onDidChangeViewZones),this._onDidHiddenAreasChanged=zk(this,this.editor.onDidChangeHiddenAreas),this._onDidLineHeightChanged=zk(this,this.editor.onDidChangeLineHeight),this._widgetCounter=0,this.openedPeekWidgets=sc(this,0),this._register(this.editor.onBeginUpdate(()=>this._beginUpdate())),this._register(this.editor.onEndUpdate(()=>this._endUpdate())),this._register(this.editor.onDidChangeModel(()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate();}finally{this._endUpdate();}})),this._register(this.editor.onDidType(e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,e);}finally{this._endUpdate();}})),this._register(this.editor.onDidPaste(e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidPaste.trigger(this._currentTransaction,e);}finally{this._endUpdate();}})),this._register(this.editor.onDidChangeModelContent(e=>{this._beginUpdate();try{var _this$editor$getModel4,_this$editor$getModel5;this._versionId.set((_this$editor$getModel4=(_this$editor$getModel5=this.editor.getModel())===null||_this$editor$getModel5===void 0?void 0:_this$editor$getModel5.getVersionId())!==null&&_this$editor$getModel4!==void 0?_this$editor$getModel4:null,this._currentTransaction,e),this._forceUpdate();}finally{this._endUpdate();}})),this._register(this.editor.onDidChangeCursorSelection(e=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,e),this._forceUpdate();}finally{this._endUpdate();}})),this.domNode=n5(e=>(this.model.read(e),this.editor.getDomNode()));}transaction(e){this._beginUpdate();try{return e(this._currentTransaction);}finally{this._endUpdate();}}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction);}finally{this._endUpdate();}}_forceUpdate(){this._beginUpdate();try{var _this$editor$getModel6,_this$editor$getModel7;this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set((_this$editor$getModel6=(_this$editor$getModel7=this.editor.getModel())===null||_this$editor$getModel7===void 0?void 0:_this$editor$getModel7.getVersionId())!==null&&_this$editor$getModel6!==void 0?_this$editor$getModel6:null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0);}finally{this._endUpdate();}}getOption(e,t=eq.ofCaller()){return sf(this,t=>this.editor.onDidChangeConfiguration(i=>{i.hasChanged(e)&&t(void 0);}),()=>this.editor.getOption(e),t);}setDecorations(e){let t=new z1.q(),i=this.editor.createDecorationsCollection();return t.add(st({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},t=>{let n=e.read(t);i.set(n);})),t.add({dispose:()=>{i.clear();}}),t;}createOverlayWidget(e){let t="observableOverlayWidget"+this._widgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);let n=se(t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i);});return(0,z1.Q)(()=>{n.dispose(),this.editor.removeOverlayWidget(i);});}createContentWidget(e){let t="observableContentWidget"+this._widgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow};this.editor.addContentWidget(i);let n=se(t=>{e.position.read(t),this.editor.layoutContentWidget(i);});return(0,z1.Q)(()=>{n.dispose(),this.editor.removeContentWidget(i);});}observeLineOffsetRange(e,t){let i=this.observePosition(e.map(e=>new rh.f(e.startLineNumber,1)),t),n=this.observePosition(e.map(e=>new rh.f(e.endLineNumberExclusive+1,1)),t);return n5(t=>{var _this$model$read2;i.read(t),n.read(t);let s=e.read(t),o=(_this$model$read2=this.model.read(t))===null||_this$model$read2===void 0?void 0:_this$model$read2.getLineCount(),r=(void 0!==o&&s.startLineNumber>o?this.editor.getBottomForLineNumber(o):this.editor.getTopForLineNumber(s.startLineNumber))-this.scrollTop.read(t),a=s.isEmpty?r:this.editor.getBottomForLineNumber(s.endLineNumberExclusive-1)-this.scrollTop.read(t);return new hG.G(r,a);});}getLeftOfPosition(e,t){this.layoutInfo.read(t),this.value.read(t);let i=this.editor.getOffsetForColumn(e.lineNumber,e.column);if(-1===i){let t=this.editor.getOption(59).typicalHalfwidthCharacterWidth;i=e.column*t;}return i;}observePosition(e,t){let i=e.get(),n=Sk({owner:this,debugName:()=>{var _i5;return`topLeftOfPosition${(_i5=i)===null||_i5===void 0?void 0:_i5.toString()}`;},equalsFn:nU(z2.equals)},new z2(0,0)),s="observablePositionWidget"+this._widgetCounter++,o=document.createElement("div"),r={getDomNode:()=>o,getPosition:()=>i?{preference:[0],position:e.get()}:null,getId:()=>s,allowEditorOverflow:!1,useDisplayNone:!0,afterRender:(e,t)=>{let s=this._model.get();s&&i&&i.lineNumber>s.getLineCount()?n.set(new z2(0,this.editor.getBottomForLineNumber(s.getLineCount())-this.scrollTop.get()),void 0):n.set(t?new z2(t.left,t.top):null,void 0);}};return this.editor.addContentWidget(r),t.add(se(t=>{i=e.read(t),this.editor.layoutContentWidget(r);})),t.add((0,z1.Q)(()=>{this.editor.removeContentWidget(r);})),n;}isTargetHovered(e,t){let i=sc("isInjectedTextHovered",!1);return t.add(this.editor.onMouseMove(t=>{let n=e(t);i.set(n,void 0);})),t.add(this.editor.onMouseLeave(e=>{i.set(!1,void 0);})),i;}observeLineHeightForPosition(e){return n5(t=>{let i=e instanceof rh.f?e:e.read(t);return null===i?null:(this.getOption(75).read(t),this.editor.getLineHeightForPosition(i));});}observeLineHeightForLine(e){return"number"==typeof e?this.observeLineHeightForPosition(new rh.f(e,1)):n5(t=>{let i=e.read(t);return null===i?null:this.observeLineHeightForPosition(new rh.f(i,1)).read(t);});}observeLineHeightsForLineRange(e){return n5(t=>{let i=e instanceof hL.m?e:e.read(t),n=[];for(let e=i.startLineNumber;e<i.endLineNumberExclusive;e++)n.push(this.observeLineHeightForLine(e).read(t));return n;});}getWidthOfLine(e,t){this.layoutInfo.read(t),this.value.read(t),this.scrollTop.read(t);let i=this.editor.getWidthOfLine(e);return this._onDidContainerResize.read(t),0===i&&(this._sawZeroLineWidth=!0),i;}observeTopForLineNumber(e){return n5(t=>(this.layoutInfo.read(t),this._onDidChangeViewZones.read(t),this._onDidHiddenAreasChanged.read(t),this._onDidLineHeightChanged.read(t),this._versionId.read(t),this.editor.getTopForLineNumber(e)));}}_z2=z5;_z2._map=new Map();e.s(["f",0,z3],84055);var z6=i8;let z4=(_Class15=class z4 extends z6.N{constructor(e,t,i,n,s,o,r){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=s,this._modifiedEditorLayoutInfo=o,this._themeService=r,this.width=ic.ENTIRE_DIFF_OVERVIEW_WIDTH,this._rootElement.classList.add("has-diff-overview"),this._register((0,z6.Q)(()=>this._rootElement.classList.remove("has-diff-overview")));let a=sf(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),l=n5(e=>{let t=a.read(e);return{insertColor:t.getColor(ua)||(t.getColor(us)||ui).transparent(2),removeColor:t.getColor(ul)||(t.getColor(uo)||un).transparent(2)};}),h=o7(document.createElement("div"));h.setClassName("diffViewport"),h.setPosition("absolute");let d=oH("div.diffOverview",{style:{position:"absolute",top:"0px",width:ic.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(HU(d,h.domNode)),this._register(sq(d,o_.POINTER_DOWN,e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e);})),this._register(s$(d,o_.MOUSE_WHEEL,e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e);},{passive:!1})),this._register(HU(this._rootElement,d)),this._register(ss((e,t)=>{let i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add(HU(d,n.getDomNode())));let s=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(s&&(t.add(s),t.add(HU(d,s.getDomNode()))),!n||!s)return;let o=zk("viewZoneChanged",this._editors.original.onDidChangeViewZones),r=zk("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=zk("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),c=zk("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add(se(e=>{var _i$diff$read;o.read(e),r.read(e),a.read(e),c.read(e);let t=l.read(e),h=i===null||i===void 0||(_i$diff$read=i.diff.read(e))===null||_i$diff$read===void 0?void 0:_i$diff$read.mappings;function d(e,t,i){let n=i._getViewModel();return n?e.filter(e=>e.length>0).map(e=>{let i=n.coordinatesConverter.convertModelPositionToViewPosition(new rh.f(e.startLineNumber,1)),s=n.coordinatesConverter.convertModelPositionToViewPosition(new rh.f(e.endLineNumberExclusive,1)),o=s.lineNumber-i.lineNumber;return new be(i.lineNumber,s.lineNumber,o,t.toString());}):[];}let u=d((h||[]).map(e=>e.lineRangeMapping.original),t.removeColor,this._editors.original),g=d((h||[]).map(e=>e.lineRangeMapping.modified),t.insertColor,this._editors.modified);n!==null&&n!==void 0&&n.setZones(u),s===null||s===void 0?void 0:s.setZones(g);})),t.add(se(e=>{let t=this._rootHeight.read(e),i=this._rootWidth.read(e),o=this._modifiedEditorLayoutInfo.read(e);if(o){let i=ic.ENTIRE_DIFF_OVERVIEW_WIDTH-2*ic.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+ic.ONE_OVERVIEW_WIDTH,width:ic.ONE_OVERVIEW_WIDTH}),s.setLayout({top:0,height:t,right:0,width:ic.ONE_OVERVIEW_WIDTH});let r=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(117),d=new pJ(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,o.height,a,r);h.setTop(d.getSliderPosition()),h.setHeight(d.getSliderSize());}else h.setTop(0),h.setHeight(0);d.style.height=t+"px",d.style.left=i-ic.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",h.setWidth(ic.ENTIRE_DIFF_OVERVIEW_WIDTH);}));}));}},ic=_Class15,_Class15.ONE_OVERVIEW_WIDTH=15,_Class15.ENTIRE_DIFF_OVERVIEW_WIDTH=2*_Class15.ONE_OVERVIEW_WIDTH,_Class15);z4=ic=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){_s(e,t,6);}],z4);var z9=function(e,t){return function(i,n){t(i,n,e);};};let z8=class extends z0.N{get onDidContentSizeChange(){return this._onDidContentSizeChange.event;}getContentHeight(){return Math.max(this.modified.getContentHeight(),this.original.getContentHeight());}constructor(e,t,i,n,s,o,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=s,this._contextKeyService=o,this._instantiationService=r,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new iv.S()),this.modifiedScrollTop=sf(this,this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=sf(this,this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedObs=z3(this.modified),this.originalObs=z3(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=sf(this,this.modified.onDidChangeCursorSelection,()=>{var _this$modified$getSel;return(_this$modified$getSel=this.modified.getSelections())!==null&&_this$modified$getSel!==void 0?_this$modified$getSel:[];}),this.modifiedCursor=n4({owner:this,equalsFn:rh.f.equals},e=>{var _this$modifiedSelecti,_this$modifiedSelecti2;return(_this$modifiedSelecti=(_this$modifiedSelecti2=this.modifiedSelections.read(e)[0])===null||_this$modifiedSelecti2===void 0?void 0:_this$modifiedSelecti2.getPosition())!==null&&_this$modifiedSelecti!==void 0?_this$modifiedSelecti:new rh.f(1,1);}),this.originalCursor=sf(this,this.original.onDidChangeCursorPosition,()=>{var _this$original$getPos;return(_this$original$getPos=this.original.getPosition())!==null&&_this$original$getPos!==void 0?_this$original$getPos:new rh.f(1,1);}),this.isOriginalFocused=z3(this.original).isFocused,this.isModifiedFocused=z3(this.modified).isFocused,this.isFocused=n5(this,e=>this.isOriginalFocused.read(e)||this.isModifiedFocused.read(e)),this._argCodeEditorWidgetOptions=null,this._register(si({changeTracker:{createChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)}},(e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t));}));}_createLeftHandSideEditor(e,t){let i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t),s=this._contextKeyService.createKey("isInDiffLeftEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget(()=>s.set(!0))),this._register(n.onDidBlurEditorWidget(()=>s.set(!1))),n;}_createRightHandSideEditor(e,t){let i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t),s=this._contextKeyService.createKey("isInDiffRightEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget(()=>s.set(!0))),this._register(n.onDidBlurEditorWidget(()=>s.set(!1))),n;}_constructInnerEditor(e,t,i,n){let s=this._createInnerEditor(e,t,i,n);return this._register(s.onDidContentSizeChange(e=>{let t=this.original.getContentWidth()+this.modified.getContentWidth()+z4.ENTIRE_DIFF_OVERVIEW_WIDTH;this._onDidContentSizeChange.fire({contentHeight:this.getContentHeight(),contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged});})),s;}_adjustOptionsForLeftHandSide(e,t){let i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i;}_adjustOptionsForRightHandSide(e,t){let i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=i5.revealHorizontalRightPadding.defaultValue+z4.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i;}_adjustOptionsForSubEditor(e){let t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.allowVariableLineHeights=!1,t.allowVariableFonts=!1,t.allowVariableFontsInAccessibilityMode=!1,t.scrollbar={...(t.scrollbar||{})},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...(t.minimap||{})},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t;}_updateAriaLabel(e){var _this$_keybindingServ2;e||(e="");let t=(0,iM.M)(127," use {0} to open the accessibility help.",(_this$_keybindingServ2=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))===null||_this$_keybindingServ2===void 0?void 0:_this$_keybindingServ2.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):"";}};z8=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([z9(5,r9),z9(6,rr),z9(7,Ch)],z8);var z7=i8;class Ue{resetSash(){this._sashRatio.set(void 0,void 0);}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=n6(this,e=>{var _this$_sashRatio$read;let t=(_this$_sashRatio$read=this._sashRatio.read(e))!==null&&_this$_sashRatio$read!==void 0?_this$_sashRatio$read:this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e);},(e,t)=>{let i=this.dimensions.width.get();this._sashRatio.set(e/i,t);}),this._sashRatio=sc(this,void 0);}_computeSashLeft(e,t){let i=this.dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),s=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n;return i<=200?n:s<100?100:s>i-100?i-100:s;}}class Ut extends z7.N{constructor(e,t,i,n,s,o){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=n,this.sashLeft=s,this._resetSash=o,this._sash=this._register(new OU(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get();})),this._register(this._sash.onDidChange(e=>{this.sashLeft.set(this._startSashPosition+(e.currentX-e.startX),void 0);})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(se(e=>{let t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom);})),this._register(se(e=>{let t=this._enabled.read(e);this._sash.state=3*!!t,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout();}));}}var Ui=i8;class Un extends Ui.N{constructor(){super(...arguments),this._id=++Un.idCounter,this._onDidDispose=this._register(new iv.S()),this.onDidDispose=this._onDidDispose.event;}getId(){return this.getEditorType()+":v2:"+this._id;}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e);}getPosition(){return this._targetEditor.getPosition();}setPosition(e,t="api"){this._targetEditor.setPosition(e,t);}revealLine(e,t=0){this._targetEditor.revealLine(e,t);}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t);}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t);}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t);}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t);}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t);}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t);}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t);}getSelection(){return this._targetEditor.getSelection();}getSelections(){return this._targetEditor.getSelections();}setSelection(e,t="api"){this._targetEditor.setSelection(e,t);}setSelections(e,t="api"){this._targetEditor.setSelections(e,t);}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i);}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i);}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i);}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i);}revealRange(e,t=0,i=!1,n=!0){this._targetEditor.revealRange(e,t,i,n);}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t);}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t);}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t);}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t);}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t);}getSupportedActions(){return this._targetEditor.getSupportedActions();}focus(){this._targetEditor.focus();}trigger(e,t,i){this._targetEditor.trigger(e,t,i);}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e);}changeDecorations(e){return this._targetEditor.changeDecorations(e);}}_Un=Un;_Un.idCounter=0;let Us=class{get editorOptions(){return this._options;}constructor(e,t){this._accessibilityService=t,this._widthBasedLayout=sc(this,"auto"),this.temporaryInlineMode=this._widthBasedLayout.map(this,e=>"inline"===e),this._diffEditorWidth=sc(this,0),this._screenReaderMode=sf(this,this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=n5(this,e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=n5(this,e=>this._options.read(e).renderOverviewRuler),this.renderSideBySideInAutomaticMode=n5(this,e=>!(this.compactMode.read(e)&&this.shouldRenderInlineViewInSmartMode.read(e))&&(this._diffEditorWidth.read(e)>this._options.read(e).renderSideBySideInlineBreakpoint||this._screenReaderMode.read(e))),this.renderSideBySide=n5(this,e=>!(this.compactMode.read(e)&&this.shouldRenderInlineViewInSmartMode.read(e))&&this._options.read(e).renderSideBySide&&"auto"===this._widthBasedLayout.read(e)&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))),this.readOnly=n5(this,e=>this._options.read(e).readOnly),this.shouldRenderOldRevertArrows=n5(this,e=>!(!this._options.read(e).renderMarginRevertIcon||!this.renderSideBySide.read(e)||this.readOnly.read(e)||this.shouldRenderGutterMenu.read(e))),this.shouldRenderGutterMenu=n5(this,e=>this._options.read(e).renderGutterMenu),this.renderIndicators=n5(this,e=>this._options.read(e).renderIndicators),this.enableSplitViewResizing=n5(this,e=>this._options.read(e).enableSplitViewResizing),this.splitViewDefaultRatio=n5(this,e=>this._options.read(e).splitViewDefaultRatio),this.ignoreTrimWhitespace=n5(this,e=>this._options.read(e).ignoreTrimWhitespace),this.maxComputationTimeMs=n5(this,e=>this._options.read(e).maxComputationTime),this.showMoves=n5(this,e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e)),this.isInEmbeddedEditor=n5(this,e=>this._options.read(e).isInEmbeddedEditor),this.diffWordWrap=n5(this,e=>this._options.read(e).diffWordWrap),this.originalEditable=n5(this,e=>this._options.read(e).originalEditable),this.diffCodeLens=n5(this,e=>this._options.read(e).diffCodeLens),this.accessibilityVerbose=n5(this,e=>this._options.read(e).accessibilityVerbose),this.diffAlgorithm=n5(this,e=>this._options.read(e).diffAlgorithm),this.showEmptyDecorations=n5(this,e=>this._options.read(e).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=n5(this,e=>this._options.read(e).onlyShowAccessibleDiffViewer),this.compactMode=n5(this,e=>this._options.read(e).compactMode),this.trueInlineDiffRenderingEnabled=n5(this,e=>this._options.read(e).experimental.useTrueInlineView),this.useTrueInlineDiffRendering=n5(this,e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e)),this.hideUnchangedRegions=n5(this,e=>this._options.read(e).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=n5(this,e=>this._options.read(e).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=n5(this,e=>this._options.read(e).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=n5(this,e=>this._options.read(e).hideUnchangedRegions.minimumLineCount),this._model=sc(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,e=>{var t;return t=t=>{var i,n;let s=e===null||e===void 0?void 0:e.diff.read(t);return s?(i=s,n=this.trueInlineDiffRenderingEnabled.read(t),i.mappings.every(e=>0===e.lineRangeMapping.original.length||0===e.lineRangeMapping.modified.length||n&&zj(e.lineRangeMapping))):void 0;},sy(this,(e,i)=>i!==null&&i!==void 0?i:t(e));}).flatten().map(this,e=>!!e),this.inlineViewHideOriginalLineNumbers=n5(this,e=>this._options.read(e).hideOriginalLineNumbers||this.compactMode.read(e));let i={...e,...Uo(e,BF)};this._options=sc(this,i);}updateOptions(e){let t=this._options.get(),i=Uo(e,this._options.get()),n={...t,...e,...i};sr(i=>{(t.renderSideBySide!==n.renderSideBySide||t.useInlineViewWhenSpaceIsLimited!==n.useInlineViewWhenSpaceIsLimited||t.renderSideBySideInlineBreakpoint!==n.renderSideBySideInlineBreakpoint)&&this._widthBasedLayout.set("auto",i),this._options.set(n,i,{changedOptions:e});});}setWidth(e,t){let i=this._options.get();sr(n=>{this._diffEditorWidth.set(e,n),e<=i.renderSideBySideInlineBreakpoint?this._widthBasedLayout.set("auto",n):void 0!==t&&"auto"===this._widthBasedLayout.get()&&i.renderSideBySide&&i.useInlineViewWhenSpaceIsLimited&&t<=i.renderSideBySideInlineBreakpoint&&e>i.renderSideBySideInlineBreakpoint&&!this._screenReaderMode.get()&&!(this.compactMode.get()&&this.shouldRenderInlineViewInSmartMode.get())&&this._widthBasedLayout.set("inline",n);});}resetWidthBasedLayout(e){this._widthBasedLayout.set("auto",e);}setModel(e){this._model.set(e,void 0);}};function Uo(e,t){var _e$experimental,_e$experimental2,_e$experimental3,_e$hideUnchangedRegio,_e$hideUnchangedRegio2,_e$experimental4,_e$hideUnchangedRegio3,_e$hideUnchangedRegio4,_e$hideUnchangedRegio5;return{enableSplitViewResizing:iP(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:iV(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:iP(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:iP(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:iB(e.maxComputationTime,t.maxComputationTime,0,0x40000000),maxFileSize:iB(e.maxFileSize,t.maxFileSize,0,0x40000000),ignoreTrimWhitespace:iP(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:iP(e.renderIndicators,t.renderIndicators),originalEditable:iP(e.originalEditable,t.originalEditable),diffCodeLens:iP(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:iP(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:iU(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:iU(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced","advanced-external","advanced-wasm"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:iP(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:iP((_e$experimental=e.experimental)===null||_e$experimental===void 0?void 0:_e$experimental.showMoves,t.experimental.showMoves),showEmptyDecorations:iP((_e$experimental2=e.experimental)===null||_e$experimental2===void 0?void 0:_e$experimental2.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:iP((_e$experimental3=e.experimental)===null||_e$experimental3===void 0?void 0:_e$experimental3.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:iP((_e$hideUnchangedRegio=(_e$hideUnchangedRegio2=e.hideUnchangedRegions)===null||_e$hideUnchangedRegio2===void 0?void 0:_e$hideUnchangedRegio2.enabled)!==null&&_e$hideUnchangedRegio!==void 0?_e$hideUnchangedRegio:(_e$experimental4=e.experimental)===null||_e$experimental4===void 0?void 0:_e$experimental4.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:iB((_e$hideUnchangedRegio3=e.hideUnchangedRegions)===null||_e$hideUnchangedRegio3===void 0?void 0:_e$hideUnchangedRegio3.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,0x40000000),minimumLineCount:iB((_e$hideUnchangedRegio4=e.hideUnchangedRegions)===null||_e$hideUnchangedRegio4===void 0?void 0:_e$hideUnchangedRegio4.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,0x40000000),revealLineCount:iB((_e$hideUnchangedRegio5=e.hideUnchangedRegions)===null||_e$hideUnchangedRegio5===void 0?void 0:_e$hideUnchangedRegio5.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,0x40000000)},isInEmbeddedEditor:iP(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:iP(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:iB(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,0x40000000),useInlineViewWhenSpaceIsLimited:iP(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:iP(e.renderGutterMenu,t.renderGutterMenu),compactMode:iP(e.compactMode,t.compactMode),hideOriginalLineNumbers:iP(e.hideOriginalLineNumbers,t.hideOriginalLineNumbers)};}Us=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){dj(e,t,1);}],Us);var Ur=i8;let Ua=ra("IActionViewItemService");lW(Ua,class{constructor(){this._providers=new Map(),this._onDidChange=new iv.S(),this.onDidChange=this._onDidChange.event;}dispose(){this._onDidChange.dispose();}lookUp(e,t){return this._providers.get(this._makeKey(e,t));}_makeKey(e,t){return`${e.id}/${t instanceof ah?t.id:t}`;}},1);var Ul=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},Uh=function(e,t){return function(i,n){t(i,n,e);};};let Ud=class extends WW{constructor(e,t,i,n,s,o,r,a){super(e,s,{getKeyBinding:e=>{var _o$lookupKeybinding;return(_o$lookupKeybinding=o.lookupKeybinding(e.id))!==null&&_o$lookupKeybinding!==void 0?_o$lookupKeybinding:void 0;},...t,allowContextMenu:!0,skipTelemetry:"string"==typeof(t===null||t===void 0?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._keybindingService=o,this._commandService=r,this._sessionDisposables=this._store.add(new i8.q());let l=t===null||t===void 0?void 0:t.telemetrySource;l&&this._store.add(this.actionBar.onDidRun(e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:l})));}setActions(e,t=[],i){var _this$_options14,_this$_options16;this._sessionDisposables.clear();let n=e.slice(),s=t.slice(),o=[],r=0,a=[],l=!1;if(((_this$_options14=this._options)===null||_this$_options14===void 0?void 0:_this$_options14.hiddenItemStrategy)!==-1)for(let e=0;e<n.length;e++){var _this$_options15;let t=n[e];if(t instanceof rf){a[e]=t;continue;}(t instanceof ap||t instanceof ag)&&t.hideActions&&(o.push(t.hideActions.toggle),t.hideActions.toggle.checked&&r++,t.hideActions.isHidden&&(l=!0,n[e]=void 0,((_this$_options15=this._options)===null||_this$_options15===void 0?void 0:_this$_options15.hiddenItemStrategy)!==0&&(a[e]=t)));}if(((_this$_options16=this._options)===null||_this$_options16===void 0?void 0:_this$_options16.overflowBehavior)!==void 0){let e=wl(new Set(this._options.overflowBehavior.exempted),rw.f.map(n,e=>e===null||e===void 0?void 0:e.id)),t=this._options.overflowBehavior.maxItems-e.size,i=0;for(let s=0;s<n.length;s++){let o=n[s];o&&(i++,!e.has(o.id)&&i>=t&&(n[s]=void 0,a[s]=o));}}(0,ip.C)(n),(0,ip.C)(a),super.setActions(rf.clean(n),rf.join(rf.clean(a),s)),(o.length>0||n.length>0)&&this._sessionDisposables.add(s$(this.getElement(),"contextmenu",e=>{var _this$_options18,_this$_options19,_this$_options20,_this$_options21;let t=new nD(sT(this.getElement()),e),n=this.getItemAction(t.target);if(!n)return;t.preventDefault(),t.stopPropagation();let s=[];if(n instanceof ap&&n.menuKeybinding)s.push(n.menuKeybinding);else if(!(n instanceof ag||n instanceof WV)){let e=!!this._keybindingService.lookupKeybinding(n.id);s.push(TE(this._commandService,this._keybindingService,n.id,void 0,e));}if(o.length>0){var _this$_options17;let e=!1;if(1===r&&((_this$_options17=this._options)===null||_this$_options17===void 0?void 0:_this$_options17.hiddenItemStrategy)===0){e=!0;for(let e=0;e<o.length;e++)if(o[e].checked){o[e]=rv({id:n.id,label:n.label,checked:!0,enabled:!1,run(){}});break;}}if(!e&&(n instanceof ap||n instanceof ag)){if(!n.hideActions)return;s.push(n.hideActions.hide);}else s.push(rv({id:"label",label:(0,iM.M)(1727,"Hide"),enabled:!1,run(){}}));}let a=rf.join(s,o);(_this$_options18=this._options)!==null&&_this$_options18!==void 0&&_this$_options18.resetMenu&&!i&&(i=[this._options.resetMenu]),l&&i&&(a.push(new rf()),a.push(rv({id:"resetThisMenu",label:(0,iM.M)(1728,"Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),0!==a.length&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>a,menuId:(_this$_options19=this._options)===null||_this$_options19===void 0?void 0:_this$_options19.contextMenu,menuActionOptions:{renderShortTitle:!0,...((_this$_options20=this._options)===null||_this$_options20===void 0?void 0:_this$_options20.menuOptions)},skipTelemetry:"string"==typeof((_this$_options21=this._options)===null||_this$_options21===void 0?void 0:_this$_options21.telemetrySource),contextKeyService:this._contextKeyService});}));}};Ud=Ul([Uh(2,ad),Uh(3,r9),Uh(4,kF),Uh(5,Ch),Uh(6,ry),Uh(7,am)],Ud);let Uc=class extends Ud{get onDidChangeMenuItems(){return this._onDidChangeMenuItems.event;}constructor(e,t,i,n,s,o,r,a,l,h,d){super(e,{resetMenu:t,...i,actionViewItemProvider:(n,s)=>{var _o5;let o=h.lookUp(t,n instanceof ag?n.item.submenu.id:n.id);o||(o=i===null||i===void 0?void 0:i.actionViewItemProvider);let r=(_o5=o)===null||_o5===void 0?void 0:_o5(n,s,d,sT(e).vscodeWindowId);return r||A2(d,n,s);}},n,s,o,r,a,l),this._onDidChangeMenuItems=this._store.add(new iv.S()),this._container=e,this._menuOptions=i===null||i===void 0?void 0:i.menuOptions,this._toolbarOptions=i===null||i===void 0?void 0:i.toolbarOptions,this._menu=this._store.add(n.createMenu(t,s,{emitEventsForSubmenuChanges:!0,eventDebounceDelay:i===null||i===void 0?void 0:i.eventDebounceDelay})),this._store.add(this._menu.onDidChange(()=>{this._updateToolbar(),this._onDidChangeMenuItems.fire(this);})),this._store.add(h.onDidChange(e=>{e===t&&this._updateToolbar();})),this._updateToolbar();}_updateToolbar(){var _this$_toolbarOptions,_this$_toolbarOptions2,_this$_toolbarOptions3;let{primary:e,secondary:t}=AG(this._menu.getActions(this._menuOptions),(_this$_toolbarOptions=this._toolbarOptions)===null||_this$_toolbarOptions===void 0?void 0:_this$_toolbarOptions.primaryGroup,(_this$_toolbarOptions2=this._toolbarOptions)===null||_this$_toolbarOptions2===void 0?void 0:_this$_toolbarOptions2.shouldInlineSubmenu,(_this$_toolbarOptions3=this._toolbarOptions)===null||_this$_toolbarOptions3===void 0?void 0:_this$_toolbarOptions3.useSeparatorsInPrimaryActions);this._container.classList.toggle("has-no-actions",0===e.length&&0===t.length),super.setActions(e,t);}setActions(){throw new nf.Q("This toolbar is populated from a menu.");}};Uc=Ul([Uh(3,ad),Uh(4,r9),Uh(5,kF),Uh(6,Ch),Uh(7,ry),Uh(8,am),Uh(9,Ua),Uh(10,rr)],Uc),e.s(["t",0,Uc,"z",0,Ud],17529);var Uu=e.i(97249),Ug=e.i(5086);class Up extends Ug.r{constructor(e){super(),this._textModel=e;}getValueOfRange(e){return this._textModel.getValueInRange(e);}getLineLength(e){return this._textModel.getLineLength(e);}get length(){let e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new wm.f(e-1,t);}}e.s(["f",0,Up],8896);class Uf extends rp{constructor(e){super(),this._getContext=e;}runAction(e,t){let i=this._getContext();return super.runAction(e,i);}}var Um=i8;class U_ extends Um.N{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=sf(this,this._editor.onDidScrollChange,e=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(e=>0===e),this.modelAttached=sf(this,this._editor.onDidChangeModel,e=>this._editor.hasModel()),this.editorOnDidChangeViewZones=zk("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=zk("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=sv("domNodeSizeChanged"),this.views=this._register(new Um.C()),this._domNode.className="gutter monaco-editor";let n=this._domNode.appendChild(oH("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),s=new ResizeObserver(()=>{sr(e=>{this.domNodeSizeChanged.trigger(e);});});s.observe(this._domNode),this._register((0,Um.Q)(()=>s.disconnect())),this._register(se(e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration";})),this._register(se(e=>this.render(e)));}dispose(){super.dispose(),oD(this._domNode);}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);let t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),s=hG.G.ofStartAndLength(0,this._domNode.clientHeight);if(!s.isEmpty)for(let o of i){let i=new hL.m(o.startLineNumber,o.endLineNumber+1),r=this.itemProvider.getIntersectingGutterItems(i,e);sr(e=>{for(let o of r){if(!o.range.intersect(i))continue;n.delete(o.id);let r=this.views.get(o.id);if(r)r.item.set(o,e);else{let e=document.createElement("div");this._domNode.appendChild(e);let t=sc("item",o),i=this.itemProvider.createView(t,e);r=new Uv(t,i,e),this.views.set(o.id,r);}let a=o.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(o.range.startLineNumber,!0)-t:o.range.startLineNumber>1?this._editor.getBottomForLineNumber(o.range.startLineNumber-1,!1)-t:0,l=(1===o.range.endLineNumberExclusive?Math.max(a,this._editor.getTopForLineNumber(o.range.startLineNumber,!1)-t):Math.max(a,this._editor.getBottomForLineNumber(o.range.endLineNumberExclusive-1,!0)-t))-a;r.domNode.style.top=`${a}px`,r.domNode.style.height=`${l}px`,r.gutterItemView.layout(hG.G.ofStartAndLength(a,l),s);}});}for(let e of n)this.views.deleteAndDispose(e);}}class Uv{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i;}dispose(){this.gutterItemView.dispose(),this.domNode.remove();}}var Ub=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},UC=function(e,t){return function(i,n){t(i,n,e);};};let Uw=[],Uy=class extends Ur.N{constructor(e,t,i,n,s,o,r,a,l){var h;super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=s,this._boundarySashes=o,this._instantiationService=r,this._contextKeyService=a,this._menuService=l,this._menu=this._register(this._menuService.createMenu(ah.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=sf(this,this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(e=>e.length>0),this._showSash=n5(this,e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e)),this.width=n5(this,e=>35*!!this._hasActions.read(e)),this.elements=oH("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=n5(this,e=>{var _t$diff$read2;let t=this._diffModel.read(e);if(!t)return;let i=(_t$diff$read2=t.diff.read(e))===null||_t$diff$read2===void 0?void 0:_t$diff$read2.mappings,n=this._editors.modifiedCursor.read(e);if(n)return i===null||i===void 0?void 0:i.find(e=>e.lineRangeMapping.modified.contains(n.lineNumber));}),this._selectedDiffs=n5(this,e=>{let t=this._diffModel.read(e),i=t===null||t===void 0?void 0:t.diff.read(e);if(!i)return Uw;let n=this._editors.modifiedSelections.read(e);if(n.every(e=>e.isEmpty()))return Uw;let s=new hL.F(n.map(e=>hL.m.fromRangeInclusive(e))),o=i.mappings.filter(e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified)).map(e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter(e=>n.some(t=>ln.f.areIntersecting(e.modifiedRange,t)))}));return 0===o.length||o.every(e=>0===e.rangeMappings.length)?Uw:o;}),this._register((h=this.elements.root,e.prepend(h),(0,HH.Q)(()=>{h.remove();}))),this._register(s$(this.elements.root,"click",()=>{this._editors.modified.focus();})),this._register(HQ(this.elements.root,{display:this._hasActions.map(e=>e?"block":"none")})),n9(this,t=>this._showSash.read(t)?new Ut(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,n6(this,e=>this._sashLayout.sashLeft.read(e)-35,(e,t)=>this._sashLayout.sashLeft.set(e+35,t)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store);let d=n5(this,e=>{let t=this._diffModel.read(e);if(!t)return[];let i=t.diff.read(e);if(!i)return[];let n=this._selectedDiffs.read(e);if(n.length>0)return[new US(hx.Z.fromRangeMappings(n.flatMap(e=>e.rangeMappings)),!0,ah.DiffEditorSelectionToolbar,void 0,t.model.original.uri,t.model.modified.uri)];let s=this._currentDiff.read(e);return i.mappings.map(e=>new US(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===(s===null||s===void 0?void 0:s.lineRangeMapping),ah.DiffEditorHunkToolbar,void 0,t.model.original.uri,t.model.modified.uri));});this._register(new U_(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>d.read(t),createView:(e,t)=>this._instantiationService.createInstance(Ux,e,t,this)})),this._register(s$(this.elements.gutter,o_.MOUSE_WHEEL,e=>{this._editors.modified.getOption(117).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e);},{passive:!1}));}computeStagedValue(e){var _e$innerChanges;let t=(_e$innerChanges=e.innerChanges)!==null&&_e$innerChanges!==void 0?_e$innerChanges:[],i=new Up(this._editors.modifiedModel.get()),n=new Up(this._editors.original.getModel());return new Uu.b(t.map(e=>e.toTextEdit(i))).apply(n);}layout(e){this.elements.gutter.style.left=e+"px";}};Uy=Ub([UC(6,rr),UC(7,r9),UC(8,ad)],Uy);class US{constructor(e,t,i,n,s,o){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=s,this.modifiedUri=o;}get id(){return this.mapping.modified.toString();}get range(){var _this$rangeOverride;return(_this$rangeOverride=this.rangeOverride)!==null&&_this$rangeOverride!==void 0?_this$rangeOverride:this.mapping.modified;}}let Ux=class extends Ur.N{constructor(e,t,i,n){super(),this._item=e,this._elements=oH("div.gutterItem",{style:{height:"20px",width:"34px"}},[oH("div.background@background",{},[]),oH("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,e=>e.showAlways),this._menuId=this._item.map(this,e=>e.menuId),this._isSmall=sc(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;let s=this._register(n.createInstance(kO,"element",{instantHover:!0},{position:{hoverPosition:1}}));this._register(HU(t,this._elements.root)),this._register(se(e=>{let t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1);},0);})),this._register(ss((e,t)=>{this._elements.buttons.replaceChildren();let o=t.add(n.createInstance(Uc,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:s,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:t.add(new Uf(()=>{let e=this._item.read(void 0),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri};})),menuOptions:{shouldForwardArgs:!0}}));t.add(o.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange);}));}));}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight;let n=e.length/2-i/2,s=i,o=e.start+n,r=hG.G.tryCreate(s,t.endExclusive-s-i),a=hG.G.tryCreate(e.start+s,e.endExclusive-i-s);a&&r&&a.start<a.endExclusive&&(o=r.clip(o),o=a.clip(o)),this._elements.buttons.style.top=`${o-e.start}px`;}};Ux=Ub([UC(3,rr)],Ux);var UL=i8,Uk=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},UD=function(e,t){return function(i,n){t(i,n,e);};};let UM=(_Class16=class UM extends UL.N{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0);}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas;}constructor(e,t,i,n,s,o,r){super(),this._editors=e,this._diffModel=t,this._options=i,this._runWithOriginalEditorScrollAnchor=n,this._runWithModifiedEditorScrollAnchor=s,this._variant=o,this._instantiationService=r,this._modifiedOutlineSource=n9(this,e=>{let t=this._editors.modifiedModel.read(e),i=iu._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0;}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(e=>{if(1===e.reason)return;let t=this._diffModel.get();sr(e=>{for(let i of this._editors.original.getSelections()||[])t!==null&&t!==void 0&&t.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),t===null||t===void 0?void 0:t.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e);});})),this._register(this._editors.modified.onDidChangeCursorPosition(e=>{if(1===e.reason)return;let t=this._diffModel.get();sr(e=>{for(let i of this._editors.modified.getSelections()||[])t!==null&&t!==void 0&&t.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),t===null||t===void 0?void 0:t.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e);});}));let a=this._diffModel.map((e,t)=>{var _e$unchangedRegions$r,_this$_editors$modifi2;let i=(_e$unchangedRegions$r=e===null||e===void 0?void 0:e.unchangedRegions.read(t))!==null&&_e$unchangedRegions$r!==void 0?_e$unchangedRegions$r:[];return 1===i.length&&1===i[0].modifiedLineNumber&&i[0].lineCount===((_this$_editors$modifi2=this._editors.modifiedModel.read(t))===null||_this$_editors$modifi2===void 0?void 0:_this$_editors$modifi2.getLineCount())?[]:i;});this.viewZones=n5(this,e=>{let t=this._modifiedOutlineSource.read(e);if(!t)return{origViewZones:[],modViewZones:[]};let i=[],n=[],s=this._options.renderSideBySide.read(e),o="compact"===this._variant,r=!o&&this._options.compactMode.read(e),l=a.read(e);for(let a=0;a<l.length;a++){let h=l[a];if(!(!o&&h.shouldHideControls(e))&&(!r||0!==a&&a!==l.length-1))if(r){{let t=new Hj(n5(this,e=>h.getHiddenOriginalRange(e).startLineNumber-1),12);i.push(t),e.store.add(new UI(this._editors.original,t,h,!s));}{let t=new Hj(n5(this,e=>h.getHiddenModifiedRange(e).startLineNumber-1),12);n.push(t),e.store.add(new UI(this._editors.modified,t,h));}}else{{let n=new Hj(n5(this,e=>h.getHiddenOriginalRange(e).startLineNumber-1),o?40:24);i.push(n),e.store.add(this._instantiationService.createInstance(UN,this._editors.original,n,h,h.originalUnchangedRange,!s,t,e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0),this._options,this._runWithOriginalEditorScrollAnchor,o));}{let i=new Hj(n5(this,e=>h.getHiddenModifiedRange(e).startLineNumber-1),o?40:24);n.push(i),e.store.add(this._instantiationService.createInstance(UN,this._editors.modified,i,h,h.modifiedUnchangedRange,!1,t,e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0),this._options,this._runWithModifiedEditorScrollAnchor,o));}}}return{origViewZones:i,modViewZones:n};});let l={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},h={description:"Fold Unchanged",glyphMarginHoverMessage:new DF(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,iM.M)(139,"Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+eY.asClassName(rC.f.fold),zIndex:10001};this._register(Hz(this._editors.original,n5(this,e=>{let t=a.read(e),i=t.map(e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l}));for(let n of t)"compact"!==this._variant&&n.shouldHideControls(e)&&i.push({range:ln.f.fromPositions(new rh.f(n.originalLineNumber,1)),options:h});return i;}))),this._register(Hz(this._editors.modified,n5(this,e=>{let t=a.read(e),i=t.map(e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l}));for(let n of t)"compact"!==this._variant&&n.shouldHideControls(e)&&i.push({range:hL.m.ofLength(n.modifiedLineNumber,1).toInclusiveRange(),options:h});return i;}))),this._register(se(e=>{let t=a.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map(t=>t.getHiddenOriginalRange(e).toInclusiveRange()).filter(sI.v)),this._editors.modified.setHiddenAreas(t.map(t=>t.getHiddenModifiedRange(e).toInclusiveRange()).filter(sI.v));}finally{this._isUpdatingHiddenAreas=!1;}})),this._register(this._editors.modified.onMouseUp(e=>{var _e$target$element;if(!e.event.rightButton&&e.target.position&&(_e$target$element=e.target.element)!==null&&_e$target$element!==void 0&&_e$target$element.className.includes("fold-unchanged")){let t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;let n=i.unchangedRegions.get().find(e=>e.modifiedUnchangedRange.contains(t));n&&(n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault());}})),this._register(this._editors.original.onMouseUp(e=>{var _e$target$element2;if(!e.event.rightButton&&e.target.position&&(_e$target$element2=e.target.element)!==null&&_e$target$element2!==void 0&&_e$target$element2.className.includes("fold-unchanged")){let t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;let n=i.unchangedRegions.get().find(e=>e.originalUnchangedRange.contains(t));n&&(n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault());}}));}},iu=_Class16,_Class16._breadcrumbsSourceFactory=sc(_Class16,()=>({dispose(){},getBreadcrumbItems:(e,t)=>[],getAt:()=>[]})),_Class16);UM=iu=Uk([UD(6,rr)],UM);class UI extends Hq{constructor(e,t,i,n=!1){let s=oH("div.diff-hidden-lines-widget");super(e,t,s.root),this._unchangedRegion=i,this._hide=n,this._nodes=oH("div.diff-hidden-lines-compact",[oH("div.line-left",[]),oH("div.text@text",[]),oH("div.line-right",[])]),s.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register(se(e=>{if(!this._hide){let t=this._unchangedRegion.getHiddenModifiedRange(e).length,i=(0,iM.M)(140,"{0} hidden lines",t);this._nodes.text.innerText=i;}}));}}let UN=class extends Hq{constructor(e,t,i,n,s,o,r,a,l,h,d){let c=oH("div.diff-hidden-lines-widget");if(super(e,t,c.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=s,this._modifiedOutlineSource=o,this._revealModifiedHiddenLine=r,this._options=a,this._runWithScrollAnchor=l,this._compactControl=h,this._hoverService=d,this._nodes=oH("div.diff-hidden-lines",[oH("div.top@top",{title:(0,iM.M)(141,"Click or drag to show more above")}),oH("div.center@content",{style:{display:"flex"}},[oH("div.disclosure-toggle@toggle"),oH("div.first@first",{style:{display:"flex",alignItems:"center",flexShrink:"0"}},[oH("span.line-number-control@lineNumberControl",{"aria-hidden":"true"}),oN("a.default-control",{title:(0,iM.M)(142,"Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0);}},...Ni("$(unfold)"))]),oH("div.content-row@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),oH("div.bottom@bottom",{title:(0,iM.M)(143,"Click or drag to show more below"),role:"button"})]),c.root.appendChild(this._nodes.root),this._nodes.root.classList.toggle("diff-hidden-lines-disclosure",this._compactControl),this._hide)oD(this._nodes.first);else{let e=z3(this._editor);this._register(HQ(this._nodes.first,{width:e.layoutInfoContentLeft})),this._compactControl&&this._register(se(t=>{let i=e.layoutInfo.read(t);this._nodes.lineNumberControl.style.left=`${i.lineNumbersLeft}px`,this._nodes.lineNumberControl.style.width=`${i.lineNumbersWidth}px`;}));}this._compactControl&&!this._hide&&(this._nodes.toggle.tabIndex=0,this._nodes.toggle.setAttribute("role","button"),this._register(this._hoverService.setupDelayedHover(this._nodes.toggle,()=>({content:this._nodes.toggle.getAttribute("aria-label")}))),this._register(s$(this._nodes.toggle,o_.CLICK,()=>this._toggleAll())),this._register(s$(this._nodes.toggle,o_.KEY_DOWN,e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),e.repeat||this._toggleAll());}))),this._register(se(e=>{let t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;if(this._compactControl&&!this._hide){let i=t?(0,iM.M)(144,"Collapse unchanged lines"):(0,iM.M)(145,"Show {0} hidden lines",this._unchangedRegion.getHiddenModifiedRange(e).length);this._nodes.toggle.setAttribute("aria-expanded",String(t)),this._nodes.toggle.setAttribute("aria-label",i),oD(this._nodes.lineNumberControl,...Ni(t?"$(fold)":"$(unfold)"));}this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);let i=this._unchangedRegion.isDragged.read(e),n=this._editor.getDomNode();n&&(n.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(n.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),n.classList.toggle("canMoveBottom",!t)):"bottom"===i?(n.classList.toggle("canMoveTop",!t),n.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(n.classList.toggle("canMoveTop",!1),n.classList.toggle("canMoveBottom",!1)));}));let u=this._editor;this._register(s$(this._nodes.top,"mousedown",e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();let t=e.clientY,i=!1,n=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);let s=sT(this._nodes.top),o=s$(s,"mousemove",e=>{let s=e.clientY-t;i=i||Math.abs(s)>2;let o=Math.max(0,Math.min(n+Math.round(s/u.getOption(75)),this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0);}),r=s$(s,"mouseup",e=>{i||(this._compactControl&&this._isFullyRevealed()?this._unchangedRegion.collapseAll(void 0):this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0)),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),o.dispose(),r.dispose();});})),this._register(s$(this._nodes.bottom,"mousedown",e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();let t=e.clientY,i=!1,n=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);let s=sT(this._nodes.bottom),o=s$(s,"mousemove",e=>{let s=e.clientY-t;i=i||Math.abs(s)>2;let o=Math.max(0,Math.min(n-Math.round(s/u.getOption(75)),this._unchangedRegion.getMaxVisibleLineCountBottom()));o!==this._unchangedRegion.visibleLineCountBottom.get()&&this._runWithLowerScrollAnchor(()=>this._unchangedRegion.visibleLineCountBottom.set(o,void 0));}),r=s$(s,"mouseup",e=>{this._unchangedRegion.isDragged.set(void 0,void 0),i||(this._compactControl&&this._isFullyRevealed()?this._unchangedRegion.collapseAll(void 0):this._runWithLowerScrollAnchor(()=>this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0))),this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),o.dispose(),r.dispose();});})),this._register(se(e=>{let t=[];if(!this._hide){let n=this._isFullyRevealed(e),s=i.getHiddenModifiedRange(e).length,o=(0,iM.M)(146,"{0} hidden lines",s),r=oN("span",this._compactControl?void 0:{title:(0,iM.M)(147,"Double click to unfold")},this._compactControl&&n?(0,iM.M)(148,"Collapse unchanged lines"):o);this._compactControl||e.store.add(s$(r,o_.DBLCLICK,e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0));})),t.push(r);let a=this._unchangedRegion.getHiddenModifiedRange(e),l=n?[]:this._modifiedOutlineSource.getBreadcrumbItems(a,e);if(l.length>0){t.push(oN("span",void 0,this._compactControl?" · ":" | "));for(let i=0;i<l.length;i++){let n=l[i],s=oH("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[Nn(hV.F.toIcon(n.kind))," ",oH("span.breadcrumb-label",[n.name]).root,...(i===l.length-1?[]:[Nn(rC.f.chevronRight)])]).root;t.push(s);let o=e=>{e.stopPropagation(),this._revealModifiedHiddenLine(n.startLineNumber);};if(e.store.add(s$(s,o_.CLICK,o)),this._compactControl){let t=(0,iM.M)(149,"Go to {0}",n.name);s.tabIndex=0,s.setAttribute("role","button"),s.setAttribute("aria-label",t),e.store.add(this._hoverService.setupDelayedHover(s,{content:t})),e.store.add(s$(s,o_.KEY_DOWN,e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o(e));}));}}}}if(this._compactControl&&t.length>0){var _i$textContent;let i=oH("div.disclosure-content",t).root;e.store.add(this._hoverService.setupDelayedHover(i,{content:(_i$textContent=i.textContent)!==null&&_i$textContent!==void 0?_i$textContent:""})),oD(this._nodes.others,oH("div.line-left").root,i,oH("div.line-right").root);}else oD(this._nodes.others,...t);}));}_toggleAll(){this._isFullyRevealed()?this._unchangedRegion.collapseAll(void 0):this._unchangedRegion.showAll(void 0);}_isFullyRevealed(e){return this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;}_runWithLowerScrollAnchor(e){let t=this._unchangedRegionRange.endLineNumberExclusive;if(this._runWithScrollAnchor)return void this._runWithScrollAnchor(t,e);let i=this._editor.getScrollTop(),n=this._getTopForLineNumber(t);e(),this._editor.setScrollTop(i+this._getTopForLineNumber(t)-n);}_getTopForLineNumber(e){return e>this._editor.getModel().getLineCount()?this._editor.getContentHeight():this._editor.getTopForLineNumber(e);}};UN=Uk([UD(10,kA)],UN),e.s(["f",0,UM],80302);var UE=i8;let UT=[];class UR extends UE.N{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=n5(this,e=>{let t=this._diffModel.read(e),i=t===null||t===void 0?void 0:t.diff.read(e);if(!i)return UT;let n=this._editors.modifiedSelections.read(e);if(n.every(e=>e.isEmpty()))return UT;let s=new hL.F(n.map(e=>hL.m.fromRangeInclusive(e))),o=i.mappings.filter(e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified)).map(e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter(e=>n.some(t=>ln.f.areIntersecting(e.modifiedRange,t)))}));return 0===o.length||o.every(e=>0===e.rangeMappings.length)?UT:o;}),this._register(ss((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;let i=this._diffModel.read(e),n=i===null||i===void 0?void 0:i.diff.read(e);if(!i||!n||i.movedTextToCompare.read(e))return;let s=[],o=this._selectedDiffs.read(e),r=new Set(o.map(e=>e.mapping));if(o.length>0){let i=this._editors.modifiedSelections.read(e),n=t.add(new UA(i[i.length-1].positionLineNumber,this._widget,o.flatMap(e=>e.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(n),s.push(n);}for(let e of n.mappings)if(!r.has(e)&&!e.lineRangeMapping.modified.isEmpty&&e.lineRangeMapping.innerChanges){let i=t.add(new UA(e.lineRangeMapping.modified.startLineNumber,this._widget,e.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(i),s.push(i);}t.add((0,UE.Q)(()=>{for(let e of s)this._editors.modified.removeGlyphMarginWidget(e);}));}));}}class UA extends UE.N{getId(){return this._id;}constructor(e,t,i,n){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=n,this._id=`revertButton${UA.counter++}`,this._domNode=oH("div.revertButton",{title:this._revertSelection?(0,iM.M)(154,"Revert Selected Changes"):(0,iM.M)(155,"Revert Change")},[Nn(rC.f.arrowRight)]).root,this._register(s$(this._domNode,o_.MOUSE_DOWN,e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault());})),this._register(s$(this._domNode,o_.MOUSE_UP,e=>{e.stopPropagation(),e.preventDefault();})),this._register(s$(this._domNode,o_.CLICK,e=>{this._diffs instanceof hx.O?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault();}));}getDomNode(){return this._domNode;}getPosition(){return{lane:h$.w.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001};}}_UA=UA;_UA.counter=0;var UO=function(e,t){return function(i,n){t(i,n,e);};};let UP=class extends Un{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange;}constructor(e,t,i,n,s,o,r,a){var _t$automaticLayout;let l,h,d;super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=s,this._codeEditorService=o,this._accessibilitySignalService=r,this._editorProgressService=a,this._deferredDiffModelRefDisposals=this._register(new i8.q()),this.elements=oH("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[oH("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),oH("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),oH("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register(sg(this,void 0)),this._diffModel=n5(this,e=>{var _this$_diffModelSrc$r;return(_this$_diffModelSrc$r=this._diffModelSrc.read(e))===null||_this$_diffModelSrc$r===void 0?void 0:_this$_diffModelSrc$r.object;}),this.allUnchangedRegionsShown=n5(this,e=>{var _this$_diffModel$read4,_this$_diffModel$read5;return((_this$_diffModel$read4=(_this$_diffModel$read5=this._diffModel.read(e))===null||_this$_diffModel$read5===void 0?void 0:_this$_diffModel$read5.unchangedRegions.read(e))!==null&&_this$_diffModel$read4!==void 0?_this$_diffModel$read4:[]).every(t=>t.visibleLineCountTop.read(e)+t.visibleLineCountBottom.read(e)>=t.lineCount);}),this.onDidChangeModel=iv.C.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new km([r9,this._contextKeyService]))),this._boundarySashes=sc(this,void 0),this._accessibleDiffViewerShouldBeVisible=sc(this,!1),this._accessibleDiffViewerVisible=n5(this,e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e)),this._movedBlocksLinesPart=sc(this,void 0),this._layoutInfo=n5(this,e=>{var _h$width$read,_this$_overviewRulerP,_this$_overviewRulerP2;let t,i,n,s,o,r=this._rootSizeObserver.width.read(e),a=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=a+"px";let l=this._sash.read(e),h=this._gutter.read(e),d=(_h$width$read=h===null||h===void 0?void 0:h.width.read(e))!==null&&_h$width$read!==void 0?_h$width$read:0,c=(_this$_overviewRulerP=(_this$_overviewRulerP2=this._overviewRulerPart.read(e))===null||_this$_overviewRulerP2===void 0?void 0:_this$_overviewRulerP2.width)!==null&&_this$_overviewRulerP!==void 0?_this$_overviewRulerP:0;if(l){var _this$_movedBlocksLin,_this$_movedBlocksLin2;let a=l.sashLeft.read(e);t=0,i=a-d-((_this$_movedBlocksLin=(_this$_movedBlocksLin2=this._movedBlocksLinesPart.read(e))===null||_this$_movedBlocksLin2===void 0?void 0:_this$_movedBlocksLin2.width.read(e))!==null&&_this$_movedBlocksLin!==void 0?_this$_movedBlocksLin:0),o=a-d,s=r-(n=a)-c;}else{o=0;let a=this._options.inlineViewHideOriginalLineNumbers.read(e);t=d,s=r-(n=d+(i=a?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e))))-c;}return this.elements.original.style.left=t+"px",this.elements.original.style.width=i+"px",this._editors.original.layout({width:i,height:a},!0),h!==null&&h!==void 0&&h.layout(o),this.elements.modified.style.left=n+"px",this.elements.modified.style.width=s+"px",this._editors.modified.layout({width:s,height:a},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()};}),this._diffValue=this._diffModel.map((e,t)=>e===null||e===void 0?void 0:e.diff.read(t)),this.onDidUpdateDiff=iv.C.fromObservableLight(this._diffValue),this._codeEditorService.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,i8.Q)(()=>this.elements.root.remove())),this._rootSizeObserver=this._register(new H$(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout((_t$automaticLayout=t.automaticLayout)!==null&&_t$automaticLayout!==void 0?_t$automaticLayout:!1),this._options=this._instantiationService.createInstance(Us,t);let c=0,u=!1,g=!1,p=()=>{g?f.schedule():(h=void 0,c=0,u=!1);},f=this._register(new nI.t(p,200)),m=sT(this._domElement);this._register(s$(m,"resize",()=>{c++,f.schedule();}));let _=()=>g=!0,v=()=>{g&&(g=!1,f.cancel(),p());};this._register(s$(m,"mousedown",_,!0)),this._register(s$(m,"mouseup",v,!0)),this._register(s$(m,"touchstart",_,!0)),this._register(s$(m,"touchend",v,!0)),this._register(s$(m,"touchcancel",v,!0)),this._register(se(e=>{let t,i=this._rootSizeObserver.width.read(e);void 0!==l&&i!==l&&(void 0===h&&(h=l),u||(u=g),void 0!==h&&(u||c>1)&&(t=h),f.schedule()),this._options.setWidth(i,t),l=i;})),this._contextKeyService.createKey(tn.isEmbeddedDiffEditor.key,!1),this._register(HB(tn.isEmbeddedDiffEditor,this._contextKeyService,e=>this._options.isInEmbeddedEditor.read(e))),this._register(HB(tn.comparingMovedCode,this._contextKeyService,e=>{var _this$_diffModel$read6;return!!((_this$_diffModel$read6=this._diffModel.read(e))!==null&&_this$_diffModel$read6!==void 0&&_this$_diffModel$read6.movedTextToCompare.read(e));})),this._register(HB(tn.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,e=>this._options.couldShowInlineViewBecauseOfSize.read(e))),this._register(HB(tn.diffEditorInlineMode,this._contextKeyService,e=>!this._options.renderSideBySide.read(e))),this._register(HB(tn.diffEditorTemporaryInlineMode,this._contextKeyService,e=>this._options.temporaryInlineMode.read(e))),this._register(HB(tn.diffEditorAutomaticRenderSideBySide,this._contextKeyService,e=>this._options.renderSideBySideInAutomaticMode.read(e))),this._register(HB(tn.hasChanges,this._contextKeyService,e=>{var _this$_diffModel$read7,_this$_diffModel$read8;return((_this$_diffModel$read7=(_this$_diffModel$read8=this._diffModel.read(e))===null||_this$_diffModel$read8===void 0||(_this$_diffModel$read8=_this$_diffModel$read8.diff.read(e))===null||_this$_diffModel$read8===void 0?void 0:_this$_diffModel$read8.mappings.length)!==null&&_this$_diffModel$read7!==void 0?_this$_diffModel$read7:0)>0;})),this._editors=this._register(this._instantiationService.createInstance(z8,this.elements.original,this.elements.modified,this._options,i,(e,t,i,n)=>this._createInnerEditor(e,t,i,n))),this._register(HB(tn.diffEditorOriginalWritable,this._contextKeyService,e=>this._options.originalEditable.read(e))),this._register(HB(tn.diffEditorModifiedWritable,this._contextKeyService,e=>!this._options.readOnly.read(e))),this._register(HB(tn.diffEditorOriginalUri,this._contextKeyService,e=>{var _this$_diffModel$read9,_this$_diffModel$read0;return(_this$_diffModel$read9=(_this$_diffModel$read0=this._diffModel.read(e))===null||_this$_diffModel$read0===void 0?void 0:_this$_diffModel$read0.model.original.uri.toString())!==null&&_this$_diffModel$read9!==void 0?_this$_diffModel$read9:"";})),this._register(HB(tn.diffEditorModifiedUri,this._contextKeyService,e=>{var _this$_diffModel$read1,_this$_diffModel$read10;return(_this$_diffModel$read1=(_this$_diffModel$read10=this._diffModel.read(e))===null||_this$_diffModel$read10===void 0?void 0:_this$_diffModel$read10.model.modified.uri.toString())!==null&&_this$_diffModel$read1!==void 0?_this$_diffModel$read1:"";})),this._overviewRulerPart=n9(this,e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance(HF(z4),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(e=>e.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);let b={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((e,t)=>{var _this$_overviewRulerP3,_this$_overviewRulerP4;return e-((_this$_overviewRulerP3=(_this$_overviewRulerP4=this._overviewRulerPart.read(t))===null||_this$_overviewRulerP4===void 0?void 0:_this$_overviewRulerP4.width)!==null&&_this$_overviewRulerP3!==void 0?_this$_overviewRulerP3:0);})};this._sashLayout=new Ue(this._options,b),this._sash=n9(this,e=>{let t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ut(this.elements.root,b,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0;}).recomputeInitiallyAndOnChange(this._store);let C=n9(this,e=>{var _i$variant;return this._instantiationService.createInstance(HF(UM),this._editors,this._diffModel,this._options,i.runWithOriginalEditorScrollAnchor,i.runWithModifiedEditorScrollAnchor,(_i$variant=i.variant)!==null&&_i$variant!==void 0?_i$variant:"default");}).recomputeInitiallyAndOnChange(this._store);n9(this,e=>this._instantiationService.createInstance(HF(zJ),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);let w=new Set(),y=new Set(),S=!1,x=n9(this,e=>this._instantiationService.createInstance(HF(z$),sT(this._domElement),this._editors,this._diffModel,this._options,this,()=>S||C.read(void 0).isUpdatingHiddenAreas,w,y)).recomputeInitiallyAndOnChange(this._store),L=n5(this,e=>{let t=x.read(e).viewZones.read(e).orig,i=C.read(e).viewZones.read(e).origViewZones;return t.concat(i);}),k=n5(this,e=>{let t=x.read(e).viewZones.read(e).mod,i=C.read(e).viewZones.read(e).modViewZones;return t.concat(i);});this._register(HZ(this._editors.original,L,e=>{S=e;},w)),this._register(HZ(this._editors.modified,k,e=>{var _d2;(S=e)?d=HW.capture(this._editors.modified):((_d2=d)!==null&&_d2!==void 0&&_d2.restore(this._editors.modified),d=void 0);},y)),this._accessibleDiffViewer=n9(this,e=>this._instantiationService.createInstance(HF(H4),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t),this._options.onlyShowAccessibleDiffViewer.map(e=>!e),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((e,t)=>{var _e$diff$read;return e===null||e===void 0||(_e$diff$read=e.diff.read(t))===null||_e$diff$read===void 0?void 0:_e$diff$read.mappings.map(e=>e.lineRangeMapping);}),new zs(this._editors))).recomputeInitiallyAndOnChange(this._store);let D=this._accessibleDiffViewerVisible.map(e=>e?"hidden":"visible");this._register(HQ(this.elements.modified,{visibility:D})),this._register(HQ(this.elements.original,{visibility:D})),this._createDiffEditorContributions(),this._codeEditorService.addDiffEditor(this),this._register((0,i8.Q)(()=>{this._codeEditorService.removeDiffEditor(this);})),this._gutter=n9(this,e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance(HF(Uy),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(sC(this._layoutInfo)),n9(this,e=>new(HF(zZ))(this.elements.root,this._diffModel,this._layoutInfo.map(e=>e.originalEditor),this._layoutInfo.map(e=>e.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,e=>{this._movedBlocksLinesPart.set(e,void 0);}),this._register(iv.C.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,e=>this._handleCursorPositionChange(e,!0))),this._register(iv.C.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,e=>this._handleCursorPositionChange(e,!1)));let M=this._diffModel.map(this,(e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t);});this._register(ss((e,t)=>{if(!0===M.read(e)){let e=this._editorProgressService.show(!0,1e3);t.add((0,i8.Q)(()=>e.done()));}})),this._register(ss((e,t)=>{t.add(new(HF(UR))(this._editors,this._diffModel,this._options,this));})),this._register(ss((e,t)=>{let i=this._diffModel.read(e);if(i)for(let e of[i.model.original,i.model.modified])t.add(e.onWillDispose(e=>{(0,nf.C)(new nf.Q("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null);}));})),this._register(se(e=>{this._options.setModel(this._diffModel.read(e));}));}getContentHeight(){return this._editors.getContentHeight();}_createInnerEditor(e,t,i,n){return e.createInstance(kv,t,i,n);}_createDiffEditorContributions(){for(let e of e1.getDiffEditorContributions())try{this._register(this._instantiationService.createInstance(e.ctor,this));}catch(e){(0,nf.C)(e);}}get _targetEditor(){return this._editors.modified;}getEditorType(){return hW.IDiffEditor;}layout(e){this._rootSizeObserver.observe(e);}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus();}saveViewState(){var _this$_diffModel$get;return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:(_this$_diffModel$get=this._diffModel.get())===null||_this$_diffModel$get===void 0?void 0:_this$_diffModel$get.serializeState()};}restoreViewState(e){var _this$_diffModel$get2;e&&e.original&&e.modified&&(this._editors.original.restoreViewState(e.original),this._editors.modified.restoreViewState(e.modified),e.modelState&&((_this$_diffModel$get2=this._diffModel.get())===null||_this$_diffModel$get2===void 0?void 0:_this$_diffModel$get2.restoreSerializedState(e.modelState)));}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized();}createViewModel(e){return this._instantiationService.createInstance(zM,e,this._options);}getModel(){var _this$_diffModel$get$,_this$_diffModel$get3;return(_this$_diffModel$get$=(_this$_diffModel$get3=this._diffModel.get())===null||_this$_diffModel$get3===void 0?void 0:_this$_diffModel$get3.model)!==null&&_this$_diffModel$get$!==void 0?_this$_diffModel$get$:null;}setModel(e){let t=e?"model"in e?HX.create(e).createNewRef(this):HX.create(this.createViewModel(e),this):null;this.setDiffModel(t);}setDiffModel(e,t){let i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==(e===null||e===void 0?void 0:e.object)&&sh(t,t=>{var _this$_diffModelSrc$g;let n=e===null||e===void 0?void 0:e.object;((i===null||i===void 0?void 0:i.model.original)!==(n===null||n===void 0?void 0:n.model.original)||(i===null||i===void 0?void 0:i.model.modified)!==(n===null||n===void 0?void 0:n.model.modified))&&this._options.resetWidthBasedLayout(t),sf.batchEventsGlobally(t,()=>{this._editors.original.setModel(n?n.model.original:null),this._editors.modified.setModel(n?n.model.modified:null);});let s=(_this$_diffModelSrc$g=this._diffModelSrc.get())===null||_this$_diffModelSrc$g===void 0?void 0:_this$_diffModelSrc$g.createNewRef(this);this._diffModelSrc.set(e===null||e===void 0?void 0:e.createNewRef(this),t),s&&(this._deferredDiffModelRefDisposals.add(s),setTimeout(()=>{this._deferredDiffModelRefDisposals.delete(s);},0));});}updateOptions(e){this._options.updateOptions(e);}getContainerDomNode(){return this._domElement;}getOriginalEditor(){return this._editors.original;}getModifiedEditor(){return this._editors.modified;}get renderSideBySideInAutomaticMode(){return this._options.renderSideBySideInAutomaticMode;}get temporaryInlineMode(){return this._options.temporaryInlineMode;}getLineChanges(){var _this$_diffModel$get4;let e=(_this$_diffModel$get4=this._diffModel.get())===null||_this$_diffModel$get4===void 0?void 0:_this$_diffModel$get4.diff.get();return e?e.mappings.map(e=>{var _r3;let t,i,n,s,o=e.lineRangeMapping,r=o.innerChanges;return o.original.isEmpty?(t=o.original.startLineNumber-1,i=0,r=void 0):(t=o.original.startLineNumber,i=o.original.endLineNumberExclusive-1),o.modified.isEmpty?(n=o.modified.startLineNumber-1,s=0,r=void 0):(n=o.modified.startLineNumber,s=o.modified.endLineNumberExclusive-1),{originalStartLineNumber:t,originalEndLineNumber:i,modifiedStartLineNumber:n,modifiedEndLineNumber:s,charChanges:(_r3=r)===null||_r3===void 0?void 0:_r3.map(e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn}))};}):null;}getDiffComputationResult(){var _this$_diffModel$get5;let e=(_this$_diffModel$get5=this._diffModel.get())===null||_this$_diffModel$get5===void 0?void 0:_this$_diffModel$get5.diff.get();return e?{changes:this.getLineChanges(),changes2:e.mappings.map(e=>e.lineRangeMapping),identical:e.identical,quitEarly:e.quitEarly}:null;}revert(e){let t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&(this._editors.modified.pushUndoStop(),this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}]),this._editors.modified.pushUndoStop());}revertRangeMappings(e){let t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;let i=e.map(e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)}));this._editors.modified.pushUndoStop(),this._editors.modified.executeEdits("diffEditor",i),this._editors.modified.pushUndoStop();}revertFocusedRangeMappings(){var _this$_diffModel$get6;let e=this._diffModel.get();if(!e||!e.isDiffUpToDate.get())return;let t=(_this$_diffModel$get6=this._diffModel.get())===null||_this$_diffModel$get6===void 0||(_this$_diffModel$get6=_this$_diffModel$get6.diff.get())===null||_this$_diffModel$get6===void 0?void 0:_this$_diffModel$get6.mappings;if(!t||0===t.length)return;let i=this._editors.modified;if(!i.hasTextFocus())return;let n=i.getPosition().lineNumber,s=i.getSelection(),o=hL.m.fromRange(s||new ln.f(n,0,n,0)),r=t.filter(e=>e.lineRangeMapping.modified.intersect(o));i.pushUndoStop(),i.executeEdits("diffEditor",r.map(t=>({range:t.lineRangeMapping.modified.toExclusiveRange(),text:e.model.original.getValueInRange(t.lineRangeMapping.original.toExclusiveRange())}))),i.pushUndoStop();}_goTo(e){this._editors.modified.setPosition(new rh.f(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange());}goToDiff(e){var _this$_diffModel$get7,_i$find,_ref18;let t,i=(_this$_diffModel$get7=this._diffModel.get())===null||_this$_diffModel$get7===void 0||(_this$_diffModel$get7=_this$_diffModel$get7.diff.get())===null||_this$_diffModel$get7===void 0?void 0:_this$_diffModel$get7.mappings;if(!i||0===i.length)return;let n=this._editors.modified.getPosition().lineNumber;t="next"===e?this._editors.modified.getModel().getLineCount()===n?i[0]:(_i$find=i.find(e=>e.lineRangeMapping.modified.startLineNumber>n))!==null&&_i$find!==void 0?_i$find:i[0]:(_ref18=(0,vf.x)(i,e=>e.lineRangeMapping.modified.startLineNumber<n))!==null&&_ref18!==void 0?_ref18:i[i.length-1],this._goTo(t),t.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Tb.diffLineDeleted,{source:"diffEditor.goToDiff"}):t.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Tb.diffLineInserted,{source:"diffEditor.goToDiff"}):t&&this._accessibilitySignalService.playSignal(Tb.diffLineModified,{source:"diffEditor.goToDiff"});}revealFirstDiff(){let e=this._diffModel.get();e&&this.waitForDiff().then(()=>{var _e$diff$get;let t=(_e$diff$get=e.diff.get())===null||_e$diff$get===void 0?void 0:_e$diff$get.mappings;t&&0!==t.length&&this._goTo(t[0]);});}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next();}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev();}async waitForDiff(){let e=this._diffModel.get();e&&(await e.waitForDiff());}mapToOtherSide(){let e,t=this._editors.modified.hasWidgetFocus(),i=t?this._editors.modified:this._editors.original,n=t?this._editors.original:this._editors.modified,s=i.getSelection();if(s){var _this$_diffModel$get8;let i=(_this$_diffModel$get8=this._diffModel.get())===null||_this$_diffModel$get8===void 0||(_this$_diffModel$get8=_this$_diffModel$get8.diff.get())===null||_this$_diffModel$get8===void 0?void 0:_this$_diffModel$get8.mappings.map(e=>t?e.lineRangeMapping.flip():e.lineRangeMapping);if(i){let t=HY(s.getStartPosition(),i),n=HY(s.getEndPosition(),i);e=ln.f.plusRange(t,n);}}return{destination:n,destinationSelection:e};}switchSide(){let{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t);}exitCompareMove(){let e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0);}collapseAllUnchangedRegions(){var _this$_diffModel$get9;let e=(_this$_diffModel$get9=this._diffModel.get())===null||_this$_diffModel$get9===void 0?void 0:_this$_diffModel$get9.unchangedRegions.get();e&&sr(t=>{for(let i of e)i.collapseAll(t);});}showAllUnchangedRegions(){var _this$_diffModel$get0;let e=(_this$_diffModel$get0=this._diffModel.get())===null||_this$_diffModel$get0===void 0?void 0:_this$_diffModel$get0.unchangedRegions.get();e&&sr(t=>{for(let i of e)i.showAll(t);});}_handleCursorPositionChange(e,t){if((e===null||e===void 0?void 0:e.reason)===3){var _this$_diffModel$get1;let i=(_this$_diffModel$get1=this._diffModel.get())===null||_this$_diffModel$get1===void 0||(_this$_diffModel$get1=_this$_diffModel$get1.diff.get())===null||_this$_diffModel$get1===void 0?void 0:_this$_diffModel$get1.mappings.find(i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber));i!==null&&i!==void 0&&i.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Tb.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i!==null&&i!==void 0&&i.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Tb.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(Tb.diffLineModified,{source:"diffEditor.cursorPositionChanged"});}}};function UF(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===hW.ICodeEditor;}UP=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([UO(3,r9),UO(4,rr),UO(5,rl),UO(6,Tm),UO(7,B_)],UP),e.s(["f",0,UF],74199);var UB=function(e,t){return function(i,n){t(i,n,e);};};let UW=(_Class17=class UW{constructor(e,t){this._configurationService=e,this._languageService=t;}async renderCodeBlock(e,t,i){var _s$getModel,_ig$_ttpTokenizer$cre;let n,s=UF(i.context)?i.context:void 0;e?n=this._languageService.getLanguageIdByLanguageName(e):s&&(n=(_s$getModel=s.getModel())===null||_s$getModel===void 0?void 0:_s$getModel.getLanguageId()),n||(n=l8);let o=await Lz(this._languageService,t,n),r=ig._ttpTokenizer?(_ig$_ttpTokenizer$cre=ig._ttpTokenizer.createHTML(o))!==null&&_ig$_ttpTokenizer$cre!==void 0?_ig$_ttpTokenizer$cre:o:o,a=document.createElement("span");a.innerHTML=r;let l=a.querySelector(".monaco-tokenized-source");return ou(l)?(re(l,this.getFontInfo(s)),a):document.createElement("span");}getFontInfo(e){return e?e.getOption(59):function(e,t=!1){let i=i5.fontFamily.validate(e.fontFamily),n=i5.fontWeight.validate(e.fontWeight),s=i5.fontSize.validate(e.fontSize),o=i5.fontLigatures2.validate(e.fontLigatures),r=i5.fontVariations.validate(e.fontVariations),a=i5.lineHeight.validate(e.lineHeight),l=i5.letterSpacing.validate(e.letterSpacing);return iw._create(i,n,s,o,r,a,l,1,t);}({fontFamily:this._configurationService.getValue("editor").fontFamily});}},ig=_Class17,_Class17._ttpTokenizer=hq("tokenizeToString",{createHTML:e=>e}),_Class17);UW=ig=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([UB(0,lN),UB(1,lP)],UW);var UV=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;},UH=function(e,t){return function(i,n){t(i,n,e);};};let Uz=0,UU=!1,U$=class extends kv{constructor(e,t,i,n,s,o,r,a,l,h,d,c,u,g,p){let f={...t};f.ariaLabel=f.ariaLabel||t4.editorViewAccessibleLabel,super(e,f,{},i,n,s,o,l,h,d,c,u,p),a instanceof Hk?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,function(e){if(!e){if(UU)return;UU=!0;}dM(e||i9.document.body);}(f.ariaContainerElement),Rp((e,t)=>i.createInstance(kO,e,{instantHover:t},{})),Rb(r),g.setDefaultCodeBlockRenderer(i.createInstance(UW));}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let n="DYNAMIC_"+ ++Uz,s=rV.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n;}createContextKey(e,t){return this._contextKeyService.createKey(e,t);}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),i8.N.None;let t=e.id,i=e.label,n=rV.and(rV.equals("editorId",this.getId()),rV.deserialize(e.precondition)),s=e.keybindings,o=rV.and(n,rV.deserialize(e.keybindingContext)),r=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new i8.q(),d=this.getId()+":"+t;if(h.add(rS.registerCommand(d,l)),r&&h.add(au.appendMenuItem(ah.EditorContext,{command:{id:d,title:i},when:n,group:r,order:a})),Array.isArray(s))for(let e of s)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,e,l,o));let c=new wr(d,i,i,void 0,n,(...t)=>Promise.resolve(e.run(this,...t)),this._contextKeyService);return this._actions.set(t,c),h.add((0,i8.Q)(()=>{this._actions.delete(t);})),h;}_triggerCommand(e,t){if(this._codeEditorService instanceof Ta)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t);}finally{this._codeEditorService.setActiveCodeEditor(null);}else super._triggerCommand(e,t);}};U$=UV([UH(2,rr),UH(3,rl),UH(4,ry),UH(5,r9),UH(6,kA),UH(7,Ch),UH(8,_s),UH(9,bU),UH(10,dj),UH(11,ha),UH(12,hy),UH(13,NS),UH(14,CV)],U$);let UK=class extends U${constructor(e,t,i,n,s,o,r,a,l,h,d,c,u,g,p,f,m,_){let v,b={...t};HR(d,b,!1);let C=l.registerEditorContainer(e);"string"==typeof b.theme&&l.setTheme(b.theme),void 0!==b.autoDetectHighContrast&&l.setAutoDetectHighContrast(!!b.autoDetectHighContrast);let w=b.model;if(delete b.model,super(e,b,i,n,s,o,r,a,l,h,c,p,f,m,_),this._configurationService=d,this._standaloneThemeService=l,this._register(C),void 0===w){let e=g.getLanguageIdByMimeType(b.language)||b.language||l8;v=Uj(u,g,b.value||"",e,void 0),this._ownsModel=!0;}else v=w,this._ownsModel=!1;if(this._attachModel(v),v){let e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e);}}updateOptions(e){HR(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e);}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1);}};UK=UV([UH(2,rr),UH(3,rl),UH(4,ry),UH(5,r9),UH(6,kA),UH(7,Ch),UH(8,Wo),UH(9,bU),UH(10,lN),UH(11,dj),UH(12,rd),UH(13,lP),UH(14,ha),UH(15,hy),UH(16,NS),UH(17,CV)],UK);let Uq=class extends UP{constructor(e,t,i,n,s,o,r,a,l,h,d,c){let u={...t};HR(a,u,!0);let g=o.registerEditorContainer(e);"string"==typeof u.theme&&o.setTheme(u.theme),void 0!==u.autoDetectHighContrast&&o.setAutoDetectHighContrast(!!u.autoDetectHighContrast),super(e,u,{},n,i,s,c,h),this._configurationService=a,this._standaloneThemeService=o,this._register(g);}updateOptions(e){HR(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e);}_createInnerEditor(e,t,i){return e.createInstance(U$,t,i);}getOriginalEditor(){return super.getOriginalEditor();}getModifiedEditor(){return super.getModifiedEditor();}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i);}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t);}addAction(e){return this.getModifiedEditor().addAction(e);}};function Uj(e,t,i,n,s){if(i=i||"",!n){let n=i.indexOf("\n"),o=i;return-1!==n&&(o=i.substring(0,n)),UG(e,i,t.createByFilepathOrFirstLine(s||null,o),s);}return UG(e,i,t.createById(n),s);}function UG(e,t,i,n){return e.createModel(t,i,n);}Uq=UV([UH(2,rr),UH(3,r9),UH(4,rl),UH(5,Wo),UH(6,bU),UH(7,lN),UH(8,kF),UH(9,B_),UH(10,TP),UH(11,Tm)],Uq);var UQ=i8;ch("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,iM.M)(161,"The background color of the diff editor's header")),ch("multiDiffEditor.background",cR,(0,iM.M)(162,"The background color of the multi file diff editor")),ch("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,iM.M)(163,"The border color of the multi file diff editor"));var UZ=i8;class UY extends UZ.N{constructor(e){super(),this.item=e,this._onDidDispose=this._register(new iv.S()),this.onDidDispose=this._onDidDispose.event;}dispose(){this._store.isDisposed||(this._onDidDispose.fire(),super.dispose());}}class UX extends UZ.N{constructor(){super(...arguments),this._currentBinding=sc(this,void 0),this.currentBinding=this._currentBinding,this._bindingStore=this._register(new UZ.q());}bind(e,t){if(this._currentBinding.get())throw new nf.Q("Cannot rebind a virtualized template before disposing its current binding");let i=this.createBinding(e,t);return this._bindingStore.clear(),this._bindingStore.add(iv.C.once(i.onDidDispose)(()=>{if(this._currentBinding.get()!==i)throw new nf.Q("Disposed binding does not own its virtualized template");this._currentBinding.set(void 0,void 0);})),this._currentBinding.set(i,void 0),i;}dispose(){var _this$_currentBinding;(_this$_currentBinding=this._currentBinding.get())!==null&&_this$_currentBinding!==void 0&&_this$_currentBinding.dispose(),super.dispose();}}class UJ extends UZ.N{constructor(e,t,i){super(),this._context=t,this._delegate=i,this._pools=new Map(),this.virtualizedItems=sS(this,e,(e,t)=>t.add(new U0(e,this,i)),e=>i.getId(e)).recomputeInitiallyAndOnChange(this._store),this._register((0,UZ.Q)(()=>{for(let e of this._pools.values())e.dispose();this._pools.clear();}));}acquire(e){let t=this._delegate.getTemplateId(e),i=this._pools.get(t);return i||(i=new U1(()=>this._delegate.createTemplate(t,this._context)),this._pools.set(t,i)),i.acquire();}}class U0 extends UZ.N{constructor(e,t,i){super(),this.item=e,this._manager=t,this._delegate=i,this._templateReference=sc(this,void 0),this._isHidden=sc(this,!1),this._didRenderFail=!1,this.template=n5(this,e=>{var _this$_templateRefere;return(_this$_templateRefere=this._templateReference.read(e))===null||_this$_templateRefere===void 0?void 0:_this$_templateRefere.object;}),this.binding=n5(this,e=>{var _this$template$read;return(_this$template$read=this.template.read(e))===null||_this$template$read===void 0?void 0:_this$template$read.currentBinding.read(e);});let n=i.getUnboundSize(e);this.size=n5(this,e=>{var _this$binding$read$si,_this$binding$read;return(_this$binding$read$si=(_this$binding$read=this.binding.read(e))===null||_this$binding$read===void 0?void 0:_this$binding$read.size.read(e))!==null&&_this$binding$read$si!==void 0?_this$binding$read$si:n.read(e);}),this.maxScroll=n5(this,e=>{var _this$binding$read$ma,_this$binding$read2;return(_this$binding$read$ma=(_this$binding$read2=this.binding.read(e))===null||_this$binding$read2===void 0?void 0:_this$binding$read2.maxScroll.read(e))!==null&&_this$binding$read$ma!==void 0?_this$binding$read$ma:{maxScroll:0};}),this._register(se(e=>{let t=this.binding.read(e);!t||!this._isHidden.read(e)||t.shouldKeepAlive.read(e)||this._clearBinding();}));}render(e,t,i,n,s){if(this._lastRender={renderedRange:e,scrollOffset:t,width:i,renderedViewport:n,context:s},this._isHidden.set(!1,void 0),!this._didRenderFail)try{this._render(e,t,i,n,s);}catch(e){this._didRenderFail=!0,(0,nf.C)(e);}}_render(e,t,i,n,s){let o=this.binding.get();if(!o){let e,t=this._manager.acquire(this.item),i=t.object;if(i.currentBinding.get())throw t.dispose(),new nf.Q("Virtualized template pool returned a bound template");try{if((e=i.bind(this.item,{initialSize:this.size.get(),runWithScrollAnchor:(e,t)=>{if(!s)throw new nf.Q("Cannot preserve a virtualized item scroll anchor without a render context");s.runWithScrollAnchor(e,t);}})).item!==this.item||i.currentBinding.get()!==e)throw new nf.Q("Virtualized template returned a binding for a different item");let n=e;sr(e=>{var _this$_delegate$onDid,_this$_delegate;(_this$_delegate$onDid=(_this$_delegate=this._delegate).onDidBind)!==null&&_this$_delegate$onDid!==void 0&&_this$_delegate$onDid.call(_this$_delegate,n,e),this._templateReference.set(t,e);});}catch(n){var _ref19,_i$currentBinding$get;throw(_ref19=(_i$currentBinding$get=i.currentBinding.get())!==null&&_i$currentBinding$get!==void 0?_i$currentBinding$get:e)!==null&&_ref19!==void 0&&_ref19.dispose(),t.dispose(),n;}o=e;}o.render(e,t,i,n);}hide(){var _this$binding$get;this._isHidden.set(!0,void 0),(_this$binding$get=this.binding.get())===null||_this$binding$get===void 0?void 0:_this$binding$get.hide();}_clearBinding(){let e=this._templateReference.get(),t=e===null||e===void 0?void 0:e.object.currentBinding.get();if(e&&t){if(sr(e=>{var _this$_delegate$onWil,_this$_delegate2;(_this$_delegate$onWil=(_this$_delegate2=this._delegate).onWillUnbind)===null||_this$_delegate$onWil===void 0||_this$_delegate$onWil.call(_this$_delegate2,t,e);}),t.hide(),t.dispose(),e.object.currentBinding.get())throw new nf.Q("Virtualized binding did not release its template when disposed");sr(e=>{this._templateReference.set(void 0,e);}),e.dispose();}}dispose(){this._clearBinding(),super.dispose();}}class U1{constructor(e){this._create=e,this._unused=new Set(),this._used=new Set();}acquire(){var _this$_unused$values$;let e=(_this$_unused$values$=this._unused.values().next().value)!==null&&_this$_unused$values$!==void 0?_this$_unused$values$:this._create();if(this._unused.delete(e),e.currentBinding.get())throw new nf.Q("Cannot acquire a bound virtualized template");this._used.add(e);let t=!1;return{object:e,dispose:()=>{if(!t){if(t=!0,e.currentBinding.get())throw new nf.Q("Cannot pool a virtualized template with a current binding");this._used.delete(e),this._unused.size>=5?e.dispose():this._unused.add(e);}}};}dispose(){for(let e of this._used)e.dispose();for(let e of this._unused)e.dispose();this._used.clear(),this._unused.clear();}}var U2=function(e,t){return function(i,n){t(i,n,e);};};let U3=class extends UX{constructor(e,t,i,n,s,o,r){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._variantConfiguration=n,this._optionsOverride=s,this._instantiationService=o,this._verticalStateUpdate=this._register(new i8.k()),this._observedEditorContentHeight=500,this._isSettingData=!1,this._viewModel=sc(this,void 0),this._collapsed=n5(this,e=>{var _this$_viewModel$read;return(_this$_viewModel$read=this._viewModel.read(e))===null||_this$_viewModel$read===void 0?void 0:_this$_viewModel$read.collapsed.read(e);}),this._editorContentHeight=sc(this,500),this._itemHorizontalInsets=this._variantConfiguration.horizontalInsets,this.size=n5(this,e=>this._collapsed.read(e)?this._headerHeight:this._editorContentHeight.read(e)+this._outerEditorHeight),this._modifiedContentWidth=sc(this,0),this._modifiedWidth=sc(this,0),this._originalContentWidth=sc(this,0),this._originalWidth=sc(this,0),this.maxScroll=n5(this,e=>{let t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)};});let a=(0,iM.M)(164,"Binary file changed");this._elements=oH("div.multiDiffEntry",[oH("div.header@header",[oH("div.header-content",[oH("div.collapse-button@collapseButton"),oH("div.file-path",[oH("div.title.modified.show-file-icons@primaryPath",[]),oH("div.status.deleted@status",["R"]),oH("div.title.original.show-file-icons@secondaryPath",[])]),oH("div.actions@actions")])]),oH("div.editorParent",[oH("div.editorContainer@editor"),oH("div.binary-file-placeholder@binaryFilePlaceholder",{role:"group","aria-label":a},[oH("div.binary-file-placeholder-content",[oH("span",[a]),oH("div.binary-file-placeholder-actions@binaryFilePlaceholderActions")])])])]),this.editor=this._register(this._instantiationService.createInstance(UP,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode,fixedOverflowWidgets:!0},{variant:this._variantConfiguration.diffEditorVariant,runWithOriginalEditorScrollAnchor:(e,t)=>this._runWithEditorScrollAnchor(()=>this._outerEditorHeight+this._getOriginalEditorLineTop(e),t),runWithModifiedEditorScrollAnchor:(e,t)=>this._runWithEditorScrollAnchor(()=>this._outerEditorHeight+this._getModifiedEditorLineTop(e),t)})),this.isModifedFocused=z3(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=z3(this.editor.getOriginalEditor()).isFocused,this.isBinaryFilePlaceholderFocused=sc(this,!1);let l=this._register(oS(this._elements.binaryFilePlaceholder));this._register(l.onDidFocus(()=>this.isBinaryFilePlaceholderFocused.set(!0,void 0))),this._register(l.onDidBlur(()=>this.isBinaryFilePlaceholderFocused.set(!1,void 0))),this.isFocused=n5(this,e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e)||this.isBinaryFilePlaceholderFocused.read(e)),this._elements.binaryFilePlaceholder.tabIndex=0,this._workbenchUIElementFactory.openDiffEditor?(this._openBinaryDiffButton=this._register(new W$(this._elements.binaryFilePlaceholderActions,{...Ax,secondary:!0})),this._openBinaryDiffButton.label=(0,iM.M)(165,"Open Diff"),this._register(this._openBinaryDiffButton.onDidClick(()=>{var _this$_workbenchUIEle,_this$_workbenchUIEle2;let e=this._viewModel.get();(e===null||e===void 0?void 0:e.originalUri)&&e.modifiedUri&&((_this$_workbenchUIEle=(_this$_workbenchUIEle2=this._workbenchUIElementFactory).openDiffEditor)===null||_this$_workbenchUIEle===void 0?void 0:_this$_workbenchUIEle.call(_this$_workbenchUIEle2,e.originalUri,e.modifiedUri));}))):this._openBinaryDiffButton=void 0;let h=oH("div.multi-diff-resource-label-accessory").root;this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath,"primary",h)):void 0,this._elements.primaryPath.appendChild(h);let d=oH("div.multi-diff-resource-label-accessory").root;this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath,"secondary",d)):void 0,this._elements.secondaryPath.appendChild(d),this._dataStore=this._register(new i8.q()),this._headerHeight=this._variantConfiguration.headerHeight;let c=this._register(new W$(this._elements.collapseButton,{})),u=()=>{var _this$_viewModel$get;return(_this$_viewModel$get=this._viewModel.get())===null||_this$_viewModel$get===void 0?void 0:_this$_viewModel$get.setActive(void 0);};if(this._register(se(e=>{c.element.className="",c.icon=this._collapsed.read(e)?rC.f.chevronRight:rC.f.chevronDown;})),this._register(c.onDidClick(()=>{var _this$_viewModel$get2;u(),(_this$_viewModel$get2=this._viewModel.get())===null||_this$_viewModel$get2===void 0?void 0:_this$_viewModel$get2.collapsed.set(!this._collapsed.get(),void 0);})),this._workbenchUIElementFactory.handleHeaderMiddleClick&&this._register(s$(this._elements.header,o_.AUXCLICK,e=>{var _t$modifiedUri,_this$_workbenchUIEle3,_this$_workbenchUIEle4;if(1!==e.button)return;let t=this._viewModel.get(),i=(_t$modifiedUri=t===null||t===void 0?void 0:t.modifiedUri)!==null&&_t$modifiedUri!==void 0?_t$modifiedUri:t===null||t===void 0?void 0:t.originalUri;i&&((_this$_workbenchUIEle3=(_this$_workbenchUIEle4=this._workbenchUIElementFactory).handleHeaderMiddleClick)===null||_this$_workbenchUIEle3===void 0?void 0:_this$_workbenchUIEle3.call(_this$_workbenchUIEle4,i))&&ob.stop(e,!0);})),this._variantConfiguration.headerClickToCollapse){this._elements.header.tabIndex=0,this._elements.header.setAttribute("role","button"),this._register(s$(this._elements.header,o_.MOUSE_ENTER,()=>this._elements.root.classList.add("header-hovered"))),this._register(s$(this._elements.header,o_.MOUSE_LEAVE,()=>this._elements.root.classList.remove("header-hovered")));let e=this._register(oS(this._elements.header));this._register(e.onDidFocus(()=>{this._elements.root.classList.add("header-focused"),u();})),this._register(e.onDidBlur(()=>this._elements.root.classList.remove("header-focused"))),this._register(s$(this._elements.header,o_.CLICK,e=>{var _this$_viewModel$get3;u();let t=e.target;!(t instanceof Element)||t.closest(".actions")||t.closest(".collapse-button")||((_this$_viewModel$get3=this._viewModel.get())===null||_this$_viewModel$get3===void 0?void 0:_this$_viewModel$get3.collapsed.set(!this._collapsed.get(),void 0));})),this._register(s$(this._elements.header,o_.KEY_DOWN,e=>{if("Enter"===e.key||" "===e.key){var _this$_viewModel$get4;u();let t=e.target;t instanceof Element&&(t.closest(".actions")||t.closest(".collapse-button"))||(e.preventDefault(),(_this$_viewModel$get4=this._viewModel.get())===null||_this$_viewModel$get4===void 0?void 0:_this$_viewModel$get4.collapsed.set(!this._collapsed.get(),void 0));}}));}this._register(se(e=>{let t=this._collapsed.read(e),i=this._viewModel.read(e),n=(i===null||i===void 0?void 0:i.isBinary)===!0,s=!!(i!==null&&i!==void 0&&i.originalUri&&i.modifiedUri&&this._openBinaryDiffButton);this._elements.editor.style.display=t||n?"none":"block",this._elements.binaryFilePlaceholder.style.display=!t&&n?"grid":"none",this._elements.binaryFilePlaceholder.tabIndex=s?-1:0,this._elements.binaryFilePlaceholderActions.style.display=s?"":"none",this._variantConfiguration.headerClickToCollapse&&this._elements.header.setAttribute("aria-expanded",String(!t));})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(e=>{let t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0);})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(e=>{let t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0);})),this._register(this.editor.onDidContentSizeChange(e=>{sa(e=>{this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),e),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),e);});let t=this._viewModel.get();!(this._isSettingData||t!==null&&t!==void 0&&t.isBinary)&&(t===null||t===void 0?void 0:t.diffEditorViewModel.isDiffUpToDate.get())&&(this._observedEditorContentHeight=e.contentHeight,this._scheduleVerticalStateUpdate());})),this._register(se(e=>{var _this$_viewModel$read2,_this$_viewModel$read3;let t=(_this$_viewModel$read2=this._viewModel.read(e))===null||_this$_viewModel$read2===void 0?void 0:_this$_viewModel$read2.isActive.read(e);this._elements.root.classList.toggle("active",t);let i=(_this$_viewModel$read3=this._viewModel.read(e))===null||_this$_viewModel$read3===void 0?void 0:_this$_viewModel$read3.isFirst.read(e);this._elements.root.classList.toggle("first-diff-entry",i);})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight+this._variantConfiguration.contentBottomPadding,this._contextKeyService=this._register(r.createScoped(this._elements.actions));let g=tn.multiDiffEditorItemAllUnchangedRegionsShown.bindTo(this._contextKeyService);this._register(se(e=>{g.set(this.editor.allUnchangedRegionsShown.read(e));}));let p=this._register(this._instantiationService.createChild(new km([r9,this._contextKeyService])));this._register(p.createInstance(Uc,this._elements.actions,ah.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Uf(()=>{var _this$_viewModel$get$,_this$_viewModel$get5,_this$_viewModel$get6;return(_this$_viewModel$get$=(_this$_viewModel$get5=this._viewModel.get())===null||_this$_viewModel$get5===void 0?void 0:_this$_viewModel$get5.modifiedUri)!==null&&_this$_viewModel$get$!==void 0?_this$_viewModel$get$:(_this$_viewModel$get6=this._viewModel.get())===null||_this$_viewModel$get6===void 0?void 0:_this$_viewModel$get6.originalUri;})),highlightToggledItems:!0,menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>{var _this$_workbenchUIEle5,_this$_workbenchUIEle6,_this$_workbenchUIEle7;return(_this$_workbenchUIEle5=(_this$_workbenchUIEle6=(_this$_workbenchUIEle7=this._workbenchUIElementFactory).createToolbarActionViewItem)===null||_this$_workbenchUIEle6===void 0?void 0:_this$_workbenchUIEle6.call(_this$_workbenchUIEle7,e,t))!==null&&_this$_workbenchUIEle5!==void 0?_this$_workbenchUIEle5:A2(p,e,t);}}));}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e);}getExpandedContentHeight(){return this._observedEditorContentHeight+this._outerEditorHeight;}createBinding(e,t){this._bindingContext=t;try{this.setItem(e,t.initialSize);}catch(e){try{this.setItem(void 0);}finally{this._bindingContext=void 0;}throw e;}return new U5(e,this);}_runWithEditorScrollAnchor(e,t){let i=this._bindingContext;if(!i)throw new nf.Q("Cannot preserve a diff editor scroll anchor without an active item binding");i.runWithScrollAnchor(e,e=>{t(),this._verticalStateUpdate.clear(),this._observedEditorContentHeight=this.editor.getContentHeight(),this._editorContentHeight.set(this._observedEditorContentHeight,e);});}_getOriginalEditorLineTop(e){let t=this.editor.getOriginalEditor();return e>t.getModel().getLineCount()?t.getContentHeight():t.getTopForLineNumber(e);}_getModifiedEditorLineTop(e){let t=this.editor.getModifiedEditor();return e>t.getModel().getLineCount()?t.getContentHeight():t.getTopForLineNumber(e);}setItem(e,t=0){this._verticalStateUpdate.clear();let i=this._optionsOverride,n=this._variantConfiguration.diffEditorOptions;function s(e){var _ref20,_ref21,_i$get$hideOriginalLi,_i$get;return{...n,...e,...(i===null||i===void 0?void 0:i.get()),hideOriginalLineNumbers:(_ref20=(_ref21=(_i$get$hideOriginalLi=i===null||i===void 0||(_i$get=i.get())===null||_i$get===void 0?void 0:_i$get.hideOriginalLineNumbers)!==null&&_i$get$hideOriginalLi!==void 0?_i$get$hideOriginalLi:e.hideOriginalLineNumbers)!==null&&_ref21!==void 0?_ref21:n===null||n===void 0?void 0:n.hideOriginalLineNumbers)!==null&&_ref20!==void 0?_ref20:!1,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1};}if(!e){this._isSettingData=!0;try{sa(e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear();});}finally{this._isSettingData=!1;}return;}let o=e.documentDiffItem,r=e.isBinary?100:Math.max(0,Math.max(t,e.lastTemplateData.get().expandedContentHeight)-this._outerEditorHeight);this._observedEditorContentHeight=r,this._isSettingData=!0;try{sa(t=>{var _this$_resourceLabel,_e$modifiedUri,_this$_resourceLabel2,_o$options;this._editorContentHeight.set(r,t),(_this$_resourceLabel=this._resourceLabel)===null||_this$_resourceLabel===void 0?void 0:_this$_resourceLabel.setUri((_e$modifiedUri=e.modifiedUri)!==null&&_e$modifiedUri!==void 0?_e$modifiedUri:e.originalUri,{strikethrough:void 0===e.modifiedUri});let i=!1,n=!1,a=!1,l="";e.modifiedUri&&e.originalUri&&e.modifiedUri.path!==e.originalUri.path?(l="R",i=!0):e.modifiedUri?e.originalUri||(l="A",a=!0):(l="D",n=!0),this._elements.status.classList.toggle("renamed",i),this._elements.status.classList.toggle("deleted",n),this._elements.status.classList.toggle("added",a),this._elements.status.innerText=l,(_this$_resourceLabel2=this._resourceLabel2)!==null&&_this$_resourceLabel2!==void 0&&_this$_resourceLabel2.setUri(i?e.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e,t),this.editor.updateOptions(s((_o$options=o.options)!==null&&_o$options!==void 0?_o$options:{})),this.editor.setDiffModel(e.diffEditorViewModelRef,t);});}finally{this._isSettingData=!1;}if(this._dataStore.add(se(t=>{var _i$diff$read$mappings,_i$diff$read2;if(e.isBinary)return;let i=e.diffEditorViewModel;!i.isDiffUpToDate.read(t)||((_i$diff$read$mappings=(_i$diff$read2=i.diff.read(t))===null||_i$diff$read2===void 0?void 0:_i$diff$read2.mappings.length)!==null&&_i$diff$read$mappings!==void 0?_i$diff$read$mappings:0)>0&&i.unchangedRegions.read(t).length>0||(this._observedEditorContentHeight=this.editor.getContentHeight(),this._scheduleVerticalStateUpdate());})),o.onOptionsDidChange&&this._dataStore.add(o.onOptionsDidChange(()=>{var _o$options2;this.editor.updateOptions(s((_o$options2=o.options)!==null&&_o$options2!==void 0?_o$options2:{}));})),i&&this._dataStore.add(se(e=>{var _o$options3;i.read(e),this.editor.updateOptions(s((_o$options3=o.options)!==null&&_o$options3!==void 0?_o$options3:{}));})),e.documentDiffItem.contextKeys)for(let[t,i]of Object.entries(e.documentDiffItem.contextKeys))this._contextKeyService.createKey(t,i);}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";let s=e.length-this._headerHeight,o=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${o}px)`,sa(i=>{this.editor.layout({width:t-this._itemHorizontalInsets.left-this._itemHorizontalInsets.right,height:e.length-this._outerEditorHeight});}),this.editor.getOriginalEditor().setScrollTop(i),this._flushVerticalState(),this._elements.header.classList.toggle("shadow",o>0||i>0),this._elements.header.classList.toggle("collapsed",o===s);}_scheduleVerticalStateUpdate(){this._verticalStateUpdate.value||(this._verticalStateUpdate.value=o(sT(this._elements.root),()=>this._flushVerticalState()));}_flushVerticalState(){this._verticalStateUpdate.clear(),sa(e=>{this._editorContentHeight.set(this._observedEditorContentHeight,e);});}hide(){this._elements.root.classList.remove("header-hovered"),this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden";}focusBinaryFilePlaceholder(){let e=this._viewModel.get();e!==null&&e!==void 0&&e.originalUri&&e.modifiedUri&&this._openBinaryDiffButton?this._openBinaryDiffButton.focus():this._elements.binaryFilePlaceholder.focus();}unbind(e){if(this._viewModel.get()!==e)throw new nf.Q("Cannot unbind a diff editor template from a different item");this.setItem(void 0),this._bindingContext=void 0;}};U3=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([U2(5,rr),U2(6,r9)],U3);class U5 extends UY{constructor(e,t){super(e),this._template=t,this.size=t.size,this.maxScroll=t.maxScroll,this.shouldKeepAlive=t.isFocused,this.editor=t.editor;}render(e,t,i,n){this._template.render(e,i,t,n);}hide(){this._template.hide();}setScrollLeft(e){this._template.setScrollLeft(e);}getExpandedContentHeight(){return this._template.getExpandedContentHeight();}focus(){this.item.isBinary?this._template.focusBinaryFilePlaceholder():this.editor.focus();}dispose(){this._store.isDisposed||(this._template.unbind(this.item),super.dispose());}}var U6=i8,U4=i8;function U9(e){var _e$leadingScrollSlack,_e$trailingScrollSlac,_e$revision;$e("viewportHeight",e.viewportHeight);let t=(_e$leadingScrollSlack=e.leadingScrollSlack)!==null&&_e$leadingScrollSlack!==void 0?_e$leadingScrollSlack:0,i=(_e$trailingScrollSlac=e.trailingScrollSlack)!==null&&_e$trailingScrollSlac!==void 0?_e$trailingScrollSlac:0;$e("leadingScrollSlack",t),$e("trailingScrollSlack",i);let n=U7(e.itemHeights,e.itemGap),s=t+n+i,o=Math.max(0,s-e.viewportHeight),r=Math.max(0,Math.min(e.scrollTop,o)),a=hG.G.ofStartAndLength(r-t,e.viewportHeight),l=0,h=t,d=0,c=[];for(let t=0;t<e.itemHeights.length;t++){let i,n,s=e.itemHeights[t],o=Math.min(s,e.viewportHeight),r=s-o,u=hG.G.ofStartAndLength(l,s),g=hG.G.ofStartAndLength(h,o);u.isBefore(a)?(i="before",n=r):u.isAfter(a)?(i="after",n=0):(i="visible",n=Math.max(0,Math.min(a.start-u.start,r))),d+=n,c.push({contentRange:u,renderedRange:g,maxScrollOffset:r,scrollOffset:n,visibility:i}),t<e.itemHeights.length-1?(l+=s+e.itemGap,h+=o+e.itemGap):(l+=s,h+=o);}let u=r-d;return{revision:(_e$revision=e.revision)!==null&&_e$revision!==void 0?_e$revision:0,scrollTop:r,logicalScrollHeight:n,scrollHeight:s,leadingScrollSlack:t,trailingScrollSlack:i,renderedHeight:h+i,contentViewport:a,renderedViewport:hG.G.ofStartAndLength(u,e.viewportHeight),hiddenContentHeightAboveViewport:d,items:c};}function U8(e,t){$e("itemGap",t);let i=[],n=0;for(let s=0;s<e.length;s++){let o=e[s];$e(`itemHeights[${s}]`,o),i.push(hG.G.ofStartAndLength(n,o)),n+=o+(s<e.length-1?t:0);}return i;}function U7(e,t){$e("itemGap",t);for(let t=0;t<e.length;t++)$e(`itemHeights[${t}]`,e[t]);return 0===e.length?0:e.reduce((e,t)=>e+t,0)+t*(e.length-1);}function $e(e,t){if(!Number.isFinite(t)||t<0)throw new nf.Q(`${e} must be a finite non-negative number, got ${t}`);}class $t extends U4.N{constructor(e,t,i,n){super(),this._lastGeometryEdit=sc(this,void 0),this._itemAnchorEditSignal=sv(this),this._revision=0,this._leadingScrollSlack=0,this._trailingScrollSlack=0,this._previousItemGap=0,this._lastScrollTop=0,this._clearScrollDirection=this._register(new nI.t(()=>this._lastScrollDirection=void 0,100)),this._isUpdating=!1,this.lastGeometryEdit=this._lastGeometryEdit,this._scrollableElements=oH("div.scrollContent",[oH("div@content",{style:{overflow:"hidden",position:"relative"}}),oH("div.monaco-editor@overflowWidgetsDomNode")]),this._scrollable=this._register(new p5({forceIntegerValues:!1,scheduleAtNextAnimationFrame:t=>o(sT(e),t),smoothScrollDuration:100})),this._scrollableElement=this._register(new fn(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.domNode=oH("div",{},[this._scrollableElement.getDomNode()]).root,this._sizeObserver=this._register(new H$(e,void 0)),this.scrollTop=sf(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=sf(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._items=n({contentDomNode:this._scrollableElements.content,overflowWidgetsDomNode:this._scrollableElements.overflowWidgetsDomNode,scrollLeft:this.scrollLeft}),this._layout=sc(this,U9({revision:this._revision,scrollTop:0,viewportHeight:0,itemGap:0,itemHeights:[]})),this.layout=this._layout,this._scrollDimensions=sc(this,{width:0,height:0,scrollWidth:0,scrollHeight:0}),this.scrollDimensions=this._scrollDimensions,this._register(se(e=>{this._sizeObserver.observe(t.read(e));})),this._register(se(e=>{var _r$maxScroll$read$max;this._itemAnchorEditSignal.read(e);let t=this._sizeObserver.width.read(e),n=this._sizeObserver.height.read(e),s=this._items.read(e),o=s.map(t=>t.size.read(e)),r=(0,vf.Y)(s,(0,ip.i)(t=>t.maxScroll.read(e).maxScroll,ip.k)),a=(_r$maxScroll$read$max=r===null||r===void 0?void 0:r.maxScroll.read(e).maxScroll)!==null&&_r$maxScroll$read$max!==void 0?_r$maxScroll$read$max:0,l=i.read(e),h=this.scrollTop.read(e);sa(e=>this._update(s,o,l,t,n,t+a,h,e));}));}setScrollPosition(e,t=!1){this._scrollableElement.setScrollPosition({...e,reuseAnimation:t});}setLogicalScrollPosition(e,t=!1){this.setScrollPosition({scrollTop:this._leadingScrollSlack+e},t);}getScrollPosition(){return this._scrollableElement.getScrollPosition();}_runWithItemScrollAnchor(e,t,i){let n=this._items.get().findIndex(t=>t===e);if(-1===n)throw new nf.Q("Cannot anchor an item that is not in the compacted virtualized scroll view");let s=this._layout.get().items[n].contentRange,o=t();if(!Number.isFinite(o)||o<0||o>s.length)throw new nf.Q(`Item anchor ${o} is outside item range ${s}`);let r={revision:this._revision,offset:s.start+o},a=this.getScrollPosition().scrollTop-this._leadingScrollSlack;this._runWithPendingAnchor({position:r,viewportOffset:r.offset-a,item:e,getItemOffset:t},e=>{i(e),t()!==o&&this._itemAnchorEditSignal.trigger(e);});}_runWithPendingAnchor(e,t){if(this._pendingAnchor)throw new nf.Q("Cannot nest compacted virtualized scroll anchors");this._pendingAnchor=e;try{sa(t);}finally{this._pendingAnchor===e&&(this._pendingAnchor=void 0);}}_update(e,t,i,n,s,o,r,a){if(!this._isUpdating){this._isUpdating=!0;try{var l,h;let d=r,c=r-this._lastScrollTop;0!==c&&(this._lastScrollDirection=c<0?"up":"down",this._clearScrollDirection.schedule());let u=this._previousItemHeights,g=void 0!==u&&(i!==this._previousItemGap||(l=u,h=t,!(l.length===h.length&&l.every((e,t)=>e===h[t])))),p=void 0!==this._previousItems&&this._previousItems.length===e.length&&this._previousItems.every((t,i)=>t===e[i]),f=void 0!==this._previousItems&&!p,m=!1,_=!!this._pendingAnchor&&p;if(u&&(g||_)&&p){var _l$position$offset,_l$viewportOffset;let n=U7(u,this._previousItemGap),o=r-this._leadingScrollSlack,l=this._pendingAnchor,h="up"===this._lastScrollDirection,c=h?s:0,p=l!==null&&l!==void 0&&l.item?"item":l?"logical":h?"viewportBottom":"viewportTop",f=(_l$position$offset=l===null||l===void 0?void 0:l.position.offset)!==null&&_l$position$offset!==void 0?_l$position$offset:Math.max(0,Math.min(o+c,n)),_=(_l$viewportOffset=l===null||l===void 0?void 0:l.viewportOffset)!==null&&_l$viewportOffset!==void 0?_l$viewportOffset:f-o,v=this._revision,b=g?v+1:v,C=function(e,t,i,n,s,o,r){if(i.length!==n.length)throw new nf.Q("Size edits require stable item identity and ordering");let a=U8(i,s),l=U8(n,o),h=[];for(let e=0;e<a.length;e++)a[e].equals(l[e])||h.push({oldRange:a[e],newRange:l[e]});return{fromRevision:e,toRevision:t,edits:h,anchor:{revision:e,offset:r}};}(v,b,u,t,this._previousItemGap,i,f),w=function(e,t){if(e.revision!==t.fromRevision)throw new nf.Q(`Cannot map layout revision ${e.revision} through revision ${t.fromRevision}`);let i=e.offset;for(let n of t.edits){if(e.offset<n.oldRange.start)break;if(n.oldRange.contains(e.offset)){let t=e.offset-n.oldRange.start;i=t<n.newRange.length?n.newRange.start+t:n.newRange.start;break;}i=e.offset+n.newRange.endExclusive-n.oldRange.endExclusive;}return{revision:t.toRevision,offset:i};}(C.anchor,C);if(l!==null&&l!==void 0&&l.item&&l.getItemOffset){let n=e.findIndex(e=>e===l.item);if(-1===n)throw new nf.Q("Compacted virtualized scroll anchor item was removed during its edit");let s=U8(t,i)[n],o=l.getItemOffset();if(!Number.isFinite(o)||o<0||o>s.length)throw new nf.Q(`Mapped item anchor ${o} is outside item range ${s}`);w={revision:b,offset:s.start+o};}let y=U7(t,i),S=w.offset-_,x=Math.max(0,y-s);this._leadingScrollSlack=Math.max(0,-S),this._trailingScrollSlack=Math.max(0,S-x),d=this._leadingScrollSlack+S,this._revision=b,this._pendingAnchor=void 0,m=!0,this._lastGeometryEdit.set({fromRevision:v,toRevision:b,edits:C.edits,anchorKind:p,anchorOffset:f,mappedAnchorOffset:w.offset,anchorViewportOffset:_,desiredScrollTop:d,appliedScrollTop:d,leadingScrollSlack:this._leadingScrollSlack,trailingScrollSlack:this._trailingScrollSlack},a);}else if(g||f)g&&(this._revision=this._revision+1),this._leadingScrollSlack=0,this._trailingScrollSlack=0,this._lastGeometryEdit.set(void 0,a);else if(c>0&&this._leadingScrollSlack>0){let e=Math.min(c,this._leadingScrollSlack);this._leadingScrollSlack-=e,d-=e;}else if(c<0&&this._trailingScrollSlack>0){let e=U7(t,i),n=this._leadingScrollSlack+Math.max(0,e-s);this._trailingScrollSlack=Math.max(0,d-n);}let v=U9({revision:this._revision,scrollTop:d,viewportHeight:s,itemGap:i,itemHeights:t,leadingScrollSlack:this._leadingScrollSlack,trailingScrollSlack:this._trailingScrollSlack}),b={width:n,height:s,scrollWidth:o,scrollHeight:v.scrollHeight};this._scrollableElements.root.style.height=`${s}px`,this._scrollableElements.content.style.height=`${v.scrollHeight}px`,this._scrollable.setScrollDimensions(b,!0),(g||d!==r)&&this._scrollable.setScrollPositionNow({scrollTop:v.scrollTop});let C=this._scrollableElement.getScrollPosition().scrollTop;C!==v.scrollTop&&(v=U9({revision:this._revision,scrollTop:C,viewportHeight:s,itemGap:i,itemHeights:t,leadingScrollSlack:this._leadingScrollSlack,trailingScrollSlack:this._trailingScrollSlack}));let w=this._lastGeometryEdit.get();m&&w&&this._lastGeometryEdit.set({...w,appliedScrollTop:C},a),this._layout.set(v,a),this._scrollDimensions.set(b,a),this._render(e,v,n),this._previousItems=e,this._previousItemHeights=t,this._previousItemGap=i,this._lastScrollTop=v.scrollTop;}finally{this._isUpdating=!1;}}}_render(e,t,i){for(let n=0;n<e.length;n++){let s=e[n],o=t.items[n];"visible"!==o.visibility?s.hide():s.render(o.renderedRange,o.scrollOffset,i,t.renderedViewport,{runWithScrollAnchor:(e,t)=>this._runWithItemScrollAnchor(s,e,t)});}this._scrollableElements.content.style.transform=`translateY(${-t.renderedViewport.start}px)`;}}var $i=i8;class $n extends $i.N{constructor(e){super(),this._logService=e,this._lastLoggedCollapsed=new Map(),this._lastLoggedContentHeight=new Map(),this._isEnabled=sf(this,this._logService.onDidChangeLogLevel,()=>this._logService.getLevel()<=e0.Trace);}get isEnabled(){return this._isEnabled.get();}log(e,t){if(!this.isEnabled)return;let i=t?Object.entries(t).map(([e,t])=>`${e}: ${function e(t){return void 0===t?"<undefined>":ne.m.isUri(t)?$s(t):Array.isArray(t)?`[${t.map(e).join(", ")}]`:"number"==typeof t?String(Math.round(100*t)/100):"object"==typeof t?JSON.stringify(t):String(t);}(t)}`).join(", "):void 0;this._logService.trace(`[MultiDiffEditor] ${e}${i?` (${i})`:""}`);}logStateChanges(e){this._register(ss((t,i)=>{this._isEnabled.read(t)&&(i.add((0,$i.Q)(()=>{this._lastLoggedCollapsed.clear(),this._lastLoggedContentHeight.clear();})),i.add(se(t=>{let i=e.viewModel.read(t);this.log("view model changed",{hasViewModel:!!i,isLoading:i===null||i===void 0?void 0:i.isLoading.read(t),preserveFocusOnLoad:e.isPreserveFocusOnLoad()});})),i.add(se(t=>{let i=[];for(let n of e.items.read(t)){let e=n.collapsed.read(t),s=n.getKey();this._lastLoggedCollapsed.get(s)!==e&&(this._lastLoggedCollapsed.set(s,e),i.push(`${n.getLabel()}=${e}`));}i.length>0&&this.log("collapsed state changed",{changed:i});})),i.add(se(t=>{let i=e.getScrollTop(),n=[],s=0;for(let o of e.items.read(t)){let r=o.contentHeight.read(t),a=o.getKey(),l=this._lastLoggedContentHeight.get(a);if(l!==r){let e=s<i?" (above scroll offset)":"";n.push(`${o.getLabel()}: ${l!==null&&l!==void 0?l:"?"} -> ${r}${e}`),this._lastLoggedContentHeight.set(a,r);}s+=r+e.spaceBetweenPx;}n.length>0&&this.log("content height changed",{changed:n,totalHeight:s,scrollTop:i});})));}));}}function $s(e){return e?aE(e)||e.authority||e.scheme:"<none>";}function $o(e){if(void 0===e)return"<none>";try{let[t,i]=JSON.parse(e),n=i!==null&&i!==void 0?i:t;return n?$s(ne.m.parse(n)):"<none>";}catch{return e;}}var $r=function(e,t){return function(i,n){t(i,n,e);};};let $a=class extends U6.N{constructor(e,t,i,n,s,o,r,a,l,h,d){let c,u;super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._variantConfiguration=s,this._diffLayoutOptions=o,this._diffEditorOptions=r,this._paddingBottomPx=a,this._parentContextKeyService=l,this._parentInstantiationService=h,this._preserveFocusOnLoad=!1,this._hasAppliedPendingScrollState=!1,this._logger=this._register(new $n(d)),this._optionsOverride=n5(this,e=>({...this._diffEditorOptions,...this._diffLayoutOptions.read(e)})),this._spaceBetweenPx=sc(this,0);let g=this._paddingBottomPx.map(this,e=>({size:RP(e),maxScroll:RP({maxScroll:0}),render(){},hide(){}}));this._scrollView=this._register(new $t(this._element,this._dimension,this._spaceBetweenPx,e=>{let t=n5(this,e=>{var _this$_viewModel$read4,_this$_viewModel$read5;return(_this$_viewModel$read4=(_this$_viewModel$read5=this._viewModel.read(e))===null||_this$_viewModel$read5===void 0?void 0:_this$_viewModel$read5.items.read(e))!==null&&_this$_viewModel$read4!==void 0?_this$_viewModel$read4:[];}),i=sS(this,this._register(new UJ(t,e,{getId:e=>e,getTemplateId:()=>"diffEditor",getUnboundSize:e=>n5(e,t=>{let i=this._variantConfiguration.headerHeight;return e.collapsed.read(t)?i:e.isBinary?i+this._variantConfiguration.contentBottomPadding+100:e.lastTemplateData.read(t).expandedContentHeight;}),createTemplate:()=>this._instantiationService.createInstance(U3,e.contentDomNode,e.overflowWidgetsDomNode,this._workbenchUIElementFactory,this._variantConfiguration,this._optionsOverride),onDidBind:e=>{var _e$item$modifiedUri,_t$length;let t=e.item.lastTemplateData.get().selections;this._logger.log("acquired editor template",{file:$s((_e$item$modifiedUri=e.item.modifiedUri)!==null&&_e$item$modifiedUri!==void 0?_e$item$modifiedUri:e.item.originalUri),collapsed:e.item.collapsed.get(),expectedExpandedContentHeight:e.item.lastTemplateData.get().expandedContentHeight,selections:(_t$length=t===null||t===void 0?void 0:t.length)!==null&&_t$length!==void 0?_t$length:0}),t&&e.editor.setSelections(t);},onWillUnbind:(e,t)=>{var _e$item$modifiedUri2,_e$editor$getSelectio;this._logger.log("releasing editor template",{file:$s((_e$item$modifiedUri2=e.item.modifiedUri)!==null&&_e$item$modifiedUri2!==void 0?_e$item$modifiedUri2:e.item.originalUri),contentHeight:e.size.get()}),e.item.lastTemplateData.set({expandedContentHeight:e.getExpandedContentHeight(),selections:(_e$editor$getSelectio=e.editor.getSelections())!==null&&_e$editor$getSelectio!==void 0?_e$editor$getSelectio:void 0},t);}})).virtualizedItems,(t,i)=>{var _this$_lastDocStates;let n=i.add(new $h(t,e.scrollLeft,this._logger)),s=(_this$_lastDocStates=this._lastDocStates)===null||_this$_lastDocStates===void 0?void 0:_this$_lastDocStates[n.getKey()];return s&&sr(e=>n.setViewState(s,e)),n;}).recomputeInitiallyAndOnChange(this._store);return u=(c=n5(this,e=>{let t=i.read(e),n=new Map(t.map(e=>[e.viewModel,e])),s=t.filter(e=>{var _this$_lastDocStates2;return((_this$_lastDocStates2=this._lastDocStates)===null||_this$_lastDocStates2===void 0?void 0:_this$_lastDocStates2[e.getKey()])!==void 0;}).length;return this._logger.log("view items updated",{items:t.length,restoredDocStates:s}),{items:t,getItem:e=>n.get(e)};})).map(this,e=>e.items),n5(this,e=>[...u.read(e),g.read(e)]);})),this._viewItemsInfo=c,this._viewItems=u,this.scrollTop=this._scrollView.scrollTop,this.scrollLeft=this._scrollView.scrollLeft,this.layoutDebugState=n5(this,e=>{let t=this._scrollView.layout.read(e),i=this._viewItems.read(e),n=this._scrollView.lastGeometryEdit.read(e);return{scrollLeft:this.scrollLeft.read(e),scrollDimensions:this._scrollView.scrollDimensions.read(e),layout:{revision:t.revision,scrollTop:t.scrollTop,logicalScrollHeight:t.logicalScrollHeight,scrollHeight:t.scrollHeight,renderedHeight:t.renderedHeight,leadingScrollSlack:t.leadingScrollSlack,trailingScrollSlack:t.trailingScrollSlack,contentViewport:$l(t.contentViewport),renderedViewport:$l(t.renderedViewport),hiddenContentHeightAboveViewport:t.hiddenContentHeightAboveViewport},geometryEdit:n?{...n,edits:n.edits.map(e=>({oldRange:$l(e.oldRange),newRange:$l(e.newRange)}))}:void 0,items:i.map((i,n)=>i.getLayoutDebugState(e,t.items[n]))};});let p=this._variantConfiguration.classNames.map(e=>`.${e}`).join("");this._elements=oH(`div.monaco-component.multiDiffEditor${p}`,{},[this._scrollView.domNode,oH("div.placeholder@placeholder",{},[oH("div")])]),this.activeControl=n5(this,e=>{var _this$_viewModel$read6,_i$template$read;let t=(_this$_viewModel$read6=this._viewModel.read(e))===null||_this$_viewModel$read6===void 0?void 0:_this$_viewModel$read6.activeDiffItem.read(e);if(!t)return;let i=this._viewItemsInfo.read(e).getItem(t);return(_i$template$read=i.template.read(e))===null||_i$template$read===void 0?void 0:_i$template$read.editor;}),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new km([r9,this._contextKeyService]))),this._contextKeyService.createKey(tn.inMultiDiffEditor.key,!0),this._register(HB(tn.diffEditorAutomaticRenderSideBySide,this._contextKeyService,e=>{var _this$activeControl$r,_this$activeControl$r2;return(_this$activeControl$r=(_this$activeControl$r2=this.activeControl.read(e))===null||_this$activeControl$r2===void 0?void 0:_this$activeControl$r2.renderSideBySideInAutomaticMode.read(e))!==null&&_this$activeControl$r!==void 0?_this$activeControl$r:!0;})),this._register(HB(tn.diffEditorTemporaryInlineMode,this._contextKeyService,e=>{var _this$activeControl$r3,_this$activeControl$r4;return(_this$activeControl$r3=(_this$activeControl$r4=this.activeControl.read(e))===null||_this$activeControl$r4===void 0?void 0:_this$activeControl$r4.temporaryInlineMode.read(e))!==null&&_this$activeControl$r3!==void 0?_this$activeControl$r3:!1;})),this._lastDocStates={},this._register(ss((e,t)=>{let i=this._viewModel.read(e);if(i&&i.contextKeys)for(let[e,n]of Object.entries(i.contextKeys)){let i=this._contextKeyService.createKey(e,void 0);i.set(n),t.add((0,U6.Q)(()=>i.reset()));}}));let f=this._parentContextKeyService.createKey(tn.multiDiffEditorAllCollapsed.key,!1);this._register(se(e=>{let t=this._viewModel.read(e);if(t){let i=t.items.read(e).every(t=>t.collapsed.read(e));f.set(i);}}));let m=this._parentContextKeyService.createKey(tn.multiDiffEditorRenderSideBySide.key,!0);this._register(se(e=>{var _this$_diffLayoutOpti;let t=(_this$_diffLayoutOpti=this._diffLayoutOptions.read(e))===null||_this$_diffLayoutOpti===void 0?void 0:_this$_diffLayoutOpti.renderSideBySide;void 0!==t&&m.set(t);})),this._logger.logStateChanges({viewModel:this._viewModel,items:this._viewItems,spaceBetweenPx:this._spaceBetweenPx.get(),getScrollTop:()=>this._scrollView.getScrollPosition().scrollTop,isPreserveFocusOnLoad:()=>this._preserveFocusOnLoad});let _=n5(e=>{if(this._viewItems.read(e).length>0)return;let t=this._viewModel.read(e);return!t||t.isLoading.read(e)?(0,iM.M)(166,"Loading..."):(0,iM.M)(167,"No Changed Files");});this._register(se(e=>{let t=_.read(e);this._elements.placeholder.innerText=t!==null&&t!==void 0?t:"",this._elements.placeholder.classList.toggle("visible",!!t);})),this._register(se(e=>{this._scrollView.scrollDimensions.read(e),this._applyPendingScrollState();})),e.replaceChildren(this._elements.root),this._register((0,U6.Q)(()=>{e.replaceChildren();})),this._register(se(e=>{let t=this._viewModel.read(e);if(t&&!t.isLoading.read(e)){let i=t.items.read(e);if(0===i.length||t.activeDiffItem.read(e)||this._restorePendingActiveDiffItem(t,i))return;this._logger.log("no active diff item after loading, selecting first change",{items:i.length}),this._navigateToChange("next",!this._preserveFocusOnLoad);}}));}setScrollState(e){this._pendingScrollState=e,this._hasAppliedPendingScrollState=!1,this._lastPendingScrollDimensions=void 0,this._applyPendingScrollState();}_applyPendingScrollState(){let e=this._pendingScrollState;if(!e)return;let t=this._scrollView.scrollDimensions.get(),i=this._scrollView.getScrollPosition(),n=void 0===e.top?i.scrollTop:Math.min(Math.max(0,e.top),Math.max(0,t.scrollHeight-t.height)),s=void 0===e.left?i.scrollLeft:Math.min(Math.max(0,e.left),Math.max(0,t.scrollWidth-t.width)),o=this._lastPendingScrollDimensions,r=!o||o.width!==t.width||o.height!==t.height||o.scrollWidth!==t.scrollWidth||o.scrollHeight!==t.scrollHeight;if(this._hasAppliedPendingScrollState&&!r&&(i.scrollTop!==n||i.scrollLeft!==s)){this._pendingScrollState=void 0,this._hasAppliedPendingScrollState=!1,this._lastPendingScrollDimensions=void 0;return;}this._scrollView.setScrollPosition({scrollLeft:e.left,scrollTop:e.top});let a=this._scrollView.getScrollPosition(),l=void 0===e.top||a.scrollTop>=e.top,h=void 0===e.left||a.scrollLeft>=e.left;l&&h?(this._pendingScrollState=void 0,this._hasAppliedPendingScrollState=!1,this._lastPendingScrollDimensions=void 0):(this._hasAppliedPendingScrollState=!0,this._lastPendingScrollDimensions=t),this._logger.log("applied pending scroll state",{requested:e,applied:{top:a.scrollTop,left:a.scrollLeft},landed:l&&h});}setPreserveFocusOnLoad(e){this._preserveFocusOnLoad=e;}reveal(e,t){var _l$template$get;var i,n;let s,o,r=this._viewItems.get(),a=r.findIndex(t=>{var _t$viewModel$original,_e$original,_t$viewModel$modified,_e$modified;return((_t$viewModel$original=t.viewModel.originalUri)===null||_t$viewModel$original===void 0?void 0:_t$viewModel$original.toString())===((_e$original=e.original)===null||_e$original===void 0?void 0:_e$original.toString())&&((_t$viewModel$modified=t.viewModel.modifiedUri)===null||_t$viewModel$modified===void 0?void 0:_t$viewModel$modified.toString())===((_e$modified=e.modified)===null||_e$modified===void 0?void 0:_e$modified.toString());});if(-1===a)throw new nf.Q("Resource not found in diff editor");let l=r[a];this._viewModel.get().activeDiffItem.setCache(l.viewModel,void 0);let h=0;for(let e=0;e<a;e++)h+=r[e].contentHeight.get()+this._spaceBetweenPx.get();this._logger.log("reveal",{file:l.getLabel(),index:a,scrollTop:`${this._scrollView.getScrollPosition().scrollTop} -> ${h}`,range:t===null||t===void 0?void 0:t.range}),this._scrollView.setLogicalScrollPosition(h);let d=(_l$template$get=l.template.get())===null||_l$template$get===void 0?void 0:_l$template$get.editor,c="original"in e?d===null||d===void 0?void 0:d.getOriginalEditor():d===null||d===void 0?void 0:d.getModifiedEditor();c&&(t===null||t===void 0?void 0:t.range)&&(c.revealRangeInCenter(t.range),i=c,n=t.range,s=i.getModel(),o=i.createDecorationsCollection([{range:n,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]),setTimeout(()=>{i.getModel()===s&&o.clear();},350));}getViewState(){var _this$_viewModel$get7;let e={scrollState:{top:this.scrollTop.get(),left:this.scrollLeft.get()},docStates:Object.fromEntries(this._viewItems.get().map(e=>[e.getKey(),e.getViewState()])),activeDiffItemKey:(_this$_viewModel$get7=this._viewModel.get())===null||_this$_viewModel$get7===void 0||(_this$_viewModel$get7=_this$_viewModel$get7.activeDiffItem.get())===null||_this$_viewModel$get7===void 0?void 0:_this$_viewModel$get7.getKey()};if(this._logger.isEnabled){var _e$docStates;let t=Object.values((_e$docStates=e.docStates)!==null&&_e$docStates!==void 0?_e$docStates:{});this._logger.log("get view state",{scrollTop:e.scrollState.top,scrollLeft:e.scrollState.left,docStates:t.length,collapsed:t.filter(e=>e.collapsed).length,activeDiffItem:$o(e.activeDiffItemKey)});}return e;}setViewState(e,t){if(this._logger.isEnabled){var _e$docStates2;let t=Object.values((_e$docStates2=e.docStates)!==null&&_e$docStates2!==void 0?_e$docStates2:{});this._logger.log("set view state",{scrollTop:e.scrollState.top,scrollLeft:e.scrollState.left,docStates:t.length,collapsed:t.filter(e=>e.collapsed).length,activeDiffItem:$o(e.activeDiffItemKey),viewItems:this._viewItems.get().length});}this.setScrollState(e.scrollState),this._lastDocStates=e.docStates,this._lastActiveDiffItemKey=e.activeDiffItemKey;let i=t=>{if(e.docStates)for(let i of this._viewItems.get()){let n=e.docStates[i.getKey()];n&&i.setViewState(n,t);}};t?i(t):sr(i);let n=this._viewModel.get();n&&this._restorePendingActiveDiffItem(n,n.items.get());}_restorePendingActiveDiffItem(e,t){var _n$modifiedUri,_this$_viewItemsInfo$;let i=this._lastActiveDiffItemKey;if(void 0===i||0===t.length)return!1;this._lastActiveDiffItemKey=void 0;let n=t.find(e=>e.getKey()===i);return n?(this._logger.log("restored active diff item",{file:(_n$modifiedUri=n.modifiedUri)!==null&&_n$modifiedUri!==void 0?_n$modifiedUri:n.originalUri,preserveFocus:this._preserveFocusOnLoad}),e.activeDiffItem.setCache(n,void 0),this._preserveFocusOnLoad||(_this$_viewItemsInfo$=this._viewItemsInfo.get().getItem(n).binding.get())!==null&&_this$_viewItemsInfo$!==void 0&&_this$_viewItemsInfo$.focus(),!0):(this._logger.isEnabled&&this._logger.log("persisted active diff item not found",{key:$o(i),availableKeys:t.map(e=>$o(e.getKey()))}),!1);}_navigateToChange(e,t=!0){var _this$_viewModel$get8,_o$template$get,_r$getDiffComputation;let i=this._viewItems.get();if(0===i.length)return;let n=(_this$_viewModel$get8=this._viewModel.get())===null||_this$_viewModel$get8===void 0?void 0:_this$_viewModel$get8.activeDiffItem.get(),s=n?i.findIndex(e=>e.viewModel===n):-1;if(this._logger.log("navigate to change",{direction:e,focusEditor:t,currentIndex:s,items:i.length}),-1===s)return void this._goToFile(0,"first",t);let o=i[s];o.viewModel.collapsed.get()&&(this._logger.log("expanding collapsed item to navigate within it",{file:o.getLabel()}),o.viewModel.collapsed.set(!1,void 0));let r=(_o$template$get=o.template.get())===null||_o$template$get===void 0?void 0:_o$template$get.editor;if(r!==null&&r!==void 0&&(_r$getDiffComputation=r.getDiffComputationResult())!==null&&_r$getDiffComputation!==void 0&&(_r$getDiffComputation=_r$getDiffComputation.changes2)!==null&&_r$getDiffComputation!==void 0&&_r$getDiffComputation.length){var _r$getModifiedEditor$;let t=((_r$getModifiedEditor$=r.getModifiedEditor().getPosition())===null||_r$getModifiedEditor$===void 0?void 0:_r$getModifiedEditor$.lineNumber)||1,i=r.getDiffComputationResult().changes2;if("next"===e?i.some(e=>e.modified.startLineNumber>t):i.some(e=>e.modified.endLineNumberExclusive<=t))return void r.goToDiff(e);}let a=(s+("next"===e?1:-1)+i.length)%i.length;this._goToFile(a,"next"===e?"first":"last",t);}_goToFile(e,t,i=!0){var _n$template$get,_o$getDiffComputation,_n$binding$get;let n=this._viewItems.get()[e],s=n.viewModel.collapsed.get();this._logger.log("go to file",{file:n.getLabel(),index:e,position:t,focusEditor:i,wasCollapsed:s}),s&&n.viewModel.collapsed.set(!1,void 0),this.reveal({original:n.viewModel.originalUri,modified:n.viewModel.modifiedUri});let o=(_n$template$get=n.template.get())===null||_n$template$get===void 0?void 0:_n$template$get.editor;if(o!==null&&o!==void 0&&(_o$getDiffComputation=o.getDiffComputationResult())!==null&&_o$getDiffComputation!==void 0&&(_o$getDiffComputation=_o$getDiffComputation.changes2)!==null&&_o$getDiffComputation!==void 0&&_o$getDiffComputation.length)if("first"===t)o.revealFirstDiff();else{let e=o.getDiffComputationResult().changes2.at(-1),t=o.getModifiedEditor();t.setPosition({lineNumber:e.modified.startLineNumber,column:1}),t.revealLineInCenter(e.modified.startLineNumber);}i&&((_n$binding$get=n.binding.get())===null||_n$binding$get===void 0?void 0:_n$binding$get.focus());}};function $l(e){return{start:e.start,endExclusive:e.endExclusive};}$a=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([$r(8,r9),$r(9,rr),$r(10,aW)],$a);class $h extends U6.N{get collapsed(){return this.viewModel.collapsed;}getLayoutDebugState(e,t){var _this$viewModel$origi,_this$viewModel$origi2,_this$viewModel$modif,_this$viewModel$modif2;let i=this.binding.read(e);return{key:this.getKey(),label:this.getLabel(),originalUri:(_this$viewModel$origi=(_this$viewModel$origi2=this.viewModel.originalUri)===null||_this$viewModel$origi2===void 0?void 0:_this$viewModel$origi2.toString())!==null&&_this$viewModel$origi!==void 0?_this$viewModel$origi:null,modifiedUri:(_this$viewModel$modif=(_this$viewModel$modif2=this.viewModel.modifiedUri)===null||_this$viewModel$modif2===void 0?void 0:_this$viewModel$modif2.toString())!==null&&_this$viewModel$modif!==void 0?_this$viewModel$modif:null,collapsed:this.collapsed.read(e),hasTemplate:void 0!==i,verticalState:{contentHeight:this.size.read(e),itemViewportOffset:t.scrollOffset},maxScroll:this.maxScroll.read(e).maxScroll,layout:{contentRange:$l(t.contentRange),renderedRange:$l(t.renderedRange),maxScrollOffset:t.maxScrollOffset,scrollOffset:t.scrollOffset,visibility:t.visibility}};}constructor(e,t,i){super(),this._managedItem=e,this._scrollLeft=t,this._logger=i,this.size=e.size,this.contentHeight=this.size,this.maxScroll=e.maxScroll,this.template=e.template,this.binding=e.binding,this.viewModel=e.item,this._isFocused=n5(this,e=>{var _this$template$read$i,_this$template$read2;return(_this$template$read$i=(_this$template$read2=this.template.read(e))===null||_this$template$read2===void 0?void 0:_this$template$read2.isFocused.read(e))!==null&&_this$template$read$i!==void 0?_this$template$read$i:!1;}),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(se(e=>{var _this$binding$read3;let t=this._scrollLeft.read(e);(_this$binding$read3=this.binding.read(e))===null||_this$binding$read3===void 0||_this$binding$read3.setScrollLeft(t);}));}toString(){var _this$viewModel$modif3,_this$viewModel$modif4,_this$viewModel$origi3;return`VirtualViewItem(${(_this$viewModel$modif3=(_this$viewModel$modif4=this.viewModel.modifiedUri)===null||_this$viewModel$modif4===void 0?void 0:_this$viewModel$modif4.toString())!==null&&_this$viewModel$modif3!==void 0?_this$viewModel$modif3:(_this$viewModel$origi3=this.viewModel.originalUri)===null||_this$viewModel$origi3===void 0?void 0:_this$viewModel$origi3.toString()})`;}getKey(){return this.viewModel.getKey();}getLabel(){var _this$viewModel$modif5;return $s((_this$viewModel$modif5=this.viewModel.modifiedUri)!==null&&_this$viewModel$modif5!==void 0?_this$viewModel$modif5:this.viewModel.originalUri);}getViewState(){return sr(e=>{this._updateTemplateData(e);}),{collapsed:this.viewModel.collapsed.get(),selections:this.viewModel.lastTemplateData.get().selections};}setViewState(e,t){var _e$selections$length,_e$selections,_e$selections2;this._logger.log("item view state restored",{file:this.getLabel(),collapsed:e.collapsed,selections:(_e$selections$length=(_e$selections=e.selections)===null||_e$selections===void 0?void 0:_e$selections.length)!==null&&_e$selections$length!==void 0?_e$selections$length:0}),this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);let i=this.viewModel.lastTemplateData.get(),n=(_e$selections2=e.selections)===null||_e$selections2===void 0?void 0:_e$selections2.map(pq.f.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:n},t);let s=this.binding.get();s&&n&&s.editor.setSelections(n);}_updateTemplateData(e){var _t$editor$getSelectio;let t=this.binding.get();t&&this.viewModel.lastTemplateData.set({expandedContentHeight:t.getExpandedContentHeight(),selections:(_t$editor$getSelectio=t.editor.getSelections())!==null&&_t$editor$getSelectio!==void 0?_t$editor$getSelectio:void 0},e);}hide(){this._managedItem.hide();}render(e,t,i,n,s){this._managedItem.render(e,t,i,n,s);}}let $d=class extends UQ.N{constructor(e,t,i,n){super(),this._element=e,this._workbenchUIElementFactory=t,this._options=i,this._instantiationService=n,this._dimension=sc(this,void 0),this._viewModel=sc(this,void 0),this._diffLayoutOptions=sc(this,void 0),this._paddingBottomPx=sc(this,0),this._widgetImplDisposable=this._register(new UQ.k()),this._variant=this._options.variant;let s=this._createWidgetImpl($a);this._widgetImplDisposable.value=s,this._widgetImplValue=sc(this,s),this._widgetImpl=this._widgetImplValue;let o=!0;this._register(se(e=>{let t=HF($a);if(o){o=!1;return;}this._replaceWidgetImpl(t);}));}_createWidgetImpl(e){return this._instantiationService.createInstance(e,this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory,function(e){switch(e){case"noCardsNonCompact":return{classNames:["multiDiffEditor-standard"],horizontalInsets:{left:9,right:9},headerHeight:40,contentBottomPadding:0,headerClickToCollapse:!1};case"noCards":return{classNames:["multiDiffEditor-compact"],horizontalInsets:{left:0,right:0},headerHeight:32,contentBottomPadding:8,headerClickToCollapse:!0,diffEditorOptions:{hideOriginalLineNumbers:!0}};case"cards":return{diffEditorVariant:"compact",classNames:["multiDiffEditor-compact","multiDiffEditor-card"],horizontalInsets:{left:9,right:9},headerHeight:40,contentBottomPadding:0,headerClickToCollapse:!0,diffEditorOptions:{hideOriginalLineNumbers:!0}};}}(this._variant),this._diffLayoutOptions,this._options.diffEditorOptions,this._paddingBottomPx);}_replaceWidgetImpl(e){var _r$activeControl$get,_r$activeControl$get2;let t=this._widgetImplValue.get(),i=t.getViewState(),n=this._viewModel.get(),s=t.activeControl.get(),o=s!==null&&s!==void 0&&s.getOriginalEditor().hasTextFocus()?"original":s!==null&&s!==void 0&&s.getModifiedEditor().hasTextFocus()?"modified":void 0;this._viewModel.set(void 0,void 0),this._widgetImplDisposable.clear();let r=this._createWidgetImpl(e);this._widgetImplDisposable.value=r,r.setPreserveFocusOnLoad(!0),sr(e=>{this._viewModel.set(n,e),r.setViewState(i,e);}),"original"===o?(_r$activeControl$get=r.activeControl.get())===null||_r$activeControl$get===void 0?void 0:_r$activeControl$get.getOriginalEditor().focus():"modified"===o&&((_r$activeControl$get2=r.activeControl.get())===null||_r$activeControl$get2===void 0?void 0:_r$activeControl$get2.getModifiedEditor().focus()),r.setPreserveFocusOnLoad(!1),this._widgetImplValue.set(r,void 0);}};function $c(e){let t=il.get(Ch);return t instanceof Hk?t.addDynamicKeybindings(e.map(e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:rV.deserialize(e.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),i8.N.None);}$d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r;}([function(e,t){rr(e,t,3);}],$d);function $u(e,t){return"boolean"==typeof e?e:t;}function $g(e,t){return"string"==typeof e?e:t;}function $p(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase();}));let i=function(e){let t={};for(let i of e)t[i]=!0;return t;}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase());}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e);};}function $f(e,t,i){let n;t=t.replace(/@@/g,"\x01");let s=0;do n=!1,t=t.replace(/@(\w+)/g,function(i,s){n=!0;let o="";if("string"==typeof e[s])o=e[s];else if(e[s]&&e[s]instanceof RegExp)o=e[s].source;else if(void 0===e[s])throw dp(e,"language definition does not contain attribute '"+s+"', used at: "+t);else throw dp(e,"attribute reference '"+s+"' must be a string, used at: "+t);return o?"(?:"+o+")":"";}),s++;while(n&&s<5);t=t.replace(/\x01/g,"@");let o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i&&t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return s=>{let r;return n&&i===s?n:(i=s,n=new RegExp((r=null,t.replace(/\$[sS](\d\d?)/g,function(t,i){return(null===r&&(r=s.split(".")).unshift(s),i&&i<r.length)?(0,i7.d)(du(e,r[i])):"";})),o));};}return new RegExp(t,o);}class $m{constructor(e){this.regex=RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e;}setRegex(e,t){let i;if("string"==typeof t)i=t;else if(t instanceof RegExp)i=t.source;else throw dp(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=$f(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0);}setAction(e,t){this.action=function e(t,i,n){if(!n)return{token:""};if("string"==typeof n)return n;if(n.token||""===n.token)if("string"!=typeof n.token)throw dp(t,"a 'token' attribute must be of type string, in rule: "+i);else{let e={token:n.token};if(n.token.indexOf("$")>=0&&(e.tokenSubst=!0),"string"==typeof n.bracket)if("@open"===n.bracket)e.bracket=1;else if("@close"===n.bracket)e.bracket=-1;else throw dp(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+i);if(n.next)if("string"!=typeof n.next)throw dp(t,"the next state must be a string value in rule: "+i);else{let s=n.next;if(!/^(@pop|@push|@popall)$/.test(s)&&("@"===s[0]&&(s=s.substr(1)),0>s.indexOf("$")&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;let t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t);}return!1;}(t,df(t,s,"",[],""))))throw dp(t,"the next state '"+n.next+"' is not defined in rule: "+i);e.next=s;}return"number"==typeof n.goBack&&(e.goBack=n.goBack),"string"==typeof n.switchTo&&(e.switchTo=n.switchTo),"string"==typeof n.log&&(e.log=n.log),"string"==typeof n.nextEmbedded&&(e.nextEmbedded=n.nextEmbedded,t.usesEmbedded=!0),e;}if(Array.isArray(n)){let s=[];for(let o=0,r=n.length;o<r;o++)s[o]=e(t,i,n[o]);return{group:s};}if(n.cases){let s=[],o=!1;for(let r in n.cases)if(n.cases.hasOwnProperty(r)){let a=e(t,i,n.cases[r]);"@default"===r||"@"===r||""===r?s.push({test:void 0,value:a,name:r}):"@eos"===r?s.push({test:function(e,t,i,n){return n;},value:a,name:r}):s.push(function(e,t,i,n){let s,o=-1,r=i,a=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);a&&(a[3]&&(o=parseInt(a[3]),a[2]&&(o+=100)),r=a[4]);let l="~",h=r;if(r&&0!==r.length?/^\w*$/.test(h)?l="==":(a=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=a[1],h=a[2]):(l="!=",h=""),("~"===l||"!~"===l)&&/^(\w|\|)*$/.test(h)){let t=$p(h.split("|"),e.ignoreCase);s=function(e){return"~"===l?t(e):!t(e);};}else if("@"===l||"!@"===l){let i=e[h];if(!i)throw dp(e,"the @ match target '"+h+"' is not defined, in rule: "+t);if(!function(e,t){if(!t||!Array.isArray(t))return!1;for(let i of t)if(!e(i))return!1;return!0;}(function(e){return"string"==typeof e;},i))throw dp(e,"the @ match target '"+h+"' must be an array of strings, in rule: "+t);let n=$p(i,e.ignoreCase);s=function(e){return"@"===l?n(e):!n(e);};}else if("~"===l||"!~"===l){if(0>h.indexOf("$")){let t=$f(e,"^"+h+"$",!1);s=function(e){return"~"===l?t.test(e):!t.test(e);};}else s=function(t,i,n,s){return $f(e,"^"+df(e,h,i,n,s)+"$",!1).test(t);};}else if(0>h.indexOf("$")){let t=du(e,h);s=function(e){return"=="===l?e===t:e!==t;};}else{let t=du(e,h);s=function(i,n,s,o,r){let a=df(e,t,n,s,o);return"=="===l?i===a:i!==a;};}return-1===o?{name:i,value:n,test:function(e,t,i,n){return s(e,e,t,i,n);}}:{name:i,value:n,test:function(e,t,i,n){let r=function(e,t,i,n){if(n<0)return e;if(n<t.length)return t[n];if(n>=100){n-=100;let e=i.split(".");if(e.unshift(i),n<e.length)return e[n];}return null;}(e,t,i,o);return s(r||"",e,t,i,n);}};}(t,i,r,a)),o||(o=!(0,sI.Z)(a)&&(a.hasEmbeddedEndInCases||["@pop","@popall"].includes(a.nextEmbedded||"")));}let r=t.defaultToken;return{hasEmbeddedEndInCases:o,test:function(e,t,i,n){for(let o of s)if(!o.test||o.test(e,t,i,n))return o.value;return r;}};}else throw dp(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+i);}(e,this.name,t);}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e);}}function $_(e,t){if(!t||"object"!=typeof t)throw Error("Monarch: expecting a language definition object");let i={languageId:e,includeLF:$u(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"==typeof t.start?t.start:null,ignoreCase:$u(t.ignoreCase,!1),unicode:$u(t.unicode,!1),tokenPostfix:$g(t.tokenPostfix,"."+e),defaultToken:$g(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]};if(t.languageId=e,t.includeLF=i.includeLF,t.ignoreCase=i.ignoreCase,t.unicode=i.unicode,t.noThrow=i.noThrow,t.usesEmbedded=i.usesEmbedded,t.stateNames=t.tokenizer,t.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw dp(i,"a language definition must define the 'tokenizer' attribute as an object");for(let e in i.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){i.start||(i.start=e);let n=t.tokenizer[e];i.tokenizer[e]=[],function e(n,s,o){for(let r of o){let o=r.include;if(o){if("string"!=typeof o)throw dp(i,"an 'include' attribute must be a string at: "+n);if("@"===o[0]&&(o=o.substr(1)),!t.tokenizer[o])throw dp(i,"include target '"+o+"' is not defined at: "+n);e(n+"."+o,s,t.tokenizer[o]);}else{let e=new $m(n);if(Array.isArray(r)&&r.length>=1&&r.length<=3){if(e.setRegex(t,r[0]),r.length>=3){if("string"==typeof r[1])e.setAction(t,{token:r[1],next:r[2]});else if("object"==typeof r[1]){let i=r[1];i.next=r[2],e.setAction(t,i);}else throw dp(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+n);}else e.setAction(t,r[1]);}else{if(!r.regex)throw dp(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+n);r.name&&"string"==typeof r.name&&(e.name=r.name),r.matchOnlyAtStart&&(e.matchOnlyAtLineStart=$u(r.matchOnlyAtLineStart,!1)),e.setRegex(t,r.regex),e.setAction(t,r.action);}s.push(e);}}}("tokenizer."+e,i.tokenizer[e],n);}if(i.usesEmbedded=t.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw dp(i,"the 'brackets' attribute must be defined as an array");}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let n=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw dp(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"==typeof t.open&&"string"==typeof t.token&&"string"==typeof t.close)n.push({token:t.token+i.tokenPostfix,open:du(i,t.open),close:du(i,t.close)});else throw dp(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");}return i.brackets=n,i.noThrow=!0,i;}class $v{constructor(e,t){this._languageId=e,this._actual=t;}dispose(){}getInitialState(){return this._actual.getInitialState();}tokenize(e,t,i){if("function"==typeof this._actual.tokenize)return $b.adaptTokenize(this._languageId,this._actual,e,i);throw Error("Not supported!");}tokenizeEncoded(e,t,i){let n=this._actual.tokenizeEncoded(e,i);return new hV.j(n.tokens,[],n.endState);}}class $b{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n;}dispose(){}getInitialState(){return this._actual.getInitialState();}static _toClassicTokens(e,t){let i=[],n=0;for(let s=0,o=e.length;s<o;s++){let o=e[s],r=o.startIndex;0===s?r=0:r<n&&(r=n),i[s]=new hV._(r,o.scopes,t),n=r;}return i;}static adaptTokenize(e,t,i,n){let s,o=t.tokenize(i,n),r=$b._toClassicTokens(o.tokens,e);return s=o.endState.equals(n)?n:o.endState,new hV.c(r,s);}tokenize(e,t,i){return $b.adaptTokenize(this._languageId,this._actual,e,i);}_toBinaryTokens(e,t){let i=e.encodeLanguageId(this._languageId),n=this._standaloneThemeService.getColorTheme().tokenTheme,s=[],o=0,r=0;for(let e=0,a=t.length;e<a;e++){let a=t[e],l=1024|n.match(i,a.scopes);if(o>0&&s[o-1]===l)continue;let h=a.startIndex;0===e?h=0:h<r&&(h=r),s[o++]=h,s[o++]=l,r=h;}let a=new Uint32Array(o);for(let e=0;e<o;e++)a[e]=s[e];return a;}tokenizeEncoded(e,t,i){let n,s=this._actual.tokenize(e,i),o=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);return n=s.endState.equals(i)?i:s.endState,new hV.j(o,[],n);}}function $C(e){return e&&"function"==typeof e.then;}function $w(e,t){return"tokenizeEncoded"in t?new $v(e,t):new $b(e,t,il.get(lP),il.get(Wo));}function $y(e,t){let i=new hV.t(async()=>{let i=await Promise.resolve(t.create());return i?"function"==typeof i.getInitialState?$w(e,i):new dx(il.get(lP),il.get(Wo),e,$_(e,i),il.get(lN)):null;});return hV.l.registerFactory(e,i);}var $S=n8,$x=n8;let $L=ra("IEditorCancelService"),$k=new r4("cancellableOperation",!1,(0,iM.M)(993,"Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));lW($L,class{constructor(){this._tokens=new WeakMap();}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext(e=>({key:$k.bindTo(e.get(r9)),tokens:new rb.f()})),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0);};}cancel(e){let t=this._tokens.get(e);if(!t)return;let i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()));}},1);class $D extends $x.R{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get($L).add(e,this));}dispose(){this._unregister(),super.dispose();}}a2(new class extends a0{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:$k});}runEditorCommand(e,t){e.get($L).cancel(t);}}());class $M extends $D{constructor(e,t,i,n){super(e,n),this._listener=new i8.q(),4&t&&this._listener.add(e.onDidChangeCursorPosition(e=>{i&&ln.f.containsPosition(i,e.position)||this.cancel();})),2&t&&this._listener.add(e.onDidChangeCursorSelection(e=>{i&&ln.f.containsRange(i,e.selection)||this.cancel();})),8&t&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),1&t&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())));}dispose(){this._listener.dispose(),super.dispose();}}class $I extends $S.R{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel());}dispose(){this._listener.dispose(),super.dispose();}}e.s(["j",0,class e{constructor(e,t){if(this.flags=t,(1&this.flags)!=0){let t=e.getModel();this.modelVersionId=t?(0,i7.R)("{0}#{1}",t.uri.toString(),t.getVersionId()):null;}else this.modelVersionId=null;(4&this.flags)!=0?this.position=e.getPosition():this.position=null,(2&this.flags)!=0?this.selection=e.getSelection():this.selection=null,(8&this.flags)!=0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1);}_equals(t){return t instanceof e&&this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!!this.position||!t.position)&&(!this.position||!!t.position)&&(!this.position||!t.position||!!this.position.equals(t.position))&&(!!this.selection||!t.selection)&&(!this.selection||!!t.selection)&&(!this.selection||!t.selection||!!this.selection.equalsRange(t.selection))&&!0;}validate(t){return this._equals(new e(t,this.flags));}},"f",0,$M,"S",0,$I],51082);class $N{static _handleEolEdits(e,t){let i,n=[];for(let e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&n.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n;}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n);}static execute(e,t,i){i&&e.pushUndoStop();let n=HW.capture(e),s=$N._handleEolEdits(e,t);1===s.length&&$N._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(e=>BH.replace(ln.f.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",s.map(e=>BH.replaceMove(ln.f.lift(e.range),e.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e);}}e.s(["f",0,$N],57321);class $E{constructor(e){this.value=e,this._lower=e.toLowerCase();}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower;}}class $T{constructor(e){if(this._set=new Set(),e)for(let t of e)this.add(t);}add(e){this._set.add($E.toKey(e));}has(e){return this._set.has($E.toKey(e));}}function $R(e,t,i){let n=[],s=new $T();for(let t of e.ordered(i))n.push(t),t.extensionId&&s.add(t.extensionId);for(let e of t.ordered(i)){if(e.extensionId){if(s.has(e.extensionId))continue;s.add(e.extensionId);}n.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,i,n)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)});}return n;}class $A{static setFormatterSelector(e){return{dispose:$A._selectors.unshift(e)};}static async select(e,t,i,n){if(0===e.length)return;let s=rw.f.first($A._selectors);if(s)return await s(e,t,i,n);}}_$A=$A;_$A._selectors=new rb.f();async function $O(e,t,i,n,s,o,r){let a=e.get(rr),{documentRangeFormattingEditProvider:l}=e.get(hy),h=UF(t)?t.getModel():t,d=l.ordered(h),c=await $A.select(d,h,n,2);c&&(s.report(c),await a.invokeFunction($P,c,t,i,o,r));}async function $P(e,t,i,n,s,o){let r,a,l=e.get(dT),h=e.get(aW),d=e.get(Tm);UF(i)?(r=i.getModel(),a=new $M(i,5,void 0,s)):(r=i,a=new $I(i,s));let c=[],u=0;for(let e of(0,ip.h)(n).sort(ln.f.compareRangesUsingStarts))u>0&&ln.f.areIntersectingOrTouching(c[u-1],e)?c[u-1]=ln.f.fromPositions(c[u-1].getStartPosition(),e.getEndPosition()):u=c.push(e);let g=async e=>{var _t$extensionId,_t$extensionId2;h.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_t$extensionId=t.extensionId)===null||_t$extensionId===void 0?void 0:_t$extensionId.value,e);let i=(await t.provideDocumentRangeFormattingEdits(r,e,r.getFormattingOptions(),a.token))||[];return h.trace("[format][provideDocumentRangeFormattingEdits] (response)",(_t$extensionId2=t.extensionId)===null||_t$extensionId2===void 0?void 0:_t$extensionId2.value,i),i;},p=(e,t)=>{if(!e.length||!t.length)return!1;let i=e.reduce((e,t)=>ln.f.plusRange(e,t.range),e[0].range);if(!t.some(e=>ln.f.intersectRanges(i,e.range)))return!1;for(let i of e)for(let e of t)if(ln.f.intersectRanges(i.range,e.range))return!0;return!1;},f=[],m=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){var _t$extensionId3,_t$extensionId4;h.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_t$extensionId3=t.extensionId)===null||_t$extensionId3===void 0?void 0:_t$extensionId3.value,c);let e=(await t.provideDocumentRangesFormattingEdits(r,c,r.getFormattingOptions(),a.token))||[];h.trace("[format][provideDocumentRangeFormattingEdits] (response)",(_t$extensionId4=t.extensionId)===null||_t$extensionId4===void 0?void 0:_t$extensionId4.value,e),m.push(e);}else{for(let e of c){if(a.token.isCancellationRequested)return!0;m.push(await g(e));}for(let e=0;e<c.length;++e)for(let t=e+1;t<c.length;++t){if(a.token.isCancellationRequested)return!0;if(p(m[e],m[t])){let i=ln.f.plusRange(c[e],c[t]),n=await g(i);c.splice(t,1),c.splice(e,1),c.push(i),m.splice(t,1),m.splice(e,1),m.push(n),e=0,t=0;}}}for(let e of m){if(a.token.isCancellationRequested)return!0;let t=await l.computeMoreMinimalEdits(r.uri,e);t&&f.push(...t);}if(a.token.isCancellationRequested)return!0;}finally{a.dispose();}if(0===f.length)return!1;if(UF(i))$N.execute(i,f,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=f,t=new pq.f(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);r.pushEditOperations([t],f.map(e=>({text:e.text,range:ln.f.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(ln.f.areIntersectingOrTouching(i,t))return[new pq.f(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null;});}return d.playSignal(Tb.format,{userGesture:o}),!0;}async function $F(e,t,i,n,s,o){let r=e.get(rr),a=e.get(hy),l=UF(t)?t.getModel():t,h=$R(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),d=await $A.select(h,l,i,1);d&&(n.report(d),await r.invokeFunction($B,d,t,i,s,o));}async function $B(e,t,i,n,s,o){let r,a,l,h=e.get(dT),d=e.get(Tm);UF(i)?(r=i.getModel(),a=new $M(i,5,void 0,s)):(r=i,a=new $I(i,s));try{let e=await t.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=await h.computeMoreMinimalEdits(r.uri,e),a.token.isCancellationRequested)return!0;}finally{a.dispose();}if(!l||0===l.length)return!1;if(UF(i))$N.execute(i,l,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=l,t=new pq.f(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);r.pushEditOperations([t],l.map(e=>({text:e.text,range:ln.f.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(ln.f.areIntersectingOrTouching(i,t))return[new pq.f(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null;});}return d.playSignal(Tb.format,{userGesture:o}),!0;}async function $W(e,t,i,n,s,o){for(let r of t.documentRangeFormattingEditProvider.ordered(i)){let t=await Promise.resolve(r.provideDocumentRangeFormattingEdits(i,n,s,o)).catch(nf.n);if((0,ip.e)(t))return await e.computeMoreMinimalEdits(i.uri,t);}}async function $V(e,t,i,n,s){for(let o of $R(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i)){let t=await Promise.resolve(o.provideDocumentFormattingEdits(i,n,s)).catch(nf.n);if((0,ip.e)(t))return await e.computeMoreMinimalEdits(i.uri,t);}}function $H(e,t,i,n,s,o,r){let a=t.onTypeFormattingEditProvider.ordered(i);return 0===a.length||0>a[0].autoFormatTriggerCharacters.indexOf(s)?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(i,n,s,o,r)).catch(nf.n).then(t=>e.computeMoreMinimalEdits(i.uri,t));}function $z(e,t){let i;if(e&&"object"==typeof e&&"number"==typeof e.tabSize&&"boolean"==typeof e.insertSpaces)i=e;else{let e=t.object.textEditorModel.getOptions();i={tabSize:e.tabSize,insertSpaces:e.insertSpaces};}return i;}rS.registerCommand("_executeFormatRangeProvider",async function(e,...t){let[i,n,s]=t;(0,sI.T)(ne.m.isUri(i)),(0,sI.T)(ln.f.isIRange(n));let o=e.get(rc),r=e.get(dT),a=e.get(hy),l=await o.createModelReference(i);try{return $W(r,a,l.object.textEditorModel,ln.f.lift(n),$z(s,l),n8.c.None);}finally{l.dispose();}}),rS.registerCommand("_executeFormatDocumentProvider",async function(e,...t){let[i,n]=t;(0,sI.T)(ne.m.isUri(i));let s=e.get(rc),o=e.get(dT),r=e.get(hy),a=await s.createModelReference(i);try{return $V(o,r,a.object.textEditorModel,$z(n,a),n8.c.None);}finally{a.dispose();}}),rS.registerCommand("_executeFormatOnTypeProvider",async function(e,...t){let[i,n,s,o]=t;(0,sI.T)(ne.m.isUri(i)),(0,sI.T)(rh.f.isIPosition(n)),(0,sI.T)("string"==typeof s);let r=e.get(rc),a=e.get(dT),l=e.get(hy),h=await r.createModelReference(i);try{return $H(a,l,h.object.textEditorModel,rh.f.lift(n),s,$z(o,h),n8.c.None);}finally{h.dispose();}}),e.s(["g",0,$A,"h",0,$O,"H",0,$F,"a",0,$H],89494),i5.wrappingIndent.defaultValue=0,i5.glyphMargin.defaultValue=!1,i5.autoIndent.defaultValue=3,i5.overviewRulerLanes.defaultValue=2,$A.setFormatterSelector((e,t,i)=>Promise.resolve(e[0]));let $U=(0,i6.f)();$U.editor={create:function(e,t,i){return il.initialize(i||{}).createInstance(UK,e,t);},getEditors:function(){return il.get(rl).listCodeEditors();},getDiffEditors:function(){return il.get(rl).listDiffEditors();},onDidCreateEditor:function(e){return il.get(rl).onCodeEditorAdd(t=>{e(t);});},onDidCreateDiffEditor:function(e){return il.get(rl).onDiffEditorAdd(t=>{e(t);});},createDiffEditor:function(e,t,i){return il.initialize(i||{}).createInstance(Uq,e,t);},addCommand:function(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw Error("Invalid command descriptor, `id` and `run` are required properties!");return rS.registerCommand(e.id,e.run);},addEditorAction:function(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");let t=rV.deserialize(e.precondition),i=new i8.q();if(i.add(rS.registerCommand(e.id,(i,...n)=>a0.runEditorCommand(i,n,t,(t,i,n)=>Promise.resolve(e.run(i,...n))))),e.contextMenuGroupId){let n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(au.appendMenuItem(ah.EditorContext,n));}if(Array.isArray(e.keybindings)){let n=il.get(Ch);if(n instanceof Hk){let s=rV.and(t,rV.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map(t=>({keybinding:t,command:e.id,when:s}))));}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");}return i;},addKeybindingRule:function(e){return $c([e]);},addKeybindingRules:$c,createModel:function(e,t,i){let n=il.get(lP),s=n.getLanguageIdByMimeType(t)||t;return Uj(il.get(rd),n,e,s,i);},setModelLanguage:function(e,t){let i=il.get(lP),n=i.getLanguageIdByMimeType(t)||t||l8;e.setLanguage(i.createById(n));},setModelMarkers:function(e,t,i){e&&il.get(Bd).changeOne(t,e.uri,i);},getModelMarkers:function(e){return il.get(Bd).read(e);},removeAllMarkers:function(e){il.get(Bd).changeAll(e,[]);},onDidChangeMarkers:function(e){return il.get(Bd).onMarkerChanged(e);},getModels:function(){return il.get(rd).getModels();},getModel:function(e){return il.get(rd).getModel(e);},onDidCreateModel:function(e){return il.get(rd).onModelAdded(e);},onWillDisposeModel:function(e){return il.get(rd).onModelRemoved(e);},onDidChangeModelLanguage:function(e){return il.get(rd).onModelLanguageChanged(t=>{e({model:t.model,oldLanguage:t.oldLanguageId});});},createWebWorker:function(e){var t;return t=il.get(rd),new hB(t,il.get(li),e);},colorizeElement:function(e,t){let i=il.get(lP),n=il.get(Wo);return dk.colorizeElement(n,i,e,t).then(()=>{n.registerEditorContainer(e);});},colorize:function(e,t,i){let n=il.get(lP);return il.get(Wo).registerEditorContainer(i9.document.body),dk.colorize(n,e,t,i);},colorizeModelLine:function(e,t,i=4){return il.get(Wo).registerEditorContainer(i9.document.body),dk.colorizeModelLine(e,t,i);},tokenize:function(e,t){let i;hV.l.getOrCreate(t);let n=(i=hV.l.get(t))||{getInitialState:()=>hH,tokenize:(e,i,n)=>hz(t,n)},s=(0,i7.B)(e),o=[],r=n.getInitialState();for(let e=0,t=s.length;e<t;e++){let t=s[e],i=n.tokenize(t,!0,r);o[e]=i.tokens,r=i.endState;}return o;},defineTheme:function(e,t){il.get(Wo).defineTheme(e,t);},setTheme:function(e){il.get(Wo).setTheme(e);},remeasureFonts:function(){ro.clearAllFontInfos();},registerCommand:function(e,t){return rS.registerCommand({id:e,handler:t});},registerLinkOpener:function(e){return il.get(NC).registerOpener({open:async t=>("string"==typeof t&&(t=ne.m.parse(t)),e.open(t))});},registerEditorOpener:function(e){return il.get(rl).registerCodeEditorOpenHandler(async(t,i,n)=>{var _t$options;let s;if(!i)return null;let o=(_t$options=t.options)===null||_t$options===void 0?void 0:_t$options.selection;return(o&&"number"==typeof o.endLineNumber&&"number"==typeof o.endColumn?s=o:o&&(s={lineNumber:o.startLineNumber,column:o.startColumn}),await e.openCodeEditor(i,t.resource,s))?i:null;});},AccessibilitySupport:hK.S,ContentWidgetPositionPreference:hK.Z,CursorChangeReason:hK.q,DefaultEndOfLine:hK.v,EditorAutoIndentStrategy:hK.l,EditorOption:hK.H,EndOfLinePreference:hK.T,EndOfLineSequence:hK.e,MinimapPosition:hK.r,MinimapSectionHeaderStyle:hK.n,MouseTargetType:hK.f,OverlayWidgetPositionPreference:hK.y,OverviewRulerLane:hK.$,GlyphMarginLane:hK.w,RenderLineNumbersType:hK.J,RenderMinimap:hK.g,ScrollbarVisibility:hK.B,ScrollType:hK.W,TextEditorCursorBlinkingStyle:hK.i,TextEditorCursorStyle:hK.G,TrackedRangeStickiness:hK._,WrappingIndent:hK.d,InjectedTextCursorStops:hK.U,PositionAffinity:hK.N,ShowLightbulbIconMode:hK.b,TextDirection:hK.X,ConfigurationChangedEvent:iI,BareFontInfo:iw,FontInfo:iy,TextModelResolvedOptions:h$.b,FindMatch:h$.X,ApplyUpdateResult:iT,EditorZoom:ib,createMultiFileDiffEditor:function(e,t){let i=il.initialize(t||{});return new $d(e,{},{variant:"noCardsNonCompact"},i);},EditorType:hW,EditorOptions:i5},$U.languages={register:function(e){l9.registerLanguage(e);},getLanguages:function(){let e=[];return e.concat(l9.getLanguages());},onLanguage:function(e,t){return il.withServices(()=>{let i=il.get(lP).onDidRequestRichLanguageFeatures(n=>{n===e&&(i.dispose(),t());});return i;});},onLanguageEncountered:function(e,t){return il.withServices(()=>{let i=il.get(lP).onDidRequestBasicLanguageFeatures(n=>{n===e&&(i.dispose(),t());});return i;});},getEncodedLanguageId:function(e){return il.get(lP).languageIdCodec.encodeLanguageId(e);},score:function(e,t,i){return EJ(e,t,i,!0,void 0,void 0);},setLanguageConfiguration:function(e,t){if(!il.get(lP).isRegisteredLanguageId(e))throw Error(`Cannot set configuration for unknown language ${e}`);return il.get(ha).register(e,t,100);},setColorMap:function(e){let t=il.get(Wo);if(e){let i=[null];for(let t=1,n=e.length;t<n;t++)i[t]=ct.G.fromHex(e[t]);t.setColorMapOverride(i);}else t.setColorMapOverride(null);},registerTokensProviderFactory:$y,setTokensProvider:function(e,t){if(!il.get(lP).isRegisteredLanguageId(e))throw Error(`Cannot set tokens provider for unknown language ${e}`);return $C(t)?$y(e,{create:()=>t}):hV.l.register(e,$w(e,t));},setMonarchTokensProvider:function(e,t){return $C(t)?$y(e,{create:()=>t}):hV.l.register(e,new dx(il.get(lP),il.get(Wo),e,$_(e,t),il.get(lN)));},registerReferenceProvider:function(e,t){return il.get(hy).referenceProvider.register(e,t);},registerRenameProvider:function(e,t){return il.get(hy).renameProvider.register(e,t);},registerNewSymbolNameProvider:function(e,t){return il.get(hy).newSymbolNamesProvider.register(e,t);},registerCompletionItemProvider:function(e,t){return il.get(hy).completionProvider.register(e,t);},registerSignatureHelpProvider:function(e,t){return il.get(hy).signatureHelpProvider.register(e,t);},registerHoverProvider:function(e,t){return il.get(hy).hoverProvider.register(e,{provideHover:async(e,i,n,s)=>{let o=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n,s)).then(e=>{if(e)return!e.range&&o&&(e.range=new ln.f(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),e.range||(e.range=new ln.f(i.lineNumber,i.column,i.lineNumber,i.column)),e;});}});},registerDocumentSymbolProvider:function(e,t){return il.get(hy).documentSymbolProvider.register(e,t);},registerDocumentHighlightProvider:function(e,t){return il.get(hy).documentHighlightProvider.register(e,t);},registerLinkedEditingRangeProvider:function(e,t){return il.get(hy).linkedEditingRangeProvider.register(e,t);},registerDefinitionProvider:function(e,t){return il.get(hy).definitionProvider.register(e,t);},registerImplementationProvider:function(e,t){return il.get(hy).implementationProvider.register(e,t);},registerTypeDefinitionProvider:function(e,t){return il.get(hy).typeDefinitionProvider.register(e,t);},registerCodeLensProvider:function(e,t){return il.get(hy).codeLensProvider.register(e,t);},registerCodeActionProvider:function(e,t,i){return il.get(hy).codeActionProvider.register(e,{providedCodeActionKinds:i===null||i===void 0?void 0:i.providedCodeActionKinds,documentation:i===null||i===void 0?void 0:i.documentation,provideCodeActions:(e,i,n,s)=>{let o=il.get(Bd).read({resource:e.uri}).filter(e=>ln.f.areIntersectingOrTouching(e,i));return t.provideCodeActions(e,i,{markers:o,only:n.only,trigger:n.trigger},s);},resolveCodeAction:t.resolveCodeAction});},registerDocumentFormattingEditProvider:function(e,t){return il.get(hy).documentFormattingEditProvider.register(e,t);},registerDocumentRangeFormattingEditProvider:function(e,t){return il.get(hy).documentRangeFormattingEditProvider.register(e,t);},registerOnTypeFormattingEditProvider:function(e,t){return il.get(hy).onTypeFormattingEditProvider.register(e,t);},registerLinkProvider:function(e,t){return il.get(hy).linkProvider.register(e,t);},registerColorProvider:function(e,t){return il.get(hy).colorProvider.register(e,t);},registerFoldingRangeProvider:function(e,t){return il.get(hy).foldingRangeProvider.register(e,t);},registerDeclarationProvider:function(e,t){return il.get(hy).declarationProvider.register(e,t);},registerSelectionRangeProvider:function(e,t){return il.get(hy).selectionRangeProvider.register(e,t);},registerDocumentSemanticTokensProvider:function(e,t){return il.get(hy).documentSemanticTokensProvider.register(e,t);},registerDocumentRangeSemanticTokensProvider:function(e,t){return il.get(hy).documentRangeSemanticTokensProvider.register(e,t);},registerInlineCompletionsProvider:function(e,t){return il.get(hy).inlineCompletionsProvider.register(e,t);},registerInlayHintsProvider:function(e,t){return il.get(hy).inlayHintsProvider.register(e,t);},DocumentHighlightKind:hK.c,CompletionItemKind:hK.R,CompletionItemTag:hK.t,CompletionItemInsertTextRule:hK.k,SymbolKind:hK.z,SymbolTag:hK.F,IndentAction:hK.h,CompletionTriggerKind:hK.u,SignatureHelpTriggerKind:hK.A,InlayHintKind:hK.o,InlineCompletionTriggerKind:hK.a,CodeActionTriggerType:hK.Q,NewSymbolNameTag:hK.O,NewSymbolNameTriggerKind:hK.s,PartialAcceptTriggerKind:hK.p,HoverVerbosityAction:hK.M,InlineCompletionEndOfLifeReasonKind:hK.x,InlineCompletionHintStyle:hK.m,FoldingRangeKind:hV.d,SelectedSuggestionInfo:hV.i,EditDeltaInfo:wS};let $$=$U.CancellationTokenSource,$K=$U.Emitter,$q=$U.KeyCode,$j=$U.KeyMod,$G=$U.Position,$Q=$U.Range,$Z=$U.Selection,$Y=$U.SelectionDirection,$X=$U.MarkerSeverity,$J=$U.MarkerTag,$0=$U.Uri,$1=$U.Token,$2=$U.editor,$3=$U.languages,$5=nu(),$6=globalThis;($5!==null&&$5!==void 0&&$5.globalAPI||"function"==typeof $6.define&&$6.define.amd)&&($6.monaco=$U),void 0!==$6.require&&"function"==typeof $6.require.config&&$6.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]}),e.s(["CancellationTokenSource",0,$$,"Emitter",0,$K,"KeyCode",0,$q,"KeyMod",0,$j,"MarkerSeverity",0,$X,"MarkerTag",0,$J,"Position",0,$G,"Range",0,$Q,"Selection",0,$Z,"SelectionDirection",0,$Y,"Token",0,$1,"Uri",0,$0,"editor",0,$2,"languages",0,$3],48340);}]);
|